Straight Lines · Cambridge syllabus 3.2, 3.3, 3.5, 3.6, E3.7 · Lesson 2 of 3
Equation of a Line
Includes Extended objectivesA non-vertical line can be written y = mx + c, where m is the gradient and c is the y-intercept. Read m and c from a graph or from the equation once it is rearranged, or substitute the gradient and a known point to find c. At Extended level, find m from two points first. Vertical lines have equations x = k.
By the end, you can
- Find equations of straight lines.
- Use y = mx + c.
- Find the equation from a point and gradient.
- Find the equation from two points. [Extended]
Linear equations
Every straight line can be written y = mx + c, with m the gradient and c the y-intercept — the value of y where the line crosses the y-axis.
Given the gradient and a point, substitute to find c. A line of gradient 3 through (2, 7) gives 7 = 3(2) + c, so c = 1 and the line is y = 3x + 1. At Core you may also read the equation from a drawn line: read c where it crosses the y-axis and count squares for m. Given two points, which is Extended, find the gradient first and then do the same.
Equations are not always presented in this form. 2y − 6x = 8 has to be rearranged to y = 3x + 4 before the gradient and intercept can be read off, and reading them straight from the unrearranged version is a standard error. Extended questions may ask for the answer in the form ax + by = c, so y = 3x + 4 would be given as 3x − y = −4.
To find where a line crosses the axes, set the other variable to zero: y = 0 gives the x-intercept and x = 0 gives the y-intercept. Two intercepts are enough to draw the line.
Worth remembering
- Rearrange into y = mx + c before reading off m and c.
- Substitute a known point to find c.
- Set y = 0 for the x-intercept and x = 0 for the y-intercept.
Worked example
A line with gradient 3 passes through (2,7). Substituting into y = mx + c gives 7 = 3 × 2 + c, so c = 1 and the line is y = 3x + 1.
Practice
Warm-up · not marked
Check your understanding
Answer in your own words, then compare with the worked answer. Nothing here is saved or scored.
Worked answer
m = 8/4 = 2; c = −2, so y = 2x − 2.
Check your method, units and explanation against it.
Marked practice
Set 1 of 4 · easiest first · Checked as you go, with the worked answer. Sign in or create a free account to save your progress.