Skip to main content
Logo image

Section 10.5 Inverses

Suppose f:Aβ†’B is a function. By definition, f associates an element of B to each element of A. Sometimes we want to reverse this process: given an element b∈B, can we determine an element a∈A such that f(a)=b? We’ll begin to answer this question by first finding all possible β€œreverse results” from elements in subsets of B.
inverse image (of a subset C of the codomain B)
the set of all domain elements a∈A for function f:Aβ†’B for which the corresponding output element f(a) lies in the subset C of the codomain
fβˆ’1(C)
the inverse image of the subset CβŠ†B under the function f:Aβ†’B, so that
fβˆ’1(C)={a∈A|f(a)∈C}
A Venn diagram of a function inverse image.
Figure 10.5.1. A Venn diagram of a function inverse image.

Example 10.5.3. Some inverse images under sine.

Consider f:Rβ†’R, f(x)=sin⁑x.
fβˆ’1({βˆ’1,0,1})={mΟ€2|m∈Z}
because
sin⁑(mΟ€2)
will equal 0 when m is even and will equal 1 or βˆ’1 when m is odd, and no other input values will produce outputs of 0, 1, or βˆ’1.
However,
fβˆ’1({y∈R|y>1})=βˆ…
because there are no input values for sine that will produce an output value greater than 1.
Now let’s return to the question of trying to reverse an input-output relationship f(a)=b: the set fβˆ’1({b}) collects together all possible candidates for the inverse image of b.
inverse image (of an element b of the codomain B)
the inverse image fβˆ’1({b}), which consists of all domain elements a∈A for which f(a)=b
fβˆ’1(b)
simplified notation to mean the inverse image of element b
This gives us a way to associate to an element b∈B a set fβˆ’1(b) of elements of A.

Question 10.5.4.

When does this association b↦fβˆ’1(b) give us a function fβˆ’1:Bβ†’A?
There are two possible ways that this will fail to give us a function.
  1. Suppose there is an element b∈B such that the set fβˆ’1(b) contains (at least) two distinct elements a1,a2. Then in general there is no way to choose between fβˆ’1(b)=a1 and fβˆ’1(b)=a2. Therefore, if f is not injective, the function fβˆ’1:Bβ†’A is not well-defined.
  2. Suppose there is an element b∈B such that fβˆ’1(b)=βˆ…. Then there is no element of A which we can assign to fβˆ’1(b). Therefore, if f is not surjective, the function fβˆ’1:Bβ†’A is undefined on some elements of B.
So it seems we will need a function to be bijective in order to be able to reverse the input-output rule to obtain an inverse function.
inverse function
for a bijective function f, the inverse function associates to each codomain element of f the corresponding unique domain element that produces it through f
fβˆ’1
the inverse function fβˆ’1:Bβ†’A for bijective function f:Aβ†’B, so that for b∈B we have fβˆ’1(()b) defined to be the unique element a∈A such that f(a)=b

Example 10.5.5. An invertible single-variable, real-valued function.

The function f:Rβ†’R, f(x)=x3, is bijective and has inverse fβˆ’1(x)=x13.

Example 10.5.6. Inverting a numerical encoding of the alphabet.

Returning again to the bijection Ο†:Ξ£β†’B encountered in Example 10.2.6 and Example 10.2.8, where
Ξ£={a,b,…,z},B={1,2,…,26},
the inverse function Ο†βˆ’1:Bβ†’Ξ£ associates to each number 1≀b≀26 the corresponding letter at that position of the alphabet. For example, Ο†βˆ’1(11)=k.

Example 10.5.7. A non-invertible function.

The function g:Rβ†’R, g(x)=x2, does not have an inverse since it is not bijective. However, the function h:Rβ‰₯0β†’Rβ‰₯0, h(x)=x2, so that h=g|Rβ‰₯0 but with codomain also restricted down to the image of g, has inverse hβˆ’1(x)=x.

Note 10.5.8.

If f is bijective, then so is fβˆ’1, and fβˆ’1 is the unique function Bβ†’A such that both
fβˆ’1∘f=idA,f∘fβˆ’1=idB.

Checkpoint 10.5.9.

Prove that if f is bijective then so is fβˆ’1, and (fβˆ’1)βˆ’1=f.