Pre-CalculusIntermediate

Functions and Transformations

Once you understand what a function is, the next step is understanding how functions change when you modify them. Transformations let you take any function and shift, flip, or stretch it , and recognizing these patterns makes graphing dramatically faster.

1 Quick Review: Functions and Graphs

A function f(x) maps each input x to exactly one output. Its graph is the set of all points (x, f(x)). The parent function is the simplest version , f(x) = x², f(x) = |x|, f(x) = √x. Every transformation modifies a parent function in a predictable way.

Why transformations matter

Instead of memorizing dozens of different graphs, you can learn a handful of parent functions and the transformation rules. Any graph is a transformed version of something simpler.

2 Vertical Shifts and Stretches

Vertical shift: f(x) + k shifts the graph up by k units (down if k is negative). Every y-value increases by k. The shape is unchanged.

Vertical stretch/compression: a·f(x) multiplies every y-value by a. If |a| > 1, the graph stretches (taller). If 0 < |a| < 1, it compresses (shorter).

Vertical Transformations
Describe how y = 3x² − 4 relates to y = x²
1Start with parent function y = x² (a parabola)
23x²: multiply all y-values by 3 → vertical stretch by factor 3 (narrower parabola)
33x² − 4: subtract 4 from all y-values → shift down 4 units
4Result: a narrower parabola with vertex at (0, −4) instead of (0, 0)
Answer: Vertically stretched by 3, shifted down 4

3 Horizontal Shifts and Stretches

Horizontal shift: f(x − h) shifts the graph right by h units (left if h is negative). This is counterintuitive , subtracting h moves right.

Horizontal stretch/compression: f(bx) compresses horizontally by factor b (if b > 1) or stretches (if 0 < b < 1).

Horizontal Shift
Describe y = (x − 3)² relative to y = x²
1f(x − 3): replace x with (x − 3)
2This shifts every point 3 units to the right
3The vertex moves from (0, 0) to (3, 0)
Answer: Same parabola shifted right 3 units
The direction is backwards from intuition

f(x − 3) shifts RIGHT, not left. Think of it this way: to get the same output you used to get at x=0, you now need x=3. So the whole graph moves right.

4 Reflections

−f(x): reflects over the x-axis (flips upside down , every y-value negated).

f(−x): reflects over the y-axis (flips left-right , every x-value negated).

Combining Transformations
Describe y = −2(x + 1)² + 3 relative to y = x²
1Start with x²
2f(x+1): shift left 1 (vertex at (−1, 0))
32·f: vertical stretch by 2
4−2·f: reflect over x-axis (opens downward)
5Add 3: shift up 3 (vertex at (−1, 3))
Answer: Downward parabola, vertex at (−1, 3), vertically stretched by 2

5 Inverse Functions

The inverse function f⁻¹(x) reverses what f does. If f(2) = 7, then f⁻¹(7) = 2. Graphically, f⁻¹ is the reflection of f over the line y = x (swap x and y coordinates of every point).

To find the inverse algebraically: replace f(x) with y, swap x and y, then solve for y.

Finding an Inverse
Find the inverse of f(x) = 3x − 6
1Write as y = 3x − 6
2Swap x and y: x = 3y − 6
3Solve for y: x + 6 = 3y → y = (x + 6)/3
4So f⁻¹(x) = (x + 6)/3
5Check: f(f⁻¹(x)) = 3·(x+6)/3 − 6 = x+6−6 = x ✓
Answer: f⁻¹(x) = (x + 6)/3
Not every function has an inverse

A function only has an inverse if it is one-to-one , each output corresponds to exactly one input (passes the horizontal line test). y = x² fails the horizontal line test, so it doesn't have an inverse over all reals. That's why √x is only defined for x ≥ 0.

Practice Problems

Describe y = |x + 4| − 2 as a transformation of y = |x|
Shift left 4, shift down 2. V-shape vertex moves from (0,0) to (−4, −2).
If f(x) = x³, write the function that shifts it right 2 and reflects over the x-axis.
y = −(x − 2)³
Find the inverse of f(x) = 2x + 10
y = 2x + 10. Swap: x = 2y + 10. Solve: y = (x − 10)/2. f⁻¹(x) = (x − 10)/2
Does f(x) = x² have an inverse over all real numbers? Why?
No , it fails the horizontal line test. f(2) = 4 and f(−2) = 4, so two inputs map to the same output. Not one-to-one, so no inverse.

Sources & Further Reading

The explanations on this page draw on the following established sources. We link to primary and secondary sources so you can verify claims and go deeper on any topic.