Inverse Functions
An inverse function undoes what the original function does. If f takes 3 to 9, then f-inverse takes 9 back to 3. It’s like having an “undo” button for math. But not every function has an inverse — and understanding why is just as important as knowing how.
1. What Does “Inverse” Mean Graphically?
If you have a point (a, b) on the graph of f, then the point (b, a) is on the graph of f-inverse. Swapping x and y coordinates means the inverse is a reflection over the line y = x.
The purple curve (x squared, restricted to x >= 0) and the red curve (square root) are mirror images across the gray line y = x. That reflection relationship is the visual signature of inverse functions.
2. Exploring Inverses with a Slider
Let’s look at the linear function f(x) = mx + b and its inverse. A linear function always has an inverse (as long as m is not zero). Adjust the slope and intercept and watch both the function and its inverse update together.
Watch how the function and its inverse are always symmetric about y = x. Try setting m = 1 — the function and inverse become parallel lines on opposite sides of y = x. What happens when m = -1? The function is its own inverse! (It reflects onto itself.)
3. The Horizontal Line Test
Not every function has an inverse. For a function to be invertible, it must be one-to-one: every output comes from exactly one input. The visual test? If any horizontal line crosses the graph more than once, the function fails.
Slide the horizontal line up and down. For any positive y-value, the line hits the parabola in two places (e.g., both x = 2 and x = -2 give y = 4). That’s why x-squared doesn’t have an inverse over all real numbers. To fix this, we restrict the domain to x >= 0 (or x <= 0), keeping only the half where it’s one-to-one.
4. Power Function and Its Inverse
Let’s explore f(x) = x^n and its inverse (the nth root). Adjust the exponent and see how the function and its inverse relate. We’ll restrict to x >= 0 to keep things invertible.
When n = 1, the function is just f(x) = x, which is its own inverse. As n increases, the function curve bends more sharply away from y = x, and so does the inverse (in the opposite direction). At n = 2, you get the square/square-root pair. At n = 3, the cube/cube-root pair.
5. Verifying: f(f-inverse(x)) = x
The defining property of inverse functions: if you compose a function with its inverse, you get back the identity function (a straight line through the origin with slope 1). Let’s verify this visually.
Challenge: No matter what value of a you pick, the teal curve (the composition) always lands exactly on the gray identity line y = x. Change the slider to convince yourself. This is the algebraic definition of an inverse: f(f-inverse(x)) = x AND f-inverse(f(x)) = x. Both directions must hold.