Inverse Functions
Picture a function as a little machine. You feed it a number, the machine does something, and a different number comes out. The inverse function is the same machine running in reverse — feed it the output, and it gives you back the original input. If a function turns 3 into 7, its inverse takes 7 and turns it back into 3. That single idea is the whole topic.
This page teaches you how to find an inverse from a formula, which functions have inverses, how the domain and range swap places, how the graph of an inverse is a reflection in the line y = x, and what to do when the variable is in an exponent. The CSCA exam asks an inverse-function question on nearly every paper. The method is always the same; only the algebra in the middle changes.
You can learn anything. Let's do this!
What an inverse function is
If a function f takes an input x and produces an output y, the inverse function — written f−1(x) — takes that output back to the original input. It undoes whatever f did. The notation looks like an exponent, but it is not. The little −1 in f−1 is just a label that means "the inverse of f." It does not mean 1 divided by f(x). This is one of the most common mistakes in this topic, so remember it.
We can also describe an inverse with composition (putting one function inside the other). If f−1 really is the inverse of f, then applying one and then the other gives back what you started with: f(f−1(x)) = x and f−1(f(x)) = x. This gives a way to check any inverse you find: put one function inside the other and check that the result simplifies to x.
Now, not every function has an inverse. To run a machine in reverse, each output must come from exactly one input — otherwise, when you try to undo it, you would not know which input to return. A function with this property is called one-to-one: different inputs always give different outputs. Only one-to-one functions are invertible.
The function f(x) = x² illustrates the failure. Both 2 and −2 give the same output, 4. So if you tried to define an inverse and asked it "what should I send 4 back to?", there is no single answer. The function is not one-to-one, and it has no inverse on the full real line. By contrast, f(x) = x³ is one-to-one — every real number has exactly one real cube — so it does have an inverse over all of ℝ. The same is true of f(x) = 2x, which is strictly increasing and so never repeats outputs. The function sin x repeats every 2π, so on its own full domain it is not one-to-one either, but mathematicians fix this by restricting it to a smaller domain where it is one-to-one (this gives the function arcsin).
The recipe: swap x and y, then solve for y
There is one standard method for finding an inverse from a formula. It rests on one fact: if f(x) = y, then f−1(y) = x. So the inverse takes y values back to x values. We want the inverse written with x as its input, so we swap the letters x and y in the equation and then rearrange.
Let's use the recipe on a simple linear function. Take f(x) = 2x + 1. Step 1: write y = 2x + 1. Step 2: swap x and y, giving x = 2y + 1. Step 3: solve for y. Subtract 1 from both sides to get x − 1 = 2y. Then divide both sides by 2 (allowed, because 2 is not zero), giving y = (x − 1)/2. Step 4: rename, so f−1(x) = (x − 1)/2.
Now verify by composition. Compute f(f−1(x)) = 2 · (x − 1)/2 + 1. The factor of 2 outside cancels the division by 2 inside, leaving (x − 1) + 1, which simplifies to x. ✓ The inverse is correct.
Find the inverse of y = x³ + 3.
Step 1 is already done — the equation is in y = form. Step 2: swap x and y, giving x = y³ + 3. Step 3: solve for y. Subtract 3 from both sides to get x − 3 = y³. Now undo the cubing. Every real number has exactly one real cube root, so we can take the cube root of both sides without gaining or losing solutions. That gives y = ∛(x − 3).
Verify: f(f−1(x)) = (∛(x − 3))³ + 3 = (x − 3) + 3 = x. ✓
Find the inverse of y = 1 − x³.
Swap: x = 1 − y³. Now get y³ alone. Subtract 1 from both sides to get x − 1 = −y³, then multiply both sides by −1 to change the sign, giving 1 − x = y³. Now take the cube root of both sides: y = ∛(1 − x).
Notice we did not write y = 1 − ∛x. The cube root has to apply to whatever y³ is equal to as a single quantity, which is (1 − x), not just to x with the 1 outside.
The graphical relationship: reflection across y = x
Here is a useful fact about the graphs of inverse functions. If you draw the graph of f and the graph of f−1 on the same axes, they are mirror images of each other across the line y = x. The reason is direct: a point (a, b) lies on the graph of f exactly when f(a) = b. By the inverse relationship, that means f−1(b) = a, which puts the point (b, a) on the graph of f−1. And reflecting any point (a, b) across the line y = x lands you at exactly (b, a). So every point on f corresponds to its mirrored partner on f−1, and the line y = x is the axis of that reflection.
The diagram below shows this concretely for y = x³ and its inverse y = x1/3 (the cube root). The blue curve is y = x³. The orange curve is y = x1/3. The dashed grey diagonal is the line y = x. Notice that each curve is the mirror image of the other across that dashed line. The point (2, 8) sits on y = x³, because 2³ = 8, and its reflection (8, 2) sits on y = x1/3, because the cube root of 8 is 2. The two points are connected by a faint perpendicular line that crosses the dashed diagonal at right angles — that is the geometric meaning of "reflection across y = x."
This reflection rule is a quick check on any inverse you compute. If you find an inverse algebraically and then graph both functions, they have to be mirror images across y = x. If they aren't, something went wrong in the algebra. The rule also gives you a quick way to answer questions that ask "which two of these curves are reflections of each other across y = x?" — the answer is always a function and its inverse.
Domain and range swap places
Because the inverse function reverses the direction of f, the inputs and outputs trade roles. The set of values f accepts as inputs becomes the set of values f−1 produces as outputs, and vice versa. In symbols: the domain of f−1 equals the range of f, and the range of f−1 equals the domain of f. This is not a coincidence — it follows directly from the definition of an inverse, since f−1 takes outputs of f as its inputs.
Here is a worked example. Suppose f(x) = x² with the domain restricted to x ≥ 0 (this restriction is needed because, as we saw earlier, x² on all of ℝ is not one-to-one and so has no inverse). On this restricted domain, f produces every value y ≥ 0, so the range of f is [0, ∞). The inverse is f−1(x) = √x. Now look at f−1: its domain is x ≥ 0, because we cannot take the square root of a negative number, and its range is also y ≥ 0, because the principal square root is never negative.
Compare the two: the domain of f was [0, ∞), and that has become the range of f−1. The range of f was [0, ∞), and that has become the domain of f−1. The swap is exact. This is true for every invertible function, not just this one.
This swap matters in practice because some inverse problems include a constraint on the domain or range, and getting the constraint right requires knowing which set the inverse pulls from and which set it produces. For exam questions, you should be able to answer "what is the domain of f−1?" by simply finding the range of f, without computing the inverse at all.
The hardest case: when the variable is in the exponent
Most inverse problems on the CSCA exam are linear or cubic, and the basic recipe handles them in a few lines. Sometimes, though, the variable is in an exponent, as in 2x. Adding, multiplying and taking roots cannot get a variable out of an exponent. To get y out of 2y, you need a logarithm.
Exponentials and logarithms are linked like this: 2a = b means the same thing as log₂(b) = a. In other words, log₂ is the inverse function of 2x. So when you have 2y = (some positive expression in x) and you need y, take log base 2 of both sides. Both sides must be positive, because log is only defined for positive numbers.
Now the hardest example of this topic: f(x) = 2x/(1 + 2x). The fraction and the exponentials make it look hard, but the same recipe works: swap, then solve. The only new step is one logarithm at the end. The same moves (clear the fraction, collect the y terms, factor) also work when y is on the top and bottom of an ordinary fraction, such as y = (x + 1)/(x − 2).
Find the inverse of f(x) = 2x/(1 + 2x).
Step 1. Write y = 2x/(1 + 2x).
Step 2. Swap x and y to get x = 2y/(1 + 2y). Now the goal is to solve this for y.
Step 3 — clear the denominator. Multiply both sides by (1 + 2y). This is allowed because 2y > 0 for every real y, so 1 + 2y is never zero. We get:
x · (1 + 2y) = 2y
Step 4 — expand the brackets. We get:
x + x · 2y = 2y
Step 5 — collect the 2y terms. Subtract x · 2y from both sides. We get:
x = 2y − x · 2y
Step 6 — factor. Both terms on the right have the factor 2y. We get:
x = 2y · (1 − x)
Step 7 — divide. Divide both sides by (1 − x). This is valid as long as 1 − x ≠ 0, i.e. x ≠ 1. The original f(x) = 2x/(1 + 2x) is always strictly less than 1 (the numerator is always smaller than the denominator), so x = 1 never occurs as an output of f and therefore never occurs as an input of f−1. We are safe to divide. We get:
x/(1 − x) = 2y
Step 8 — take the log. The variable y is now in an exponent. To get it out, take log base 2 of both sides. This is allowed because x/(1 − x) is positive here: the outputs of f lie between 0 and 1, so the inputs of f−1 satisfy 0 < x < 1. We get:
log₂(x/(1 − x)) = y
So the inverse is f−1(x) = log₂(x/(1 − x)).
Steps 3 to 7 were ordinary algebra: multiply, expand, collect, factor, divide. The only new move was Step 8, the logarithm. It always comes at the same point: once 2y is alone on one side. The key idea is "the variable is in an exponent, so I need a log."
Now verify by composition. We want to check that f(f−1(x)) = x. Let u = log₂(x/(1 − x)). By the definition of log, that means 2u = x/(1 − x). Now compute f(u):
f(u) = 2u/(1 + 2u) = [x/(1 − x)] / [1 + x/(1 − x)]
Combine the denominator over a common denominator of (1 − x): we have 1 + x/(1 − x) = (1 − x)/(1 − x) + x/(1 − x) = (1 − x + x)/(1 − x) = 1/(1 − x). So:
f(u) = [x/(1 − x)] / [1/(1 − x)] = [x/(1 − x)] · [(1 − x)/1] = x ✓
The composition simplifies to x, which confirms the inverse is correct.
Your turn! · Practice questions
Things to remember
| Concept | What to know |
|---|---|
| Definition | f−1 undoes f. f(f−1(x)) = x and f−1(f(x)) = x. |
| Notation | f−1(x) is not 1/f(x). The −1 is a label, not an exponent. |
| Invertibility | Only one-to-one functions have inverses. y = x² is not invertible on ℝ; y = x³ and y = 2x are. |
| The recipe | Write y = f(x) → swap x and y → solve for y → rename as f−1(x) → verify by composition. |
| Domain–range swap | Domain of f−1 = range of f. Range of f−1 = domain of f. |
| Graphical relationship | The graphs of f and f−1 are reflections of each other across the line y = x. |
| Cube-root inverses | The inverse of y = x³ + c is y = ∛(x − c). Always isolate y³ first, then take the cube root of the entire other side. |
| Exponential inverses | When y is in an exponent, take log of the matching base of both sides to free y. |
| Common mistake | Writing y = 1 − ∛x instead of y = ∛(1 − x). The root must apply to the whole expression that y³ equals. |
