# Verifying if Two Functions are Inverses of Each Other

Previously, you learned how to find the inverse of a function. This time, you will be given **two functions** and will be asked to **prove or verify** if they are inverses of each other. But how?

The procedure is really simple. But before I do so, I want you to get some basic understanding of how the “verifying” process works. Let’s take a look at the diagram below.

Suppose you’re given two functions, namely, f\left( x \right) and g\left( x \right).

Think about this, if I plug x=2 into f\left( x \right), I get an output of \color{blue}5. Now, I plug x=5 into g\left( x \right). What is the output value?

Well, I got the answer \color{red}2 which is the original input value for f\left( x \right) of the function I started with. That’s a good observation. Can I say, what goes around comes around? This is precisely the main idea of what we’re going to do when we are asked to verify or prove if two functions are inverses of each other.

## Steps on How to Verify if Two Functions are Inverses of Each Other

Verifying if two functions are inverses of each other is a simple two-step process.

**STEP 1**:

- Plug g\left( x \right) into f\left( x \right), then simplify.

- If true, move to Step 2.
- If false, STOP! That means f\left( x \right) and g\left( x \right) are not inverses.

**STEP 2**:

- Plug f\left( x \right) into g\left( x \right), then simplify.

- If true again, then f\left( x \right) and g\left( x \right) are inverses. Success!
- If false, then f\left( x \right) and g\left( x \right) are not inverses.

Technically, for f\left( x \right) and g\left( x \right) to be inverses of each other, you must show that function composition works both ways! Therefore, the composition of function \color{blue}f with \color{red}g equals x, and vice versa. It is “elegantly” summarized in the equation below.

**CONCLUSION:**

### Examples of How to Verify if Two Functions are Inverses of Each Other

**Example 1:** Verify or prove the functions are inverses of each other.

- For
**Step 1**, I will take g\left( x \right) as the input of f\left( x \right). That means I will substitute whatever the equation of g\left( x \right) to every x in f\left( x \right), then simplify.

- For
**Step 2**, I simply reverse the process, that is, make f\left( x \right) as the input of g\left( x \right).

Since the results above came out very nicely, both x, then I can claim that functions f\left( x \right) and g\left( x \right) are indeed inverses of each other.

**Example 2:** Verify or prove the functions are inverses of each other.

I have two rational functions, and so I expect the composition process to be a bit tedious either way. As long as I am being careful and actually making small progress in every step of my solution, then it should encourage me to finally get it right!

I start composing g\left( x \right) with f\left( x \right).

The simplified answer is 2x which missed our target of just \large\color{green}x. I would stop here right away and conclude that f\left( x \right) and g\left( x \right) are not inverses of each other.

**Example 3:** Verify or prove the functions are inverses of each other.

- Show that f\left[ {g\left( x \right)} \right] = x

- Show that g\left[ {f\left( x \right)} \right] = x.

Since both outputs are \large\color{green}x then f\left( x \right) and g\left( x \right) are inverses of each other!

**Example 4:** Verify or prove the functions are inverses of each other.

I will substitute the formula of g\left( x \right) into f\left( x \right), then simplify.

Remember we need to arrive at \large\color{green}x, that is, x with a coefficient of +1, and not -1. What we have though is a coefficient of -1 which is NOT what we want. Therefore, this slight or small difference should make us conclude that f\left( x \right) and g\left( x \right) are not inverses of each other which means that there’s no need to do Step 2.