Websink Prep UKGCSE MathsTextbook contentsMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
GCSE Maths · EdexcelChapter 12 · Straight-line graphs and coordinates
GCSE Maths · Straight-Line Graphs and Coordinates · Higher · Lesson 12.5

GCSE Maths: The equation y = mx + c (Higher)

Part of the GCSE Maths straight-line graphs and coordinates chapter (Higher). Chapter overview · Foundation version of this lesson · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
12.5

The equation y = mx + c

Edexcel 1MA1: A9, A10
Grade 3-6

Every straight line (that is not vertical) has an equation of the form y = mx + c. The two letters m and c are numbers that describe the line:

For example, y = 3x + 2 has gradient 3 and crosses the y-axis at (0, 2). The line y = −x + 5 has gradient −1 (a minus sign on its own means −1) and y-intercept 5. The line y = 4x has no c showing, so c = 0 and it passes through the origin. Watch the order: in y = 5 − 3x the gradient is −3 and the intercept is 5, because each sign belongs to the number after it.

xy−5−4−3−2−112345−5−4−3−2−1123456Oy = x + 1y = x − 2y = −x + 4y = x/2
The number c is where each line crosses the y-axis (dots). Lines with the same m have the same slope: y = x + 1 and y = x − 2 are parallel.

Sketching a line using m and c

You can sketch a line without a table of values. Step 1: mark the y-intercept (0, c). Step 2: use the gradient as “across then up (or down)” to find another point: for a gradient of 2 = 2/1 go 1 across and 2 up; for −3/4 go 4 across and 3 down. Step 3: join the points with a ruler.

Lines that are not written as y = …

If the equation is not in the form y = mx + c, rearrange it first so that y is on its own. For example 2y = 6x + 4: divide every term by 2 to get y = 3x + 2. And y − 2x = 3: add 2x to both sides to get y = 2x + 3. You met rearranging in Chapters 8 and 9.

Finding the axis crossing points

A line crosses the y-axis where x = 0 and the x-axis where y = 0. For equations such as 2x + 3y = 12 this is a quick way to sketch: put x = 0 to get 3y = 12 so y = 4, giving (0, 4); put y = 0 to get 2x = 12 so x = 6, giving (6, 0). Join the two points.

Higher: you will be asked to rearrange equations such as 3x + 4y = 12 into the form y = mx + c to find the gradient and intercept. The steps are: subtract 3x from both sides to get 4y = −3x + 12, then divide every term by 4 to get y = −34x + 3. The gradient is −34 and the intercept is 3.

Key ideas

  • y = mx + c: m = gradient (number multiplying x), c = y-intercept (the point (0, c)).
  • Keep the sign with the number: in y = 5 − 3x, m = −3 and c = 5.
  • Sketch: plot (0, c), then use the gradient (across, then up or down), then join with a ruler.
  • If y is not on its own, rearrange first. Divide every term.
  • The y-axis crossing: x = 0. The x-axis crossing: y = 0.
Worked example 12.5.1
Write down the gradient and the y-intercept of the line y = −2x + 7.

Key words. The equation y = mx + c describes a straight line. m is the gradient (steepness) and c is the y-intercept (the value of y where the line crosses the y-axis, which is where x = 0).

Method. Write the equation as y = mx + c. Then m is the gradient and c is the y-intercept.

  1. Compare with y = mx + c. The equation is already in the form y = mx + c, so we can read it off.
    y = −2x + 7
  2. The gradient m is the number multiplying x. Include its sign. If there is no number, x means 1x and m = 1; if there is only a minus sign, m = −1.
    m = −2
  3. The y-intercept c is the number on its own. It is where the line crosses the y-axis. If there is no number, c = 0 and the line goes through the origin.
    c = 7, so the line crosses the y-axis at (0, 7)

Check. Put x = 0 into the equation: y = 7, which is the y-intercept. Put x = 1: y = 5, which is −2 more than 7, so the gradient is −2. ✓

Watch out. Keep the sign with the number. In y = 5 − 3x the gradient is −3 (not 3) and the intercept is 5 (not −3).

Worked example 12.5.2
Write down the gradient and the y-intercept of the line y = 5 − 3x.

Key words. The equation y = mx + c describes a straight line. m is the gradient (steepness) and c is the y-intercept (the value of y where the line crosses the y-axis, which is where x = 0).

Method. Write the equation as y = mx + c. Then m is the gradient and c is the y-intercept.

  1. Write the equation in the form y = mx + c. Put the x term first and the plain number last, keeping the sign in front of each term.
    y = 5 − 3x  =  y = −3x + 5
  2. The gradient m is the number multiplying x. Include its sign. If there is no number, x means 1x and m = 1; if there is only a minus sign, m = −1.
    m = −3
  3. The y-intercept c is the number on its own. It is where the line crosses the y-axis. If there is no number, c = 0 and the line goes through the origin.
    c = 5, so the line crosses the y-axis at (0, 5)

Check. Put x = 0 into the equation: y = 5, which is the y-intercept. Put x = 1: y = 2, which is −3 more than 5, so the gradient is −3. ✓

Watch out. Keep the sign with the number. In y = 5 − 3x the gradient is −3 (not 3) and the intercept is 5 (not −3).

Worked example 12.5.3
Sketch the graph of y = 12x − 2 using the gradient and the y-intercept.

Key words. The equation y = mx + c describes a straight line. m is the gradient (steepness) and c is the y-intercept (the value of y where the line crosses the y-axis, which is where x = 0).

Method. Start at the y-intercept, then use the gradient (rise ÷ run) to find more points. No table of values is needed.

  1. Find the y-intercept and mark it. The number on its own is c. The line crosses the y-axis at (0, c), so this is the first point.
    c = −2: mark (0, −2)
  2. Use the gradient to find a second point. The gradient is 12, which means: go 2 across and 1 up (rise ÷ run = 1/2).
    from (0, −2) go 2 right and 1 up to (2, −1)
    xy−3−2−1123−5−4−3−2−112Orun = 2rise = 1
  3. Go the other way to get a third point as a check. Going left by the same amount means doing the opposite of the rise too.
    from (0, −2) go 2 left and 1 down to (−2, −3)
  4. Draw a straight line through the points with a ruler. Extend the line across the grid. Label it with its equation.
    xy−3−2−1123−5−4−3−2−112Oy = x/2 − 2(0, −2)

Check. Pick the point with x = 2: y = 12 × 2 − 2 = −1, which is on the sketch. ✓

Watch out. For a negative gradient go down as you go across (or up if you go left).

Worked example 12.5.4
Write 2y = 6x + 4 in the form y = mx + c, and write down the gradient and the y-intercept.

Key words. The equation y = mx + c describes a straight line. m is the gradient (steepness) and c is the y-intercept (the value of y where the line crosses the y-axis, which is where x = 0).

Method. Divide every term by the number in front of y to get the form y = mx + c.

  1. The equation has a number multiplying y. We want y on its own (coefficient 1), so divide both sides by that number.
    Start: 2y = 6x + 4
  2. Divide every term by 2. Every term on the right must be divided too, not just the first.
    y = 6x ÷ 2 + 4 ÷ 2
    y = 3x + 2
  3. Read off the gradient and the y-intercept. Compare with y = mx + c.
    m = 3, c = 2

Check. Test x = 2: the original gives 2y = 16, so y = 8. The new equation gives y = 3 × 2 + 2 = 8. ✓

Watch out. Divide every term by the number in front of y, including the plain number.

Worked example 12.5.5
Find the gradient and the y-intercept of the line 3x + 4y = 12.
▶ Watch this solution as a video

Key words. The equation y = mx + c describes a straight line. m is the gradient (steepness) and c is the y-intercept (the value of y where the line crosses the y-axis, which is where x = 0).

Method. Rearrange to make y the subject. Whatever you do to one side you must do to the other side, and divide every term.

  1. Get the y term on its own on one side. We want the equation to start y = ..., so move everything except the y term to the other side using the opposite operation, on both sides.
    Start: 3x + 4y = 12
    Subtract 3x from both sides: 4y = −3x + 12
  2. Divide every term by the number in front of y. y must have a coefficient of 1. Divide every term (both of them) by 4.
    Divide every term on both sides by 4: y = −34x + 3
  3. Read off the gradient and the intercept. Compare with y = mx + c: the number in front of x is m and the number on its own is c.
    m = −34,  c = 3

Check. Test x = 3. Original: 3 × 3 + 4 × y = 12 gives y = 0.75. New form: y = (−34) × 3 + 3 = 0.75. They match. ✓

Watch out. When you divide by a number, divide every term, including the x term. Moving a term across changes its sign.

Worked example 12.5.6
Sketch the line 2x + 3y = 12 by finding where it crosses the axes.

Key words. The x-intercept is where the line crosses the x-axis (y = 0). The y-intercept is where it crosses the y-axis (x = 0).

Method. Find where the line crosses each axis by putting x = 0 and then y = 0. Join the two points.

  1. Find where the line crosses the y-axis: put x = 0. Every point on the y-axis has x = 0. The x term disappears.
    3y = 12 → y = 12 ÷ 3 = 4
    The line crosses the y-axis at (0, 4).
  2. Find where the line crosses the x-axis: put y = 0. Every point on the x-axis has y = 0. The y term disappears.
    2x = 12 → x = 12 ÷ 2 = 6
    The line crosses the x-axis at (6, 0).
  3. Plot the two points and join them with a ruler. Two points are enough for a straight line. Extend the line beyond them.
    xy−11234567−112345O(6, 0)(0, 4)

Check. Test a third point, such as x = 8: y = (12 − 2 × 8) ÷ 3 = −43, and the point is on the sketch. ✓

Watch out. For the y-intercept the x value is 0; for the x-intercept the y value is 0. Do not mix them up.

Watch out

Signs and order. The sign belongs to the term after it. In y = 5 − 3x, the gradient is −3 (not 3), and the y-intercept is 5 (not −3). And when you rearrange, divide every term: 2y = 6x + 4 gives y = 3x + 2, not y = 3x + 4.

Exercise 12F  Gradient, intercept and sketching lines

Non-calculator
1
FWrite down the gradient and the y-intercept of each line.
(a)y = 2x + 3
(b)y = 5x − 1
(c)y = −x + 4
(d)y = 12x − 2
(e)y = 3x
(f)y = −4x + 6
2
FWrite down the equation of the line with the given gradient and y-intercept.
(a)gradient 4, y-intercept −3
(b)gradient −2, y-intercept 5
(c)gradient 1, y-intercept 0
(d)gradient 13, y-intercept 2
3
FWrite down the gradient and the y-intercept of each line. Rewrite the equation in the form y = mx + c first.
(a)y = 5 − 3x
(b)y = −1 + 2x
(c)y = 7 − x
4
FThe graph shows three lines A, B and C. Match each equation to its line.
xy−5−4−3−2−112345−5−4−3−2−112345OABC
(a)y = −x + 3
(b)y = 12x + 1
(c)y = 2x − 1
5
FSketch the graph of y = 2x + 1. Use the gradient and the y-intercept.
6
FSketch the graph of y = −x + 3. Use the gradient and the y-intercept.
7
FSketch the graph of y = 12x − 2. Use the gradient and the y-intercept.
8
FSketch the graph of y = −23x + 2.
9
FRearrange each equation into the form y = mx + c.
(a)y − 2x = 3
(b)2x + y = 7
(c)2y = 8x − 6
(d)3y = 6x + 9
10
FFind the gradient and the y-intercept of each line.
(a)3x + 4y = 12
(b)5x − 2y = 10
(c)x + 3y = 9
(d)4x + 2y = −5
11
FEach line has equation y = mx + c. Find the value of c.
(a)gradient 3, passes through (2, 5)
(b)gradient −2, passes through (1, 4)
(c)gradient 12, passes through (4, 3)
12
FFind the coordinates of the point where each line crosses (i) the y-axis and (ii) the x-axis.
(a)y = 2x − 6
(b)y = −x + 4
(c)y = 12x + 3
(d)y = 3x + 12
13
PSA line has gradient 3 and passes through the point (0, −4). Does the line pass through (2, 2)? Show your working.
14
RExplain why the lines y = 2x + 3 and y = 2x − 1 never meet.
15
RJo says the line y = 3 − 2x has gradient 3 and y-intercept −2. Is she correct? Give the correct values.
16
FSketch each line by finding where it crosses the axes.
(a)2x + 3y = 12
(b)5x − 2y = 10
(c)3x + 4y = −12
17
FSketch the line 2x + y = 6 by finding where it crosses the axes.
18
PSThe line y = −2x + 6 and the two axes make a triangle. Work out its area.

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings