# Explainer: Inverse of a Function

In this explainer, we will learn how to find the inverse of a function by changing the subject of the formula.

The concept of the inverse of a function builds on the concept of a function. First, make sure you are familiar with the key vocabulary we are going to use.

### Definition: Key Vocabulary

A function associates an output called to an input . It is defined by an equation that shows how the output is calculated given the input. For instance, the function associates to any half of its value plus 3.

If we plot the graph , we get a line that represents the mapping of all possible input values onto their corresponding output values . This means that any point of coordinates on this line gives a pair of solutions to the equation .

The graph can then be used to find an output value given an input value .

The domain of a function is the set of all possible input numbers (on the -axis). The range of a function is the set of all outputs (on the -axis).

Now that the concept of function is clear in your mind, we can define the inverse of a function.

### Definition: Inverse of a Function

The inverse of a function is a function that “goes backwards”: if applied to an input gives an output , then the inverse of (called ) applied to gives : and .

### Example 1: Determining Whether Two Functions Are Inverses of One Another

Let and . Is it true that is the inverse of and is the inverse of ?

We could try and find equations for inverses, but we should remember that the composition of a function with its inverse is the identity while

We conclude that and are inverses of each other.

The first way to find the inverse of a function is to find its graph from the graph of the original function.

### How to: Plot the Inverse of a Function from Its Graph

From the definition of the inverse of a function, we see that, for the inverse function, the roles of and are swapped over with respect to the original function. It means that if we flip the whole graph so that the -axis is in the previous position of the -axis and vice-versa, then we get the graph of the inverse function. This geometric transformation is actually a reflection in the line .

For instance, the diagram below shows (black line) and (red line).

We can easily check with the two graphs that for any ; if , then . For instance, with , and .

When finding the inverse of the function , becomes the input and the output. As we have just seen, this process is represented graphically as a reflection in the line . What about the domain and the range of the inverse of the function ?

### About: Domain and Range of the Inverse of a Function

By indicating the domain and range of a function on the -axis and -axis, one can visualize that the domain and range of are swapped for : the range of is the domain of and the domain of is the range of .

The second way to find the function , the inverse of function , is to start from the equation of and use algebra to find the equation of .

### How to: Find the Inverse of a Function Algebraically

We know that the function is the inverse of function if for all points that satisfy we have . We want now to find an expression where is the input and is the output. With respect to , this means that and are swapped.

Starting from , we substitute with and with . Then, we rearrange the equation in the form .

Finally, the range of needs to be determined in order to state the domain of .

### Example 2: Finding the Inverse of a Function Algebraically

Find for .

1. We swap for and for in . This gives .
2. We rearrange the previous equation in the form .
1. We take away 3 from each side of the equation: .
2. We multiply each side by 2: .
3. We expand the brackets on the right-hand side of the equation: .
3. We find the range of : all the real numbers. The domain does not need to be specified in this case.
4. We write our solution: .

### Example 3: Finding the Inverse of a Function Algebraically

Find for .

1. We swap for and for in . This gives .
2. We rearrange the previous equation in the form .
1. We add 2 to each side of the equation: .
2. We divide each side by 3: .
3. We find the range of : all the real numbers.
4. We write our solution: .

### Example 4: Finding the Inverse of a Function Algebraically

Find for .

1. We swap for and for in . This gives .
2. We rearrange the previous equation in the form .
1. We take away 3 from each side of the equation: .
2. We raise each side to the power of 3: .
3. We find the range of : all the real numbers.
4. We write our solution: .

### Example 5: Finding the Inverse of a Function Algebraically

Find for .

1. We swap for and for in . This gives .
2. We rearrange the previous equation in the form .
1. We take away 3 from each side of the equation: .
2. We square each side: .
3. We find the range of : the square root function gives only positive numbers, so the range of is all numbers greater than or equal to 3, which is written as . Therefore, the domain of is .
4. We write our solution: for .

The diagram below shows the graph of and its inverse . The function for all the real numbers is actually a parabola. Here, by restricting the domain to , we have only half of the parabola that is the reflection of in the line .

### Example 6: Finding the Inverse of a Function Algebraically

Find for , where .

1. We swap for and for in . This gives .
2. We rearrange the previous equation in the form .
1. We add 3 to each side of the equation: .
2. We take the square roots of each side: .
3. We add 2 to each side: .
3. We find the range of : is a quadratic function and it is given here in its vertex form, so we know that the parabola’s vertex is the point of coordinates and its minimum is . As the domain of is , the function is actually half a parabola, as shown in the diagram below. Its range is ; therefore, the domain of is .
4. We write our solution: for .