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)=3x−5f\left(x\right) = 3x - 5

f−1(x)=x+53\displaystyle f^{-1}\left(x\right) = \frac{x + 5}{3}

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=3x−5y = 3x - 5
  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=3y−5x = 3y - 5
  3. Isolating the term with y

    Move the constant term by adding 55 on both sides, so the term with yy is alone.

    x+5=3yx + 5 = 3y
  4. Dividing by the coefficient of y

    Divide both sides by the number multiplying yy, which is 33, to leave yy alone.

    y=x+53y = \frac{x + 5}{3}
  5. Domain of the inverse

    The domain of the inverse is the range of ff. A line that is not horizontal takes every real value, so the inverse accepts every real number.

  6. Result

    So the inverse function is f−1(x)=x+53f^{-1}\left(x\right) = \frac{x + 5}{3}.

Worked examples