What is the inverse of a function?

If we consider a function ff defined from a set AA to another set BB, then the inverse of the functionff, denoted by f1f^{-1}, is a function defined from the set BB to the set AA, such that for every element aAa\in A, f1(f(a))=af^{-1}(f(a))=a. Moreover, a function whose inverse exists is called an invertible function.

In general, a function can be or not be invertible. Hence, it is natural to seek, when a function is invertible.

When is a function invertible?

A function is invertible if and only if it is a one-to-one correspondence. We must present an argument for both sides to see why this statement is correct. Let’s see both sides one by one.

First, we must show that if a function f:ABf: A\to B is invertible, then it is a one-to-one correspondence. Moreover, because ff is an invertible function, f1f^{-1} exists. If the function ff is not one-to-one, that means a1a_1 and a2a_2 are distinct elements in AA and bBb\in B such that f(a1)=f(a2)=bf(a_1)=f(a_2) = b. In that case, what is f1(b)f^{-1}(b)? This is a contradiction because we started with the assumption that ff is invertible hence f1f^{-1} is well-defined. Therefore, ff is a one-to-one function. If the function ff is not surjective, then there is an element bBb\in B which is not an image of any element of AA under the function ff. In that case, what is f1(b)f^{-1}(b)? This is also a contradiction because we started with the assumption that ff is invertible hence f1f^{-1}is well-defined. Therefore, ff is an surjective function. As a result, ff is a one-to-one correspondence.

Now, we must show that if a function f:ABf: A\to B is a one-to-one correspondence, then it is invertible. Because ff is a one-to-one correspondence, every element of the domain has a unique image in the codomain, and every element of the codomain has a preimage in the domain. We can define a function f1:BAf^{-1}:B\to A such that for aAa\in A and bBb\in B, if f(a)=bf(a) = b, f1(b)=af^{-1}(b) = a. To see that f1f^{-1} is a well-defined inverse function, we can notice that every element of BB is an image of some element of AA under the function ff. So, f1f^{-1} is defined for every element of BB. In addition, becauseff is one-to-one, f1f^{-1} does not map any element of BB to more than one element of AA. This makes f1f^{-1} a well-defined inverse function of ff. With this, we’ve concluded our proof.

The inverse of a function is invertible

Let’s suppose there is a function f:ABf:A\to B and its inverse is f1:BAf^{-1}:B\to A. We can tell that the f1f^{-1} function is injective because no two elements of BB are mapped by f1f^{-1} to a single element of AA because ff is a function. Because every element of AA has an image under ff, it follows that f1f^{-1} is surjective. Therefore, if a function ff is invertible, then its inverse, f1f^{-1}, is also an invertible function.

Composition of a function and its inverse

We learned that a function on a set AA that maps every element to itself is called an identity function of AA and is denoted by IAI_A. If we look at the composition of a function f:ABf:A\to B and its inverse f1:BAf^{-1}:B\to A, we always get the identity function. If f(a)=bf(a) = b for any aAa\in A and bBb\in B, then by definition f1(b)=af^{-1}(b) =a. Therefore, f1f(a)=f1(f(a))=f1(b)=af^{-1}\circ f(a) = f^{-1}(f(a)) = f^{-1}(b) = a from which follows thatf1f=IAf^{-1}\circ f = I_A. Similarly, f(f1(b))=f(a)=bf(f^{-1}(b)) = f(a) = b. As a result, ff1=IBf\circ f^{-1} = I_B.

Examples

Let’s consider the following sets:

Get hands-on with 1400+ tech skills courses.