Use the distance, gradient and midpoint formulae to solve problems on the Cartesian plane.
Practise Analytical Geometry in the app →
What gets asked
- Calculate the distance between two given points.
- Calculate the gradient of the line segment joining two points.
- Decide whether two line segments are parallel or perpendicular.
- Calculate the midpoint of a line segment.
You must be able to
- Substitute two points into the distance formula and simplify the surd.
- Subtract y-values over x-values, in the same order, to find a gradient.
- Check for equal gradients to confirm lines are parallel, or a product of minus one for perpendicular.
- Average the x-values and average the y-values to find a midpoint.
Traps that cost marks
- Mixing up the coordinates, such as subtracting an x-value from a y-value. Keep x's with x's and y's with y's: and .
- Calling the gradient of a vertical line zero, instead of undefined. A vertical line has no run, so you would divide by zero. Its gradient is undefined, not zero.
- Using the gradients-multiply-to-minus-one test on a horizontal and a vertical line. That test needs two numbers. A vertical line's gradient is undefined, so check by shape instead.
Worked example
Points and distance
Two numbers fix a point, and Pythagoras turns any two points into a length.
- Cartesian plane
- The grid made by a horizontal -axis and a vertical -axis crossing each other.
- coordinates
- The pair saying how far across and how far up a point sits.
- origin
- The point , where the two axes cross.
- right-angled triangle
- A triangle with one angle of exactly .
- isosceles
- Having two equal sides.
- equilateral
- Having all three sides equal.
Every point on the Cartesian plane has two coordinates. Count from the origin, across first and then up. So is not the same point as . Watch the scale on each axis too. If one square stands for units, count units and not squares.
The distance between two points comes straight from Pythagoras. The gap across and the gap up are the short sides of a right-angled triangle, and the join between the points is the long side. That gives .
Keep with and with . Which one you subtract from which makes no difference, because squaring wipes out the sign. Take one square root at the very end, of the total, and never of each piece on its own.
To name a triangle, work out all three side lengths first. Two equal sides make it isosceles. Three equal sides make it equilateral. For a right angle, find the longest side: the other two squared must add up to it squared.
When a distance is given and a coordinate is missing, fill in the formula and square both sides. Square each whole side, not each term inside it. Squaring usually hands back two answers, and both may be real points.
Rules to remember
- right-angled when , with the longest side
Examples
Worked answer
- Across: . Up: .
- Square each and add: .
- One square root at the end: .
- So is units long.
Answer: units
The square root came once, at the end, and only after the adding.
Worked answer
- runs along the -axis, so .
- .
- .
- Two sides came out equal, so the triangle is isosceles.
Answer: isosceles, because
The two slanted sides were worked out, not guessed from the picture.
Worked answer
- Both points have , so the gap up is .
- The distance is then the gap across: .
- Square both sides: .
- So or .
- That gives or .
Answer: or
Squaring opened two doors, and each one lands units away.
Traps
- Mixing up the coordinates, such as subtracting an x-value from a y-value. Keep x's with x's and y's with y's: and .
- Taking the square root of each squared difference on its own, then adding those. Add the two squares first. One square root, at the end, of the total.
- Calling a triangle right-angled because the plotted points look that way. Test it instead. The two shorter sides squared must add to the longest one squared.
- Plotting where was given. Across comes first, then up. The first number is always the -value.
Gradient of a line
One number says which way a line leans and how hard, and it decides which lines are parallel.
- gradient
- How steep a line is: how far it rises for each step across.
- rise
- The change in as you move from one point to the other.
- run
- The change in over that same move.
- parallel
- Running in the same direction, so the two lines never meet.
- perpendicular
- Crossing at exactly .
- undefined
- No value exists, because working it out would mean dividing by zero.
The gradient of a line is its rise divided by its run. From two points that is . The -values go on top. Take the two points in the same order above and below, or the sign comes out wrong.
The sign tells you the direction. A positive gradient climbs from left to right, and a negative one falls. A flat line has a rise of , so its gradient is . A line straight up the page has a run of , so its gradient is undefined. That is not the same as .
The size tells you the steepness, and you ignore the sign while judging it. A gradient of is steeper than a gradient of , even though is the smaller number.
Parallel lines have equal gradients, and that is the whole test. Two segments that simply do not meet inside a diagram may still be heading for each other off the page. Perpendicular lines have gradients whose product is : flip the fraction over and change its sign.
To find a missing coordinate, write both gradients using the unknown. Set them equal for parallel, or make their product for perpendicular, then solve. Afterwards check that neither segment came out vertical, because a vertical segment has no gradient to use.
Rules to remember
- parallel:
- perpendicular: , and both rules need gradients that exist — a vertical line has none
Examples
Worked answer
- Take first, both above and below.
- .
- , so the line climbs one up for every two across.
Answer:
Subtracting in the same order above and below kept the sign right.
Worked answer
- .
- .
- Now multiply: .
- The product is , so the two segments are perpendicular.
Answer: yes, they are perpendicular
The second gradient was the first one flipped over with its sign changed.
Worked answer
- Parallel means equal gradients, so .
- The bottom works out to , giving .
- Multiply both sides by : .
- So .
Answer:
One condition gave one equation, and that was enough for one unknown.
Traps
- Writing the change in over the change in . The rise goes on top. Put the -values above and the -values below.
- Calling the gradient of a vertical line zero, instead of undefined. A vertical line has no run, so you would divide by zero. Its gradient is undefined, not zero.
- Flipping one gradient over but forgetting to change its sign. Perpendicular needs both. From you get , not .
- Using the gradients-multiply-to-minus-one test on a horizontal and a vertical line. That test needs two numbers. A vertical line's gradient is undefined, so check by shape instead.
Midpoint formula
Halfway between two points is just the average of their numbers, and it unlocks a parallelogram.
- midpoint
- The point exactly halfway along the line joining two points.
- endpoint
- One of the two points at the ends of a line segment.
- vertex
- A corner of a shape. Several of them together are called vertices.
- diagonal
- A line joining two corners that are not next to each other.
- parallelogram
- A four-sided shape whose opposite sides are parallel.
A midpoint is an average. Add the two -values and halve them, then add the two -values and halve those. Both halvings have to happen. Halving only one of them is the most common slip here.
Sometimes you are given one endpoint and the midpoint, and the other endpoint is missing. Work backwards. The midpoint's is the average, so the two -values add to twice it. Double the midpoint and take off the endpoint you have. Then do the same with .
The diagonals of a parallelogram cut each other exactly in half, so both diagonals share one midpoint. Given three corners, that fact hands you the fourth vertex. Take care which pairs are the diagonals: joining the wrong pair gives a crossed shape instead.
Rules to remember
- in a parallelogram the diagonals share a midpoint
Examples
Worked answer
- Across: .
- Up: .
- So the midpoint is .
Answer:
Both pairs were added, and both sums were halved.
Worked answer
- Double the midpoint's , then take off the endpoint you know: .
- Do the same with the -values: .
- So is the point .
- Check: and .
Answer:
Doubling alone was not enough; the known endpoint still had to come off.
Worked answer
- In the diagonals are and .
- Midpoint of : and .
- must have that same midpoint, so .
- That gives , and gives .
- So is the point .
Answer:
Working from the diagonals, not the sides, is what kept the shape from crossing.
Traps
- Halving one of the two sums and leaving the other one alone. Both sums get halved. Add and halve for , then add and halve for .
- Subtracting the coordinates instead of adding them and halving. A midpoint is an average, so it adds. Subtracting gives you a gap, not a point.
- Doubling the midpoint and stopping there. Then take off the endpoint you already have: .
- Treating a diagonal as a side, so the fourth corner makes a crossed shape. In the diagonals are and . Match those two midpoints.
Naming and proving shapes
A picture suggests the name of a shape, but only distances and gradients can prove it.
- quadrilateral
- A closed shape with four straight sides.
- rectangle
- A parallelogram with a right angle at one corner.
- rhombus
- A parallelogram with all four sides equal.
- square
- A rectangle with all four sides equal.
Plotting the points gives you a guess. It never gives you a reason. Every name has to be earned by a calculation: distances for how long the sides are, and gradients for which way they point.
Match the test to the name of the quadrilateral. Both pairs of opposite sides parallel makes a parallelogram. Add four equal sides and it is a rhombus. Add a right angle instead and it is a rectangle. Four equal sides alone is not a square, because a rhombus has those too.
So a rectangle takes two checks. Show that both pairs of opposite sides have equal gradients. Then show that two sides meeting at a corner have gradients multiplying to . Use sides for this and never a diagonal, because a diagonal points the wrong way.
In a longer problem the distance, gradient and midpoint formulae work together on one figure. Start from the coordinates every time. Never quote the thing you are proving as a reason inside the working that proves it.
Rules to remember
- opposite sides parallel:
- right angle:
- equal sides:
Examples
Worked answer
- and .
- and .
- Both pairs of opposite sides are parallel, so is a parallelogram.
- , so and meet at a right angle.
- A parallelogram with a right angle is a rectangle.
Answer: is a rectangle
Gradients did both jobs: equal ones for parallel, and a product of for the angle.
Worked answer
- , and the other three sides also come to .
- Four equal sides does make it a rhombus, so that much is true.
- But and , and .
- That product is not , so there is no right angle here.
- It is a rhombus, not a rectangle.
Answer: no, it is a rhombus
Equal sides were never a test for a right angle, so a second check was needed.
Worked answer
- is across and up, so .
- .
- .
- , so is perpendicular to .
Answer: is perpendicular to
The midpoint had to come first, because without there was no second gradient.
Traps
- Naming the shape from how the plotted points look, with no test at all. Say which test you used. A name with no calculation behind it earns nothing.
- Checking only that all four sides are equal and calling the shape a square. A rhombus passes that test too. A square also needs a right angle.
- Showing that opposite sides are equal and stopping, as though that proved a rectangle. That gives a parallelogram. Test one angle before you call it a rectangle.
- Using the property you are proving as a reason inside the proof. Start from the coordinates. Only what you have already worked out may be quoted.