Inverse Function: Definition, Steps, and Examples
Updated on November 12, 2026
An inverse function undoes what the original function does. If f takes an input x to an output y, the inverse function f−1 takes y back to x. For example, if f(x) = 2x + 3, then f(4) = 11, and its inverse returns f−1(11) = 4. Below you will learn how to tell whether a function has an inverse, how to find it step by step, and how to handle quadratic functions.
What Is an Inverse Function?
Two functions f and g are inverses of each other if each one undoes the other:
- f(g(x)) = x and g(f(x)) = x
- Then g = f−1.
The inverse swaps inputs and outputs: the domain of f becomes the range of f−1, and the range of f becomes the domain of f−1. If the point (2, 7) is on the graph of f, then (7, 2) is on the graph of f−1.
Notation warning: f−1(x) does not mean 1/f(x). The −1 here is not an exponent; it is the symbol for “inverse.”
Expert Math Tutors for Every Level
Connect with professional and certified educators who provide specialized support for every grade level, from elementary school basics to advanced algebra
When Does a Function Have an Inverse?
A function has an inverse only if it is one-to-one: every output comes from exactly one input. You can check this with the horizontal line test — if any horizontal line crosses the graph more than once, the function is not one-to-one and has no inverse on its whole domain.
- f(x) = 2x + 3 passes the test (a line crosses it once) — it has an inverse.
- f(x) = x2 fails the test: f(2) = f(−2) = 4. To give it an inverse, you must restrict the domain, for example to x ≥ 0.
How to Find the Inverse of a Function
- Replace f(x) with y.
- Swap x and y.
- Solve the new equation for y.
- Replace y with f−1(x), and state any domain restriction.
Example 1: a linear function
Find the inverse of f(x) = 3x − 7.
- y = 3x − 7 → swap: x = 3y − 7
- x + 7 = 3y → y = (x + 7)/3
- f−1(x) = (x + 7)/3
- Check: f(f−1(x)) = 3 · (x + 7)/3 − 7 = x ✓
Example 2: a rational function
Find the inverse of f(x) = (2x + 1)/(x − 3).
- Swap: x = (2y + 1)/(y − 3)
- x(y − 3) = 2y + 1 → xy − 3x = 2y + 1
- xy − 2y = 3x + 1 → y(x − 2) = 3x + 1
- f−1(x) = (3x + 1)/(x − 2), x ≠ 2
- Check: f(0) = −1/3, and f−1(−1/3) = 0/(−7/3) = 0 ✓
Inverse of a quadratic function
Quadratic functions are not one-to-one on all real numbers, so you follow the same steps but restrict the domain at the end.
Which equation can be simplified to find the inverse of y = 5x2 + 10?
- Swap x and y: x = 5y2 + 10 — this is the equation you simplify.
- x − 10 = 5y2 → y2 = (x − 10)/5 → y = ±√((x − 10)/5)
- The ± shows that the inverse is not a function unless we restrict the domain.
- If the original function is restricted to x ≥ 0: f−1(x) = √((x − 10)/5), for x ≥ 10
Notice how the domain and range swap: the original function (with x ≥ 0) has range y ≥ 10, so the inverse has domain x ≥ 10. Learn more about quadratic graphs in our guide to quadratic equations.
Graph of an Inverse Function
The graph of f−1 is the reflection of the graph of f across the line y = x. Because each point (a, b) becomes (b, a), the two graphs are mirror images over that diagonal line. Where f and f−1 intersect, they always meet on y = x or at points symmetric to each other across it.
Common Inverse Function Pairs
|
Function |
Inverse |
Domain note |
|---|---|---|
|
f(x) = x + a |
f−1(x) = x − a |
All real numbers |
|
f(x) = ax (a ≠ 0) |
f−1(x) = x/a |
All real numbers |
|
f(x) = x2, x ≥ 0 |
f−1(x) = √x |
x ≥ 0 |
|
f(x) = x3 |
f−1(x) = ∛x |
All real numbers |
|
f(x) = ex |
f−1(x) = ln x |
x > 0 for ln x |
|
f(x) = tan x, −π/2 < x < π/2 |
f−1(x) = arctan x |
All real numbers |
Derivative of an Inverse Function
In calculus, if f is differentiable and one-to-one, the slope of the inverse is the reciprocal of the slope of f at the matching point:
(f−1)′(x) = 1 / f′(f−1(x))
This rule is how the derivatives of inverse trigonometric functions are found — for example, d/dx arctan x = 1/(1 + x2). See derivative rules for the full proof.
Practice Problems
- Find the inverse of f(x) = 4x + 1.
- Find the inverse of f(x) = x3 − 2.
- Does f(x) = |x| have an inverse on all real numbers?
- If f(5) = 12, what is f−1(12)?
- Find the inverse of f(x) = 2x2 − 8, x ≥ 0.
Frequently Asked Questions on Inverse Function
How do you find the inverse of a function?
Write y = f(x), swap x and y, solve for y, and rename y as f−1(x). Check that f(f−1(x)) = x.
Which functions have inverses?
Only one-to-one functions, which pass the horizontal line test. Other functions can get an inverse after you restrict their domain.
How do you find the inverse of a quadratic function?
Swap x and y, solve for y using square roots, and keep only the + or − root by restricting the domain of the original function.
Is f−1(x) the same as 1/f(x)?
No. f−1(x) is the inverse function, while 1/f(x) is the reciprocal of the output.