Inverse Functions: Definition, Method and Examples

MathPublished

Inverse Functions: Definition, Method and Examples

An inverse function reverses the input-output process of a one-to-one function. If a function maps an input to a specific output, its inverse maps that output back to the original input.


To find an inverse algebraically, interchange the variables representing the input and output, then solve for the new output variable. The graphs of a function and its inverse are always reflections across the line y=xy=x, and their domains and ranges swap.

What is an inverse function?

An inverse function undoes the action of another function. Using standard function notation, if a function ff takes an input xx and produces an output yy, the inverse function takes yy and produces xx.

The inverse of a function f(x)f(x) is written as f−1(x)f^{-1}(x).

The −1-1 is a label, not an exponent. It indicates the reverse process, meaning f−1(x)f^{-1}(x) is completely different from 1f(x)\dfrac{1}{f(x)}.

When a function is reversed, all of its input and output values trade places. The domain of the original function becomes the range of the inverse function, and the range of the original function becomes the domain of the inverse function.

A mapping diagram showing a function mapping an input x in the domain to an output y in the range, and the inverse function mapping y back to x.


If a point (a,b)(a, b) lies on the graph of f(x)f(x), then the point (b,a)(b, a) will lie on the graph of f−1(x)f^{-1}(x).

Check whether an inverse exists

A function only has an inverse function if it is a one-to-one function. This means every output value is paired with exactly one input value.


If a function produces the same output for two different inputs, reversing the process becomes impossible because the inverse would not know which original input to map back to. Understanding its domain and range helps determine if this overlap happens.


You can verify if a function is one-to-one using the horizontal line test. If any horizontal line intersects the graph of the function more than once, the function is not one-to-one and does not have an inverse over its entire domain.

Two coordinate planes. The left shows a parabola failing the horizontal line test. The right shows a cubic curve passing the horizontal line test.


Some functions, like y=x2y = x^2, are not one-to-one because both x=2x=2 and x=−2x=-2 yield y=4y=4. To create an inverse for this function, you must restrict its domain to x≥0x \geq 0. With this restriction, the function becomes one-to-one, and its inverse is y=xy = \sqrt{x}.

Find an inverse algebraically

To find the equation of an inverse function, you systematically swap the input and output variables. When working with functions in algebra, you will commonly follow a four-step process.

  1. Replace f(x)f(x) with yy.
  2. Interchange all instances of xx and yy.
  3. Solve the new equation for yy.
  4. Replace the new yy with f−1(x)f^{-1}(x).

The fundamental rule for finding an inverse is swapping x and y.


Different types of functions may require distinct algebraic strategies to isolate the new yy, such as factoring or multiplying by a common denominator, but the core four steps remain the same.

Graph inverse functions

The graph of an inverse function is always a mirror image of the original function. The line of reflection is the diagonal line y=xy = x.


Because the process of finding an inverse swaps every xx-coordinate with its corresponding yy-coordinate, any point (a,b)(a, b) on the original function reflects directly across the line y=xy = x to become the point (b,a)(b, a) on the inverse function.

A coordinate plane showing a solid line f(x) and a solid line f inverse(x) reflecting perfectly across the dashed diagonal line y equals x.

If a function intersects its own inverse, the intersection point will always lie perfectly on the line y=xy=x.

Verify compositions

To prove that two functions are inverses, you can test them using composite functions. When you compose a function with its true inverse, they completely cancel each other out, leaving only the original input.


This relationship is written as:

f(f−1(x))=xf(f^{-1}(x)) = x

f−1(f(x))=xf^{-1}(f(x)) = x

A sequence diagram showing an input x entering function f to become output y, which then enters function f inverse to return to the original x.

If substituting one equation into the other simplifies exactly to xx, you have proven that they are inverses. If the result is anything else, they are not inverses.

Worked examples

Review these examples to see how to swap variables and isolate the new output variable for different types of equations.


Example 1: Finding the inverse of a linear function


Question: Find the inverse of the function f(x)=4x−7f(x) = 4x - 7.


Method:

  1. Replace f(x)f(x) with yy:

y=4x−7y = 4x - 7

  1. Interchange xx and yy:

x=4y−7x = 4y - 7

  1. Solve for yy. First, add 77 to both sides:

x+7=4yx + 7 = 4y

  1. Divide both sides by 44:

y=x+74y = \dfrac{x + 7}{4}

  1. Replace yy with f−1(x)f^{-1}(x).

Answer: f−1(x)=x+74f^{-1}(x) = \dfrac{x + 7}{4}


Check: Test a value. Let x=3x=3. The original function gives f(3)=4(3)−7=5f(3) = 4(3) - 7 = 5. Pass 55 into the inverse function: f−1(5)=5+74=3f^{-1}(5) = \dfrac{5 + 7}{4} = 3. It returns the original input.


Example 2: Finding the inverse of a rational function


Question: Find the inverse of f(x)=2x+1x−3f(x) = \dfrac{2x + 1}{x - 3}.


Method:

  1. Replace f(x)f(x) with yy:

y=2x+1x−3y = \dfrac{2x + 1}{x - 3}

  1. Interchange xx and yy:

x=2y+1y−3x = \dfrac{2y + 1}{y - 3}

  1. Multiply both sides by (y−3)(y - 3):

x(y−3)=2y+1x(y - 3) = 2y + 1

  1. Distribute the xx:

xy−3x=2y+1xy - 3x = 2y + 1

  1. Move all terms containing yy to one side:

xy−2y=3x+1xy - 2y = 3x + 1

  1. Factor out yy:

y(x−2)=3x+1y(x - 2) = 3x + 1

  1. Divide by (x−2)(x - 2):

y=3x+1x−2y = \dfrac{3x + 1}{x - 2}

Answer: f−1(x)=3x+1x−2f^{-1}(x) = \dfrac{3x + 1}{x - 2}


Check: Verify the domain and range swap. The vertical asymptote of f(x)f(x) is x=3x=3, making its domain x≠3x \neq 3. The horizontal asymptote of the inverse is y=3y=3, making its range y≠3y \neq 3.


Example 3: Finding the inverse with a restricted domain


Question: Find the inverse of f(x)=x2+5f(x) = x^2 + 5 for x≥0x \geq 0.


Method:

  1. Replace f(x)f(x) with yy:

y=x2+5y = x^2 + 5

  1. Interchange xx and yy:

x=y2+5x = y^2 + 5

  1. Subtract 55 from both sides:

x−5=y2x - 5 = y^2

  1. Take the square root of both sides. Because the original domain was restricted to x≥0x \geq 0, the new range is restricted to y≥0y \geq 0, meaning you only keep the positive root:

y=x−5y = \sqrt{x - 5}

Answer: f−1(x)=x−5f^{-1}(x) = \sqrt{x - 5}


Check: Verify the domains. The original function has a domain of x≥0x \geq 0 and a range of y≥5y \geq 5. The inverse function has a domain of x≥5x \geq 5 and a range of y≥0y \geq 0.

Common mistakes

When working with inverse functions, learners often make three common errors:


Confusing notation: The notation f−1(x)f^{-1}(x) means the inverse function. It does not mean the reciprocal 1f(x)\dfrac{1}{f(x)}. A reciprocal is a multiplicative inverse, not a function inverse.


Forgetting to restrict the domain: For a function like y=(x−2)2y = (x - 2)^2 to have an inverse, its domain must be restricted (e.g., x≥2x \geq 2) so it passes the horizontal line test.


Solving incorrectly for the new $y$: After swapping xx and yy, isolate yy completely using valid algebraic operations. Errors often happen when distributing or factoring during this step.

Frequently asked questions

Does every function have an inverse function?

No. Only one-to-one functions have inverse functions. If a function maps multiple inputs to the same output, reversing it will map one input to multiple outputs, which violates the definition of a function.


How is an inverse relation different from an inverse function?

Every relation has an inverse relation, found by swapping xx and yy. However, that reversed relation is only called an inverse function if it passes the vertical line test and assigns exactly one output to each input.


What happens to the domain and range in an inverse function?

The domain of the original function becomes the range of the inverse function, and the range of the original function becomes the domain of the inverse function.

Practice questions

Question

A coordinate plane showing a one to one function f of x plotted as a curve passing through the point negative three, positive six.

The function f(x)f(x) shown above has an inverse, f−1(x)f^{-1}(x). Which of the following points must lie on the graph of f−1(x)f^{-1}(x)?

  • (6,−3)(6, -3)

  • (−3,−6)(-3, -6)

  • (3,−6)(3, -6)

  • (−6,3)(-6, 3)

Answer:

(6,−3)(6, -3)

Question

Find the inverse of the function f(x)=3x−12f(x) = 3x - 12.

  • f−1(x)=−3x+12f^{-1}(x) = -3x + 12

  • f−1(x)=13x−12f^{-1}(x) = \dfrac{1}{3x - 12}

  • f−1(x)=x−123f^{-1}(x) = \dfrac{x - 12}{3}

  • f−1(x)=x+123f^{-1}(x) = \dfrac{x + 12}{3}

Answer:

f−1(x)=x+123f^{-1}(x) = \dfrac{x + 12}{3}

Question

Which test helps determine if a function's inverse will also be a function?

  • The vertical line test determines if a function has an inverse.

  • The horizontal line test determines if a function has an inverse.

  • The composition test determines if a function has an inverse.

  • The diagonal line test determines if a function has an inverse.

Answer:

The horizontal line test determines if a function has an inverse.

Question

Why must the domain of f(x)=x2f(x) = x^2 be restricted to x≥0x \geq 0 to find its inverse function?

  • Because square roots cannot evaluate negative numbers.

  • Because without a restriction, the function fails the horizontal line test.

  • Because the range of an inverse must always contain positive numbers.

  • Because inverse functions can only reflect in the first quadrant.

Answer:

Because without a restriction, the function fails the horizontal line test.

Question

If f(x)f(x) and g(x)g(x) are inverse functions, what is the result of the composition f(g(x))f(g(x))?

  • 11

  • −x-x

  • xx

  • 00

Answer:

xx