Function Transformations: Shifts, Reflections, Stretches
Solver AI TeamPublished Updated 12 min read
Master function transformations with this complete guide. Learn how shifts, reflections, stretches, and compressions change the graph of any function, and how to combine multiple transformations.
Frequently asked questions
Why does f(x − 3) shift the graph to the right?
The new function g(x) = f(x − 3) gives the same output as f only when its input is 3 larger. For instance, g(3) = f(0). So every point of the graph moves 3 units right. Changes inside the parentheses act on the input, so they work in the opposite direction from what you might expect.
In what order do you apply transformations?
Write the function as a · f(b(x − h)) + k, factoring b out of the input. Then apply the stretches and reflections first (the a and b parts), and the shifts (h and k) last. Doing a shift before a stretch can put the graph in the wrong place.
What is the difference between f(−x) and −f(x)?
The function −f(x) reflects the graph over the x-axis, flipping it upside down. The function f(−x) reflects it over the y-axis, flipping it left to right. For f(x) = √x, the graph of −√x lies below the x-axis, while √(−x) extends to the left of the y-axis.
How do you tell a stretch from a compression?
For a vertical change a · f(x), a stretch happens when |a| > 1 and a compression when 0 < |a| < 1. For a horizontal change f(bx), it is reversed: |b| > 1 compresses the graph horizontally by a factor of 1/|b|, and 0 < |b| < 1 stretches it. So f(2x) is half as wide as f(x).
How do you transform y = x² into y = 2(x + 1)² − 3?
Start with y = x². The (x + 1) shifts it 1 unit left, the factor 2 stretches it vertically by a factor of 2, and the −3 shifts it 3 units down. The vertex moves from (0, 0) to (−1, −3), and the parabola opens upward and is narrower than the original.
A vertical shift moves a graph up or down without changing its shape.
The Rule — Vertical Shifts
If f(x) is the original function, then f(x) + k shifts the graph up by k units when k > 0 and down by |k| units when k < 0. The transformation is applied to the output of the function — every y-value increases or decreases by the same amount.
Example — shifting a parabola
If f(x) = x², then g(x) = x² + 3 is the same parabola shifted 3 units up, and h(x) = x² − 5 is the same parabola shifted 5 units down.
The vertex of f was at (0, 0); after the shifts, the vertex of g is at (0, 3) and the vertex of h is at (0, −5).
Notice that the x-coordinate doesn't change — only the y-coordinate.
The Key Insight
Vertical shifts are the most intuitive transformation because they work exactly the way you would expect: adding a positive number moves the graph up, adding a negative number moves it down. The shape, orientation, and width of the graph remain completely unchanged. Every point on the graph moves by exactly the same vertical distance.
Horizontal Shifts (Left and Right)
A horizontal shift moves a graph left or right. Here's where students often get tripped up: the rule is counterintuitive.
The Rule — Horizontal Shifts
The function f(x − h) shifts the graph right by h units when h > 0, and left by |h| units when h < 0. The sign inside the parentheses is opposite of what you might expect.
Example — shifting horizontally
g(x) = (x − 3)² shifts x² to the right by 3 (not left). The new vertex is at (3, 0).
Similarly, h(x) = (x + 4)² shifts the graph to the left by 4, with the new vertex at (−4, 0).
Why the opposite sign?
Why the opposite sign? Think of it this way: to get the same y-value as the original function, the input x needs to be larger by h to cancel the −h inside the parentheses. For example, f(x) = x² gives f(0) = 0. For g(x) = (x − 3)² to give the same value of 0, we need x = 3. So every feature of the graph moves 3 units to the right.
The Key Insight
A helpful rule of thumb: transformations inside the function (affecting x) behave oppositely to what you expect. Transformations outside the function (affecting y) behave as expected.
Reflections Over the Axes
A reflection flips the graph across a line, creating a mirror image. There are two basic reflections in function transformations.
The Rule — Reflection over the x-axis
Reflection over the x-axis:−f(x) reflects the graph across the x-axis. Every y-coordinate becomes its negative. If a point (a, b) was on the original graph, (a, −b) is on the reflected graph.
Example — flipping a parabola
f(x) = x² opens upward, but −f(x) = −x² opens downward — the parabola is flipped upside down.
The Rule — Reflection over the y-axis
Reflection over the y-axis:f(−x) reflects the graph across the y-axis. Every x-coordinate becomes its negative. If a point (a, b) was on the original graph, (−a, b) is on the reflected graph.
Example — reflecting a square root
f(x) = √x only exists for x ≥ 0 (right side of the y-axis). After reflection, f(−x) = √(−x) only exists for x ≤ 0 (left side). It is the mirror image.
Even and odd functions
Definition — Even and Odd Functions
Even and odd functions: If f(−x) = f(x), the function is even and is symmetric about the y-axis (reflecting it gives back the same function). If f(−x) = −f(x), the function is odd and is symmetric about the origin. Polynomials with only even powers are even functions (like x², x⁴). Polynomials with only odd powers are odd functions (like x, x³).
Vertical Stretch and Compression
A vertical stretch or compression scales the graph vertically by multiplying the output by a constant.
The Rule — Vertical Stretch/Compression
The transformation a · f(x) behaves as follows: if |a| > 1, the graph is stretched vertically by a factor of a — it becomes taller and narrower-looking. If 0 < |a| < 1, the graph is compressed vertically by a factor of a — it becomes shorter and wider-looking. If a < 0, the graph is also reflected over the x-axis.
Example 1 — vertical stretch
f(x) = x² has its vertex at (0, 0) and passes through (1, 1) and (2, 4).
The function g(x) = 3x² is stretched vertically by a factor of 3 — it passes through (1, 3) and (2, 12).
The parabola looks "skinnier" because it rises faster.
Example 2 — vertical compression
h(x) = (1/2)x² is compressed vertically by a factor of 1/2 — it passes through (1, 1/2) and (2, 2).
The parabola looks "wider" because it rises more slowly.
The Key Insight
Key insight: Vertical stretches and compressions don't move x-intercepts. Since the x-intercepts have y = 0, multiplying by a still gives 0, so these points stay put. Only non-zero y-values are affected. Vertical stretches multiply all y-coordinates by a, leaving x-coordinates unchanged.
Horizontal Stretch and Compression
A horizontal stretch or compression scales the graph horizontally by multiplying the input by a constant. Again, this is counterintuitive because transformations inside the function behave oppositely.
The Rule — Horizontal Stretch/Compression
The transformation f(bx) behaves as follows: if |b| > 1, the graph is compressed horizontally by a factor of 1/b — it becomes narrower. If 0 < |b| < 1, the graph is stretched horizontally by a factor of 1/b — it becomes wider. If b < 0, the graph is also reflected over the y-axis.
Example 1 — horizontal compression of sine
f(x) = sin(x) has period 2π.
The function g(x) = sin(2x) is compressed horizontally by a factor of 1/2 — its period becomes π.
The graph oscillates twice as fast.
Example 2 — horizontal stretch of sine
h(x) = sin(x/2) is stretched horizontally by a factor of 2 — its period becomes 4π.
The graph oscillates half as fast.
Why the inverse?
Why the inverse? To get the same y-value from f(bx) as from f(x), the new input x must be 1/b times the original input. So if b = 2, the new x is half the original — the graph is squeezed toward the y-axis by a factor of 2.
The Key Insight
Horizontal stretches and compressions don't move y-intercepts (since they occur at x = 0) but do scale all x-coordinates by 1/b.
Combining Multiple Transformations
Most problems involve multiple transformations applied together. The general form is g(x) = a · f(b(x − h)) + k, where a controls vertical stretch/reflection, b controls horizontal stretch/reflection, h controls horizontal shift, and k controls vertical shift.
The correct order of operations
Horizontal shift
Horizontal shift (x − h).
Horizontal stretch/compression
Horizontal stretch/compression (multiply by b).
Horizontal reflection
Horizontal reflection (if b < 0).
Vertical stretch/compression
Vertical stretch/compression (multiply by a).
Vertical reflection
Vertical reflection (if a < 0).
Vertical shift
Vertical shift (add k).
The Key Insight
A useful shortcut: inside operations happen in reverse order, outside operations happen in normal order.
Example — combined transformations
Given g(x) = −2(x − 3)² + 5. Starting from f(x) = x²:
(1) shift right 3, giving (x − 3)²;
(2) stretch vertically by 2, giving 2(x − 3)²;
(3) reflect over x-axis, giving −2(x − 3)²;
(4) shift up 5, giving −2(x − 3)² + 5.
Answerupside-down parabola with vertex (3, 5), stretched by 2
The result is an upside-down parabola with vertex (3, 5), stretched vertically by a factor of 2.
Checking your work
Checking your work: Pick a specific point, apply each transformation step-by-step, and verify the result matches the transformed function. For (1, 1) on f(x) = x²: shift right 3 → (4, 1); stretch by 2 → (4, 2); reflect → (4, −2); shift up 5 → (4, 3). Check: g(4) = −2(1)² + 5 = 3. ✓
The Takeaway
If you want to verify your function transformation work or see every step explained, scan the problem with Solver AI for an instant breakdown.