Transformations of
Functions
Master how shifts, reflections, stretches, and compressions reshape the graph of any function \( f(x) \).
AP Precalculus
What Are Transformations?
A transformation takes a parent function \( f(x) \) and produces a new function \( g(x) \) by changing the position, shape, or orientation of its graph: without redefining the original rule.
Rigid
Shifts and reflections: the shape stays the same, only position changes.
Non-Rigid
Stretches and compressions: the shape itself changes, distances distort.
The General Form
\( a \)
Vertical stretch/compression and reflection over the \( x \)-axis
\( b \)
Horizontal stretch/compression and reflection over the \( y \)-axis
\( h \)
Horizontal shift (left/right)
\( k \)
Vertical shift (up/down)
Vertical and Horizontal Shifts
Reflections Across the Axes
\( -f(x) \)
Reflect over the x-axis: negate all y-values.
\( f(-x) \)
Reflect over the y-axis: negate all x-values.
Vertical Stretch and Compression
Horizontal Stretch and Compression
Inside vs. Outside the Function
| Inside: \( f(\text{change}) \) | Outside: \( \text{change}\cdot f(x) \) | |
|---|---|---|
| Affects | x-values (horizontal) | y-values (vertical) |
| Direction | Opposite to the sign | Same as the sign |
| Shift example | \( f(x - 3) \): right 3 | \( f(x) + 3 \): up 3 |
| Scale example | \( f(2x) \): compress by \( \frac{1}{2} \) | \( 2f(x) \): stretch by 2 |
Order of Transformations
1
Horizontal shift: replace \( x \) with \( (x - h) \).
2
Horizontal stretch/compress: replace \( x \) with \( bx \).
3
Reflect over y-axis: replace \( x \) with \( -x \) (if \( b < 0 \)).
4
Vertical stretch/compress: multiply \( f \) by \( |a| \).
5
Reflect over x-axis: negate \( f \) (if \( a < 0 \)).
6
Vertical shift: add \( k \).
How to Apply Transformations
1
Identify the parent function \( f(x) \) and sketch or recall its key points.
2
Extract parameters: read \( a \), \( b \), \( h \), and \( k \) from the equation \( g(x) = a \cdot f(b(x-h)) + k \).
3
Apply horizontal changes: shift by \( h \), then scale by \( \frac{1}{b} \).
4
Apply vertical changes: stretch/reflect by \( a \), then shift by \( k \).
5
Plot transformed key points and connect to sketch the new graph.
Example 1: Shift a Parabola
Example 2: Reflect and Stretch
Example 3: Multiple Transformations
1
Parent function: \( f(x) = |x| \) (V-shape, vertex at origin).
2
Horizontal shift left 4: \( x + 4 = x - (-4) \), so \( h = -4 \).
3
Vertical compression by \( \frac{1}{2} \): \( |a| = \frac{1}{2} < 1 \).
4
Reflection over \( x \)-axis: \( a = -\frac{1}{2} \), the negative sign flips the V upside down.
5
Vertical shift up 3: \( k = 3 \). New vertex: \( (-4, 3) \).
Common Mistakes
✕ Wrong Shift Direction
Seeing \( f(x - 3) \) and shifting left instead of right. Remember: the sign inside is opposite to the shift direction.
✕ Confusing Stretch with Compress
Thinking \( f(2x) \) stretches horizontally. It actually compresses by \( \frac{1}{2} \): the reciprocal rule.
✕ Wrong Order of Operations
Applying vertical shift before stretch. Always apply stretches and reflections first, then shifts.
Summary of All Transformations
| Transformation | Equation Form | Effect on Graph |
|---|---|---|
| Vertical shift up | \( f(x) + k \) | Move up \( k \) units |
| Vertical shift down | \( f(x) - k \) | Move down \( k \) units |
| Horizontal shift right | \( f(x - h) \) | Move right \( h \) units |
| Horizontal shift left | \( f(x + h) \) | Move left \( h \) units |
| Reflect over x-axis | \( -f(x) \) | Flip vertically |
| Reflect over y-axis | \( f(-x) \) | Flip horizontally |
| Vertical stretch | \( a \cdot f(x),\; a > 1 \) | Taller by factor \( a \) |
| Vertical compress | \( a \cdot f(x),\; 0 < a < 1 \) | Flatter by factor \( a \) |
| Horizontal compress | \( f(bx),\; b > 1 \) | Narrower by \( \frac{1}{b} \) |
| Horizontal stretch | \( f(bx),\; 0 < b < 1 \) | Wider by \( \frac{1}{b} \) |
Question 1 of 5
The graph of \( g(x) = (x + 5)^2 - 3 \) is obtained from \( f(x) = x^2 \) by:
Since \( x + 5 = x - (-5) \), we have \( h = -5 \), so the graph shifts left 5. The \( -3 \) outside means \( k = -3 \), shifting down 3.
Question 2 of 5
Which transformation does \( g(x) = f(3x) \) represent?
When the input \( x \) is multiplied by \( b = 3 \), the graph is compressed horizontally by a factor of \( \frac{1}{b} = \frac{1}{3} \). The effect on the horizontal axis is always the reciprocal of \( b \).
Question 3 of 5
If the point \( (2, 5) \) lies on the graph of \( f(x) \), what point must lie on the graph of \( g(x) = -f(x) + 4 \)?
Start with \( (2, 5) \). Apply \( -f(x) \): negate the y-value to get \( (2, -5) \). Then add 4: \( (2, -5 + 4) = (2, -1) \). The x-coordinate is unchanged because the transformations are outside the function.
Question 4 of 5
The function \( g(x) = 3|x - 2| + 1 \) has its vertex at which point?
The parent \( |x| \) has its vertex at the origin. In \( 3|x - 2| + 1 \), the \( h = 2 \) shifts right 2, and \( k = 1 \) shifts up 1. The vertical stretch \( a = 3 \) does not move the vertex. So the vertex is at (2, 1).
Question 5 of 5
Which equation represents the graph of \( f(x) = x^2 \) after a reflection over the y-axis followed by a vertical shift up 6?
Reflect over the y-axis: replace \( x \) with \( -x \) to get \( (-x)^2 \). Then shift up 6: add 6 to get \( (-x)^2 + 6 \). Note: since \( (-x)^2 = x^2 \), the reflection has no visible effect on this particular function (because \( x^2 \) is even), but the algebraic form is \( (-x)^2 + 6 \).