5.1 y = mx + c
A-level Maths Year 1 (AS) · Edexcel 9MA0 · Chapter 5: Straight Line Graphs
A free A-level Maths Year 1 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: gradients, intercepts and the forms y = mx + c and ax + by + c = 0. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Find the gradient of a line through two points
- Read the gradient and y-intercept from y = mx + c
- Rearrange between y = mx + c and ax + by + c = 0 with integer coefficients
- Find where a line crosses the axes and sketch it
- Use gradients to test whether three points are collinear
Key words
- Gradient: The steepness of a line: the change in y for each increase of 1 in x. Written m.
- y-intercept: The point where a line crosses the y-axis. In y = mx + c it is (0, c).
- Coordinates: (x₁, y₁) and (x₂, y₂) name two general points; the small numbers are labels, not powers.
- Collinear: Lying on the same straight line.
- General form: ax + by + c = 0, where a, b and c are integers.
Gradient from two points
The gradient is the change in y divided by the change in x. Take the points in the same order on top and bottom.
Gradient: m = (y₂ − y₁)/(x₂ − x₁)
Worked example: a negative gradient
Find the gradient of the line through (−2, 5) and (4, −7)
m = (−7 − 5)/(4 − (−2)) = (−12)/6
Answer: m = −2
A positive gradient slopes up from left to right; a negative gradient slopes down. A horizontal line has gradient 0. A vertical line x = k has no gradient.
Reading y = mx + c
When the equation is written as y = mx + c, the coefficient of x is the gradient and the constant is the y-intercept. If it is not in this form, make y the subject first.
Worked example: rearranging first
Find the gradient and y-intercept of 3y = 6 − 2x
Divide by 3: y = 2 − (2/3)x, i.e. y = −(2/3)x + 2
Answer: gradient −2/3, y-intercept (0, 2)
The form ax + by + c = 0
Exam questions often ask for a line "in the form ax + by + c = 0, where a, b and c are integers". Clear any fractions by multiplying, then move every term to one side.
Worked example: to general form
Write y = −(3/4)x + 5 in the form ax + by + c = 0
Multiply by 4: 4y = −3x + 20
Move all terms to the left: 3x + 4y − 20 = 0
Answer: 3x + 4y − 20 = 0
Worked example: from general form
Find the gradient of 5x − 2y + 8 = 0
2y = 5x + 8, so y = (5/2)x + 4
Answer: gradient 5/2
Check: For ax + by + c = 0 the gradient is −a/b. Use it to check your rearranging.
Intercepts, sketches and collinear points
To sketch a line quickly, find where it crosses the axes: put y = 0 for the x-intercept and x = 0 for the y-intercept.
Worked example: intercepts
Sketch 2x + 3y = 12
y = 0: 2x = 12, x = 6. x = 0: 3y = 12, y = 4
Answer: a line through (6, 0) and (0, 4), gradient −2/3
Worked example: collinear points
Show that A(1, 2), B(3, 8) and C(6, 17) are collinear.
m_(AB) = (8 − 2)/(3 − 1) = 3 and m_(BC) = (17 − 8)/(6 − 3) = 3
Same gradient and the common point B, so one straight line
Answer: collinear
Common mistakes
- Mixing the order: (y₂ − y₁)/(x₁ − x₂) gives the wrong sign.
- Reading the gradient of 6x − 2y + 5 = 0 as 6. Make y the subject first: m = 3.
- Leaving fractions in ax + by + c = 0. The question wants integers.
- Subtracting a negative wrongly: 4 − (−2) = 6, not 2.
- Using c from ax + by + c = 0 as the y-intercept. It is only the intercept in y = mx + c.
Revision questions
Try these, then check your answers below each one.
Question 1. Find the gradient of the line through (−1, 6) and (3, −2).
Answer: -2
Working: m = (−2 − 6)/(3 − (−1)) = (−8)/4 = −2.
Question 2. Which is y = −(1/2)x + 3 written in the form ax + by + c = 0? (Choose from: x + 2y − 6 = 0; x − 2y + 6 = 0; 2x + y − 6 = 0; x + 2y + 6 = 0.)
Answer: x + 2y − 6 = 0
Working: 2y = −x + 6, so x + 2y − 6 = 0.
Question 3. Does the point (4, −1) lie on the line 2x + 5y − 3 = 0?
Answer: Yes
Working: 2(4) + 5(−1) − 3 = 8 − 5 − 3 = 0, so yes.
Related lessons
- Previous lesson: 4.7 Transforming Functions
- Next lesson: 5.2 Equations of Straight Lines
- In this chapter: 5.3 Parallel and Perpendicular Lines
- In this chapter: 5.4 Length and Area
- In this chapter: 5.5 Modelling with Straight Lines
Continue in the full course
This lesson is section 5.1 of our free A-level Maths Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 1 (AS) course.