y = mx + c Explained Step by Step (Year 9)
Free, step-by-step maths for Year 9. Useful practice for NAPLAN and PAT too.
y = mx + c is the rule for a straight line. It tells you how steep the line is and where it crosses the y-axis.
Worked examples
Draw a line in 4 steps: y = 2x + 3
- Make a table of values. Pick some x values and work out y each time.
- Plot the points (x, y) on the grid.
- Draw the line through the points with a ruler.
- Read m and c.
Step 1: put each x into y = 2x + 3. For x = −1: 2 × (−1) + 3 = 1. For x = 0: 2 × 0 + 3 = 3.
| x | -1 | 0 | 1 | 2 |
|---|---|---|---|---|
| y | 1 | 3 | 5 | 7 |
Step 2 and 3: plot (−1, 1), (0, 3), (1, 5), (2, 7). They line up. Draw the line through them.
Step 4: the line crosses the y-axis at 3, so c = 3. Each time x goes across 1, y goes up 2, so m = 2. Gradient = rise ÷ run = 2 ÷ 1.
A line that goes down: y = −x + 4
A negative gradient means the line slopes down as you move right. Here −x means −1x, so m = −1 and c = 4.
| x | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| y | 4 | 3 | 2 | 1 | 0 |
Each time x goes across 1, y goes down 1. The line crosses the y-axis at 4. Gradient −1, y-intercept 4.
Example 1
Read the line y = 2x + 3
The number in front of x is m, so the gradient is 2: up 2 for every 1 across.
The number on its own is c, so the line crosses the y-axis at (0, 3).
Check with a table: x = 0 gives y = 3. x = 1 gives y = 5.
Answer: Gradient 2, y-intercept 3
Example 2
Write the equation of a line with gradient 3 that crosses the y-axis at 1
m = 3 and c = 1.
Put them into y = mx + c.
Answer: y = 3x + 1
Your turn: quick check
Try each one on paper first, then tap to check.
Q1. Give the gradient and y-intercept of y = 5x − 2.
Gradient 5, y-intercept −2.
Q2. Write the equation with gradient 4 and y-intercept 7.
y = 4x + 7.
Q3. For y = 2x + 3, find y when x = 4.
y = 2 × 4 + 3 = 8 + 3 = 11.
Q4. Does y = −2x + 5 slope up or down? Give m and c.
The gradient is negative, so it slopes down. m = −2, c = 5.