Inverse Function

The inverse function undoes another function: applying it after the original function returns your input value unchanged.

f(f−1(x))=xf\big(f^{-1}(x)\big) = x

Solve a problem with Inverse Function

Type the problem. The solver will use Inverse Function where Inverse Function is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Inverse Function takes
ff
xx
Inverse Function →
SymbolMeaning
ffThe original function that transforms an input into an output; the inverse f−1f^{-1} is defined so that applying ff to f−1(x)f^{-1}(x) retrieves the starting value, undoing any transformation that obscured it.
xxAn input value to the inverse function f−1f^{-1}; it represents an output that the original function ff produced, so f(f−1(x))=xf(f^{-1}(x)) = x shows that ff completely reverses the effect of f−1f^{-1}.

When to use it

Reach for inverse functions when you need to solve equations, switch roles of input and output, or undo a function's effect on a value.

Level

Usually taught in: Algebra II

Worked examples

1. Simple linear function with small integers

Problem

Given f(x)=2x+3f(x) = 2x + 3, find f−1(x)f^{-1}(x) and verify that f(f−1(x))=xf(f^{-1}(x)) = x.
  1. y=2x+3y = 2x + 3

    Write the function using yy instead of f(x)f(x) to prepare for swapping input and output.

  2. x=2y+3x = 2y + 3

    Swap xx and yy because the inverse function has input and output reversed.

  3. x−3=2yx - 3 = 2y

    Subtract 3 from both sides to isolate the term with yy.

  4. y=x−32y = \frac{x - 3}{2}

    Divide both sides by 2 to solve for yy, which represents f−1(x)f^{-1}(x).

  5. f(f−1(x))=2⋅x−32+3f(f^{-1}(x)) = 2 \cdot \frac{x - 3}{2} + 3

    Substitute f−1(x)=x−32f^{-1}(x) = \frac{x-3}{2} into f(x)=2x+3f(x) = 2x + 3 to verify the relationship.

  6. =(x−3)+3= (x - 3) + 3

    The 2 and 12\frac{1}{2} cancel, leaving (x−3)(x - 3) plus the constant 3.

  7. =x= x

    Subtracting and adding 3 produces xx, confirming that f(f−1(x))=xf(f^{-1}(x)) = x.

Answer: f−1(x)=x−32f^{-1}(x) = \frac{x - 3}{2}

To find the inverse of a linear function, swap the variables and solve for the new output. We then verify our answer by composing ff with f−1f^{-1} to confirm that f(f−1(x))=xf(f^{-1}(x)) = x, which proves the inverse is correct.

2. Inverse with fractions and negative terms

Problem

For f(x)=4−x3f(x) = \frac{4 - x}{3}, find f−1(x)f^{-1}(x) and verify that f(f−1(x))=xf(f^{-1}(x)) = x.
  1. y=4−x3y = \frac{4 - x}{3}

    Rewrite the function using yy to prepare for swapping variables.

  2. x=4−y3x = \frac{4 - y}{3}

    Swap xx and yy to set up the inverse function relationship.

  3. 3x=4−y3x = 4 - y

    Multiply both sides by 3 to clear the denominator.

  4. 3x−4=−y3x - 4 = -y

    Subtract 4 from both sides, being careful with signs when isolating the term with yy.

  5. y=4−3xy = 4 - 3x

    Multiply both sides by −1-1 to solve for yy, which is f−1(x)f^{-1}(x).

  6. f(f−1(x))=4−(4−3x)3f(f^{-1}(x)) = \frac{4 - (4 - 3x)}{3}

    Substitute f−1(x)=4−3xf^{-1}(x) = 4 - 3x into ff to verify.

  7. =4−4+3x3= \frac{4 - 4 + 3x}{3}

    Distribute the negative sign: −(4−3x)=−4+3x-(4 - 3x) = -4 + 3x, then add to 4.

  8. =3x3=x= \frac{3x}{3} = x

    Simplify the fraction to confirm that f(f−1(x))=xf(f^{-1}(x)) = x, verifying our inverse is correct.

Answer: f−1(x)=4−3xf^{-1}(x) = 4 - 3x

Functions with negative terms and fractions require the same swap-and-solve method, but demand extra care with signs when rearranging. The verification step is especially valuable here to catch any arithmetic errors with negative numbers.

3. Phone plan: finding data usage from total bill

Problem

Your phone plan charges $50 per month plus $2 per gigabyte used. Your bill was $80. Find the inverse function that calculates data usage from the total bill, then use it to determine how many gigabytes you used.
  1. C=50+2xC = 50 + 2x

    Write the cost function where xx is gigabytes (input) and CC is the bill amount (output).

  2. y=50+2xy = 50 + 2x

    Rewrite using yy instead of CC to prepare for finding the inverse.

  3. x=50+2yx = 50 + 2y

    Swap xx and yy to reverse the input and output roles, setting up the inverse.

  4. x−50=2yx - 50 = 2y

    Subtract 50 from both sides to isolate the term with yy.

  5. y=x−502y = \frac{x - 50}{2}

    Divide both sides by 2; this yy is now C−1(x)C^{-1}(x), converting a bill to gigabytes.

  6. C−1(80)=80−502C^{-1}(80) = \frac{80 - 50}{2}

    Apply the inverse function to the bill of $80 to find the data used.

  7. =302=15= \frac{30}{2} = 15

    Subtract: 80−50=3080 - 50 = 30, then divide by 2 to get 15 gigabytes.

  8. C(C−1(80))=50+2(15)=50+30=80C(C^{-1}(80)) = 50 + 2(15) = 50 + 30 = 80

    Verify: plugging 15 back into the original function confirms the bill is $80, so C(C−1(x))=xC(C^{-1}(x)) = x.

Answer: C−1(x)=x−502; you used 15 gigabytesC^{-1}(x) = \frac{x - 50}{2} \text{; you used } 15 \text{ gigabytes}

Real-world problems often know the output and need the input, which is exactly where inverse functions shine. This example shows why we need to 'reverse' a formula: we know the bill and must find the data. The verification step confirms our answer is sensible.

Common mistakes

Where Inverse Function usually goes wrong
Answer came out wrong
Writing f−1(x)=1f(x)f^{-1}(x) = \frac{1}{f(x)} or f−1(x)=12x+3f^{-1}(x) = \frac{1}{2x + 3} (treating the inverse as a reciprocal)
Find f−1f^{-1} by swapping xx and yy in y=f(x)y = f(x) and solving for yy. For f(x)=2x+3f(x) = 2x + 3, the inverse is f−1(x)=x−32f^{-1}(x) = \frac{x-3}{2}, not 12x+3\frac{1}{2x+3}.
Swapping xx and yy but then solving the wrong equation, or only performing one step (subtracting or dividing but not both)
After swapping to x=2y+3x = 2y + 3, always solve for yy by isolating it: first subtract 3 to get x−3=2yx - 3 = 2y, then divide by 2 to get y=x−32y = \frac{x-3}{2}, which is f−1(x)f^{-1}(x).
Forgetting to verify that f(f−1(x))=xf(f^{-1}(x)) = x after finding the inverse, or skipping the simplification
After finding f−1f^{-1}, substitute it back into ff and simplify completely; you must get xx. If you get anything else, recheck your algebra, especially signs and fractions.
The mistakeWhy it is wrongThe fix
Writing f−1(x)=1f(x)f^{-1}(x) = \frac{1}{f(x)} or f−1(x)=12x+3f^{-1}(x) = \frac{1}{2x + 3} (treating the inverse as a reciprocal)The notation f−1f^{-1} means the inverse function, not the reciprocal; the reciprocal formula 1f(x)\frac{1}{f(x)} is a completely different object that does not satisfy f(f−1(x))=xf(f^{-1}(x)) = x.Find f−1f^{-1} by swapping xx and yy in y=f(x)y = f(x) and solving for yy. For f(x)=2x+3f(x) = 2x + 3, the inverse is f−1(x)=x−32f^{-1}(x) = \frac{x-3}{2}, not 12x+3\frac{1}{2x+3}.
Swapping xx and yy but then solving the wrong equation, or only performing one step (subtracting or dividing but not both)After swapping, you must solve for yy completely; if you stop halfway or solve for the wrong variable, you end up with the original function or an incomplete expression.After swapping to x=2y+3x = 2y + 3, always solve for yy by isolating it: first subtract 3 to get x−3=2yx - 3 = 2y, then divide by 2 to get y=x−32y = \frac{x-3}{2}, which is f−1(x)f^{-1}(x).
Forgetting to verify that f(f−1(x))=xf(f^{-1}(x)) = x after finding the inverse, or skipping the simplificationVerification catches arithmetic errors in your swap-and-solve work and proves your inverse is actually correct; without it, you may not notice sign errors, fraction mistakes, or incomplete algebra.After finding f−1f^{-1}, substitute it back into ff and simplify completely; you must get xx. If you get anything else, recheck your algebra, especially signs and fractions.

Tips and when to use something else

  • Linear functions always have inverses when the coefficient of xx is nonzero: if f(x)=mx+bf(x) = mx + b with m≠0m \ne 0, then f−1(x)=x−bmf^{-1}(x) = \frac{x - b}{m}.
  • The graphs of ff and f−1f^{-1} are reflections of each other across the line y=xy = x; if you plot both, they will mirror each other perfectly.
  • Not every function has an inverse: the function must be one-to-one (pass the horizontal line test). If a function is not one-to-one, restrict its domain before finding an inverse.
  • Inverse functions offer a shortcut for solving equations: instead of solving 2x+3=112x + 3 = 11 by algebra, use f−1(x)=x−32f^{-1}(x) = \frac{x-3}{2} to get x=f−1(11)=11−32=4x = f^{-1}(11) = \frac{11-3}{2} = 4 directly, which is sometimes faster than Solving Equations by hand.

Frequently asked questions

Is f−1(x)f^{-1}(x) the same as 1f(x)\frac{1}{f(x)}?
No. The notation f−1f^{-1} denotes the inverse function, not the reciprocal. For example, if f(x)=2xf(x) = 2x, then f−1(x)=x2f^{-1}(x) = \frac{x}{2}, not 12x\frac{1}{2x}. The inverse is defined by the property f(f−1(x))=xf(f^{-1}(x)) = x.
Do all functions have an inverse function?
No. Only one-to-one functions (those that pass the horizontal line test) have inverses that are also functions. For example, f(x)=x2f(x) = x^2 is not one-to-one over all real numbers because f(2)=f(−2)=4f(2) = f(-2) = 4. However, if you restrict the domain to x≥0x \ge 0, then f(x)=x2f(x) = x^2 does have an inverse.
How do I check if I found the correct inverse?
Use the composition test: substitute your proposed f−1f^{-1} into ff and simplify. If you get xx, your inverse is correct, because f(f−1(x))=xf(f^{-1}(x)) = x is the defining property. If you do not get xx, recheck your algebra for errors.
If f(f−1(x))=xf(f^{-1}(x)) = x, is f−1(f(x))=xf^{-1}(f(x)) = x also true?
Yes. For any one-to-one function and its inverse (with appropriate domain restrictions), both f(f−1(x))=xf(f^{-1}(x)) = x and f−1(f(x))=xf^{-1}(f(x)) = x hold true. These two equations show that ff and f−1f^{-1} completely undo each other in both directions.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18