Transformations of functions
Quick answer
Transformations change a parent graph y = f(x) in predictable ways. In y = a·f(b(x − h)) + k: h shifts it right, k shifts it up, |a| > 1 stretches it vertically, a < 0 reflects it over the x-axis, and b compresses it horizontally by a factor of 1/|b| (reflecting over the y-axis if b < 0).
y=a abs(b(x-h))+k
Transformation table
| Equation | Effect on y = f(x) |
|---|---|
| f(x) + k | Up k units (down if k < 0) |
| f(x − h) | Right h units (left if h < 0) |
| a·f(x) | Vertical stretch by |a|; reflect if a < 0 |
| f(bx) | Horizontal compression by 1/|b| |
| −f(x) | Reflect over the x-axis |
| f(−x) | Reflect over the y-axis |
Order matters
Apply horizontal changes inside the function first (factor out b, then shift by h), then vertical changes outside (stretch by a, then shift by k). Dragging the sliders above shows each effect separately.
Frequently asked questions
Why does f(x − 3) move the graph right, not left?
The output that f had at x now happens at x + 3, so every point moves 3 units to the right.