Math Explainer.

Gradient and y-intercept: reading the equation of a line

Ages 12–14GCSE (A10, R14)

What you will learn

The equation of a linear function has the form y=mx+cy = mx + c. You learn what the numbers mm and cc mean and how to find them from a graph, from two points or from a table of values.

Try it straight away: move only the ‘y-intercept c’ slider. What happens to the line? Then set ‘Gradient m’ to 00.

A line on a coordinate grid, with a triangle that shows its gradientA coordinate grid on squared paper; the numbers from −6 to 6 are at the left and bottom edges of the grid. The green line crosses the y-axis at a green dot. From this dot a dashed right-angled triangle shows one step to the right, labelled 1, and then the gradient up or down, labelled with its value. When the gradient is 0 there is no triangle. Two sliders set the gradient and the y-intercept.11y−6−4−20246−6−4−20246x
y=mx+cy=x+1\begin{aligned} y &= mx + c \\ y &= x + 1 \end{aligned}

The line crosses the y-axis at 1 and rises by 1 for each step to the right: the gradient is 1.

Two numbers

The cc slider moves the line up or down without turning it. cc is the y-intercept: the line crosses the yy-axis at this height.

The mm slider turns the line about this point; at m=0m = 0 it is horizontal. mm is the gradient: the change in yy when xx grows by 11. A right-angled triangle on the line shows it: 11 to the right, mm up or down.

The line y=2x+1y = 2x + 1 crosses the yy-axis at c=1c = 1 and rises by m=2m = 2 for each step to the right.

Self-check

Where does the line y=3x−2y = 3x - 2 cross the yy-axis?

Your answer
Show the solution

At −2-2. For x=0x = 0, y=3×0−2=−2y = 3 \times 0 - 2 = -2. The number 33 is the gradient, and the minus sign belongs to cc: y=3x+(−2)y = 3x + (-2).

Example 1

A line passes through the points (0,3)(0, 3) and (2,7)(2, 7). What is its equation?

  1. 01

    The point (0,3)(0, 3) lies on the yy-axis. Read off cc there.

    c=3c = 3
  2. 02

    Go from the first point to the second: how far is it to the right, and how far up?

    2−0=2 to the right,7−3=4 up2 - 0 = 2 \text{ to the right}, \quad 7 - 3 = 4 \text{ up}
  3. 03

    Divide the change upwards by the change to the right.

    m=4÷2=2m = 4 \div 2 = 2
  4. 04

    Substitute mm and cc into y=mx+cy = mx + c.

    y=2x+3y = 2x + 3
Answer

The equation is y=2x+3y = 2x + 3. Check with the second point: 2×2+3=72 \times 2 + 3 = 7, which is right.

Rising, falling, horizontal

The sign of mm decides. If mm is positive, the line rises from left to right. If mm is negative, it falls. At m=0m = 0 it is horizontal. The further mm is from 00, the steeper the line.

If c=0c = 0 and mm is not 00, the line slants through the origin: then y=mxy = mx is a direct proportion.

risingy = 2x + 1

horizontaly = 1

fallingy = −2x + 1

Positive gradient, gradient 00, negative gradient: the yy-intercept 11 is the same for all three lines.

Example 2

This table of values belongs to a line:

x0123y531−1\begin{array}{c|c|c|c|c} x & 0 & 1 & 2 & 3 \\ \hline y & 5 & 3 & 1 & -1 \end{array}

What is the equation of the line?

  1. 01

    Read off cc: it is the value at x=0x = 0.

    c=5c = 5
  2. 02

    See how yy changes when xx grows by 11.

    3−5=−2,1−3=−2,−1−1=−23 - 5 = -2, \quad 1 - 3 = -2, \quad -1 - 1 = -2
  3. 03

    The change is the same at every step: that is the gradient.

    m=−2m = -2
  4. 04

    Substitute mm and cc into y=mx+cy = mx + c.

    y=−2x+5y = -2x + 5
Answer

The equation is y=−2x+5y = -2x + 5. The line falls because mm is negative. Check with x=3x = 3: −2×3+5=−1-2 \times 3 + 5 = -1, as in the table.

Self-check

A line passes through the points (1,2)(1, 2) and (3,8)(3, 8). What is its gradient mm?

Show the solution

To the right: 3−1=23 - 1 = 2. Up: 8−2=68 - 2 = 6. So m=6÷2=3m = 6 \div 2 = 3.

Self-check

Which equation describes a direct proportion?

Your answer
Show the solution

y=4xy = 4x: here c=0c = 0, and the line passes through the origin (0,0)(0, 0). In y=4x+1y = 4x + 1, c=1c = 1, and in y=x+4y = x + 4, c=4c = 4: these two lines cross the yy-axis above the origin.

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

    Starter

    First ask without the simulation: what happens to the line y=x+1y = x + 1 when the 11 at the end becomes a 33? The class predicts. Then open the simulation with ‘Full screen’: someone moves only the ‘y-intercept c’ slider, then only ‘Gradient m’.

  2. 10 min

    Two numbers

    The figure with the triangle on the line: where else on the line could the triangle stand, and what would stay the same? Then the first self-check. Reveal Example 1 step by step together.

  3. 10 min

    Rising, falling, horizontal

    The figure with the three lines: how can you tell from the equation alone whether a line rises or falls? How would y=−x+1y = -x + 1 lie in this picture? Discuss the ‘Watch out’ box and, at the board, work out a gradient from two points once the right way and once the wrong way round.

  4. 15 min

    Practice

    Let pupils try Example 2 on their own first, then reveal it and compare. The second and third self-checks, alone or in pairs. Anyone who finishes early writes down an equation of their own that the simulation can set (gradient from −3-3 to 33 in steps of a half, cc an integer from −4-4 to 44), sketches the line in their exercise book and checks the sketch with the simulation.

  5. 5 min

    Plenary

    Read the ‘Remember’ box together. Ask: how do you find cc when the value at x=0x = 0 is missing from a table of values?

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