M3.9.7 Chapter 7
The equation y = mx + c
Can I see how steep a line is, and where it crosses, from its rule alone?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Find the gradient of y = 3x − 2 from its equation
- Find where y = 3x − 2 crosses the y axis
- Write the equation of a line from its graph
Every straight line that is not upright has a rule that looks like this: y = mx + c. The letters m and c stand for two numbers. They tell you almost everything about the line.
The number m is in front of x. It is the gradient, how steep the line is. The number c stands alone. It is where the line crosses the y axis. This crossing point is the y intercept, the point (0, c).
Draw it first
Draw the line y = 3x − 2 from m and c
1 The number on its own is c = −2. Plot the point (0, −2) on the y axis.
2 The gradient is m = 3. That is 3 up for 1 across. From (0, −2) go 1 across and 3 up. Plot (1, 1).
3 Draw the line through the two points. It is the line y = 3x − 2.
Worked example
Find the gradient of y = 3x − 2 and where it crosses the y axis.
- Compare the rule with y = mx + c. The number in front of x is 3, so m = 3.
- The number on its own is −2, so c = −2.
- The gradient is 3. The line crosses the y axis at (0, −2).
Answer: 3 and −2
Worked example
A line goes through (0, 1) and (2, 5). Write its equation.
- The line crosses the y axis at (0, 1), so c = 1.
- From (0, 1) to (2, 5) the run is 2 and the rise is 4.
- The gradient is 4 ÷ 2 = 2, so m = 2.
- Put m and c into y = mx + c. The equation is y = 2x + 1.
Answer: y = 2x + 1
Worked example
A line goes through (0, 4) and (2, 0). Write its equation.
- The line crosses the y axis at (0, 4), so c = 4.
- From (0, 4) to (2, 0) the run is 2 and the rise is −4. The line goes down.
- The gradient is −4 ÷ 2 = −2, so m = −2.
- The equation is y = −2x + 4.
Answer: y = −2x + 4
Now see what c does. Two lines with the same m but different c have the same steepness. They never meet. We say they are parallel. Changing c moves a line up or down, and does not turn it.
See it three ways
With things
A tank holds 2 litres at the start. A tap adds 3 litres every minute.
As a picture
In symbols
y = 3x + 2, where x is the minutes and y is the litres. The gradient 3 is the litres added each minute. The 2 is the litres at the start.
Try it
Draw a line from m and c
You need: squared paper, a ruler, a pencil.
- Draw the axes on squared paper, from −5 to 5.
- Take the rule y = 2x − 1. Plot (0, −1) on the y axis, because c = −1.
- The gradient is 2. From the dot go 1 across and 2 up. Plot the new dot. Do it again.
- Lay the ruler along the dots and draw the line. Check that (3, 5) is on it.
What you will see: You do not need a table of values. The number c gives the start. The number m gives each step. Putting x = 3 into the rule gives y = 5, so the line passes through (3, 5).
A wrong idea many people have
The line y = 3x − 2 crosses the y axis at 3.
Why it feels right: The 3 is the first number you see. So it seems to be the starting point.
The test that breaks it: The y axis is where x = 0. Put x = 0 into y = 3x − 2. Then y = 3 × 0 − 2 = −2. The line crosses at (0, −2), not at 3.
What is true: The number in front of x is the gradient. The number on its own is where the line crosses the y axis. In y = 3x − 2 they are 3 and −2.
Key words
- y intercept
- the point where a line crosses the y axis. In y = mx + c it is (0, c).
- parallel
- lines with the same gradient. They never meet.
Back to your guess
The answer is B: The line y = 3x − 2 crosses the y axis at the point (0, −2).
On the y axis x is 0. Put x = 0 into y = 3x − 2 and you get y = −2. So the line crosses at (0, −2). The number on its own, here −2, tells where the line crosses the y axis.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
What is the gradient of the line y = 3x − 2?
See the answer
3
In y = mx + c the number in front of x is m, the gradient. Here it is 3.
- If you chose A: That is where the line crosses the y axis. The gradient is the number in front of x. Go to M3.9.7.
- If you chose B: You may have dropped the minus sign and picked the lone number. The gradient is in front of x. Go to M3.9.7.
- If you chose D: The gradient is not always 1. Look at the number in front of x. Go to M3.9.6.
Where does the line y = 3x − 2 cross the y axis?
See the answer
(0, −2)
On the y axis x = 0. The number on its own is −2, so the line crosses at (0, −2).
Which equation is the line through A and B?
See the answer
y = 2x − 3
The line crosses the y axis at (0, −3), so c = −3. The rise is 4 and the run is 2, so m = 4 ÷ 2 = 2.
- If you chose A: The line crosses the y axis below the origin, at −3, not above it. Go to M3.9.7.
- If you chose B: You swapped m and c. The number in front of x is the gradient. The lone number is where the line crosses the y axis. Go to M3.9.7.
- If you chose C: You used the rise, 4, as the gradient. The gradient is the rise divided by the run: 4 ÷ 2. Go to M3.9.7.
Which line is parallel to y = 4x + 1?
See the answer
y = 4x − 5
Parallel lines have the same gradient. The gradient of y = 4x + 1 is 4. Only y = 4x − 5 also has gradient 4.
The line y = −x + 4 is drawn. What does it do?
See the answer
It goes down to the right and crosses the y axis at 4.
The gradient is −1, which is negative, so the line goes down. The lone number is 4, so it crosses at (0, 4).
A line goes through (0, 4) and (2, 10). What is its gradient?
See the answer
3
The run is 2 − 0 = 2. The rise is 10 − 4 = 6. The gradient is 6 ÷ 2 = 3.
The line y = 4x − 6 crosses the y axis. What is its y number there?
See the answer
−6
On the y axis x = 0. Put x = 0 into y = 4x − 6. Then y = −6.
From an earlier chapter
What is the gradient of the line through (2, 1) and (5, 10)?
See the answer
3
The run is 5 − 2 = 3. The rise is 10 − 1 = 9. The gradient is 9 ÷ 3 = 3.
Keep it
Copy this into your exercise book.
y = mx + c. The number m in front of x is the gradient. The number c on its own is where the line crosses the y axis, at (0, c). Parallel lines have the same m.
Draw: Draw the line y = 2x + 1. Plot (0, 1). Go 1 across and 2 up. Plot a dot. Join them. Write m and c next to the line.