Facebook Pixel
Mathos AI logo

Intro to Inverse Functions

Introduction to Inverse Functions

An inverse function is a function that "undoes" the action of another function. If a function ff takes an input xx and gives you an output yy, the inverse function (written as fโˆ’1f^{-1}) takes yy and gives you back xx.

How to Find an Inverse Function

To find the algebraic equation of an inverse function, you can follow a simple process: swap the variables and solve.

Example: Find the inverse of f(x)=3xโˆ’7f(x) = 3x - 7

  1. Replace f(x)f(x) with yy: y=3xโˆ’7y = 3x - 7
  2. Swap xx and yy: x=3yโˆ’7x = 3y - 7
  3. Solve for the new yy: Add 77 to both sides: x+7=3yx + 7 = 3y Divide by 33: y=x+73y = \frac{x + 7}{3}
  4. Replace yy with fโˆ’1(x)f^{-1}(x): fโˆ’1(x)=x+73f^{-1}(x) = \frac{x + 7}{3}

The Horizontal Line Test

Not every function has an inverse. For an inverse to exist, the original function must be one-to-one. This means every output (yy-value) is paired with exactly one input (xx-value).

We can test this visually using the Horizontal Line Test: If you can draw a horizontal line anywhere on the graph and it touches the function more than once, the function does not have an inverse.

Example: Does f(x)=x2f(x) = x^2 have an inverse?

No, it does not. If you look at the graph of f(x)=x2f(x) = x^2 (a parabola) and draw a horizontal line at y=4y = 4, it crosses the graph twice: at x=2x = 2 and x=โˆ’2x = -2. Because it fails the horizontal line test, f(x)=x2f(x) = x^2 does not have an inverse function (unless we restrict its domain to only positive or only negative numbers).

Graphs of Inverse Functions

The graphs of a function and its inverse have a special relationship: they are reflections of each other over the diagonal line y=xy = x.

Because we swap the inputs and outputs to find the inverse, if the original function contains the point (a,b)(a, b), its inverse will always contain the swapped point (b,a)(b, a).