Transformations and Inverse Functions
Shift, stretch and reflect any graph with y = a·f(x − h) + k, then build inverse functions that undo a function and reflect its graph across y = x.
Welcome back!
Step 1 of 12Learn
Same shape, new place
Algebra 2 uses a small family of parent functions: y = x, y = x², y = x³, y = |x|, y = √x, y = 1/x and y = 2ˣ. Learn their shapes once and you can sketch hundreds of graphs, because most functions you meet are a parent function that has been moved or stretched.
The general pattern is y = a·f(x − h) + k:
- k shifts the graph up (k > 0) or down (k < 0).
- h shifts the graph right (h > 0) or left (h < 0).
- |a| > 1 stretches it vertically; 0 < |a| < 1 squashes it.
- a < 0 reflects it across the x-axis.
The sign of h is the classic trap. In y = |x + 4|, the expression is x − (−4), so h = −4 and the graph moves left 4, not right. A quick check: the vertex of |x + 4| is where the inside equals zero, which is x = −4.
Try it below with the absolute value function. The corner of the V always sits at (h, k).
Step 2 of 12Explore
Transform the absolute value graph
The graph shows y = a·|x − h| + k. Move each slider and watch the V. Negative a flips it upside down.
- Vertex x
- 0
- Vertex y
- 0
- Slope of right branch
- 1
Step 3 of 12Practice · Choose one
Compared with y = |x|, how is the graph of g(x) = |x + 4| − 1 moved?
Step 4 of 12Flashcards
Transformation moves
Tap a card to flip it.
Step 5 of 12Learn
Undoing a function: inverses
An inverse function, written f⁻¹, reverses what f does. If f takes 3 to 9, then f⁻¹ takes 9 back to 3. Composing them returns the input: f⁻¹(f(x)) = x and f(f⁻¹(x)) = x.
To find an inverse algebraically:
- Replace f(x) with y.
- Swap x and y.
- Solve for y.
- Replace y with f⁻¹(x).
For f(x) = 2x + 3: write y = 2x + 3, swap to get x = 2y + 3, solve to get y = (x − 3)/2. So f⁻¹(x) = (x − 3)/2. Check: f(5) = 13 and f⁻¹(13) = 10/2 = 5.
In words, f says "double, then add 3," so the inverse says "subtract 3, then halve." The steps undo each other in reverse order, the same way you take off your shoes before your socks.
Graphically, swapping x and y reflects the graph across the line y = x. The point (5, 13) on f becomes (13, 5) on f⁻¹.
Step 6 of 12Practice · Diagram
A function and its inverse, round trip
Which step undoes "add 3" first?
Tap the shape that answers the question, then press Check.
- Start: 3
- f(x) = 2x + 3
Double, then add 3: f(3) = 9.
- 9
- f⁻¹(x) = (x − 3)/2
Undo in reverse order: subtract 3, then halve.
- Back to 3
Step 7 of 12Practice · Put in order
Put the steps for finding the inverse of f(x) = (x − 1)/4 in order.
Drag the items, or use the arrow buttons, to put them in order.
- Multiply both sides by 4: 4x = y − 1
- Write y = (x − 1)/4
- Swap x and y: x = (y − 1)/4
- Add 1: y = 4x + 1
- Write f⁻¹(x) = 4x + 1
Step 8 of 12Practice · Work it out
If f(x) = (x + 5)/3, what is f⁻¹(4)?
Step 9 of 12Note
Step 10 of 12Learn
When an inverse needs a restricted domain
Not every function has an inverse function. For f(x) = x², both 3 and −3 give 9. Running backward from 9, the inverse would need to output two values, which a function cannot do.
A function has an inverse only if it is one-to-one: every output comes from exactly one input. The graphical check is the horizontal line test. If a horizontal line crosses the graph more than once, there is no inverse function.
The fix is to restrict the domain. If we only allow x ≥ 0, then f(x) = x² is one-to-one, and its inverse is f⁻¹(x) = √x. This is exactly why the square root symbol means the non-negative root: √9 is 3, not ±3.
The same idea appears in trigonometry, where sine is restricted to make arcsine possible, and in the next modules, where exponential functions are always one-to-one and their inverses are the logarithms.
Step 11 of 12Practice · Select all that apply
Which functions are one-to-one (and so have an inverse function without restricting the domain)? Select all that apply.
Select all that apply.
Step 12 of 12Practice · Fill in the blanks
Fill in the blanks
The graph of an inverse function is the reflection of the original graph across the line . A function has an inverse function only if it passes the line test.
Lesson complete!