Home › Chapter 10 › Working with coordinates
2. Working with coordinates Extended
Gradient from two points
m = y2 − y1x2 − x1
Worked example
Through (3, 5) and (7, 17): m = (17 − 5) ÷ (7 − 3) = 12 ÷ 4 = 3.
Equation: y = 3x + c. Substitute (3, 5): 5 = 9 + c, so c = −4. The line is y = 3x − 4.
Equation: y = 3x + c. Substitute (3, 5): 5 = 9 + c, so c = −4. The line is y = 3x − 4.
Perpendicular lines
Perpendicular lines meet at right angles. Their gradients multiply to −1: m1 × m2 = −1. To find a perpendicular gradient, flip the fraction and change the sign: gradient 3 → −13; gradient −25 → 52.
Length and midpoint
Length of the segment from (x1, y1) to (x2, y2), by Pythagoras:
length = √((x2 − x1)2 + (y2 − y1)2)
The midpoint is the mean of the x-coordinates and the mean of the y-coordinates:
midpoint = (x1 + x22, y1 + y22)
Worked example
A(3, 6) and B(7, 3): length = √(42 + 32) = √25 = 5; midpoint = (5, 4.5).