Master inverse functions with this complete guide. Learn how to find, verify, and graph inverse functions using the algebraic method, horizontal line test, and domain restrictions.
Frequently asked questions
How do you find the inverse of a function?
Write y = f(x), swap x and y, then solve for y. The result is f⁻¹(x). For f(x) = 2x + 3, swapping gives x = 2y + 3, so y = (x − 3)/2. Check by confirming f(f⁻¹(x)) = x.
Does every function have an inverse?
No. Only one-to-one functions have an inverse that is also a function. Use the horizontal line test: if any horizontal line crosses the graph more than once, the function has no inverse unless you restrict its domain, as with f(x) = x² on x ≥ 0.
Is f⁻¹(x) the same as 1/f(x)?
No. The −1 is not an exponent here. f⁻¹(x) means the inverse function, which undoes f. The reciprocal 1/f(x) is a different function. For f(x) = 2x, f⁻¹(x) = x/2, but 1/f(x) = 1/(2x).
How do you verify two functions are inverses?
Show that both compositions return x: f(g(x)) = x and g(f(x)) = x. Checking only one direction is not enough in general, so do both, and also confirm the domains match.
What does the graph of an inverse function look like?
It is the reflection of the original graph across the line y = x. Every point (a, b) on f becomes (b, a) on f⁻¹. The domain of f becomes the range of f⁻¹, and the range of f becomes the domain of f⁻¹.
An inverse function reverses the action of the original function. If a function f takes an input x and produces an output y, then the inverse function f⁻¹ takes y as input and returns the original x.
The Rule — Inverse Composition
Formally, f⁻¹(f(x)) = x and f(f⁻¹(x)) = x — applying a function and its inverse in either order gives you back the starting value.
Think of it as an "undo" button. If f(x) = 2x + 3 adds 3 and doubles, then f⁻¹(x) = (x − 3)/2 subtracts 3 and halves. The operations are reversed, and the order is reversed.
Definition — One-to-One
Not every function has an inverse. For an inverse to exist, the original function must be one-to-one (injective): each output must come from exactly one input. If two different inputs produce the same output, the function can't be reversed because the inverse wouldn't know which input to return.
Common Mistake
The notation f⁻¹ means the inverse function — it does not mean 1/f(x). This is a common source of confusion. The superscript ⁻¹ in function notation is about reversal, not reciprocals.
The Horizontal Line Test
The Rule — Horizontal Line Test
The horizontal line test tells you whether a function has an inverse. Draw (or imagine) horizontal lines across the graph. If every horizontal line crosses the graph at most once, the function is one-to-one and has an inverse. If any horizontal line crosses the graph more than once, the function is not one-to-one and does not have an inverse (unless you restrict the domain).
Examples
Function
Result
Why
f(x) = 2x + 1 (a line)
Passes
Every horizontal line hits the graph exactly once. It has an inverse.
f(x) = x²
Fails
The line y = 4 hits the graph at both x = 2 and x = −2. No inverse unless we restrict the domain to x ≥ 0 or x ≤ 0.
f(x) = x³
Passes
Every horizontal line hits the cubic exactly once. It has an inverse.
f(x) = sin(x)
Fails
y = 0.5 has infinitely many solutions. No inverse unless restricted to [−π/2, π/2], which gives us arcsin.
The Key Insight
The horizontal line test is the graphical version of the one-to-one definition. On an exam, use it as a quick visual check before attempting to find the inverse algebraically.
How to Find the Inverse Function — Step by Step
Finding the inverse function algebraically follows a simple three-step procedure.
Replace f(x) with y
This makes the algebra cleaner.
Swap x and y
This reflects the function across the line y = x, which is exactly what an inverse does graphically.
Solve for y
Isolate y on one side. The result is f⁻¹(x).
Example 1 — linear function
Find the inverse of f(x) = 3x − 7.
Step 1: y = 3x − 7.
Step 2: x = 3y − 7.
Step 3: x + 7 = 3y, so y = (x + 7)/3.
Answerf⁻¹(x) = (x + 7)/3
Example 2 — radical function
Find the inverse of f(x) = √(x − 4) with domain x ≥ 4.
Step 1: y = √(x − 4).
Step 2: x = √(y − 4).
Step 3: x² = y − 4, so y = x² + 4.
But we need the domain restriction: since the original range was y ≥ 0, the inverse's domain is x ≥ 0.
After finding an inverse, you should always verify it by checking that both compositions equal x. The two conditions are: f(f⁻¹(x)) = x and f⁻¹(f(x)) = x. If both hold, your inverse is correct.
AnswerBoth compositions return x, confirming the inverse is correct.
The Key Insight
This verification step is especially important for rational and radical functions where algebraic mistakes are common. It also makes for easy exam points — many teachers give partial credit for verification even if the inverse has a small error.
Domain and Range of Inverse Functions
The Rule — Domain/Range Swap
The domain of f becomes the range of f⁻¹, and the range of f becomes the domain of f⁻¹. This swap is a direct consequence of swapping x and y.
Key relationships
Inverse property
Equals
Domain of f⁻¹
Range of f
Range of f⁻¹
Domain of f
Example — restricted square
f(x) = x² with restricted domain [0, ∞).
Domain of f: [0, ∞).
Range of f: [0, ∞).
So f⁻¹(x) = √x has domain [0, ∞) and range [0, ∞).
Why restrictions matter
Without the domain restriction x ≥ 0, the function x² is not one-to-one and has no inverse. The restriction forces the function to pass the horizontal line test.
The Key Insight
This is exactly how inverse trig functions work: sin(x) is restricted to [−π/2, π/2] to create arcsin, cos(x) is restricted to [0, π] to create arccos, and tan(x) is restricted to (−π/2, π/2) to create arctan. Every inverse trig function exists because of a carefully chosen domain restriction on the original.
Graphing Inverse Functions
The Rule — Reflection Across y = x
The graph of f⁻¹ is the reflection of the graph of f across the line y = x. This follows directly from the swap step: every point (a, b) on the graph of f becomes (b, a) on the graph of f⁻¹.
How to graph an inverse
Plot the original function
Start by drawing the graph of f.
Draw the line y = x as a dashed reference line
This is the axis of reflection.
Reflect each point across this line by swapping coordinates
Every point (a, b) becomes (b, a).
Key observations
Property of f
Result for f⁻¹
If the original function crosses the line y = x
The inverse also passes through that same point (the point is its own reflection).
If f is increasing
f⁻¹ is also increasing.
If f is decreasing
f⁻¹ is also decreasing.
The graphs of f and f⁻¹
Are always symmetric about y = x.
The Takeaway
For a quick visual check on an exam, plot two or three points of your inverse and verify they're reflections of the original. If they are, your algebra is likely correct. For more complex inverse function problems, scan them with Solver AI to get the full step-by-step solution with verification.