I can
- find the distance between two points in space
- find the midpoint of two points
- reflect a point and find the foot of a perpendicular
Key idea
A point in space has three coordinates (x, y, z).
The distance between A and B is the square root of (difference in x)² + (difference in y)² + (difference in z)². The midpoint is the average of each coordinate.
Reflections change signs:
- in the x-axis: y and z change sign
- in the y-axis: x and z change sign
- in the z-axis: x and y change sign
- in the origin: all three change sign
- in a plane such as the yz-plane: only the coordinate that is zero on that plane changes sign (x for the yz-plane)
The foot of the perpendicular from P to a plane keeps two coordinates and makes the third 0. For the xy-plane, z becomes 0.
Worked examples
Example 1: Find the distance AB where A(1, 2, 3) and B(5, −2, 5).
Watch it: the distance AB where A(1, 2, 3) and B(5, −2, 5), step by step:
- Subtract the coordinates: 5 − 1, −2 − 2 and 5 − 3.
- Square each difference: 16, 16 and 4. Add them.
- The square root of 36 is 6.
- The distance is 6.
- A and B joined by a straight line of length 6.
- Differences: 4, −4, 2.
- Squares: 16 + 16 + 4 = 36.
- The square root of 36 is 6.
AB = 6
Example 2: Find the midpoint of A(2, −4, 6) and B(8, 0, −2).
Watch it: the midpoint of A(2, −4, 6) and B(8, 0, −2), step by step:
- x: (2 + 8) ÷ 2 = 5.
- y: (−4 + 0) ÷ 2 = −2.
- z: (6 + (−2)) ÷ 2 = 2.
- Halfway between A and B.
- M is halfway along AB.
- x: (2 + 8) ÷ 2 = 5.
- y: (−4 + 0) ÷ 2 = −2.
- z: (6 + (−2)) ÷ 2 = 2.
The midpoint is (5, −2, 2).
Example 3: Reflect P(3, −2, 4) in the y-axis.
Watch it: reflect P(3, −2, 4) in the y-axis, step by step:
- A point on the y-axis does not move.
- Reflecting in the y-axis flips the other two coordinates.
- x = 3 becomes −3, z = 4 becomes −4.
- The image of P is (−3, −2, −4).
- P and its mirror image on the other side of the y-axis.
- The y-axis keeps y. So y stays −2.
- x and z change sign: 3 becomes −3 and 4 becomes −4.
The reflection is (−3, −2, −4).
Try it
Show answer
3Show answer
7Show answer
(1, 3, 4)Show answer
(-5, 3, 2)Show answer
(-2, -1, 6)Show answer
(-1, 4, 0)Common mistakes
- Changing the wrong signs for an axis reflection. The coordinate with the same name as the axis stays the same.
- Forgetting the z difference when finding a distance.
- Putting 0 in the wrong place for the foot. For the xy-plane the zero goes in the z place.
Remember
- Distance: square the three differences, add, take the square root.
- Midpoint: average each coordinate.
- The foot of the perpendicular makes one coordinate 0.
Practise this
Worksheets 41 to 50 of Vectors practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.
Open Mathhh