Report

Help us improve this tool

Inverse Function Calculator

Find the inverse of any function f(x) with step-by-step solutions. Free online inverse function calculator for algebra, calculus, and advanced math.

O M T

What is an Inverse Function?

An inverse function, denoted as $f^{-1}(x)$, reverses the operation of the original function $f(x)$. If $f(a) = b$, then $f^{-1}(b) = a$. In other words, the inverse function "undoes" what the original function does. This calculator helps you find the inverse of common function types with step-by-step algebraic solutions.

Key Properties of Inverse Functions

  • Composition property: $f(f^{-1}(x)) = x$ and $f^{-1}(f(x)) = x$ for all $x$ in their respective domains.
  • Graphical relationship: The graph of $f^{-1}(x)$ is the reflection of $f(x)$ across the line $y = x$.
  • Domain and range swap: The domain of $f$ becomes the range of $f^{-1}$, and vice versa.
  • One-to-one requirement: Only one-to-one functions have inverses over their entire domain.

How to Find the Inverse of a Function

The general process for finding an inverse function algebraically follows these steps:

  1. Replace $f(x)$ with $y$: Write the function as $y = f(x)$ to simplify manipulation.
  2. Swap $x$ and $y$: Interchange the variables to reverse the input-output relationship.
  3. Solve for $y$: Use algebraic techniques to isolate $y$ on one side of the equation.
  4. Write in function notation: Replace $y$ with $f^{-1}(x)$ to express the inverse properly.
  5. Verify: Check that $f(f^{-1}(x)) = x$ to confirm correctness.

Supported Function Types

This calculator supports the following function types:

  • Linear functions (e.g., $2x + 3$): The inverse is found by simple algebraic rearrangement.
  • Rational functions (e.g., $\frac{x-1}{x+2}$): The inverse involves cross-multiplication and solving.
  • Power functions (e.g., $x^3 - 1$): The inverse uses root operations.
  • Exponential functions (e.g., $e^x$): The inverse uses natural logarithms.
  • Logarithmic functions (e.g., $\ln(x)$): The inverse uses exponential functions.
  • Radical functions (e.g., $\sqrt{x+4}$): The inverse involves squaring and domain restrictions.

Common Inverse Functions Reference

Original Function $f(x)$Inverse Function $f^{-1}(x)$
$f(x) = x + a$$f^{-1}(x) = x - a$
$f(x) = ax$$f^{-1}(x) = \frac{x}{a}$
$f(x) = ax + b$$f^{-1}(x) = \frac{x - b}{a}$
$f(x) = x^2$ (for $x \ge 0$)$f^{-1}(x) = \sqrt{x}$
$f(x) = x^3$$f^{-1}(x) = \sqrt[3]{x}$
$f(x) = e^x$$f^{-1}(x) = \ln(x)$
$f(x) = \ln(x)$$f^{-1}(x) = e^x$
$f(x) = \frac{1}{x}$$f^{-1}(x) = \frac{1}{x}$ (self-inverse)

When Does a Function Have an Inverse?

Not all functions have inverse functions. A function has an inverse if and only if it is one-to-one (also called injective). This means each output value corresponds to exactly one input value.

The Horizontal Line Test: A function passes the horizontal line test if no horizontal line intersects its graph more than once. If a function passes this test, it has an inverse over its entire domain.

  • Linear functions (with non-zero slope) are always one-to-one.
  • Quadratic functions are not one-to-one over all real numbers (they fail the horizontal line test).
  • Strictly monotonic functions (always increasing or always decreasing) are one-to-one.

Restricting the Domain

When a function is not one-to-one, we can restrict its domain to make it one-to-one. For example:

  • $f(x) = x^2$ is not one-to-one over all reals, but restricting to $x \ge 0$ makes it one-to-one with inverse $f^{-1}(x) = \sqrt{x}$.
  • $f(x) = \sin(x)$ is not one-to-one, but restricting to $-\frac{\pi}{2} \le x \le \frac{\pi}{2}$ makes it one-to-one with inverse $f^{-1}(x) = \arcsin(x)$.

Example: Finding the Inverse of a Linear Function

Find the inverse of $f(x) = 3x - 5$:

  1. Write as $y = 3x - 5$
  2. Swap: $x = 3y - 5$
  3. Solve for $y$: $x + 5 = 3y$, so $y = \frac{x + 5}{3}$
  4. Therefore, $f^{-1}(x) = \frac{x + 5}{3}$

Why Inverse Functions Matter

Inverse functions are fundamental in mathematics and its applications:

  • Solving equations: Inverse functions allow us to "undo" operations and solve for unknowns.
  • Cryptography: Encryption and decryption rely on functions and their inverses.
  • Physics: Converting between temperature scales, coordinate systems, and measurement units.
  • Computer graphics: Transformations and their inverses are used in rendering and animation.
  • Economics: Supply and demand functions often involve inverse relationships.

Frequently Asked Questions

What does the $-1$ in $f^{-1}(x)$ mean?

The $-1$ in $f^{-1}(x)$ is not an exponent. It is notation that indicates the inverse function. It should not be confused with $\frac{1}{f(x)}$, which is the reciprocal of $f(x)$. The inverse function undoes the operation of $f$, while the reciprocal is the multiplicative inverse.

Can I find the inverse of any function?

Not all functions have inverses. Only one-to-one functions have inverse functions over their entire domain. If a function fails the horizontal line test, it does not have an inverse over its entire domain. However, you may be able to restrict the domain to create an invertible function.

How do I verify that my inverse is correct?

To verify, check that both $f(f^{-1}(x)) = x$ and $f^{-1}(f(x)) = x$. If both compositions equal $x$, your inverse is correct. For example, if $f(x) = 2x + 3$ and $f^{-1}(x) = \frac{x - 3}{2}$, then $f(f^{-1}(x)) = 2\left(\frac{x - 3}{2}\right) + 3 = x - 3 + 3 = x$.

What is the horizontal line test?

The horizontal line test is a visual way to determine if a function has an inverse. If any horizontal line drawn through the function's graph intersects it more than once, the function is not one-to-one and does not have an inverse over its entire domain. Functions that pass the test are called injective or one-to-one.

What are self-inverse functions?

Self-inverse functions (also called involutions) are functions that are their own inverse, meaning $f(f(x)) = x$ for all $x$ in the domain. Examples include $f(x) = -x$, $f(x) = \frac{1}{x}$ (for $x \ne 0$), and $f(x) = c - x$ for any constant $c$.