The undo idea
A function is a machine: you put a number in, one number comes out. The inverse is the machine that takes you back. Put 3 into f(x) = 2x + 1 and 7 comes out; put 7 into the inverse and 3 comes back.
f(f⁻¹(y)) = y
Both lines matter. The first says the inverse undoes the function; the second says the function undoes the inverse. A pair that satisfies both is genuinely reversible, and that symmetry is what makes the inverse unique when it exists.
To find the inverse algebraically, swap the roles and solve. Write y = 2x + 1, exchange x and y to get x = 2y + 1, then solve for y: y = (x − 1)/2. That is the inverse, and it is a function in its own right.
Notation, and the trap in f⁻¹
The superscript −1 in f⁻¹ means "inverse function", not "reciprocal". This is the single most common misreading in the subject. For f(x) = 2x + 1, the inverse is (x − 1)/2, not 1/(2x + 1).
| Notation | Means | For f(x) = 2x + 1 |
|---|---|---|
| f⁻¹(x) | Inverse function | (x − 1)/2 |
| [f(x)]⁻¹ | Reciprocal of the output | 1/(2x + 1) |
| f(x)⁻¹ | Ambiguous — avoid it | Use brackets or the word inverse |
Trigonometric functions make this worse, because sin⁻¹(x) usually means arcsin while sin²(x) definitely means (sin x)². The convention is inconsistent and there is no way around it except to write arcsin, arccos and arctan explicitly — which is why this site does.
Why some functions cannot be undone
For an inverse to be a function, each output must trace back to exactly one input. If two different inputs produce the same output, the reverse direction is ambiguous and no inverse function exists.
The parabola is the standard example. f(x) = x² gives 9 for both 3 and −3. Ask "what input gives 9?" and there are two honest answers. Any rule that returns only one of them is choosing arbitrarily, not inverting.
| Function | One-to-one? | Inverse on its natural domain |
|---|---|---|
| f(x) = 2x + 1 | Yes | Exists everywhere |
| f(x) = x² | No — symmetric | Only after restricting to x ≥ 0 |
| f(x) = x³ | Yes | Exists everywhere |
| f(x) = sin x | No — periodic | Only after restricting to one period |
| f(x) = eˣ | Yes | ln x, for x > 0 |
| f(x) = |x| | No | Only after choosing a sign |
The technical name for "one-to-one" is injective. A function that is injective and covers its whole target range is bijective, and only bijections have true inverses. The horizontal line test is the graphical version: if any horizontal line crosses the graph twice, the function is not injective.
Domain restrictions: the rescue
When a function fails the horizontal line test, restricting its domain can make it pass. Cut the parabola down to x ≥ 0 and every output now has exactly one input, so the inverse — the square root — becomes a genuine function.
The choice of restriction is a convention, not a mathematical necessity. For x² we take the non-negative branch. For sin x we take −π/2 to π/2, which is why arcsin returns values in that range and nowhere else.
The principal value is a choice. arcsin(0.5) = 30° is the principal value. The equation sin x = 0.5 also has the solution 150°, and infinitely many more. The calculator returns the principal value because a function must return one number, but the equation has many solutions.
This is the source of the lost-solutions problem in trigonometry. Solving sin x = 0.5 by pressing arcsin gives one answer; the full solution set needs the symmetry rules as well. Knowing that the inverse is a restricted object — not a complete answer — is what keeps the bookkeeping honest.
The graph is a reflection
Plot a function and its inverse on the same axes and they are mirror images across the line y = x. That is a direct consequence of swapping x and y: every point (a, b) on the original appears as (b, a) on the inverse.
The reflection makes the domain and range swap visible. If f has domain [0, ∞) and range [1, ∞), then f⁻¹ has domain [1, ∞) and range [0, ∞). Confusing the two is a common source of errors when composing functions.
It also explains why the graph of an inverse can fail to be a function. A parabola reflected across y = x becomes a sideways parabola, which fails the vertical line test — the graphical restatement of the same problem.
Composition and cancellation
Composing a function with its inverse cancels both, leaving the original input. That cancellation is the practical definition, and it is how you verify an inverse you have derived by hand.
For f(x) = (x − 3)/4, the inverse is 4x + 3. Check: f⁻¹(f(x)) = 4·((x−3)/4) + 3 = (x − 3) + 3 = x. If the algebra simplifies to x, the inverse is right; if it does not, it is wrong and no amount of rechecking the steps will fix it.
Order matters when composing different functions, but for a function and its own inverse the order is irrelevant — both directions cancel. That is a special property of inverse pairs, not a general rule about composition.
A checklist for any inverse problem
- Is the function one-to-one on the domain you care about? If not, restrict the domain first.
- Swap x and y, then solve for y. That gives the algebraic form.
- Check by composing: f⁻¹(f(x)) should simplify to x.
- State the domain of the inverse — it is the range of the original.
- If the function is periodic or symmetric, remember that the inverse returns one value, not all of them.
Steps 4 and 5 are the ones most often skipped, and they are the ones that cause wrong answers in applications. An inverse without a stated domain is an incomplete answer.