Distance and Midpoint
Progress can't be saved in this browser, so this lesson's status can't be set.
Watch the video explainer
Learning goals
- Derive straight-line distance from perpendicular coordinate gaps and the Pythagorean theorem
- Locate a midpoint and explain why both coordinates are averaged
- Recover missing endpoint coordinates and check all geometric conditions
- Justify numerical triangle congruence by matching three exact side lengths
From coordinates to a right triangle
An ordered pair gives horizontal position first, then vertical position. Use the same unit length on both perpendicular axes. For the points and , the horizontal change is and the vertical change is . The negative sign means down; the vertical length is .
The two perpendicular legs let you measure the direct segment with the Pythagorean theorem:
Adding and would measure a bent route through , not the straight segment.
Check your understanding
From to , what are the horizontal and vertical leg lengths of the coordinate right triangle?
Subtract corresponding coordinates, then take the sizes of the changes.
The movement is down four units, but a leg length is nonnegative. The lengths are 7 and 4.
Distance from perpendicular coordinate gaps#
Take a fresh pair and . The corner gives perpendicular legs of lengths and . The Pythagorean theorem gives
Thus the direct distance is .
Take endpoints at and at . The corner is at . When both coordinates change, the legs are perpendicular and have lengths and . The theorem gives
Absolute values disappear on squaring because a number and its opposite have the same square. Distance is nonnegative, so
The actual coordinate values did not matter; the perpendicular gaps did. If the segment is horizontal or vertical, one gap is zero and this expression reduces to the other gap’s absolute value. No nondegenerate right triangle is needed in those cases. If the endpoints coincide, both gaps are zero and the distance is zero. Reversing the endpoints changes both signs but leaves both squares unchanged.
This is the distance formula. It measures a length, so its output is a number in the coordinate unit, not an ordered pair.
Worked example 1 Keep a slanted length exact
Problem. The endpoints of segment are and . Find its exact length in simplest radical form.
Solution. The horizontal gap is units and the vertical gap is units. Thus
The square factor comes out of the radical as . The radical is an exact length; no decimal is needed.
Check your understanding
Find the exact distance between and .
The perpendicular gaps are 4 and 6.
The sum of the squares is the squared distance. Take its nonnegative root.
Why a midpoint averages both coordinates
A midpoint is the point on a segment that divides it into two equal lengths. Halfway along a straight segment means making half its horizontal change and half its vertical change together.
For instance, from to the changes are right and up. Starting at the first endpoint, half of each change gives . A dilation centered at the first endpoint with scale factor puts this point on the segment and makes its distance from that endpoint half the whole length. The other half is the remaining segment.
Midpoint coordinates from a half-size dilation#
For a fresh pair and , the signed coordinate changes are and . A half-size dilation from halves both changes:
It puts on at half its length, rather than merely somewhere equally far from the endpoints.
For general distinct endpoints at and at , the same dilation halves both coordinate changes. Name the midpoint and its coordinates . Then
The vertical calculation has the same form:
No step depended on the example’s values or on the signs of the changes. A dilation works in any direction, including horizontal and vertical segments. The point stays on the segment and cuts its length in half.
The midpoint formula is therefore
Average matching coordinates; do not average an x-coordinate with a y-coordinate. Fractional coordinates are allowed. If the endpoints coincide, the same average returns that point, although there are no two positive half-segments.
Worked example 2 Move a vertical endpoint
Problem. Segment has endpoints at and at . Find its length and midpoint. Then move to at and find the length and midpoint of .
Solution. For the original segment, the x-coordinate stays . Call its midpoint . Its length and midpoint are
The midpoint’s height is the average of and . Each half is units.
For the moved endpoint, the segment is still vertical. Call the new midpoint :
Here each half is units. Moving just the upper endpoint down units moved the midpoint down units.
Check your understanding
What is the midpoint of the segment joining and ?
Average horizontal coordinates and vertical coordinates separately.
The midpoint is .
Recover an endpoint
A midpoint tells you how far to continue beyond it. Repeat the horizontal and vertical changes from the known endpoint to the midpoint, continuing in the same direction.
Worked example 3 Use the midpoint in reverse
Problem. Point at is the midpoint of . One endpoint is at . Find and check the midpoint.
Solution. The two coordinate averages must equal the given midpoint coordinates. Solve them separately:
So is at . Averaging the endpoint coordinates gives again. The changes from to are the same as from to , which also checks the straight continuation.
In general, multiply each midpoint coordinate by , then subtract the known endpoint coordinate. Check both coordinates afterward.
Check your understanding
The midpoint of is . Endpoint is at . Where is ?
Twice the midpoint gives the sum of the endpoints, coordinate by coordinate.
The average of and is , as required.
Use exact lengths to check congruence
Coordinates can establish all three side pairs in the SSS congruence test. Equal squared lengths are enough: nonnegative lengths with equal squares are equal. Rounded decimals that merely look equal do not establish congruence.
Worked example 4 A numerical SSS check
Problem. Triangle has vertices at , at , and at . Triangle has vertices at , at , and at . Decide whether in that order. Justify all three side matches.
Solution. The proposed correspondence pairs with , with , and with . Compute their squares:
Each named pair has the same exact length. Both triples form nondegenerate triangles. Their two equal sides have length , and the third has length . The two equal sides add to more than the third because when those positive sums are squared. The other two inequalities each compare with , so they also hold. SSS proves the stated congruence. Two matching sides alone would not have completed this check.
Check your understanding
For two nondegenerate triangles with a stated vertex correspondence, which coordinate calculation completes an SSS congruence check?
Compute the three corresponding squared distances. If a side pair has squared lengths and , equality gives
Side lengths are positive, so the pair has equal lengths. Doing this for all three pairs supplies SSS. Equal perimeters or only two side matches do not supply three equal side pairs.
A distance condition can allow two endpoints
A known length need not locate one endpoint uniquely. A point can lie on either side of a fixed vertical line, so keep both signs when solving for a coordinate.
Worked example 5 Find every allowed endpoint
Problem. One endpoint is at . The other is at , where is real, and is units. Find every possible and the midpoint for each segment.
Solution. The vertical gap is , so the distance condition gives
For the left-hand possibility,
This gives at and midpoint .
For the right-hand possibility,
This gives at and midpoint . Each has horizontal gap and vertical gap , so each length checks as units. These are all possibilities because the squared equation has only these two real solutions.
If the prescribed length were less than the fixed vertical gap, there would be no endpoint. If it equaled that gap, the horizontal gap would be zero and there would be one endpoint. This checks feasibility before you trust a sketch.