Skip to main content

Inverse functions

One-to-one functions can be inverted so that the inputs and outputs are reversed. They are crucial where we need effective reversal of processes and calculations, like undoing equations in physics, computer graphics transformations, or decrypting data. Use this resource to learn about inverse functions and how to graph them.

If a function f maps x to y, then its inverse function, denoted by f1, maps y back to x. For a function to have an inverse, it must be one-to-one. This means that every x has a unique y.

To inverse a function, we simply swap the x and y in each ordered pair. For example:

  • Coordinate (a,b) is an element of function f or (a,b)f.
  • Coordinate (b,a) would be an element of function f1 or (b,a)f1.

The domain and range also swap. So:

  • The domain of f is the range of f1.
  • The range of f is the domain of f1.

Graphs of inverse functions

A function f and its inverse f1 are symmetrical about the line y=x.

Graph showing a function and an inverse function mirrored about the line y equals x

Finding inverse functions

To find the inverse of a function, we simply interchange x and y, then rearrange the function so that it is in terms of y.

Example 1 – finding inverse functions

For f:RR, where y=f(x)=x12, find the f1.

To find the inverse function, we swap or interchange x and y, then rearrange the function so that it is in terms of y.
y=x12x=y122x=y1y=2x+1

Therefore, f1(x)=2x+1.

Find the inverse function of f where f(x)=23x.
y=23xx=23yx2=3yx+2=3yy=x+23

Therefore, f1(x)=x+23.

Exercise

Find the inverse of the following one-to-one functions.

  1. y=x+5
  2. y=4x
  3. y=2x+13
  4. y=2x1 where x12

  1. f1(x)=x5
  2. f1(x)=x4
  3. f1(x)=3x12 or f1(x)=32x12
  4. f1(x)=x2+12 or f1(x)=12x2+12 for x0

Images on this page by RMIT, licensed under CC BY-NC 4.0