Sub topic 10
Reflecting points across the axes
Prerequisites and what this chapter covers
This chapter assumes you can plot and read points in all four quadrants, know how the signs of x and y place a point in a quadrant, and can find horizontal and vertical distances from an axis. It covers reflecting a point across the x-axis or the y-axis, and it also covers reflecting across both axes in turn. It also covers the common mistakes and how to check your work.
What a reflection is
A reflection flips a point across a line, as if the line were a mirror. The original point is the preimage. The reflected point is the image. Two facts define a reflection:
- The point and its image are the same distance from the mirror line.
- The segment joining them is perpendicular to the mirror line, so the mirror line cuts that segment exactly in half.
On the coordinate plane the mirror is usually an axis. The axes are special because they are horizontal and vertical lines through the origin, so the distance from a point to an axis is just the absolute value of one coordinate. That is what makes the rules below so short.
Reflecting across the x-axis
The x-axis is the horizontal line y = 0. Take the point (1, 2). It sits 2 units above the x-axis. Its mirror image must sit 2 units below the x-axis, directly under it. Moving straight down does not change the x-coordinate, so the image is (1, -2).
The rule is:
- Reflection across the x-axis: (x, y) becomes (x, -y).
The x-coordinate stays the same. The y-coordinate changes sign. The segment from (1, 2) to (1, -2) is vertical, so it is perpendicular to the x-axis, and it crosses the axis at (1, 0).
Reflecting across the y-axis
The y-axis is the vertical line x = 0. Take (1, 2) again. It sits 1 unit to the right of the y-axis. Its image must sit 1 unit to the left, at the same height. The image is (-1, 2).
- Reflection across the y-axis: (x, y) becomes (-x, y).
The y-coordinate stays the same. The x-coordinate changes sign.
A memory aid that holds up: the axis you reflect across is the coordinate that does not change sign. Wait, that is backwards, so be careful. Reflecting across the x-axis changes the y-coordinate. Reflecting across the y-axis changes the x-coordinate. The coordinate that changes is the one measured away from the mirror. For the x-axis mirror, y measures distance from it. For the y-axis mirror, x does.
How reflection moves a point between quadrants
Because reflection changes one sign, it moves a point to a neighbouring quadrant. The table shows where a point in quadrant I lands.
| Start | Reflect across | Image | Image quadrant |
|---|---|---|---|
| (3, 2) | x-axis | (3, -2) | IV |
| (3, 2) | y-axis | (-3, 2) | II |
| (3, 2) | both axes | (-3, -2) | III |
The general pattern follows from the sign rules in the quadrants chapter. A reflection across the x-axis swaps quadrant I with IV and quadrant II with III. A reflection across the y-axis swaps quadrant I with II and quadrant III with IV. Reflecting across both axes sends each quadrant to the one diagonally opposite.
Code for the two reflections
The functions below unpack a point, then return it with one sign flipped. The third function reflects across the y-axis and then the x-axis, which gives the same result as reflecting in the other order.
def reflect_x_axis(point):
x, y = point
return (x, -y)
def reflect_y_axis(point):
x, y = point
return (-x, y)
def reflect_both(point):
return reflect_x_axis(reflect_y_axis(point))
a = (1, 2)
print(reflect_x_axis(a))
print(reflect_y_axis(a))
print(reflect_both(a))
print(reflect_both(reflect_both(a)))The output is (1, -2), (-1, 2), (-1, -2) and (1, 2). The last line shows that applying the same reflection twice returns the original point. A reflection undoes itself, so it is its own inverse.
Edge cases
Points on the mirror axis
A point that lies on an axis does not move when reflected across that axis. The point (4, 0) is on the x-axis. Reflecting gives (4, -0), which is (4, 0). The same holds for (0, 5) and the y-axis. This matches the definition: the distance to the mirror is 0, so the image is also 0 away, which is the same place.
Points on the other axis
A point on the x-axis, such as (4, 0), reflects across the y-axis to (-4, 0). It stays on the x-axis but moves to the opposite side of the origin. Likewise (0, 5) reflects across the x-axis to (0, -5). These points change quadrant-free positions, since they were never in a quadrant.
The origin
The origin (0, 0) lies on both axes, so it is unchanged by every reflection in this chapter.
Negative zero in code
Floating-point numbers have a negative zero. In Python, -0.0 prints as -0.0, while the integer -0 is just 0. If your coordinates are floats, reflecting (4.0, 0.0) across the x-axis gives (4.0, -0.0). The value compares equal to 0.0, so == still works, but the printed text differs. Convert integers or add 0.0 if you need clean output: -0.0 + 0.0 evaluates to 0.0.
p = (4.0, 0.0)
q = (p[0], -p[1])
print(q)
print(q == p)
print((q[0], q[1] + 0.0))This prints (4.0, -0.0), then True, then (4.0, 0.0).
Reflecting a shape
To reflect a shape, reflect each vertex and then join the images in the same order. A triangle with vertices A(1, 1), B(4, 1) and C(1, 3) reflects across the y-axis to A'(-1, 1), B'(-4, 1) and C'(-1, 3). The prime mark (') is the usual way to name an image point.
Two properties are worth checking:
- Side lengths and angles are preserved. A reflection is an isometry, a transformation that keeps distances. Side AB has length 3, and so does A'B'.
- Orientation reverses. Going A to B to C turns counterclockwise in the original and clockwise in the image. This is why a reflected shape looks like a mirror image and cannot be turned into the original by sliding alone.
You can confirm the length claim with the distance function from the standard library.
import math
def reflect_y_axis(point):
x, y = point
return (-x, y)
triangle = [(1, 1), (4, 1), (1, 3)]
image = [reflect_y_axis(p) for p in triangle]
print(image)
print(math.dist(triangle[0], triangle[1]))
print(math.dist(image[0], image[1]))The image is [(-1, 1), (-4, 1), (-1, 3)], and both distances print as 3.0.
Common errors
- Changing both signs. Writing (-1, -2) for a single reflection of (1, 2) is a half-turn about the origin, which equals reflecting across both axes. A single reflection changes exactly one sign.
- Changing the wrong sign. Learners often match the name of the axis to the coordinate that changes. Reflecting across the x-axis changes y. Check by looking at the direction of movement: across the x-axis the point moves up or down, so y changes.
- Swapping the coordinates. Writing (2, 1) for the image of (1, 2) is a reflection across the line y = x, a different mirror. The axes never swap x and y.
- Reflecting a point on the axis. Expecting (4, 0) to move when reflected across the x-axis. It stays put.
- Mixing up preimage and image when working backwards. If the image across the y-axis is (-3, 5), the original is (3, 5). The rule undoes itself, so apply it again.
A quick check you can always run
Use the midpoint idea from the distance chapters. The midpoint of a point and its image should lie on the mirror. For (1, 2) and (1, -2), the midpoint is (1, 0), which has y = 0 and so lies on the x-axis. For (1, 2) and (-1, 2), the midpoint is (0, 2), which lies on the y-axis. If the midpoint is not on the axis, the reflection is wrong.
def midpoint(p, q):
return ((p[0] + q[0]) / 2, (p[1] + q[1]) / 2)
a = (1, 2)
print(midpoint(a, (1, -2)))
print(midpoint(a, (-1, 2)))The output is (1.0, 0.0) followed by (0.0, 2.0).
Summary of rules
| Transformation | Rule | What stays the same |
|---|---|---|
| Reflect across the x-axis | (x, y) to (x, -y) | x-coordinate |
| Reflect across the y-axis | (x, y) to (-x, y) | y-coordinate |
| Reflect across both axes | (x, y) to (-x, -y) | distance from the origin |
Exercise
The point P(-5, 3) is reflected across the x-axis to give P'. Then P' is reflected across the y-axis to give P''. Find P' and P'', name the quadrant of each of the three points, and state a single rule that takes P straight to P''.
Show answer
Reflecting P(-5, 3) across the x-axis changes the sign of y, so P' = (-5, -3). Reflecting P' across the y-axis changes the sign of x, so P'' = (5, -3). P is in quadrant II (x negative, y positive), P' is in quadrant III (both negative), and P'' is in quadrant IV (x positive, y negative). The single rule is (x, y) to (-x, -y), which is a reflection across both axes.
Exercise
A triangle has vertices A(2, 1), B(6, 1) and C(2, 4). Reflect it across the y-axis and list the image vertices. Then say whether side lengths change, and explain how you can check that A and A' are correct using a midpoint.
Show answer
The image vertices are A'(-2, 1), B'(-6, 1) and C'(-2, 4). Side lengths do not change, because a reflection preserves distance. For example, AB = 4 and A'B' = 4. For the midpoint check, the midpoint of A(2, 1) and A'(-2, 1) is (0, 1), which has x = 0 and so lies on the y-axis. That confirms A' is the correct mirror image.
Exercise
The image of a point under reflection across the x-axis is (7, -4). What was the original point? What happens if the original point was on the x-axis?
Show answer
Applying the same rule again undoes the reflection, so the original point is (7, 4). If the original point were on the x-axis, its y-coordinate would be 0, and the image would equal the original point because the point is already on the mirror.