🎯 In this section you will learn

πŸ“Œ Vertical Shifts

Adding a constant outside the function shifts the graph vertically.

$$ y = f(x) + k \quad \text{shifts the graph of } f \text{ UP by } k \text{ units} $$ $$ y = f(x) - k \quad \text{shifts the graph of } f \text{ DOWN by } k \text{ units} $$
Example 1Vertical Shift

$f(x) = x^2$ (parabola vertex at origin).
$g(x) = x^2 + 3$ shifts the parabola up 3 units (vertex at $(0,3)$).
$h(x) = x^2 - 2$ shifts the parabola down 2 units (vertex at $(0,-2)$).

πŸ“Œ Horizontal Shifts

Adding a constant inside the function (with $x$) shifts the graph horizontally. Warning: The direction is opposite to the sign.

$$ y = f(x - h) \quad \text{shifts the graph of } f \text{ RIGHT by } h \text{ units} $$ $$ y = f(x + h) \quad \text{shifts the graph of } f \text{ LEFT by } h \text{ units} $$
πŸ’‘ Memory Trick: Opposite Direction
Inside the function, it's "counter-intuitive": $f(x - h)$ moves right (positive direction), $f(x + h)$ moves left (negative direction).
Example 2Horizontal Shift

$f(x) = x^2$ (parabola vertex at origin).
$g(x) = (x - 2)^2$ shifts the parabola right 2 units (vertex at $(2,0)$).
$h(x) = (x + 3)^2$ shifts the parabola left 3 units (vertex at $(-3,0)$).

πŸ“Œ Vertical Stretches and Compressions

Multiplying the function by a constant $a$ stretches or compresses vertically.

$$ y = a \cdot f(x) \quad \text{where } a > 0 $$
ConditionEffectExample
$a > 1$Vertical stretch (taller)$y = 2x^2$ (parabola narrower)
$0 < a < 1$Vertical compression (shorter)$y = \frac{1}{2}x^2$ (parabola wider)

πŸ“Œ Horizontal Stretches and Compressions

Multiplying the input by a constant $b$ stretches or compresses horizontally. Warning: The effect is opposite to vertical stretches.

$$ y = f(bx) \quad \text{where } b > 0 $$
ConditionEffectExample
$b > 1$Horizontal compression (squeezed)$y = \sin(2x)$ (period shorter)
$0 < b < 1$Horizontal stretch (expanded)$y = \sin(\frac{x}{2})$ (period longer)

πŸ“Œ Reflections

$$ y = -f(x) \quad \text{reflects across the } x\text{-axis} $$ $$ y = f(-x) \quad \text{reflects across the } y\text{-axis} $$
Example 3Reflections

$f(x) = x^2$ (opens upward).
$g(x) = -x^2$ reflects across the x-axis (opens downward).
$h(x) = \sqrt{x}$ (domain $x \ge 0$).
$j(x) = \sqrt{-x}$ reflects across the y-axis (domain $x \le 0$).

πŸ“‹ Summary Table

TransformationEffect on $y = f(x)$Example
$y = f(x) + k$Shift up $k$ units$x^2 + 2$
$y = f(x) - k$Shift down $k$ units$x^2 - 3$
$y = f(x - h)$Shift right $h$ units$(x-1)^2$
$y = f(x + h)$Shift left $h$ units$(x+1)^2$
$y = a f(x)$, $a > 1$Vertical stretch$2x^2$
$y = a f(x)$, $0 < a < 1$Vertical compression$\frac{1}{2}x^2$
$y = f(bx)$, $b > 1$Horizontal compression$\sin(2x)$
$y = f(bx)$, $0 < b < 1$Horizontal stretch$\sin(x/2)$
$y = -f(x)$Reflection across x-axis$-x^2$
$y = f(-x)$Reflection across y-axis$\sqrt{-x}$

πŸ”„ Combining Transformations

When multiple transformations are applied, the order matters. Follow this order:

β‘ 
Horizontal shifts (inside)
$f(x + h)$ or $f(x - h)$
β‘‘
Horizontal stretches/compressions (inside)
$f(bx)$
β‘’
Reflections (signs)
$-f(x)$ or $f(-x)$
β‘£
Vertical stretches/compressions (outside)
$a f(x)$
β‘€
Vertical shifts (outside)
$f(x) + k$
Example 4Multiple Transformations

Describe the transformations of $g(x) = -2(x-3)^2 + 4$ from $f(x) = x^2$.

β‘ 
Inside: $(x-3)$
Shift right 3 units
β‘‘
Outside: multiply by 2
Vertical stretch by factor 2
β‘’
Outside: negative sign
Reflect across x-axis
β‘£
Outside: $+4$
Shift up 4 units

Final result: Vertex at $(3, 4)$, opens downward, narrower than $x^2$.

πŸ–ΌοΈ Visual Demonstration

Interactive graph below. Click buttons to see different transformations of $f(x) = x^2$:

πŸ” Key Takeaway
Transformations allow you to graph complex functions by starting with a basic parent function. The order of operations is: horizontal changes first (inside), then vertical changes (outside).

πŸ“ Practice Problems

Problem 1Identify Transformation

Describe the transformation from $f(x) = \sqrt{x}$ to $g(x) = \sqrt{x-2} + 3$.

Show solution

Inside $(x-2)$: shift right 2 units. Outside $+3$: shift up 3 units.

Problem 2Write the Function

Write the equation for $f(x) = |x|$ shifted left 4 units and down 1 unit.

Show solution

Left 4: $|x+4|$, down 1: $|x+4| - 1$. So $g(x) = |x+4| - 1$.

Problem 3Multiple Transformations

Describe the transformations of $h(x) = 3(x+1)^2 - 5$ from $f(x) = x^2$.

Show solution

Inside $(x+1)$: shift left 1 unit. Outside multiply by 3: vertical stretch by factor 3. Outside $-5$: shift down 5 units.

Problem 4Reflection

What transformation changes $f(x) = \sin x$ to $g(x) = \sin(-x)$?

Show solution

$\sin(-x) = -\sin x$ (since sine is odd). So it's a reflection across the x-axis (or y-axis; both give same result for sine).

Problem 5Horizontal Compression

Write the equation for $f(x) = \cos x$ compressed horizontally by a factor of 2.

Show solution

Horizontal compression by factor 2 means multiply input by 2: $g(x) = \cos(2x)$.

← Back to Module Page