Lesson 5 of 8 · 15 min

Graphing straight lines

Construct the graph of y=mx+cy = mx + c three ways — from a table of values, from the yy-intercept and gradient, and from the two intercepts — and label it properly.

What you will be able to do

  • Construct a straight-line graph from a table of values.
  • Construct the graph of y=mx+cy = mx + c from its yy-intercept and gradient.
  • Construct a straight-line graph from its xx- and yy-intercepts.
  • Label a graph with axes, scale, the equation and key points.

Two points are enough to fix a straight line — lay a ruler through them and you're done. So graphing y=mx+cy = mx + c comes down to finding two (or, to be safe, three) points that lie on it. There are three good ways to get them, and each suits different equations.

Method 1: a table of values. Choose a few xx-values, substitute each into the equation to get yy, plot the points and join them. Use a third point as a check: if the three points don't line up, one of them is wrong.

A table of values for y=2x−3y = 2x - 3.
xx−1-10123
y=2x−3y = 2x - 3−5-5−3-3−1-113

The points from the table all lie on one straight line: y=2x−3y = 2x - 3.

Which point lies on the line y=3x−2y = 3x - 2?

Choose one answer

Method 2: the y-intercept and the gradient

  1. Plot the y-intercept

    Mark (0,c)(0, c) on the yy-axis.

  2. Write the gradient as rise over run

    m=3m = 3 is 31\frac{3}{1}: up 3 for every 1 across. m=−23m = -\frac{2}{3} is down 2 for every 3 across.

  3. Step out from the intercept

    From (0,c)(0, c), move the run to the right and the rise up (or down if negative). Mark the point. Repeat once more.

  4. Rule the line

    Draw a straight line through the points, across the whole grid, and label it with its equation.

Worked example

Graph y=−23x+4y = -\frac{2}{3}x + 4 from its gradient and intercept

  • Simple familiar

Construct the graph of y=−23x+4y = -\frac{2}{3}x + 4 using its yy-intercept and gradient, for −3≤x≤9-3 \le x \le 9.

From (0,4)(0, 4): right 3, down 2 to (3,2)(3, 2); right 3, down 2 to (6,0)(6, 0).

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Plot (0,c)(0, c).

  2. Use the denominator of mm as the run and the numerator as the rise (down if negative).

  3. Step out twice, then rule and label the line.

Watch out for

  • Going up 2 instead of down 2: the gradient is negative.

You are graphing y=34x−2y = \frac{3}{4}x - 2. You start at the yy-intercept, then move 4 units right and 3 units up. What point do you reach?

Method 3: the two intercepts. Find where the line crosses each axis — set x=0x = 0 for the yy-intercept and y=0y = 0 for the xx-intercept — and join them. This is quick when both intercepts are on the grid, and it is especially handy for equations like 2x+5y=202x + 5y = 20 that aren't in y=mx+cy = mx + c form.

Worked example

Graph y=1.5x−6y = 1.5x - 6 from its intercepts

  • Simple familiar

Construct the graph of y=1.5x−6y = 1.5x - 6 by finding its intercepts.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Set x=0x = 0 to find the yy-intercept.

  2. Set y=0y = 0 and solve to find the xx-intercept.

  3. Plot both, add a check point, and rule the line.

Interactive

Construct the line

Set mm and cc to build each line, then check the marked intercepts against your own working.

Find the yy-value on the line y=−0.5x+3y = -0.5x + 3 when x=4x = 4.

Tip

Technology

The table mode on many scientific calculators fills in a table of values for you: enter f(x)=2x−3f(x) = 2x - 3, a start, an end and a step. In class, a spreadsheet or graphing software (such as Desmos or GeoGebra) draws the line and lets you read points off it. You still need to be able to draw it by hand, with labels, in an exam.

Exam tip

What a marker looks for in a graph

  • Both axes drawn and labelled (with the quantity and units in a practical problem), and an even scale.
  • The line ruled, extending across the region asked for.
  • Key points — usually the intercepts — marked and labelled with coordinates.
  • The equation written on or beside the line.

Common mistake

Starting from the origin

When you step out with the gradient, start at the yy-intercept (0,c)(0, c), not at (0,0)(0, 0). Starting at the origin draws y=mxy = mx — a line with the right steepness in the wrong place.

Summary

  • Two points fix a line; plot a third as a check.

  • Table of values: substitute chosen xx-values to get points.

  • Gradient-intercept: plot (0,c)(0, c), then step by run across and rise up (down if m<0m < 0).

  • Intercepts: set x=0x = 0 and y=0y = 0, plot both and join them.

  • Label the axes, the scale, the line's equation and its intercepts.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 5 of 80% read

Save your progress with a free account