Sub topic 7
Flipping a Graph Across the x-Axis and y-Axis
Assume you know function notation, can evaluate a function, and can plot points on the coordinate plane. A reflection is a transformation that flips a graph across a line. For function graphs, the two main reflections are across the x-axis and the y-axis.
Reflection across the x-axis
To reflect the graph of \(y=f(x)\) across the x-axis, negate every output:
\[ g(x)=-f(x) \]
A point \((x,y)\) becomes \((x,-y)\). The x-coordinate stays the same, while the y-coordinate changes sign.
For example, let \(f(x)=x^2\). Then
\[ g(x)=-f(x)=-x^2 \]
The point \((2,4)\) on \(y=x^2\) becomes \((2,-4)\) on \(y=-x^2\). The parabola changes from opening upward to opening downward.
f = lambda x: x ** 2
g = lambda x: -f(x)
for x in [-2, -1, 0, 1, 2]:
print((x, f(x)), "->", (x, g(x)))The transformation changes the range but usually leaves the domain unchanged. If \(f\) has range \([0,\infty)\), then \(-f\) has range \((-\infty,0]\).
Reflection across the y-axis
To reflect \(y=f(x)\) across the y-axis, replace the input \(x\) with \(-x\):
\[ g(x)=f(-x) \]
A point \((x,y)\) becomes \((-x,y)\). The y-coordinate stays the same, while the x-coordinate changes sign.
For \(f(x)=\sqrt{x}\), the reflected function is
\[ g(x)=f(-x)=\sqrt{-x} \]
The original graph starts at \((0,0)\) and extends right. The new graph starts at \((0,0)\) and extends left. Its domain changes from \(x\ge 0\) to \(x\le 0\), while its range remains \(y\ge 0\).
The input change can feel backward. The negative sign is inside the function, so it changes horizontal positions. A useful check is to track a point directly:
\[ f(3)=5 \quad\Longrightarrow\quad f(-3)=5 \]
Thus, \((3,5)\) becomes \((-3,5)\).
Common errors
| Expression | Reflection | Point mapping |
|---|---|---|
| \(-f(x)\) | Across the x-axis | \((x,y)\to(x,-y)\) |
| \(f(-x)\) | Across the y-axis | \((x,y)\to(-x,y)\) |
| \(-f(-x)\) | Across both axes | \((x,y)\to(-x,-y)\) |
A frequent mistake is confusing \(-f(x)\) with \(f(-x)\). The first changes the output, so it is vertical. The second changes the input, so it is horizontal.
Another mistake is writing \(f(x)-1\) when a reflection is needed. Subtracting 1 shifts a graph down; it does not flip it.
Symmetry connection
A function is even if
\[ f(-x)=f(x) \]
Its graph has y-axis symmetry. For example, \(f(x)=x^2\) is even.
A function is odd if
\[ f(-x)=-f(x) \]
Its graph has origin symmetry. For example, \(f(x)=x^3\) is odd. Reflecting an odd graph across the y-axis produces the same result as reflecting it across the x-axis.
Exercise
The graph of f contains the point (−4, 7). What point appears after reflecting the graph across the x-axis? What point appears after reflecting it across the y-axis?
Show answer
Across the x-axis, the point becomes (−4, −7). Across the y-axis, it becomes (4, 7).