Skip to content
Cambridge IGCSE0980

Equations of linear graphs

Mathematics 0980 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Equations of linear graphs notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Equations of linear graphs notes as text: skim, search, and jump between subtopics.

~11 min read

1. The equation y = mx + c

A straight-line graph has an equation of the form y = mx + c. The number m is the gradient. The number c is the y-intercept: where the line crosses the y-axis, at (0, c).

Read m as the number multiplying x, with its sign. In y = 3x + 7 the gradient is 3 and the y-intercept is 7. Give the equation of a line in a fully simplified form.

y = mx + c

m = gradient, c = y-intercept

Examiner insight

“Many candidates clearly did not know the meanings of ‘m’ and ‘c’ in the equation y = mx + c.” “Most candidates recognised that the gradient was the coefficient of x, but some gave 5x.”

Worked example 14 marks

Line L has the equation y = 3x + 7.

(a) Write down the gradient of line L.

(b) Point P and point W lie on line L. P has coordinates (4,p) and W has coordinates (w, −11).

(i) Work out the value of p.

(ii) Work out the value of w.

  1. 1

    (a) the gradient is the coefficient of x: 3 [1]

  2. 2

    (b)(i) put x = 4: p = 3 × 4 + 7 = 19 [1]

  3. 3

    (ii) put y = -11: -11 = 3w + 7 [1]

  4. 4

    3w = -18, so w = -6 [1]

2. Finding the equation from a graph

To find the equation of a line, find m and c separately.

For the gradient, take two points on the line. Divide the change in y by the change in x, always in that order. A line that falls as you move right has a negative gradient.

For c, read the y-intercept: where the line crosses the y-axis. If (0,k) is on the line then c = k. No calculation is needed.

m = (y₂ - y₁)/(x₂ - x₁)

Examiner insight

“A significant number of candidates incorrectly used the co-ordinates (3, 0) instead of (0, 3) in their gradient calculation.” “This part on finding the equation of the given line was generally reasonably answered, although a significant number did not seem to appreciate that the intercept value could be read directly from the given graph.”

Worked example 13 marks

A straight line passes through the points (0, 5) and (4, −3). Find its equation in the form y = mx + c.

  1. 1

    gradient = (change in y)/(change inx) = (-3 - 5)/(4 - 0) [1]

  2. 2

    = (-8)/4 = -2 [1]

  3. 3

    (0, 5) is on the y-axis, so c = 5 and y = -2x + 5 [1]

3. Finding c from a point and a gradient

Sometimes the line is given by its gradient and one point that is not on the y-axis. Write y = mx + c with the known m. Then substitute the point's x and y and solve for c.

A line with the same gradient as a given line has the same m. Only c changes.

Give the final answer as a complete equation: it starts y = and keeps the x.

c = y - mx

Examiner insight

“Those that recognised that a parallel line had the same gradient gave an equation that started with y = 3x but finding the intercept was the most challenging.” “Some candidates omitted the y = and so did not have a complete equation as required.”

Worked example 12 marks

Find the equation of the line parallel to y = 4x + 3 that passes through (2, 9).

  1. 1

    same gradient as y = 4x + 3, so y = 4x + c [1]

  2. 2

    9 = 4 × 2 + c, so c = 1 and y = 4x + 1 [1]

4. Lines parallel to the axes: x = k and y = k

A vertical line has the same x at every point, so its equation is x = k. A horizontal line has the same y at every point, so its equation is y = k.

A horizontal line has gradient 0. A vertical line has no y = mx + c form, so do not try to write one.

x = k (vertical)

y = k (horizontal)

Examiner insight

“Most candidates thought the equation should be in the form y = mx + c, not remembering the simpler form of equation for lines parallel to the axes.”

Worked example 11 mark

Write down the equation of the line that passes through the point (0, 7) and has gradient 0.

  1. 1

    gradient 0 means a horizontal line, so every point has y = 7: y = 7 [1]

5. Lines in the form ax + by = c

At Extended level a line may be given as ax + by = c. To find its gradient and y-intercept, make y the subject.

Move the x term across, then divide every term by the number multiplying y. The gradient is the new coefficient of x.

ax + by = c ⇒ y = -a/bx + c/b

Examiner insight

“The rearrangement of the equation to find the equation of the straight line was found to be a challenge.”

Worked example 13 marks

Find the gradient and y-intercept of the graph with equation 5x + 4y = 8.

  1. 1

    make y the subject: 4y = -5x + 8 [1]

  2. 2

    divide every term by 4: y = -5/4x + 2 [1]

  3. 3

    gradient = -5/4, y-intercept = 2 [1]

Recap

  • y = mx + c: m is the gradient and c is the y-intercept.
  • Gradient = change in y ÷ change in x. A falling line has a negative gradient.
  • If the line crosses the y-axis at (0, k), then c = k.
  • Given m and a point, substitute the point and solve for c.
  • Vertical line: x = k. Horizontal line: y = k, with gradient 0.
  • Extended: for ax + by = c, make y the subject and divide every term.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Do not use a calculator. Write down the gradient and the y-intercept of the line y = -4x + 7.2 marks
    Answer
    1. Gradient = -4.
    2. y-intercept = 7.

    Trap: The gradient is the number multiplying x, with its sign: -4, not 4 and not 4x.

  2. A line has gradient 3 and crosses the y-axis at (0, -5). Write down its equation.2 marks
    Answer
    1. m = 3 and c = -5.
    2. y = 3x - 5.

    Trap: A complete equation starts y = and keeps the x. Writing only 3x - 5 loses the mark.

  3. Write down the equation of (a) the vertical line through (4, -3), (b) the horizontal line through (4, -3).2 marks
    Answer
    1. (a)
    2. x = 4 [1].
    3. (b)
    4. y = -3 [1].

    Trap: These lines are not of the form y = mx + c. Vertical is x = k, horizontal is y = k.

  4. A line passes through the points (0, 3.5) and (6, 12.5). Find its equation in the form y = mx + c.3 marks
    Answer
    1. Gradient = (12.5 - 3.5)/(6 - 0) = 9/6 = 1.5.
    2. (0, 3.5) is on the y-axis, so c = 3.5.
    3. y = 1.5x + 3.5.

    Trap: Dividing change in x by change in y gives 0.67, the wrong way up.

  5. Do not use a calculator. A straight line crosses the y-axis at (0, 9) and the x-axis at (3, 0). Find its equation in the form y = mx + c.3 marks
    Answer
    1. Gradient = (0 - 9)/(3 - 0) = -3.
    2. c = 9, from (0, 9).
    3. y = -3x + 9.

    Trap: The line falls, so the gradient is negative. Using (3, 0) for c is wrong.

  6. A line has gradient 0.4 and passes through the point (5, -1). Find its equation in the form y = mx + c.3 marks
    Answer
    1. y = 0.4x + c.
    2. -1 = 0.4 × 5 + c = 2 + c, so c = -3.
    3. y = 0.4x - 3.

    Trap: c = y - mx = -1 - 2 = -3. Taking c = -1 treats the point as the y-intercept.

  7. Do not use a calculator. Points P (-2, 7) and Q (4, -5) lie on a straight line. (a) Find the gradient of the line. (b) Find the equation of the line in the form y = mx + c. (c) The line crosses the x-axis at R. Find the coordinates of R.6 marks
    Answer
    1. (a)
    2. Gradient = (-5 - 7)/(4 - (-2)) = (-12)/6 = -2 [2].
    3. (b)
    4. y = -2x + c, and 7 = -2 × (-2) + c = 4 + c, so c = 3 [1].
    5. y = -2x + 3 [1].
    6. (c)
    7. y = 0: 0 = -2x + 3, so x = 1.5 [1].
    8. R is (1.5, 0) [1].

    Trap: 4 - (-2) = 6, not 2. The double negative is a common sign slip.

  8. Do not use a calculator. Find the gradient and the y-intercept of the line with equation 3x + 2y = 12.3 marks
    Answer
    1. 2y = -3x + 12 [1].
    2. y = -3/2x + 6 [1].
    3. Gradient = -3/2, y-intercept = 6 [1].

    Trap: The gradient is not 3. Divide every term by 2, including the 12.

  9. Do not use a calculator. Line L has equation 4x - 3y = 24. (a) Find the gradient of L. (b) A second line has the same gradient as L and passes through the point (6, -5). Find its equation in the form ax + by = c, where a, b and c are integers. (c) The point (t, 7) lies on the second line. Find the value of t.7 marks
    Answer
    1. (a)
    2. -3y = -4x + 24 [1].
    3. Divide every term by -3: y = 4/3x - 8, so the gradient is 4/3 [1].
    4. (b)
    5. y = 4/3x + c, and -5 = 4/3 × 6 + c = 8 + c, so c = -13 [1].
    6. Multiply every term of y = 4/3x - 13 by 3: 3y = 4x - 39 [1].
    7. 4x - 3y = 39 [1].
    8. (c)
    9. 4t - 3 × 7 = 39, so 4t = 60 [1].
    10. t = 15 [1].

    Trap: Dividing by -3 changes every sign. The gradient is 4/3, not -4/3 and not 4.

  10. Line L has equation px + 4y = 30, where p is a constant. L passes through the point (-2, 9). (a) Find the value of p. (b) L crosses the y-axis at A and the x-axis at B. Find the coordinates of A and B. (c) Line M passes through A and through the point (5, -2.5). Find the equation of M in the form y = mx + c. (d) The point (k, -12) lies on M. Find the value of k.8 marks
    Answer
    1. (a)
    2. p × (-2) + 4 × 9 = 30, so -2p = -6 [1].
    3. p = 3 [1].
    4. (b)
    5. A: x = 0, so 4y = 30 and y = 7.5. A is (0, 7.5) [1].
    6. B: y = 0, so 3x = 30 and x = 10. B is (10, 0) [1].
    7. (c)
    8. Gradient = (-2.5 - 7.5)/(5 - 0) = (-10)/5 = -2 [1].
    9. A is on the y-axis, so c = 7.5 and y = -2x + 7.5 [1].
    10. (d)
    11. -12 = -2k + 7.5, so 2k = 19.5 [1].
    12. k = 9.75 [1].

    Trap: The y-intercept of L is 30 ÷ 4 = 7.5, not 30. On the x-axis it is y that is 0.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
the gradient is 5xthe gradient is 5
gradient = change in x ÷ change in ygradient = change in y ÷ change in x
a vertical line is y = mx + ca vertical line has equation x = k
3x - 5 as the answer, with no y =a complete equation as the final answer: y = 3x - 5

Frequently asked questions

How do I find the equation of a straight line from its graph?
Find m and c separately. For the gradient, divide the change in y by the change in x, always in that order. Read c straight from the y-intercept. For a line through (0, 5) and (4, -3), the gradient is (-3 - 5)/(4 - 0) = -2 and the equation is y = -2x + 5.
What do m and c mean in y = mx + c?
m is the gradient, the number that multiplies x, with its sign. c is the y-intercept, where the line crosses the y-axis at (0, c). In y = 3x + 7 the gradient is 3 and the y-intercept is 7. Give the gradient as a number, not as 5x.
How do I find c when I know the gradient and one point?
Keep m, write y = mx + c, and substitute the x and y of the point, so c = y - mx. For a line parallel to y = 4x + 3 through (2, 9), 9 = 4 × 2 + c gives c = 1, so the equation is y = 4x + 1.
What is the equation of a vertical or horizontal line?
A vertical line has the same x at every point, so its equation is x = k, for example x = 4. A horizontal line has the same y at every point, so its equation is y = k, with gradient 0. A vertical line has no y = mx + c form, so do not try to write one.
Why is my final equation marked as incomplete?
A complete equation starts with y = and keeps the x. Writing 3x - 5 alone loses the mark, and so does y = 4 + 1 without the x. For a gradient of 3 through (0, -5), the final answer is y = 3x - 5.
How do I find the gradient and y-intercept of 5x + 4y = 8?
Make y the subject: 4y = -5x + 8. Divide every term by 4 to get y = -5/4x + 2. The gradient is -5/4 and the y-intercept is 2. The gradient is the new coefficient of x, so keep its sign.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters