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)=ln⁡(x−1)f\left(x\right) = \ln\left(x - 1\right)

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

Domain of the inverse

x∈R\displaystyle x \in \mathbb{R}

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=ln⁡(x−1)y = \ln\left(x - 1\right)
  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=ln⁡(y−1)x = \ln\left(y - 1\right)
  3. Exponential undoes the natural logarithm

    Raising ee to each side undoes the logarithm, because the two are inverse operations.

    Using ln⁡u=v  ⟺  ev=u\ln u = v \iff e^{v} = u

    ex=y−1e^{x} = y - 1
  4. Solving for y

    Subtract −1-1 and divide by the coefficient 11 of yy, so yy is alone.

    y=ex+1y = e^{x} + 1
  5. Domain of the inverse

    The domain of the inverse is the range of ff. A logarithm takes every real value, so the inverse accepts every real number.

  6. Result

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

Worked examples