Math Explainer.

Plotting lines: two points are enough

Ages 12–14GCSE (A9a)

What you will learn

Two different points fix a straight line. You learn to draw the line of an equation: with a table of values or with the yy-intercept and gradient.

Try it: the simulation’s table of values shows three points on y=2x−1y = 2x - 1. Drag P and Q onto two. How can you tell a point is right? Where is the line’s point at x=3x = 3? Think, then check with P.

A coordinate grid with the two points P and Q and the line through themA coordinate grid from −7 to 7 on both axes. Drag the points P and Q onto grid points, move them with the arrow keys or type their coordinates into the boxes; each coordinate goes from −6 to 6. The line through P and Q is green. A point that lies on the question’s line gets a ring. ‘Show the solution’ draws the line you are looking for as a dashed line, and ‘New question’ sets the next of six equations.
Question 1 of 6: draw the line
y=2x−1y = 2x - 1
Table of values
x012y−113\begin{array}{c|c|c|c} x & 0 & 1 & 2 \\ \hline y & -1 & 1 & 3 \end{array}
P
Q

Neither P (−2, 0) nor Q (2, 0) lies on the line y = 2x − 1; the table of values shows you points on this line.

Two ways to draw a line

A point with a ring lies on the line you are looking for: its coordinates satisfy the equation. Two such points are enough.

With a table of values: choose values for xx, work out yy and plot the points.

With the gradient: start at cc on the yy-axis. Go 11 to the right and mm up, or down if mm is negative.

From the yy-intercept −1-1, each step of 11 to the right and 22 up leads to the next point on the line y=2x−1y = 2x - 1.

Self-check

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

Your answer
Show the solution

The point (2,5)(2, 5): 3×2−1=53 \times 2 - 1 = 5. For x=1x = 1, y=3×1−1=2y = 3 \times 1 - 1 = 2 and not 33. For x=0x = 0, y=−1y = -1 and not 11.

Example 1

Draw the line y=−x+3y = -x + 3 with a table of values.

  1. 01

    Choose three easy values for xx: two for the line and one as a check.

    x=0,x=1,x=3x = 0, \quad x = 1, \quad x = 3
  2. 02

    Substitute each value into the equation and work out yy.

    y=−0+3=3,y=−1+3=2,y=−3+3=0y = -0 + 3 = 3, \quad y = -1 + 3 = 2, \quad y = -3 + 3 = 0
  3. 03

    Write the values in a table of values.

    x013y320\begin{array}{c|c|c|c} x & 0 & 1 & 3 \\ \hline y & 3 & 2 & 0 \end{array}
  4. 04

    Each column is a point. Plot the three points and lay your ruler against them: if all three lie along its edge, draw the line.

    (0,3),(1,2),(3,0)(0, 3), \quad (1, 2), \quad (3, 0)
Answer

The line passes through (0,3)(0, 3), (1,2)(1, 2) and (3,0)(3, 0). It falls from left to right because the gradient −1-1 is negative. If a point lies off the ruler, check your calculation, the point you plotted and the position of the ruler.

Example 2

Draw the line y=0.5x+2y = 0.5x + 2 without a table of values: with the yy-intercept and the gradient.

  1. 01

    Read off cc and mm from the equation.

    c=2,m=0.5c = 2, \quad m = 0.5
  2. 02

    The yy-intercept gives the first point.

    (0,2)(0, 2)
  3. 03

    The gradient 0.50.5 means 11 to the right and 0.50.5 up. Take two such steps at once and you land on a grid point.

    2 to the right,2×0.5=1 up2 \text{ to the right}, \quad 2 \times 0.5 = 1 \text{ up}
  4. 04

    Mark the second point and draw the line through both points.

    (0+2,  2+1)=(2,3)(0 + 2, \; 2 + 1) = (2, 3)
Answer

The line passes through (0,2)(0, 2) and (2,3)(2, 3). Check with the equation: 0.5×2+2=30.5 \times 2 + 2 = 3, which is right.

Special lines

When m=0m = 0, what is left is y=cy = c: the line is horizontal, and all its points have the same yy.

A vertical line has an equation like x=3x = 3: all its points have the same xx. It has no gradient and cannot be written in the form y=mx+cy = mx + c, because infinitely many values of yy go with x=3x = 3.

On the horizontal line y=2y = 2 every point has the yy-coordinate 22; on the vertical line x=3x = 3 every point has the xx-coordinate 33.

Self-check

You are drawing the line y=−3x+5y = -3x + 5. What is the yy-value of its point at x=2x = 2?

Show the solution

y=−3×2+5=−6+5=−1y = -3 \times 2 + 5 = -6 + 5 = -1. The point is (2,−1)(2, -1); it lies below the xx-axis.

Self-check

A horizontal line passes through the point (0,4)(0, 4). What is its equation?

Your answer
Show the solution

y=4y = 4: on a horizontal line every point has the same yy-coordinate, here 44. The equation x=4x = 4 belongs to a vertical line, and y=4xy = 4x passes steeply through the origin.

For teachers: a lesson plan (45 min)
  1. 5 min

    Starter

    First write y=2x−1y = 2x - 1 on the board, without the simulation: the class names two points on the line and gives reasons for them. Then open the simulation with ‘Full screen’: someone drags P and Q onto these points, and the rings show whether they are right.

  2. 10 min

    Two ways

    The figure with the steps from the yy-intercept: the class describes the way from point to point. Then the first self-check. Reveal Example 1 step by step together while the class draws along in their exercise books.

  3. 10 min

    With the gradient

    Let pupils try Example 2 on their own in their exercise books first, then reveal it and compare. Discuss the ‘Watch out’ box with it. Check in the simulation: ‘New question’ leads to the lines of the two examples.

  4. 15 min

    Special lines and practice

    The figure with the horizontal and the vertical line: what are the equations of the xx-axis and the yy-axis? Pupils do the second and third self-checks on their own. Anyone who finishes early draws the simulation’s remaining questions in their exercise book first and then checks them with P and Q.

  5. 5 min

    Plenary

    Read the ‘Remember’ box together. Ask: why is a third point worth it when two are enough?

Got an exercise on paper?

Take a photo of it and Math Explainer turns it into an explainer video with every step of the solution.

Upload a photo