01 / 20

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

x y f(x) = x² f(x) + k f(x − h) +k (up) +h (right)

Reflections Across the Axes

x y f(x) −f(x) f(−x)
\( -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

x y 2f(x) 0.5f(x) f(x)

Horizontal Stretch and Compression

x y f(2x) f(0.5x) f(x)

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

2 3 4 1 2 4 0 (3, 2) right 3, up 2 (0,0)

Example 2: Reflect and Stretch

x y 2 4 6 f(x) = √x g(x) = −2√x reflect + 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:

Question 2 of 5

Which transformation does \( g(x) = f(3x) \) represent?

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 \)?

Question 4 of 5

The function \( g(x) = 3|x - 2| + 1 \) has its vertex at which point?

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?