How to Find the Inverse of a Function: Step-by-Step Guide for 2026
Inverse functions are the algebra topic students forget the fastest after the test. The reason is simple: most teachers introduce the algorithm (swap and solve) without explaining why it works. Once you see what an inverse actually does, the algorithm makes sense and the topic sticks.
This guide explains what an inverse is, gives you the four-step algebra recipe, covers the horizontal line test, and shows you the graphical and functional checks that confirm you found the right inverse.
What an Inverse Function Does
A function f takes an input x and produces an output y. The inverse function, written f⁻¹, undoes f: it takes that output back to the original input.
If f(3) = 7, then f⁻¹(7) = 3.
f⁻¹ is read “f inverse.” Important: the −1 here is not an exponent. f⁻¹(x) is not 1/f(x).
Notation
| Symbol | Meaning |
|---|---|
| f(x) | Output of f at input x |
| f⁻¹(x) | Output of the inverse of f at input x |
| (f ∘ g)(x) | Composition: f(g(x)) |
| f(f⁻¹(x)) and f⁻¹(f(x)) | Both equal x for all x in the appropriate domain |
The last row is the definition of an inverse. Two functions are inverses if and only if composing them returns x.

When Does an Inverse Exist?
A function has an inverse if and only if it is one-to-one: each output corresponds to exactly one input.
Use the horizontal line test to check on a graph. If any horizontal line crosses the graph in more than one place, the function is not one-to-one, and it does not have an inverse over its full domain.
Examples:
– f(x) = 3x − 5: passes the horizontal line test. Has an inverse.
– f(x) = x²: fails. The horizontal line y = 4 crosses at x = 2 and x = −2. No inverse over all real numbers.
To give x² an inverse, restrict the domain to x ≥ 0. Then it passes the horizontal line test on that restricted domain, and the inverse is √x.
The Algorithm: Four Steps
To find the inverse of f(x):
- Write y = f(x).
- Swap x and y.
- Solve for y.
- Rename y as f⁻¹(x).
The swap step is what does the “undoing.” We are asking: given the original output, what input would have produced it?
Example 1: Linear Function
Find the inverse of f(x) = 3x − 5.
Step 1: y = 3x − 5.
Step 2: x = 3y − 5.
Step 3: x + 5 = 3y → y = (x + 5)/3.
Step 4: f⁻¹(x) = (x + 5)/3.
Check: f(f⁻¹(x)) = 3 · (x + 5)/3 − 5 = (x + 5) − 5 = x. ✓
Example 2: Cubic Function
Find the inverse of f(x) = x³ + 1.
Step 1: y = x³ + 1.
Step 2: x = y³ + 1.
Step 3: x − 1 = y³ → y = ∛(x − 1).
Step 4: f⁻¹(x) = ∛(x − 1).
Cube roots accept negative inputs, so the domain of f⁻¹ is all real numbers.
Example 3: Rational Function
Find the inverse of f(x) = (2x + 3) / (x − 1).
Step 1: y = (2x + 3)/(x − 1).
Step 2: x = (2y + 3)/(y − 1).
Step 3: Multiply both sides by (y − 1): x(y − 1) = 2y + 3.
Distribute: xy − x = 2y + 3.
Group y terms: xy − 2y = x + 3.
Factor: y(x − 2) = x + 3.
Divide: y = (x + 3)/(x − 2).
Step 4: f⁻¹(x) = (x + 3)/(x − 2).
Example 4: Function With Restricted Domain
Find the inverse of f(x) = x² − 4 for x ≥ 0.

Step 1: y = x² − 4.
Step 2: x = y² − 4.
Step 3: y² = x + 4 → y = ±√(x + 4).
Choose the positive branch because the original domain is x ≥ 0 (which means the original y values are ≥ −4 and the swap forces the inverse to have y ≥ 0).
Step 4: f⁻¹(x) = √(x + 4).
Example 5: Exponential and Logarithmic
Find the inverse of f(x) = 2^x.
Step 1: y = 2^x.
Step 2: x = 2^y.
Step 3: Take log base 2: y = log₂ x.
Step 4: f⁻¹(x) = log₂ x.
This is the general fact: exponentials and logarithms are inverses of each other.
The Graph of an Inverse
The graph of f⁻¹ is the reflection of the graph of f across the line y = x. If (a, b) is on f, then (b, a) is on f⁻¹.
This means:
– The x-intercept of f is the y-intercept of f⁻¹, and vice versa.
– The domain of f is the range of f⁻¹.
– The range of f is the domain of f⁻¹.
If you have a graph of f, you can sketch f⁻¹ by flipping each point across y = x without doing any algebra.
How to Verify Your Answer
Two valid checks:
- Composition check. Compute f(f⁻¹(x)). If it simplifies to x, you have an inverse.
- Point check. Pick a point on f, like (2, f(2)). Confirm that (f(2), 2) is on f⁻¹.
The composition check is the rigorous one. Do it on any inverse you find for a quiz or test.
Common Mistakes
- Treating f⁻¹ as 1/f. They are not the same. f⁻¹(x) is the inverse function; 1/f(x) is the reciprocal.
- Swapping but not solving for y. After the swap, x = 3y − 5 is not the answer. Isolate y.
- Missing the ± when solving a quadratic. Pick the branch that matches the original domain restriction.
- Forgetting that the inverse exists only on a restricted domain. Functions like x² need a restriction.
- Confusing the inverse with the reflection. The graph of the inverse is the reflection across y = x, not the x-axis or the y-axis.
A Quick Cheat Sheet
| Function | Inverse |
|---|---|
| f(x) = mx + b | f⁻¹(x) = (x − b)/m |
| f(x) = x³ | f⁻¹(x) = ∛x |
| f(x) = x² (x ≥ 0) | f⁻¹(x) = √x |
| f(x) = a^x | f⁻¹(x) = log_a x |
| f(x) = log_a x | f⁻¹(x) = a^x |
| f(x) = sin x (−π/2 ≤ x ≤ π/2) | f⁻¹(x) = arcsin x |
Frequently Asked Questions
Does every function have an inverse?
No. Only one-to-one functions do, and any function can be made one-to-one by restricting its domain.
Is f⁻¹(x) the same as 1/f(x)?
No. f⁻¹(x) is the inverse function; 1/f(x) is the reciprocal. They are different ideas.
How do I tell from a graph if a function is one-to-one?
Use the horizontal line test. If any horizontal line crosses the graph more than once, it is not one-to-one.
What does composition tell me?
If f(f⁻¹(x)) = x and f⁻¹(f(x)) = x, the two functions are inverses.
Are inverses on the SAT?
Occasionally, mostly through logs and exponentials. Inverse trig appears on pre-calc tests, not the SAT.
Closing Thought
Finding an inverse is a four-step recipe (write, swap, solve, rename), and verifying it is a one-line composition check. Recognize when a function is not one-to-one, restrict the domain when needed, and sketch the reflection across y = x to double-check. Inverses are one of the cleanest topics in Algebra 2 once the algorithm clicks.
For more practice, browse our Algebra 2 worksheets and our full Math Topics library. When you are ready for a structured workbook, our Algebra 2 collection covers inverse functions in depth.
Related to This Article
More math articles
- How to Multiply Mixed Numbers? (+FREE Worksheet!)
- Top 10 TSI Math Test-taking Tips
- How to Find the Area of a Triangle: Every Formula Explained
- Pre-Algebra FREE Sample Practice Questions
- The Best Grade 3 Math Book for Georgia Students
- The Best Grade 3 ELA Practice Tests for Hawaii Students
- Top 10 CLEP College Algebra Practice Questions
- Ratio, Proportion and Percentages Puzzle -Critical Thinking 9
- How to Be A Great SAT/ACT Math Tutor?
- TASC Math – Test Day Tips










What people say about "How to Find the Inverse of a Function: Step-by-Step Guide for 2026 - Effortless Math"?
No one replied yet.