- Foundation
- About 17 min
- 5 practice questions
Graphs of y = ax + b: slope, y-intercept and parallel lines
Draw the straight-line graph of y = ax + b from two points, read its slope a and y-intercept b, check whether a point lies on a line, and recognise parallel lines from equal slopes.
If something looks wrong, please tell us.
By the end of this lesson you can
- Plot y = ax + b by choosing two values of x and joining the points, then check with a third.
- Explain how a changes the steepness and direction of a line and how b sets where it cuts the y-axis.
- Decide whether a point lies on a line, find the line through two points, and spot parallel lines.
A linear relationship y = ax + b can be drawn as a picture on the coordinate plane, and that picture is always a straight line. Seeing the line makes growth and decay, fixed charges and rates instantly visible. In this lesson we bring together the coordinates of Chapter 1 and the linear polynomials of this chapter.
Drawing the graph of y = ax + b
Two points fix a straight line, so choose two convenient values of x, work out y, plot the points and join them with a ruler, extending the line both ways. A third point is a useful check. For y = 2x − 3: x = 0 gives y = −3, so (0, −3) is on the line; x = 2 gives y = 1, so (2, 1) is on it; x = 4 gives y = 5, so (4, 5) checks it.
| x | 0 | 2 | 4 | 5 |
|---|---|---|---|---|
| y = 2x − 3 | −3 | 1 | 5 | 7 |
A point lies on the line exactly when its coordinates satisfy the equation. Is (5, 7) on y = 2x − 3? 2 × 5 − 3 = 7: yes. Is (1, 2) on it? 2 × 1 − 3 = −1, not 2: no.
The roles of a and b
The slope a. Lines y = ax all pass through the origin. If a > 1 the line is steeper than y = x (which makes equal angles with both axes); if 0 < a < 1 it is less steep. A positive a means the line rises from left to right (linear growth); a negative a means it falls (linear decay). The slope is the amount y changes when x increases by 1, which is the constant difference of the matching linear pattern. The y-intercept b. Putting x = 0 gives y = b, so the line cuts the y-axis at (0, b).
What the numbers in y = ax + b tell you
-
a, the slope
- a > 0: the line rises (growth)
- a < 0: the line falls (decay)
- Larger size of a: steeper line
- Same a: parallel lines
-
b, the y-intercept
- The line cuts the y-axis at (0, b)
- b = 0: the line passes through the origin
- Changing b slides the line up or down
For the line y = ax + b, a is the slope and b is the y-intercept: the line cuts the y-axis at (0, b). Lines with the same slope and different y-intercepts are parallel.
Worked example 1: reading slope and intercept
Find the slope and y-intercept of 2y = 6x + 8, and say whether it is parallel to y = 3x + 1. Working: first make y the subject by dividing every term by 2: y = 3x + 4. The slope is 3 and the y-intercept is 4, so the line cuts the y-axis at (0, 4). The line y = 3x + 1 also has slope 3 but a different intercept, so the two lines are parallel: one is the other slid up by 3 units.
Worked example 2: the line through two points
The graph of a linear polynomial p(x) = ax + b passes through (1, 4) and (3, 10). Find p(x) and where the line cuts both axes. Working: from x = 1 to x = 3, y goes from 4 to 10, so a = (10 − 4) ÷ (3 − 1) = 6 ÷ 2 = 3. Then 4 = 3 × 1 + b gives b = 1. So p(x) = 3x + 1. It cuts the y-axis at (0, 1). It cuts the x-axis where y = 0: 3x + 1 = 0, so x = −1/3, the point (−1/3, 0). Check (3, 10): 3 × 3 + 1 = 10. Correct.
Worked example 3: guessing the rule from points
The points (−2, 6), (0, 0), (1, −3) and (2, −6) lie on one line. Find its equation. Working: in every pair the y-coordinate is −3 times the x-coordinate: −3 × (−2) = 6, −3 × 0 = 0, −3 × 1 = −3, −3 × 2 = −6. So the line is y = −3x. It passes through the origin (b = 0) and falls from left to right because its slope is negative.
Comparing families of lines
Plot y = x/2, y = x and y = 3x on one set of axes: all three pass through the origin, and the larger the slope, the steeper the line. Plot y = 3x − 4, y = 3x and y = 3x + 2: they have the same slope 3 and so are parallel, crossing the y-axis at −4, 0 and 2. Plot y = 2x + 3 and y = −2x + 3: they meet the y-axis at the same point (0, 3), but one rises and the other falls.
Key takeaways: the graph of y = ax + b is a straight line; plot two points and check with a third. A point is on the line exactly when it satisfies the equation. The slope a gives steepness and direction (positive rises, negative falls); the y-intercept b gives the crossing point (0, b). Equal slopes with different intercepts mean parallel lines. Make y the subject before reading a and b.
Check your understanding
-
1. Where does the line y = 4x − 7 cut the y-axis?
- (−7, 0)
- (0, 4)
- (7/4, 0)
- (0, −7)
Show answer
Answer: D. On the y-axis x = 0, so y = 4 × 0 − 7 = −7. The line cuts the y-axis at (0, −7); the y-intercept is −7. (7/4, 0) is where it cuts the x-axis.
-
2. Which point lies on the line y = −2x + 5?
- (1, 7)
- (3, −1)
- (−1, 3)
- (2, 2)
Show answer
Answer: B. Check (3, −1): −2 × 3 + 5 = −6 + 5 = −1, which matches. For (1, 7): −2 + 5 = 3, not 7. For (−1, 3): 2 + 5 = 7, not 3. For (2, 2): −4 + 5 = 1, not 2.
-
3. Which line is parallel to y = 5x − 2?
- y = −5x − 2
- y = 2x + 5
- y = 5x + 9
- y = x/5 − 2
Show answer
Answer: C. Parallel lines have equal slopes. y = 5x − 2 has slope 5, and so does y = 5x + 9 (with a different intercept). The others have slopes −5, 2 and 1/5.
-
4. What are the slope and y-intercept of the line 4y = 12x − 7?
- Slope 3, y-intercept −7/4
- Slope 12, y-intercept −7
- Slope 3, y-intercept −7
- Slope 4, y-intercept 12
Show answer
Answer: A. Divide every term by 4 to make y the subject: y = 3x − 7/4. So the slope is 3 and the y-intercept is −7/4.
-
5. The graph of p(x) = ax + b passes through (1, −1) and (4, 8). What is p(x)?
- 3x − 4
- 3x + 4
- x − 2
- 4x − 5
Show answer
Answer: A. a = (8 − (−1)) ÷ (4 − 1) = 9 ÷ 3 = 3. Then −1 = 3 × 1 + b, so b = −4. So p(x) = 3x − 4. Check (4, 8): 3 × 4 − 4 = 8.
Sign in to keep track of the lessons you finish.