Inverse Function Calculator

Enter a function of x to swap x and y and solve for the inverse.

Use x, + − × ÷ ^, brackets, sqrt, abs, ln, log and e.

Try

Result

You enteredf(x)=ex−1f\left(x\right) = e^{x} - 1

f−1(x)=ln⁡(x+1)\displaystyle f^{-1}\left(x\right) = \ln\left(x + 1\right)

Domain of the inverse

x>−1\displaystyle x > -1

Check

f(f−1(x))=x\displaystyle f\left(f^{-1}\left(x\right)\right) = x
Show the work
  1. Writing y for f(x)

    Replace f(x)f(x) with yy, so that the output has a letter of its own to work with.

    y=ex−1y = e^{x} - 1
  2. Swapping x and y

    An inverse function undoes ff, so inputs and outputs trade places. Swap the letters xx and yy, then solve for the new yy.

    x=ey−1x = e^{y} - 1
  3. Isolating the exponential

    Move the constant by adding 11 on both sides.

    x+1=eyx + 1 = e^{y}
  4. Natural logarithm undoes e to a power

    The logarithm to base ee is the inverse operation of raising ee to a power. Taking it on both sides turns the exponent yy into a plain yy.

    Using y=ln⁡x  ⟺  ey=xy = \ln x \iff e^{y} = x

    y=ln⁡(x+1)y = \ln\left(x + 1\right)
  5. Domain of the inverse

    The domain of the inverse is the range of ff. An exponential is positive, so ff stays above −1-1 and never reaches it. The logarithm needs a positive argument, which says the same thing.

    x>−1x > -1
  6. Result

    So the inverse function is f−1(x)=ln⁡(x+1)f^{-1}\left(x\right) = \ln\left(x + 1\right).

Worked examples