- Foundation
- About 17 min
- 5 practice questions
Coordinate geometry recap and the slope of a line
Revise distance, section and area formulae, define the inclination and slope of a line, derive m = (y₂ − y₁)/(x₂ − x₁), and use slopes to test collinearity.
If something looks wrong, please tell us.
Coordinate geometry joins algebra and geometry: every point becomes a pair of numbers and every line becomes an equation. This idea, set out systematically by René Descartes in the seventeenth century, lets us prove geometric facts by calculation. In this chapter we study the simplest figure, the straight line, and the single number that describes its direction: its slope.
A quick recap from earlier classes
| Result | Formula |
|---|---|
| Distance between P(x₁, y₁) and Q(x₂, y₂) | PQ = √[(x₂ − x₁)² + (y₂ − y₁)²] |
| Point dividing PQ internally in ratio m : n | ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n)) |
| Mid-point of PQ (m = n) | ((x₁ + x₂)/2, (y₁ + y₂)/2) |
| Area of triangle with vertices (x₁, y₁), (x₂, y₂), (x₃, y₃) | ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)| |
For example, the distance between (2, −3) and (5, 1) is √(3² + 4²) = √25 = 5 units. The point dividing the join of A(2, 1) and B(8, 7) internally in the ratio 1 : 2 is ((1 × 8 + 2 × 2)/3, (1 × 7 + 2 × 1)/3) = (4, 3). The triangle with vertices (1, 1), (4, 1), (4, 5) has area ½ |1(1 − 5) + 4(5 − 1) + 4(1 − 1)| = ½ |−4 + 16| = 6 square units. If the area formula gives 0, the three points lie on one line (they are collinear).
Inclination and slope
A line meets the x-axis at two angles that add up to 180°. The angle θ that the line makes with the positive direction of the x-axis, measured anticlockwise, is called the inclination of the line, and 0° ≤ θ < 180°. A line parallel to (or along) the x-axis has inclination 0°; a vertical line has inclination 90°.
If θ is the inclination of a line and θ ≠ 90°, its slope (gradient) is m = tan θ. The slope of a vertical line is not defined; the slope of a horizontal line is 0.
What the slope tells you about a line
-
m > 0
- Inclination acute (0° < θ < 90°)
- Line rises from left to right
-
m < 0
- Inclination obtuse (90° < θ < 180°)
- Line falls from left to right
-
m = 0
- Inclination 0°
- Horizontal line, y = constant
-
m not defined
- Inclination 90°
- Vertical line, x = constant
Slope from two points: the derivation
Let P(x₁, y₁) and Q(x₂, y₂) lie on a non-vertical line l with inclination θ, so x₁ ≠ x₂. Draw QR perpendicular to the x-axis and PM perpendicular to RQ, so that triangle MPQ is right-angled at M, with MP = x₂ − x₁ and MQ = y₂ − y₁ (taking Q to the right of P).
Case 1: θ acute. Then ∠MPQ = θ, so m = tan θ = MQ/MP = (y₂ − y₁)/(x₂ − x₁).
Case 2: θ obtuse. Then ∠MPQ = 180° − θ, so m = tan θ = tan(180° − ∠MPQ) = −tan ∠MPQ = −MQ/MP. With the line falling, MQ = y₁ − y₂, so m = −(y₁ − y₂)/(x₂ − x₁) = (y₂ − y₁)/(x₂ − x₁).
Both cases give the same formula, and it does not matter which point is called P.
Slope of the line through (x₁, y₁) and (x₂, y₂): m = (y₂ − y₁)/(x₂ − x₁), x₁ ≠ x₂.
Worked examples
Worked example 1: four slopes
(a) Through (2, 3) and (6, 11): m = (11 − 3)/(6 − 2) = 8/4 = 2. (b) Through (−1, 4) and (3, −2): m = (−2 − 4)/(3 − (−1)) = −6/4 = −3/2. (c) Through (4, 1) and (4, 7): the denominator is 4 − 4 = 0, so the slope is not defined; the line is vertical. (d) Inclination 135°: m = tan 135° = −1.
Worked example 2: collinearity by slopes
Show that A(1, 2), B(3, 6) and C(5, 10) are collinear. Slope of AB = (6 − 2)/(3 − 1) = 2 and slope of BC = (10 − 6)/(5 − 3) = 2. The lines AB and BC have the same slope and share the point B, so they are the same line: A, B, C are collinear. In general, three points A, B, C are collinear if and only if slope of AB = slope of BC.
Worked example 3: a line making an angle with the y-axis
A line makes an angle of 30° with the positive y-axis, measured anticlockwise. Its angle with the positive x-axis is then 90° + 30° = 120°, so m = tan 120° = −√3. Always convert to the angle with the positive x-axis before taking tan.
Key takeaways
- Inclination θ is measured anticlockwise from the positive x-axis, 0° ≤ θ < 180°.
- Slope m = tan θ = (y₂ − y₁)/(x₂ − x₁); vertical lines have no slope.
- Positive slope rises, negative slope falls, zero slope is horizontal.
- Equal slopes of AB and BC mean A, B, C are collinear.
Check your understanding
-
1. What is the slope of the line through (−2, 5) and (4, −7)?
- 2
- −2
- −1/2
- 1/2
Show answer
Answer: B. m = (−7 − 5)/(4 − (−2)) = −12/6 = −2.
-
2. A line has inclination 60°. Its slope is:
- 1/√3
- √3/2
- √3
- −√3
Show answer
Answer: C. m = tan 60° = √3.
-
3. For which pair of points is the slope of the joining line not defined?
- (3, 2) and (5, 2)
- (0, 0) and (4, 4)
- (−1, 3) and (1, −3)
- (2, −4) and (2, 6)
Show answer
Answer: D. For (2, −4) and (2, 6), x₂ − x₁ = 0, so the line is vertical and its slope is not defined. The pair (3, 2), (5, 2) gives slope 0, a horizontal line, which is defined.
-
4. For what value of k are the points (1, 1), (3, 5) and (k, 9) collinear?
- 5
- 6
- 7
- 4
Show answer
Answer: A. Slope of the first two points = (5 − 1)/(3 − 1) = 2. For collinearity, (9 − 5)/(k − 3) = 2, so 4 = 2(k − 3) and k = 5. Check: (9 − 5)/(5 − 3) = 2.
-
5. Assertion (A): A line through (1, 4) and (5, 4) has slope 0. Reason (R): A line parallel to the x-axis has inclination 0°, and tan 0° = 0.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true, but R is false
- A is false, but R is true
Show answer
Answer: A. Both are true. The two points have the same y-coordinate, so the line is parallel to the x-axis; its inclination is 0° and its slope is tan 0° = 0. R explains A.
Sign in to keep track of the lessons you finish.