Inverse Function Calculator (Free, with Graph)

AlgebraFreeNo sign-up

An inverse function calculator undoes a function: write y = f(x), swap x and y, and solve for y. For f(x) = 3x − 5, swapping gives x = 3y − 5, so f⁻¹(x) = (x + 5)/3. For f(x) = (2x + 1)/(x − 3), the same steps give f⁻¹(x) = (3x + 1)/(x − 2).

Inverse function calculator with steps
Reads asf(x) = 2x + 1x − 3
Type 3x – 5, (2x + 1)/(x – 3), x^3 + 2, sqrt(x – 1), e^(2x), ln(x + 4), (x – 2)^2 + 1 or 2sin(x). For a function that is not one-to-one, such as x^2, pick which half of the domain to keep.
Try:
Inverse function
f⁻¹(x) =3x + 1x − 2
Domain of f(−∞, 3) ∪ (3, ∞)
Range of f(−∞, 2) ∪ (2, ∞)
Domain of f⁻¹(−∞, 2) ∪ (2, ∞)
Range of f⁻¹(−∞, 3) ∪ (3, ∞)
Check f(f⁻¹(x))= x ✓
−4−4−2−22244
y = f(x)y = f⁻¹(x)y = x (mirror line)
Show steps
  1. Swap x and yWrite y = f(x), then swap the letters: x = 2y + 1y − 3
  2. Multiply both sides by the denominatorx(y − 3) = 2y + 1
  3. Expandxy − 3x = 2y + 1
  4. Collect the y-terms on one sideMove every term with y to the left and the rest to the right, then factor out y: y(x − 2) = 3x + 1
  5. Divide by x − 2y = 3x + 1x − 2
  6. Verify by compositionf(f⁻¹(x)) = f((3x + 1)/(x − 2)) = x ✓ for every x in the domain of f⁻¹ (checked at 10 test points) Also f⁻¹(f(x)) = x for every x in the domain of f.
  7. Domain and range swapThe domain of f⁻¹ is the range of f: (−∞, 2) ∪ (2, ∞). The range of f⁻¹ is the domain of f: (−∞, 3) ∪ (3, ∞).
  8. Answerf⁻¹(x) = 3x + 1x − 2

Related: check f(g(x)) with the composition calculator · domain and range calculator · function grapher

Inverse Function Calculator (Free, with Graph)
Embed this calculator on your site

Free to use on class pages, blogs and course pages. Copy the code below and paste it into your page:

How to use the inverse function calculator

  1. Type the function in the box, for example (2x + 1)/(x - 3), sqrt(x - 1) or e^(2x) + 1. The “Reads as” line shows how it was understood.
  2. If f is not one-to-one (like x²), choose which half of the domain to keep: the right half or the left half.
  3. Prefer coefficients? Open the Coefficients tab and enter a, b, c and d for f(x) = (ax + b)/(cx + d).
  4. Read f⁻¹(x), the domain and range of both functions, and the check f(f⁻¹(x)) = x. Type a value in “Find f⁻¹ at” to evaluate the inverse.
  5. Open “Show steps” for the swap-and-solve working. In the graph, f and f⁻¹ are reflections of each other across the dashed line y = x.

How to find an inverse function: swap and solve

  1. Replace f(x) with y.
  2. Swap x and y.
  3. Solve the new equation for y, undoing the operations in reverse order.
  4. Replace y with f⁻¹(x), and check that f(f⁻¹(x)) = x.

Example 1. f(x) = (x + 4)/2. Swap: x = (y + 4)/2. Multiply by 2: 2x = y + 4. Subtract 4: f⁻¹(x) = 2x − 4. Check: f(2x − 4) = (2x − 4 + 4)/2 = x.

Example 2 (a rational function). f(x) = (2x + 1)/(x − 3). Swap: x = (2y + 1)/(y − 3). Multiply both sides by y − 3: xy − 3x = 2y + 1. Collect the y-terms: xy − 2y = 3x + 1, so y(x − 2) = 3x + 1. Divide: f⁻¹(x) = (3x + 1)/(x − 2).

The same steps work for every function of this form. The inverse of f(x) = (ax + b)/(cx + d) is f⁻¹(x) = (b − dx)/(cx − a), as long as ad − bc ≠ 0. If ad − bc = 0, the fraction simplifies to a constant, and a constant has no inverse.

Inverses of roots, powers, exponentials and logarithms

Each operation has an undo. A square root is undone by squaring, a cube by a cube root, eˣ by ln x and 10ˣ by log x. The calculator undoes the outermost operation first, one step at a time:

f(x) f⁻¹(x) Domain of f⁻¹ (= range of f)
3x − 5 (x + 5)/3 all real numbers
x³ + 2 ∛(x − 2) all real numbers
√(x − 1) x² + 1 x ≥ 0
e^(2x) + 1 ln(x − 1)/2 x > 1
ln(x + 4) eˣ − 4 all real numbers
2ˣ ln x/ln 2 = log₂ x x > 0
1/x 1/x x ≠ 0
x² (x ≥ 0) √x x ≥ 0

Watch the √(x − 1) row. The formula x² + 1 works for any x, but the inverse only takes x ≥ 0, because a square root never gives a negative output. The calculator always reports the domain of the inverse as the range of f, not just the natural domain of the formula.

When a function has no inverse: one-to-one and domain restriction

A function has an inverse only if it is one-to-one: different inputs always give different outputs. On a graph, this is the horizontal line test. If some horizontal line crosses the graph twice, there is no inverse. For f(x) = x², both 2 and −2 give 4, so f⁻¹(4) would have to be two numbers at once.

The fix is to restrict the domain to a piece where the function is one-to-one. With x ≥ 0, the inverse of x² is √x. With x ≤ 0, it is −√x. For a quadratic such as x² − 4x + 1, the calculator first completes the square, (x − 2)² − 3. Keeping x ≥ 2 gives f⁻¹(x) = √(x + 3) + 2, with domain x ≥ −3. Trig functions use their standard principal intervals: sin x on −π/2 ≤ x ≤ π/2 has inverse arcsin x, and cos x on 0 ≤ x ≤ π has inverse arccos x.

Some one-to-one functions, like x + eˣ or x³ + x, still have no inverse formula, because x appears in two places that algebra cannot combine. The calculator says so and still draws the inverse as the reflection of f. It can also find f⁻¹ of a single value numerically.

Domain, range and the graph of an inverse

Inputs and outputs trade places, so the domain of f⁻¹ is the range of f, and the range of f⁻¹ is the domain of f. For f(x) = (2x + 1)/(x − 3), f has domain x ≠ 3 and range y ≠ 2. So f⁻¹(x) = (3x + 1)/(x − 2) has domain x ≠ 2 and range y ≠ 3. Every point (a, b) on f becomes the point (b, a) on f⁻¹. That swap is a reflection across the line y = x, which is why the graph uses equal scales on both axes.

Common mistakes with inverse functions

Mistake Fix
Reading f⁻¹(x) as 1/f(x) The −1 means “inverse”, not a power: for f(x) = 3x − 5, f⁻¹(x) = (x + 5)/3, not 1/(3x − 5).
Undoing operations in the wrong order Undo the last operation first, like taking off shoes before socks.
Writing ±√ in the answer An inverse must be a function: restrict the domain and keep one sign.
Forgetting the domain of the inverse Use the range of f: the inverse of √(x − 1) is x² + 1 for x ≥ 0 only.
Not checking Compose: f(f⁻¹(x)) should simplify to x.

Using the calculator for homework

Solve by hand first, then compare with the steps here. If your answer looks different, check whether it is the same function: substitute a number into both, or compose it with f. When a problem asks for “the inverse” of a function that is not one-to-one, state the domain restriction you used. Teachers usually expect the restriction as part of the answer.

Inverse functions practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. What is the inverse of f(x) = 4x + 7?

Found a mistake? Let us know!

2. What is the inverse of f(x) = x³ − 1?

Found a mistake? Let us know!

3. What is the inverse of f(x) = (x − 2)/(x + 1)?

Found a mistake? Let us know!

4. If f(3) = 10, what is f⁻¹(10)?

Found a mistake? Let us know!

5. What is the inverse of f(x) = eˣ + 2?

Found a mistake? Let us know!

6. What is the inverse of f(x) = √(x + 5)?

Found a mistake? Let us know!

7. Which restriction makes f(x) = (x + 1)² one-to-one with inverse √x − 1?

Found a mistake? Let us know!

8. The domain of f⁻¹ is always equal to which of these?

Found a mistake? Let us know!

9. Which function does NOT have an inverse on all real numbers?

Found a mistake? Let us know!

10. What is the inverse of f(x) = 10ˣ?

Found a mistake? Let us know!

Frequently asked questions

What is an inverse function?

An inverse function reverses the original function. If f(2) = 7, then f⁻¹(7) = 2. Composing them in either order gives back the input: f(f⁻¹(x)) = x and f⁻¹(f(x)) = x. Only one-to-one functions have inverses.

How do you find an inverse function without a calculator?

Swap x and y in y = f(x) and solve for y. For f(x) = 3x − 5: x = 3y − 5, so 3y = x + 5 and f⁻¹(x) = (x + 5)/3. Check it: f((x + 5)/3) = 3·(x + 5)/3 − 5 = x.

How do you find an inverse function with a calculator?

Type the function into this page, or use the Coefficients tab for (ax + b)/(cx + d). For f(x) = (2x + 1)/(x − 3), enter a = 2, b = 1, c = 1, d = −3 and the result is f⁻¹(x) = (3x + 1)/(x − 2), with every step shown.

How do you find the domain of an inverse function?

Find the range of the original function: that is the domain of the inverse. For f(x) = (2x + 1)/(x − 3), the range is every y except 2, so f⁻¹ has domain x ≠ 2. Its range is y ≠ 3, the domain of f.

How do you find an inverse function on a graphing calculator?

Graphing calculators draw the inverse instead of solving for it. On a TI-84, enter f as Y1, then use DrawInv Y1 from the DRAW menu (2nd, PRGM). Graph Y2 = X as well to see the mirror line. To get the formula, solve algebraically or use this page.

How do you use the inverse function on a scientific calculator?

The SHIFT or 2nd key gives built-in inverses such as sin⁻¹, cos⁻¹, 10ˣ and eˣ. These evaluate an inverse at a single number, for example sin⁻¹(0.5) = 30° or π/6. A scientific calculator cannot find the formula for a new function. For f(x) = (x + 4)/2, you still find f⁻¹(x) = 2x − 4 by algebra.

Related calculators

More algebra calculators

Browse all 457 calculators

Related to This Article

What people say about "Inverse Function Calculator With Steps & Graph (Free)"?

No one replied yet.

Leave a Reply