01 / 22

Shifts, Stretches &
Reflections

Master the four core transformations that let you reshape any function: translate, stretch, compress, and reflect graphs with confidence.

College Algebra

What Is a Transformation?

A transformation is a rule that takes a parent function \( f(x) \) and produces a new function \( g(x) \) whose graph is a modified version of the original. Instead of plotting points from scratch, you learn a few simple rules and move or reshape a graph you already know.

The Four Families of Transformations

Vertical Shift
\( f(x) + k \): moves graph up or down by \( k \) units
Horizontal Shift
\( f(x - h) \): moves graph left or right by \( h \) units
Stretch/Compress
Multiply by \( a \) or \( b \) to scale vertically or horizontally
Reflection
Negate \( x \) or the output to flip the graph across an axis

Visual Overview

Vertical Shifts: \( f(x) + k \)

Adding a constant \( k \) to the output moves every point on the graph up (if \( k > 0 \)) or down (if \( k < 0 \)) by \( |k| \) units. The shape stays the same.

Horizontal Shifts: \( f(x - h) \)

Replacing \( x \) with \( (x - h) \) shifts the graph right by \( h \) units. Using \( (x + h) \) shifts it left. This feels counterintuitive: subtracting moves right!

Vertical Stretches & Compressions

Multiplying the output by \( a \) scales the graph vertically. If \( |a| > 1 \), the graph stretches away from the x-axis. If \( 0 < |a| < 1 \), it compresses toward the x-axis.

Horizontal Stretches & Compressions

Replacing \( x \) with \( bx \) scales the graph horizontally by a factor of \( \tfrac{1}{|b|} \). If \( |b| > 1 \), the graph compresses. If \( 0 < |b| < 1 \), it stretches. Again, opposite!

Reflections Across the Axes

\( -f(x) \)
Reflects across the x-axis: every y-value is negated. Peaks become valleys.
\( f(-x) \)
Reflects across the y-axis: the graph flips left-to-right. The shape is mirrored.

The General Transformation Form

\( a \)
Vertical stretch/compress; if negative, x-axis reflection
\( b \)
Horizontal stretch/compress; if negative, y-axis reflection
\( h \)
Horizontal shift: right if \( h > 0 \), left if \( h < 0 \)
\( k \)
Vertical shift: up if \( k > 0 \), down if \( k < 0 \)

Inside vs. Outside Changes

Inside: affects x Outside: affects y
Where it appears Inside \( f(\cdot) \) Outside \( f(x) \)
Shift \( f(x - h) \): horizontal \( f(x) + k \): vertical
Scale \( f(bx) \): horizontal \( a \cdot f(x) \): vertical
Direction Opposite to sign Same as sign

Order of Transformations

When multiple transformations are combined, apply them in the correct order. A reliable sequence is Stretches & Reflections first, then Shifts.

1
Horizontal Stretch/Reflection: Apply the change for \(b\). Start with \(f(x)\) to get \(f(bx)\).
2
Horizontal Shift: Apply the change for \(h\). Replace \(x\) with \((x-h)\) to get \(f(b(x-h))\).
3
Vertical Stretch/Reflection: Apply \(a\). Multiply the entire function by \(a\).
4
Vertical Shift: Apply \(k\). Add \(k\) to the entire function.

Example 1: Single Shift

Describe the transformation: \( g(x) = (x - 4)^2 + 2 \)

Example 2: Stretch + Reflection

Describe the transformation: \( g(x) = -3x^2 \)

Example 3: Full Transformation

Graph \( g(x) = -2(x + 1)^2 + 5 \) starting from \( f(x) = x^2 \).

1
Horizontal shift left 1: \( x + 1 = x - (-1) \), so \( h = -1 \)
2
Vertical stretch by 2: \( |a| = 2 \), graph is narrower
3
x-axis reflection: \( a < 0 \), parabola opens downward
4
Vertical shift up 5: \( k = 5 \). Final vertex: \( (-1, 5) \)

Common Mistakes

✕ Shifting the Wrong Way
Thinking \( f(x - 3) \) shifts left. It actually shifts right 3 units. Inside changes are opposite!
✕ Confusing Stretch & Compress
Assuming \( f(2x) \) stretches horizontally. It compresses by factor \( \tfrac{1}{2} \). Inside is opposite.
✕ Wrong Order of Operations
Applying vertical shift before stretch. The correct order: horizontal changes first, then vertical stretch, then vertical shift.

Transformation Summary

Transformation Form Effect
Shift up/down \( f(x) + k \) Moves graph vertically
Shift left/right \( f(x - h) \) Moves graph horizontally
Vertical stretch \( a \cdot f(x),\; |a| > 1 \) Taller / narrower
Vertical compress \( a \cdot f(x),\; 0 < |a| < 1 \) Shorter / wider
Horizontal compress \( f(bx),\; |b| > 1 \) Narrower horizontally
Horizontal stretch \( f(bx),\; 0 < |b| < 1 \) Wider horizontally
Reflect x-axis \( -f(x) \) Flip over x-axis
Reflect y-axis \( f(-x) \) Flip over y-axis

Question 1 of 5

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

Question 2 of 5

The graph of \( g(x) = f(x - 5) \) is the graph of \( f(x) \) shifted:

Question 3 of 5

What effect does the factor \( a = -2 \) have in \( g(x) = -2f(x) \)?

Question 4 of 5

If the vertex of \( f(x) = x^2 \) is at \( (0,0) \), where is the vertex of \( g(x) = (x + 3)^2 - 4 \)?

Question 5 of 5

The graph of \( g(x) = f(3x) \) is the graph of \( f(x) \):