Pre-Calculus: Function Transformations
AI-Generated Content
Pre-Calculus: Function Transformations
Mastering function transformations is like learning the grammar of graphs. It allows you to predict how the graph of any equation will behave without plotting countless points, a skill foundational for calculus, engineering design, and data modeling. By understanding a few core rules, you can deconstruct complex functions into simpler parts and sketch them with precision.
The Foundation: Parent Functions and the Language of Change
Every transformation starts with a reference point called a parent function. This is the simplest, untransformed version of a function family, such as $f(x) = x^2$ for quadratics or $f(x) = |x|$ for absolute value functions. A function transformation is an algebraic modification that moves, flips, or stretches this parent graph.
We describe transformations using a standardized notation. The transformed function is often written as $g(x) = a \cdot f(b(x - c)) + d$, where the parameters $a$, $b$, $c$, and $d$ each control a specific type of change. It’s crucial to view this as a process applied to the output ($y$-values) or the input ($x$-values) of the parent function.
Vertical Shifts and Horizontal Shifts
The simplest transformations are translations, which slide the entire graph without changing its shape or orientation.
A vertical shift adds or subtracts a constant $d$ to the output of the function. For $g(x) = f(x) + d$:
- If
$d > 0$, the graph shifts up by$d$units. - If
$d < 0$, the graph shifts down by$|d|$units.
For example, if $f(x) = x^2$, then $g(x) = x^2 + 3$ shifts the parabola up 3 units. Every point $(x, y)$ on $f(x)$ moves to $(x, y+3)$ on $g(x)$.
A horizontal shift adds or subtracts a constant $c$ to the input of the function. For $g(x) = f(x - c)$:
- If
$c > 0$, the graph shifts right by$c$units. - If
$c < 0$, the graph shifts left by$|c|$units.
This rule often causes confusion because the operation inside the function appears opposite to the direction of movement. For $f(x) = x^2$, the function $g(x) = (x - 4)^2$ shifts the parabola right 4 units, not left. The point $(0,0)$ on $f(x)$ moves to $(4, 0)$ on $g(x)$.
Reflections Across the Axes
Reflections flip the graph over a specific axis, creating a mirror image.
A reflection across the x-axis is achieved by multiplying the output of the function by -1: $g(x) = -f(x)$. This vertically flips the graph. Every point $(x, y)$ becomes $(x, -y)$. For $f(x) = \sqrt{x}$, the graph of $g(x) = -\sqrt{x}$ is the same curve flipped downward below the x-axis.
A reflection across the y-axis is achieved by multiplying the input of the function by -1: $g(x) = f(-x)$. This horizontally flips the graph. Every point $(x, y)$ becomes $(-x, y)$. For $f(x) = \sqrt{x}$ (which has a domain of $x \geq 0$), the graph of $g(x) = \sqrt{-x}$ flips to the left side, with a domain of $x \leq 0$.
Vertical and Horizontal Stretches and Compressions
These transformations alter the graph's shape by pulling it away from or squeezing it toward an axis.
A vertical stretch or compression multiplies the output by a constant factor $a$: $g(x) = a \cdot f(x)$.
- If
$|a| > 1$, it's a vertical stretch. The graph is pulled away from the x-axis, making it appear taller and steeper. - If
$0 < |a| < 1$, it's a vertical compression. The graph is pressed toward the x-axis, making it appear shorter and wider. - The sign of
$a$also controls reflection, as noted above.
For $f(x) = x^2$, the graph of $g(x) = 3x^2$ is a vertically stretched parabola, while $h(x) = \frac{1}{2}x^2$ is a vertically compressed one.
A horizontal stretch or compression multiplies the input by a constant factor $b$: $g(x) = f(b \cdot x)$.
- If
$|b| > 1$, it's a horizontal compression. The graph is pressed toward the y-axis. The function "completes" its behavior in a smaller horizontal interval. - If
$0 < |b| < 1$, it's a horizontal stretch. The graph is pulled away from the y-axis. The function's behavior is spread over a wider horizontal interval. - The sign of
$b$controls horizontal reflection.
This is the most counterintuitive rule: a multiplier greater than 1 on the inside causes a compression. For $f(x) = x^2$, the graph of $g(x) = (2x)^2$ is horizontally compressed. The vertex is unchanged, but the point $(1,1)$ on $f(x)$ corresponds to the point $(0.5, 1)$ on $g(x)$.
Combining Multiple Transformations
Real-world functions combine several transformations. The key is to apply them in a systematic order to avoid errors. A reliable sequence is:
- Horizontal shifts (
$x - c$) - Horizontal stretches/compressions & reflections (
$b \cdot x$) - Vertical stretches/compressions & reflections (
$a \cdot f$) - Vertical shifts (
$+ d$)
You can remember this as working "inside the function" (affecting $x$) first, then "outside the function" (affecting $y$).
Example: Describe the transformations that turn $f(x) = \sqrt{x}$ into $g(x) = -2\sqrt{x + 1} - 3$.
- Inside the square root:
$(x + 1)$is a horizontal shift left 1 unit. - Outside, before the vertical shift: The
$-2$indicates a vertical stretch by a factor of 2 and a reflection across the x-axis. - Outside, last: The
$-3$indicates a vertical shift down 3 units.
To sketch $g(x)$, you would take the graph of $\sqrt{x}$, shift it left 1, stretch it vertically by 2 and flip it, then shift it down 3.
Common Pitfalls
- Reversing Horizontal Shift Direction: The most frequent error is misapplying horizontal shifts. Remember:
$f(x - c)$shifts right$c$units. Think, "What input to$f$gives me the old output?" For$g(x) = f(x - 5)$, you need a larger$x$(5 units larger) to get the same$y$value, hence the graph moved right.
- Confusing Horizontal and Vertical Effects: Students often mix up the rules for stretches. A multiplier outside (
$a$) affects$y$-values and is vertical. A multiplier inside ($b$) affects$x$-values and is horizontal. A good check: If the transformation is applied to$x$before the function does its work, it's horizontal.
- Incorrect Order of Operations with Combined Transforms: Applying transformations out of sequence yields the wrong graph. For
$g(x) = 2f(x) + 5$versus$h(x) = 2(f(x) + 5)$, the results differ. In the first, you stretch then shift up. In the second, you shift up then stretch—the vertical shift gets stretched too! Always follow the inside-out order.
- Ignoring the Effect on Domain and Range: Transformations, especially horizontal shifts and reflections, can change the set of valid inputs (domain) and outputs (range). For
$f(x) = \sqrt{x}$with domain$[0, \infty)$, the transformed function$g(x) = \sqrt{x - 3}$has a domain of$[3, \infty)$. Always recalculate the domain and range after all transformations.
Summary
- Transformations are predictable rules: Shifts add constants, reflections multiply by -1, and stretches/compressions multiply by factors other than 1.
- Operations inside
$f(\ )$affect the graph horizontally and often feel "opposite." Operations outside$f(\ )$affect the graph vertically and behave intuitively. - The standard transformation form is
$g(x) = a \cdot f(b(x - c)) + d$, where$c$controls horizontal shift,$b$controls horizontal stretch/reflection,$a$controls vertical stretch/reflection, and$d$controls vertical shift. - To combine transformations, process them in order: Horizontal shifts, then horizontal stretches/reflections, then vertical stretches/reflections, then vertical shifts.
- Accurate sketching relies on transforming key points of the parent function (like the vertex or intercepts) and connecting them according to the parent's shape.
- Always verify the final function's domain and range, as transformations can alter the set of permissible
$x$and$y$values.