2
The graph of y = mx + c
Coursebook 9: Unit 18, pp. 165–170
GoalRead the gradient and y-intercept from an equation y = mx + c, and recognise parallel lines.
New words
y-intercept · the point where a line crosses the y-axis; for y = mx + c it is (0, c)coefficient · the number that multiplies a letter, such as 3 in 3xparallel lines · lines that never meet and have the same gradient
Explanation
The equation of a straight line can be written y = mx + c, where m and c are numbers. The coefficient of x, m, is the gradient of the line. The number c is the y-intercept, so the line crosses the y-axis at (0, c). In y = 3x − 4 the gradient is 3 and the line crosses the y-axis at (0, −4). Lines with the same value of m are parallel. A negative m means the line slopes downwards as you move to the right. The terms may be in a different order. In y = 7 − 2x the gradient is −2 and the intercept is 7.
Worked examples
Write the gradient and y-intercept of (a) y = 3x − 4, (b) y = 7 − 2x, (c) y = 0.5x. (a) m = 3, c = −4. (b) Rewrite as y = −2x + 7, so m = −2 and c = 7. (c) m = 0.5 and c = 0, so the line goes through the origin.
| Line | A | B | C | D |
|---|---|---|---|---|
| Equation | y = 0.5x + 6 | y = 4x − 3 | y = −2x + 1 | y = x − 7 |
A line has gradient −2 and passes through (0, 5). Write its equation. With m = −2 and c = 5, y = −2x + 5. Now find the equation of the line in the graph, which passes through (0, −3) and (2, 1). The y-intercept is c = −3. The gradient is (1 − (−3)) ÷ 2 = 2. So y = 2x − 3. Check with (2, 1): 2 × 2 − 3 = 1.
Class activity
Match the lines. Draw three pairs of axes on squared paper. Plot y = x, y = x + 2 and y = x − 3 on the first. Then y = 2x, y = −2x and y = 0.5x on the second. What does changing m do? What does changing c do?
Practice
1
Write the gradient and y-intercept of (a) y = 4 − 3x, (b) y = x/4 + 1.
(a) m = −3, c = 4. (b) m = 0.25 and c = 1.
2
Which of these lines are parallel to y = 5x − 1? y = −5x − 1, y = 5x + 7, y = 1 + 5x, y = x/5.
y = 5x + 7 and y = 1 + 5x, because they have gradient 5.
3
Write the equation of the line parallel to y = −x + 2 that passes through (0, −4).
Same gradient −1 and c = −4, so y = −x − 4.
4
Find the equation of the line shown, which passes through (0, 4) and (5, 0).
c = 4. Gradient = (0 − 4) ÷ 5 = −0.8. So y = −0.8x + 4.