An ordered pair (x,y) gives horizontal movement first and vertical movement second.
The midpoint is (2x1+x2,2y1+y2).
Distance is d=(x2−x1)2+(y2−y1)2, from Pythagoras.
Slope is m=x2−x1y2−y1 when the denominator is non-zero.
A horizontal line has slope zero. A vertical line has undefined slope and equation x=k.
From A to B: slope is 4/6 = 2/3; the midpoint averages the coordinates to give (4, 4).
03 · Follow the working
Worked examples
Read the question first. Cover the working and decide what you would do next.
New step-by-step examples
Midpoint
M lies halfway along the segment from A to B.
Find the midpoint of A(−3, −2) and B(3, 4).
M=(2x1+x2,2y1+y2)
Label A as point 1 and B as point 2.
M=(2−3+3,2−2+4)
Substitute the x-values together and the y-values together.
M=(20,22)
Add each pair before dividing.
Final answerM=(0,1)
Distance between two points
The dashed sides show 6 units across and 4 units up. The blue segment is the distance.
Find the distance from A(−2, −1) to B(4, 3).
d=(x2−x1)2+(y2−y1)2
Write the distance formula. A is point 1; B is point 2.
d=(4−(−2))2+(3−(−1))2
Subtract the coordinates in the same order. Keep brackets around negative values.
d=62+42=52
Square each difference, then add.
Final answerd=213≈7.21 units
Slope of a line
From A to B: move 6 units right and 4 units down. The line falls from left to right.
Find the slope through A(−2, 3) and B(4, −1).
m=x2−x1y2−y1
Write the slope formula. The y-values go on top.
m=4−(−2)−1−3
Subtract A from B both above and below the bar.
m=6−4
Simplify the numerator and denominator.
Final answerm=−32
01Distance between two points
P(0,1) and Q(6,9) are two points. Find the distance between them.
Coordinates matching this question: P(0, 1), Q(6, 9).
Why this method? Write the coordinates in the same point order. Decide whether we need a distance, a midpoint or a slope before substituting.
Blue follows the horizontal change. Purple follows the vertical change. They become the two shorter sides used in Pythagoras.
6−0=6
Why?Find the horizontal change from P to Q. The x-coordinate changes from 0 to 6.
9−1=8
Why?Find the vertical change in the same point order. The y-coordinate changes from 1 to 9.
d2=62+82
Why?These changes are the perpendicular sides of a right triangle. The straight-line distance is its hypotenuse.
d2=36+64=100
Why?Square each change and add.
d=100=10
Why?Take the positive square root because a distance cannot be negative.
Think about it: Before moving on: why do the horizontal and vertical distances not simply add up to the distance?
02Midpoint of a line segment
P(3,−1) and Q(5,5) are two points. What is the x-coordinate of the midpoint of PQ?
Coordinates matching this question: P(3, -1), Q(5, 5).
Why this method? Write the coordinates in the same point order. Decide whether we need a distance, a midpoint or a slope before substituting.
xM=2x1+x2
Why?The midpoint x-coordinate is halfway between the two x-coordinates.
xM=23+5
Why?Use 3 and 5, the x-coordinates of P and Q. The whole sum stays above the fraction bar.
xM=28=4
Why?Add first, then divide by 2.
The x-coordinate is 4.
Why?It lies halfway between 3 and 5. The question does not ask for the y-coordinate.
Think about it: Before moving on: why must the sum of the coordinates be halved?
03Slope of a line through two points
P(−2,2) and Q(1,−7) lie on a straight line. What is its slope?
Coordinates matching this question: P(-2, 2), Q(1, -7).
Why this method? Write the coordinates in the same point order. Decide whether we need a distance, a midpoint or a slope before substituting.
(x1,y1)=(−2,2) and (x2,y2)=(1,−7).
Why?Label the first point and second point. Keep the same order for both subtractions.
m=1−(−2)−7−2
Why?Slope is vertical change divided by horizontal change. Put the whole differences above and below the fraction bar.
m=3−9
Why?Subtracting −2 is adding 2, so the horizontal change is +3.
m=−3
Why?Divide. A negative slope means the line falls as x increases.
Think about it: Before moving on: why does a falling line have a negative slope?
Common mistake
Reversing the point order in only half of the slope formula. For (1,2) and (3,6), use 3−16−2=2, not 1−36−2=−2. Keep the same point order in both differences.
Exam technique
Sketch the two points to check the signs and approximate distance.
Show your method, use units where appropriate and check whether the question asks for an exact or rounded answer.
04 · Try it yourself
Self-check questions
Work on paper first, then open the answer. These are practice questions, not submitted homework.
Question 1
P(1,2) and Q(4,6) are two points. Find the distance between them.