Function Transformations — Definition, Formula & Examples
Function transformations are operations that change the position, shape, or orientation of a function's graph. The four main types are translations (shifts), reflections, stretches, and compressions.
A function transformation is a mapping that converts a parent function into a new function by applying one or more algebraic modifications to the input , the output , or both. These modifications fall into two categories: rigid transformations (translations and reflections), which preserve the shape of the graph, and non-rigid transformations (stretches and compressions), which alter the graph's shape by scaling it vertically or horizontally.
Key Formula
Where:
- = The parent (original) function
- = Vertical stretch/compression factor; negative reflects across the x-axis
- = Horizontal stretch/compression factor; negative reflects across the y-axis
- = Horizontal shift (positive = right, negative = left)
- = Vertical shift (positive = up, negative = down)
How It Works
Every transformation can be read directly from the equation . The constant shifts the graph left or right: positive moves it right, negative moves it left. The constant shifts the graph up or down. The multiplier stretches or compresses the graph vertically, and if is negative it also reflects the graph across the -axis. The multiplier stretches or compresses the graph horizontally, and if is negative it reflects the graph across the -axis. To apply multiple transformations, work from the inside out: horizontal changes first (involving and ), then vertical changes (involving and ).
Worked Example
Problem: Starting with the parent function f(x) = x², describe each transformation and graph g(x) = 2(x − 3)² + 4.
Identify the parent function: The parent function is the basic parabola.
Read the horizontal shift: Inside the squared term you see (x − 3). Because h = 3, the graph shifts 3 units to the right.
Read the vertical stretch: The coefficient in front of the squared expression is 2. Since |a| > 1, the graph is vertically stretched by a factor of 2, making it narrower.
Read the vertical shift: The constant added at the end is 4, so the graph shifts 4 units up.
Write the final description: Starting from f(x) = x², shift right 3 units, stretch vertically by a factor of 2, then shift up 4 units. The vertex moves from (0, 0) to (3, 4).
Answer: g(x) is the parabola x² shifted right 3, vertically stretched by 2, and shifted up 4, with vertex at (3, 4).
Another Example
This example combines a reflection and a horizontal compression, which are often trickier than the vertical-only changes in the first example. It also demonstrates verifying with a test point.
Problem: Given f(x) = √x, write the equation for g(x) after reflecting across the x-axis, horizontally compressing by a factor of 2, and shifting down 5.
Apply the horizontal compression: A horizontal compression by a factor of 2 means points are squeezed toward the y-axis by half. Replace x with 2x inside the function.
Apply the reflection across the x-axis: Reflecting across the x-axis negates all outputs. Multiply the entire function by −1.
Apply the vertical shift: Shifting down 5 means subtracting 5 from the output.
Verify with a test point: For f(x) = √x, the point (4, 2) is on the parent. After compressing horizontally by 2, the corresponding x-value is 4/2 = 2. So check x = 2: g(2) = −√(4) − 5 = −2 − 5 = −7. The original point (4, 2) maps to (2, −7).
Answer: g(x) = −√(2x) − 5
Why It Matters
Function transformations appear throughout precalculus, AP Calculus, and physics whenever you need to model shifted or scaled phenomena — for example, adjusting a sine wave's amplitude and phase in circuit analysis. Engineers and data scientists routinely transform functions to fit real-world data. Mastering these rules also makes graphing faster on exams because you can sketch any member of a function family from its parent graph in seconds.
Common Mistakes
Mistake: Shifting the graph the wrong direction for horizontal translations
Correction: Remember that f(x − h) shifts right when h > 0 and left when h < 0. The sign inside the parentheses is opposite to the direction of movement. Always rewrite the expression in (x − h) form to read h correctly.
Mistake: Confusing horizontal stretch with horizontal compression
Correction: When |b| > 1 in f(bx), the graph compresses horizontally (gets narrower), not stretches. Horizontal scale is 1/|b|, which is the inverse of what many students expect. Test a point to confirm.
Mistake: Applying vertical shift before vertical stretch
Correction: Order matters. In a·f(x) + k, the stretch by a happens first (it multiplies the output), then the shift k is added. If you shift first and then stretch, the shift itself gets multiplied, giving incorrect results.
Check Your Understanding
If f(x) = |x|, what is the equation after shifting left 2 and reflecting across the x-axis?
Hint: Shifting left means replacing x with (x + 2). Reflecting across the x-axis means multiplying the output by −1.
Answer: g(x) = −|x + 2|
The graph of g(x) = f(3x) is a horizontal compression of f by what factor?
Hint: When b = 3, horizontal distances are multiplied by 1/b = 1/3.
Answer: The graph is compressed horizontally by a factor of 3 (each x-coordinate is divided by 3).
Starting with f(x) = x³, the point (2, 8) is on the graph. Where does this point move under g(x) = f(x) − 10?
Hint: Subtracting 10 outside the function shifts every point down 10 units.
Answer: It moves to (2, −2) because only the y-value changes: 8 − 10 = −2.
