A point in the plane is written ( x , y ) (x, y) ( x , y ) : x x x is how far across from the origin and y y y is how far up. Two formulas answer a lot of questions about two points A ( x 1 , y 1 ) A(x_1, y_1) A ( x 1 , y 1 ) and B ( x 2 , y 2 ) B(x_2, y_2) B ( x 2 , y 2 ) .
The distance A B AB A B is the hypotenuse of a right-angled triangle whose other sides are the difference in x x x and the difference in y y y . So by Pythagoras↺ :
A B = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} A B = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2
The midpoint M M M of A B AB A B is halfway along. Its coordinates are the averages of the coordinates of A A A and B B B :
M = ( x 1 + x 2 2 , y 1 + y 2 2 ) M = \left(\frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2}\right) M = ( 2 x 1 + x 2 , 2 y 1 + y 2 )
x y A B x₂ − x₁ y₂ − y₁ Distance AB² = (x₂ − x₁)² + (y₂ − y₁)² x y A B M Midpoint M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)
Try it
Two points Drag the gold points
−6 −5 −4 −3 −2 −1 1 2 3 4 5 6 −5 −4 −3 −2 −1 1 2 3 4 5 x y 6 4 A(−3, −2) B(3, 2) 6 across, x₂ − x₁ 4 up, y₂ − y₁ √52 = 2√13 ≈ 7.21 AB = √(across² + up²)
Distance Midpoint
The distance is the hypotenuse of a right-angled triangle: 6 across and 4 up. By Pythagoras, AB = √(6² + 4²) = √52 . Squaring makes the signs not matter.
Drag A A A and B B B . In “Distance” the triangle under A B AB A B shows the two differences; however you place the points, A B 2 AB^2 A B 2 is the sum of their squares. In “Midpoint”, M M M always sits at the average of the two x x x ‘s and the two y y y ‘s.
Check yourself
Find the distance between ( 1 , 2 ) (1, 2) ( 1 , 2 ) and ( 7 , 10 ) (7, 10) ( 7 , 10 ) .
Check yourself
Find the distance between ( − 2 , 3 ) (-2, 3) ( − 2 , 3 ) and ( 3 , − 9 ) (3, -9) ( 3 , − 9 ) .
Check yourself
Find the midpoint of ( − 4 , 7 ) (-4, 7) ( − 4 , 7 ) and ( 6 , − 1 ) (6, -1) ( 6 , − 1 ) .
A ( 1 , 3 ) (1, 3) ( 1 , 3 ) B ( 5 , − 4 ) (5, -4) ( 5 , − 4 ) C ( 2 , 6 ) (2, 6) ( 2 , 6 ) D ( 1 , 4 ) (1, 4) ( 1 , 4 )
Common mistake
Subtracting in the midpoint formula. The midpoint adds the coordinates and halves them; it’s the distance (and, in the next lesson, the gradient) that subtracts. And when you subtract a negative number, it becomes adding: 3 − ( − 2 ) = 5 3 - (-2) = 5 3 − ( − 2 ) = 5 .
Working backwards
Often the midpoint is given and one end is missing. Write the midpoint formula for each coordinate and solve. A quick way: the missing end is as far beyond M M M as the given end is before it, so x 2 = 2 x M − x 1 x_2 = 2x_M - x_1 x 2 = 2 x M − x 1 .
Check yourself
The midpoint of A B AB A B is ( 2 , 5 ) (2, 5) ( 2 , 5 ) and A A A is ( − 1 , 3 ) (-1, 3) ( − 1 , 3 ) . Find B B B .
A ( 5 , 7 ) (5, 7) ( 5 , 7 ) B ( 0.5 , 4 ) (0.5, 4) ( 0.5 , 4 ) C ( 3 , 2 ) (3, 2) ( 3 , 2 ) D ( 1 , 8 ) (1, 8) ( 1 , 8 )
When a distance is given and a coordinate is unknown, put the unknown into the distance formula and solve. Squaring gives two answers, and often both are allowed.
Check yourself
The distance between ( 1 , k ) (1, k) ( 1 , k ) and ( 4 , 2 ) (4, 2) ( 4 , 2 ) is 5 units. Find the possible values of k k k .
Worked example · WAEC 2021
WAEC 2021 · Paper 2 · Q12 (b)
The coordinates of two points P P P and Q Q Q in a plane are ( 7 , 3 ) (7, 3) ( 7 , 3 ) and ( 5 , x ) (5, x) ( 5 , x ) respectively, where x x x is a real number. If ∣ P Q ∣ = 29 |PQ| = \sqrt{29} ∣ P Q ∣ = 29 units, find the values of x x x .
Write the distance formula
∣ P Q ∣ 2 = ( 7 − 5 ) 2 + ( 3 − x ) 2 = 29 |PQ|^2 = (7 - 5)^2 + (3 - x)^2 = 29 ∣ P Q ∣ 2 = ( 7 − 5 ) 2 + ( 3 − x ) 2 = 29 .
Think first. Put P(7, 3) and Q(5, x) into the formula, squared.
Simplify
4 + ( 3 − x ) 2 = 29 4 + (3 - x)^2 = 29 4 + ( 3 − x ) 2 = 29 , so ( 3 − x ) 2 = 25 (3 - x)^2 = 25 ( 3 − x ) 2 = 25 .
Think first. What is (7 − 5)²? Move it across.
Take the square root
3 − x = 5 3 - x = 5 3 − x = 5 or 3 − x = − 5 3 - x = -5 3 − x = − 5 , so x = − 2 x = -2 x = − 2 or x = 8 x = 8 x = 8 . Both points are 29 \sqrt{29} 29 from P P P .
Think first. How many numbers square to 25?
← Back Next step → Show all steps Start again
Your turn
Let X Y ‾ \overline{XY} X Y be a line segment with X ( − 8 , − 12 ) X(-8, -12) X ( − 8 , − 12 ) and Y ( p , q ) Y(p, q) Y ( p , q ) . If the midpoint of X Y ‾ \overline{XY} X Y is ( − 4 , − 2 ) (-4, -2) ( − 4 , − 2 ) , find the coordinates of Y Y Y .
A ( − 6 , − 2 ) (-6, -2) ( − 6 , − 2 ) B ( 0 , 8 ) (0, 8) ( 0 , 8 ) C ( 4 , 10 ) (4, 10) ( 4 , 10 ) D ( 0 , 4 ) (0, 4) ( 0 , 4 )
Worked solution (try it first) The midpoint is the average of the ends, so each coordinate of
Y Y Y is twice the midpoint's minus
X X X 's.
p = 2 ( − 4 ) − ( − 8 ) = − 8 + 8 = 0 p = 2(-4) - (-8) = -8 + 8 = 0 p = 2 ( − 4 ) − ( − 8 ) = − 8 + 8 = 0 .
q = 2 ( − 2 ) − ( − 12 ) = − 4 + 12 = 8 q = 2(-2) - (-12) = -4 + 12 = 8 q = 2 ( − 2 ) − ( − 12 ) = − 4 + 12 = 8 .
So
Y = ( 0 , 8 ) Y = (0, 8) Y = ( 0 , 8 ) , option B.
Watch out
From X X X to the midpoint is a step of ( + 4 , + 10 ) (+4, +10) ( + 4 , + 10 ) ; add that step to the midpoint to reach Y Y Y . Option C, ( 4 , 10 ) (4, 10) ( 4 , 10 ) , is the step itself, not Y Y Y . Report a problem with this question
More past questions like this
WAEC 2023 · Paper 1 · Q29 Name the triangle with the vertices ( 1 , − 3 ) (1, -3) , ( 6 , 2 ) (6, 2) and ( 0 , 4 ) (0, 4) . NECO 2024 · Paper 1 · Q25 Calculate the mid-point of the line joining ( 8 , − 3 ) (8, -3) and ( − 2 , 3 ) (-2, 3) . NECO 2024 · Paper 1 · Q43 Find the distance between the points ( 3 , − 4 ) (3, -4) and ( − 5 , 2 ) (-5, 2) . JAMB 1991 · UME · Q44 In the figure, P Q R S PQRS is a square of side 8 cm; U Q = 4 UQ = 4 cm, Q V = 6 QV = 6 cm and W R = 2 WR = 2 cm. What is the area of △ U V W \triangle UVW ? JAMB 1994 · UME · Q35 If M ( 4 , q ) M(4, q) is the midpoint of the line joining L ( p , − 2 ) L(p, -2) and N ( q , p ) N(q, p) , find the values of p p and q q . JAMB 1998 · UME · Q32 If the distance between the points ( x , 3 ) (x, 3) and ( − x , 2 ) (-x, 2) is 5, find x x . JAMB 2001 · UME · Q29 P ( − 6 , 1 ) P(-6, 1) and Q ( 6 , 6 ) Q(6, 6) are the two ends of a diameter of a given circle. Calculate the radius.JAMB 2003 · UME · Q35 A triangle has vertices P ( − 1 , 6 ) P(-1, 6) , Q ( − 3 , − 4 ) Q(-3, -4) and R ( 1 , − 4 ) R(1, -4) . Find the midpoints of P Q PQ and Q R QR respectively. JAMB 2004 · UME · Q32 Find the midpoint of the line joining P ( − 3 , 5 ) P(-3, 5) and Q ( 5 , − 3 ) Q(5, -3) . JAMB 2010 · UTME · Q35 Find the distance between the points ( 1 2 , 1 2 ) \left(\frac12, \frac12\right) and ( − 1 2 , − 1 2 ) \left(-\frac12, -\frac12\right) . JAMB 2011 · UTME · Q32 The midpoint of P ( x , y ) P(x, y) and Q ( 8 , 6 ) Q(8, 6) is ( 5 , 8 ) (5, 8) . Find x x and y y . JAMB 2013 · UTME · Q31 If the midpoint of the line P Q PQ is ( 2 , 3 ) (2, 3) and the point P P is ( − 2 , 1 ) (-2, 1) , find the coordinates of Q Q . JAMB 2014 · UTME · Q32 Find the midpoint of S ( − 5 , 4 ) S(-5, 4) and T ( − 3 , − 2 ) T(-3, -2) .