GCSE · Maths · OCR · Spec J560

Straight line graphs

The two numbers in y = mx + c do different jobs. Grab the line below and find out which does what.

Hold c still, change m

-4-2024-7-2.526.511xy1Change in y for each +1 in xlift me!
Gradient m 1

Gradient m: 1. Change in y for each +1 in x: 1

This line is y = mx + 2, so it always crosses the y-axis at (0, 2). Lift the dot to change m and watch the whole line pivot about that fixed point.

Watch out: Before you read a gradient off a graph, check the scale on each axis. Count the change in y and the change in x in axis units, not in squares.

Draw it from the equation

Problem

Draw the graph of y = 2x + 1. Then draw the graph of 3x + 2y = 12.

Maths · Straight-line graphs

Which way does it lean?

Put each line in the category that describes its gradient.

Still to sort

Positive gradient (0)

y increases as x increases.

Negative gradient (0)

y decreases as x increases.

Zero gradient (0)

A flat (horizontal) line.

Where the line is: The y value never changes, so the change in y is 0. Compare the vertical category, where the x value never changes.

Gradient cannot be found (0)

A vertical line.

Where the line is: The x value never changes, so the change in x is 0, and dividing by 0 is undefined. This is the one people mix up with the flat line.

8 of 8 still to sort.

Some lines are given as equations, some as two points. Decide where each belongs, then read why.

Watch out: A flat line and a vertical line are not the same thing: flat has gradient 0, vertical has no gradient that can be found.

Predict, then check

Do not rearrange anything yet. Trust your first instinct, then we will test it.

The line is y = 7 − 4x. What are its gradient and y-intercept?

Maths · Straight-line graphs

Build the equation from two points

Find the equation of the line through (−2, −7) and (3, 18).

  1. Gradient = change in y ÷ change in x, so m = (18 − (−7)) ÷ (3 − (−2))
  2. missing step
Which line is step 2?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

y = mx + c

One number sets the steepness. The other fixes where the line crosses the y-axis.

What you need to know

  • A relationship is linear if its graph is a straight line.
  • Draw one by substituting x values and plotting the (x, y) pairs. The y values go up by a common difference.
  • A straight line has infinitely many points, all fitting its equation, so draw it right to the edge of the graph.
  • Two points are enough to draw it, but checking a third point catches errors.
  • For ax + by = c, substitute x = 0 and y = 0 to get two easy points.
  • Have a goTry it on 2x + 5y = 10. Which two points do you get from x = 0 and y = 0?

    (0, 2) and (5, 0)

    Putting x = 0 leaves 5y = 10, so y = 2. Putting y = 0 leaves 2x = 10, so x = 5. Each substitution removes one term.

  • In y = mx + c, m is the gradient and (0, c) is the y-intercept, where the line crosses the y-axis.
  • Gradient is the change in y for each +1 in x: positive if y rises, negative if it falls, zero if flat.
  • Gradient from two points = change in y ÷ change in x. Same x value? That divides by 0, so no gradient.
  • Have a goWhat is the gradient of the line through (1, 9) and (3, 3)? Watch the sign.

    −3

    The change in y is 3 − 9 = −6 and the change in x is 3 − 1 = 2, so −6 ÷ 2 = −3. y falls as x rises, so it must be negative.

  • Rearrange to y = mx + c before reading m and c. The gradient is the coefficient of x, not the first number.
  • Have a goSam is very confident that y = 10 − 3x has gradient 10, "because 10 comes first". What do you tell Sam?

    Not so fast, Sam: it is y = −3x + 10, so the gradient is −3.

    The gradient is the coefficient of x once the equation is in the form y = mx + c, and it keeps its sign. The 10 is the y-intercept.

  • To find an equation: get m, substitute a point to find c, then check with another point.

The big picture

A straight-line graph is the picture of a linear equation. In y = mx + c, m is the gradient (the change in y for each +1 in x) and c fixes where the line crosses the y-axis, at (0, c). You can draw a line from its equation, read m and c once the equation is rearranged, and build the equation of a line from a gradient and a point or from two points.

Key points

1Linear means a straight-line graph. Draw it from a table of values, or from x = 0 and y = 0 for ax + by = c.
2In y = mx + c: m is the gradient, and c is where the line crosses the y-axis, at (0, c).
3Gradient = change in y ÷ change in x. Positive, negative, zero for a flat line, and cannot be found for a vertical line.
4Rearrange into y = mx + c before reading m and c.
5Equation of a line: find m, substitute a point to find c, then check with another point.

Worked example

Problem

A graphic designer charges £92 for a 2-hour job and £232 for a 6-hour job. The charge £p for h hours is a linear equation. Find the equation and the cost of a 5-hour job.

⚠ Watch out

Reading the first number as the gradient, or dropping a minus sign. In y = 6 − 5x, the gradient is not 6. Rearrange to y = −5x + 6 and the gradient is −5.

🧠

Memory hook

m is how much the line Moves up for each step right. c is where the line Crosses the y-axis.

✓

Check yourself

A line has gradient 4 and passes through (1, 7). Find its equation in the form y = mx + c, then show that (2, 11) is on it.

Flashcards

(12)
What makes a relationship linear?
When you plot it on a pair of axes, a straight line is formed.
Why do you draw a straight line right to the edge of the graph?
It has infinitely many points and they all satisfy its equation, so it does not stop at your plotted points.
How many points draw a straight line, and why plot another?
Two points are enough. A third point that also fits catches errors.
For y = 2/3 x − 4, which x values make plotting accurate?
Multiples of 3, because they give whole-number y values.
For ax + by = c, how do you find two points quickly?
Substitute x = 0 to find the y value, then y = 0 to find the x value.
In y = mx + c, what does m tell you?
The gradient: the coefficient of x.
In y = mx + c, what does c tell you?
The y-intercept (0, c), where the line crosses the y-axis.
What is gradient, in words?
How steep a line is: the change in y for every change of positive one in x.
What does the sign of the gradient tell you?
Positive: y increases as x increases. Negative: y decreases as x increases. A horizontal line has gradient zero.
How do you find a gradient from two points?
Change in y ÷ change in x, taking care with the scales on the axes.
Two points have the same x value. What is the gradient?
It cannot be found: the change in x is 0 and dividing by 0 is undefined. The line is vertical.
You are given a gradient and one point. How do you find the equation?
Substitute the point into y = mx + c and solve for c.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More OCR GCSE Maths topics

How this lesson was checked. This OCR GCSE Maths (specification J560)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 9 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.