Resources For Teachers For Tutors For Students & Parents Pricing
Algebra Linear functions

Graphing linear equations

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Graphing Linear Equations Watch
  • Graphing Linear Equations using X and Y intercepts Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

There are three common ways to graph a line:

  • Table: plot several \((x,y)\) points.
  • Intercepts: plot the \(x\)- and \(y\)-intercepts.
  • Slope-intercept: start at \(b\), then step by the slope \(m\).
Two points determine a line; a third confirms it.
Graphing a line Plot the y-intercept, then use the slope to step to more points. x y y=2x-1
Start at the \(y\)-intercept, step by the slope.
Three ways to graph Three ways to graph Three ways to graph table: plot several (x, y) points intercepts: plot x-int and y-int slope-intercept: start at b, step by m
Three ways to graph.

Stepping by the slope:

\[m=\dfrac{\text{rise}}{\text{run}}\]
slope is rise over run, used to step to the next point
Plot at least two points, then draw a straight line.

How to graph a line

  1. Choose a method (table, intercepts, or slope-intercept).
  2. Find at least two points.
  3. Plot them.
  4. Draw a straight line through them.
Example 1 β€” By a table
Graph \(y=2x-1\) using \(x=0,1,2\).
Solution

Build points.

\((0,-1),\ (1,1),\ (2,3)\)\(\Rightarrow\)\(\text{plot and connect}\)
plot negative 1, then 1, then 3 and connect
Example 2 β€” By intercepts
Graph \(y=2x-1\) using intercepts.
Solution

Find both intercepts.

\(\text{y-int}\)\(=\)\(-1\)
\(\text{x-int}\)\(=\)\(\dfrac12\)
y-intercept negative 1, x-intercept one half
Example 3 β€” By slope-intercept
Graph \(y=2x-1\) from \(m\) and \(b\).
Solution

Start at \(b=-1\); slope \(2\) means up \(2\), right \(1\).

\(\text{from }(0,-1)\)\(\to\)\((1,1)\)
start at negative 1 and step up 2, right 1
Example 4 β€” Draw the line
How many points do you need to draw a line?
Solution

Two points determine a line, but a third checks your work.

two points, with a third to check

Common pitfalls

Use at least two points; a third checks your work.
Step the slope correctly: rise then run.
Draw a straight line, extending past the points.

Frequently asked questions

How do you graph a line from slope-intercept form?

Plot the \(y\)-intercept, then step by the slope.

How many points do you need?

Two, but plotting a third checks your line.

What is the easiest method with intercepts?

Plot the \(x\)- and \(y\)-intercepts and connect.

Should the line extend past the points?

Yes β€” a line continues in both directions.