Coordinate Geometry and Transformations
Use distance, midpoint and slope formulas, test for parallel and perpendicular lines, and move shapes with reflections, rotations and dilations.
Welcome back!
Step 1 of 12Learn
Geometry with numbers
Every pixel on your screen and every location in a video game map has coordinates. Once shapes have coordinates, you can measure them with formulas instead of rulers.
Distance formula. The distance between (x1, y1) and (x2, y2) comes straight from the Pythagorean theorem. The horizontal leg is x2 − x1 and the vertical leg is y2 − y1, so
d = √((x2 − x1)2 + (y2 − y1)2)
From (1, 2) to (7, 10): the legs are 6 and 8, so d = √(36 + 64) = √100 = 10.
Midpoint formula. The midpoint averages the coordinates:
M = ((x1 + x2) / 2, (y1 + y2) / 2)
The midpoint of (1, 2) and (7, 10) is (4, 6).
The order of the points does not matter for distance, because squaring removes any negative sign. It is a good habit to sketch the points first, so you can tell if an answer is reasonable.
Step 2 of 12Practice · Work it out
What is the distance between the points (−2, 3) and (10, 8)?
Step 3 of 12Try the calculator
Two-point calculator
Enter two points to get the distance, the midpoint and the slope of the segment between them.
- Distance
- 10
- Midpoint x
- 4
- Midpoint y
- 6
- Slope
- 1.333
Step 4 of 12Learn
Slopes reveal parallel and perpendicular lines
The slope of the segment from (x1, y1) to (x2, y2) is rise over run: m = (y2 − y1) / (x2 − x1).
Slopes answer two geometry questions instantly:
- Parallel lines have equal slopes. Lines with slopes 3/4 and 3/4 never meet.
- Perpendicular lines have slopes that are negative reciprocals. Flip the fraction and change the sign: a line with slope 2/3 is perpendicular to one with slope −3/2. Their product is always −1.
Horizontal lines (slope 0) and vertical lines (undefined slope) are perpendicular to each other too, even though the product rule cannot be applied.
Example: is the quadrilateral with vertices A(0, 0), B(4, 2), C(3, 4), D(−1, 2) a rectangle? Slope AB = 2/4 = 1/2, slope BC = 2/(−1) = −2, slope CD = −2/(−4) = 1/2, slope DA = 2/(−1) = −2. Opposite sides have equal slopes (a parallelogram), and neighboring slopes 1/2 and −2 multiply to −1 (right angles). So ABCD is a rectangle.
Step 5 of 12Explore
Slope and steepness
The line is y = m·x + b. Drag m to change the slope and b to slide the line up or down. A negative m tilts it downhill.
- Slope of a parallel line
- 2
- Rise for a run of 3
- 6
Step 6 of 12Practice · Choose one
Line p has slope 2/5. What is the slope of a line perpendicular to p?
Step 7 of 12Learn
Moving shapes: the four transformations
A transformation moves every point of a figure by a rule. The original is the pre-image; the result is the image, often labeled with a prime: A becomes A′.
| Transformation | What it does | Coordinate rule (example) |
|---|---|---|
| Translation | slides | (x, y) → (x + 3, y − 2) |
| Reflection over the x-axis | flips up and down | (x, y) → (x, −y) |
| Reflection over the y-axis | flips left and right | (x, y) → (−x, y) |
| Rotation 90° counterclockwise about the origin | turns a quarter turn | (x, y) → (−y, x) |
| Rotation 180° about the origin | turns a half turn | (x, y) → (−x, −y) |
| Dilation by factor k from the origin | enlarges or shrinks | (x, y) → (kx, ky) |
Translations, reflections and rotations are rigid motions: they keep every length and angle the same, so the image is congruent to the pre-image. In fact, congruence can be defined this way: two figures are congruent if a sequence of rigid motions maps one onto the other.
A dilation keeps angles but multiplies lengths by k, so the image is similar, not congruent, unless k = 1.
Step 8 of 12Practice · Match the pairs
Match each transformation to what it does to the point (2, 5).
Tap an answer, then tap the place where it belongs (or drag it there).
- Reflection over the x-axis
- Reflection over the y-axis
- Rotation 180° about the origin
- Rotation 90° counterclockwise about the origin
- Dilation by factor 3 from the origin
Step 9 of 12Compare
The four transformations
| Aspect | Translation | Reflection | Rotation | Dilation |
|---|---|---|---|---|
| Everyday name | Slide | Flip | Turn | Zoom |
| Keeps size | Yes | Yes | Yes | No (unless k = 1) |
| Keeps orientation | Yes | No: mirror image | Yes | Yes |
| Image is | Congruent | Congruent | Congruent | Similar |
Step 10 of 12Note
Step 11 of 12Practice · Fill in the blanks
Fill in the blanks
The point (3, −4) is reflected over the y-axis. Its image is (, ).
Step 12 of 12Practice · Work it out
M(4, 1) is the midpoint of segment AB. Point A is (1, −3). What is the y-coordinate of point B?
Lesson complete!