Algebra · GraphsFOUNDATIONHIGHER

A9 · Straight-line graphs and y = mx + c

Edexcel GCSE (9–1) Mathematics 1MA1 · Algebra

What the specification says

A9 covers: Plot graphs of straight-line equations; use y = mx + c to identify parallel lines; find the equation of the line through two points, or through one point with a given gradient.
Higher tier also: Also identify and use perpendicular lines (gradients multiply to −1).

Key ideas

In y = mx + c, m is the gradient (steepness: rise per unit across) and c is the y-intercept (where the line crosses the y-axis). y = 2x − 1 climbs 2 units per 1 across and crosses at −1.

To plot: build a table of three x values, compute y, plot and join. To find the equation through two points, get the gradient from rise/run, then substitute one point to find c.

Parallel lines share the same gradient. Higher: perpendicular lines have gradients that multiply to −1 (negative reciprocals), so a line perpendicular to y = 2x + 3 has gradient −½.

Worked examples

Worked example 1: Plotting a line

Plot the graph of y = 2x − 1 for x from −1 to 3.

  1. Table: x = −1 → y = −3; x = 0 → y = −1; x = 3 → y = 5.
  2. Plot the three points and draw a straight line through them.
  3. Check the line crosses the y-axis at −1, matching c.
-10123-4-3-2-10123456xy(−1, −3)(0, −1)(3, 5)y = 2x − 1

y = 2x − 1 plotted from its table of values: a straight line through (−1, −3), (0, −1) and (3, 5).

Answer: Line through (−1, −3), (0, −1), (3, 5)

Worked example 2: Equation through two points

Find the equation of the line through (0, 1) and (2, 7).

  1. Gradient: (7 − 1)/(2 − 0) = 6/2 = 3.
  2. The line passes through (0, 1), so c = 1.
  3. Write y = 3x + 1.

Answer: y = 3x + 1

Worked example 3: Perpendicular line (Higher)

Find the equation of the line perpendicular to y = 2x + 3 that passes through (0, 1).

  1. Perpendicular gradient: negative reciprocal of 2 is −½.
  2. Through (0, 1) means c = 1.
  3. So y = −½x + 1.

Answer: y = −½x + 1

Worked example 4: Line through one point with a given gradient

Find the equation of the straight line with gradient 3 that passes through (1, 5).

  1. Start from y = 3x + c and substitute the point: 5 = 3 × 1 + c, so c = 2.
  2. Or use y − 5 = 3(x − 1), which expands to the same line.
-1012-10123456789xy(1, 5)run 1rise 3y = 3x + 2

The line through (1, 5) with gradient 3: every run of 1 gives a rise of 3, so c = 5 − 3 × 1 = 2.

Answer: y = 3x + 2

Common misconceptions

Practice

Try each question, then open it to check the answer.

Q1. State the gradient and y-intercept of y = 4x − 7.

Gradient 4, intercept −7

Q2. Which of these is parallel to y = 5x + 2: y = 5x − 9, y = −5x + 2, y = 2x + 5?

y = 5x − 9

Q3. Find the equation of the line through (1, 2) and (3, 10).

y = 4x − 2 (gradient 4, then 2 = 4 + c)

Q4. (Higher) Give the gradient of any line perpendicular to y = −3x + 1.

1/3

Q5. Does (5, 11) lie on y = 2x + 1?

Yes (2 × 5 + 1 = 11)

Q6. Find the equation of the line with gradient −2 through (3, 1)

y = −2x + 7 (1 = −6 + c, c = 7)