- Practice
- About 16 min
- 5 practice questions
Slope of a line
Find the slope of a line through two points, relate slope to the angle with the X-axis by m = tan θ, use the slopes of the axes, and use equal slopes to test parallel lines and collinear points.
If something looks wrong, please tell us.
By the end of this lesson you can
- Find the slope m = (y₂ − y₁)/(x₂ − x₁) of a line through two points.
- Use m = tan θ, where θ is the angle the line makes with the positive direction of the X-axis.
- Use slopes to show lines are parallel and points are collinear, and to find an unknown co-ordinate.
Walking on a level road is easy; climbing a steep slope is hard. In co-ordinate geometry the steepness of a line is measured by a single number, its slope. For any two points on the same line, the rise divided by the run is the same.
Definition
The slope of the line through (x₁, y₁) and (x₂, y₂), with x₁ ≠ x₂, is m = (y₂ − y₁)/(x₂ − x₁). If the line makes an angle θ with the positive direction of the X-axis, then m = tan θ.
Why m = tan θ: draw a right triangle under the segment PQ with a horizontal side x₂ − x₁ and a vertical side y₂ − y₁. The angle at P equals θ (corresponding angles), and tan θ = opposite/adjacent = (y₂ − y₁)/(x₂ − x₁).
Worked example 1: slopes from points and angles
- Through (1, 2) and (4, 8): m = (8 − 2)/(4 − 1) = 6/3 = 2.
- Through (−2, 5) and (4, 2): m = (2 − 5)/(4 + 2) = −3/6 = −1/2.
- θ = 45°: m = tan 45° = 1. θ = 60°: m = √3. θ = 30°: m = 1/√3.
What the slope tells you
-
Positive slope
- Line rises from left to right
- Makes an acute angle with the X-axis
-
Negative slope
- Line falls from left to right
- Makes an obtuse angle with the X-axis
-
Zero slope
- X-axis and lines parallel to it
- y₂ − y₁ = 0
-
Slope not defined
- Y-axis and lines parallel to it
- x₂ − x₁ = 0, and division by 0 is impossible
Parallel lines and collinear points
Lines with the same slope make equal angles with the X-axis, so they are parallel (corresponding angles test); conversely, parallel lines have equal slopes. If the slopes of AB and BC are equal, the lines AB and BC are parallel and also share the point B, so they are the same line: A, B, C are collinear.
Worked example 2: collinear by slopes
A(1, 1), B(3, 5), C(4, 7). Working: slope of AB = (5 − 1)/(3 − 1) = 2, slope of BC = (7 − 5)/(4 − 3) = 2. The slopes are equal and B is common, so A, B, C are collinear.
Worked example 3: a parallelogram
A(0, 0), B(4, 1), C(6, 4), D(2, 3). Working: slope AB = 1/4 and slope DC = (4 − 3)/(6 − 2) = 1/4, so AB ∥ DC. Slope BC = (4 − 1)/(6 − 4) = 3/2 and slope AD = 3/2, so BC ∥ AD. Both pairs of opposite sides are parallel: ABCD is a parallelogram.
Worked example 4: find k
The slope of the line through (2, k) and (5, 7) is 3. Working: (7 − k)/(5 − 2) = 3, so 7 − k = 9 and k = −2.
Key takeaways: m = (y₂ − y₁)/(x₂ − x₁) = tan θ. The X-axis has slope 0 and the slope of the Y-axis is not defined. Equal slopes mean parallel lines; equal slopes through a common point mean collinear points.
Check your understanding
-
1. What is the slope of the line through (−1, 3) and (3, −5)?
- 2
- −1/2
- −2
- 1/2
Show answer
Answer: C. m = (−5 − 3)/(3 − (−1)) = −8/4 = −2.
-
2. A line makes an angle of 60° with the positive direction of the X-axis. What is its slope?
- 1/√3
- √3
- 1
- √3/2
Show answer
Answer: B. m = tan 60° = √3.
-
3. What is the slope of a line parallel to the Y-axis?
- 0
- 1
- −1
- It cannot be determined
Show answer
Answer: D. All points on such a line have the same x, so x₂ − x₁ = 0 and the slope would need division by 0. It cannot be determined.
-
4. The slope of the line through R(2, −3) and S(k, 5) is 4. What is k?
- 4
- 2
- 6
- −2
Show answer
Answer: A. (5 − (−3))/(k − 2) = 4, so 8 = 4(k − 2), k − 2 = 2 and k = 4.
-
5. Are the points (1, 2), (3, 6) and (5, 10) collinear?
- No, the slopes are 2 and 3
- Yes, both slopes are 2 and the middle point is common
- No, because they are not on an axis
- It cannot be decided from slopes
Show answer
Answer: B. Slope of the first pair = (6 − 2)/(3 − 1) = 2 and of the second = (10 − 6)/(5 − 3) = 2. Equal slopes through the common point (3, 6) mean the points are collinear.
Sign in to keep track of the lessons you finish.