To invert a function means to undo it: if f takes x to y, then f−1 takes y back to x. Not every function admits an inverse , only bijections do. The aim of this subtopic is to define f−1 precisely, prove it exists when f is bijective, and give you a recipe for computing it.
Definition
A function f:A→B is invertible if there exists a function g:B→A such that
g∘f=IAandf∘g=IB.
When it exists, g is called the inverse of f and is denoted f−1.
Notice that the two conditions are not redundant. Without the first, g may merely be a right inverse; without the second, it may merely be a left inverse. Both together force f and g to be bijections that exactly cancel.
Theorem: invertible iff bijective
Theorem. A function f:A→B is invertible if and only if it is bijective. The inverse, when it exists, is unique.
Proof. (⇐) Suppose f is bijective. Define g:B→A by setting g(y)= the unique x∈A such that f(x)=y. (Uniqueness comes from injectivity; existence from surjectivity.) Then g(f(x))=x for all x, so g∘f=IA. And f(g(y))=y by construction, so f∘g=IB.
(⇒) Suppose g∘f=IA and f∘g=IB. From g∘f=IA we see f is one-one (because g∘f is). From f∘g=IB we see f is onto (because f∘g is). So f is bijective.
Uniqueness. If g1 and g2 both satisfy the inverse conditions, then g1=g1∘IB=g1∘(f∘g2)=(g1∘f)∘g2=IA∘g2=g2. ■
The uniqueness justifies the article the in "the inverse". You can speak about f−1 unambiguously.
Computing an inverse
For a bijective f given by a formula y=f(x), the inverse is found by solving for x in terms of y:
Write y=f(x).
Solve algebraically for x to get x=g(y).
Swap symbols (optional): rename y as x to write f−1(x)=g(x).
State the domain of f−1, which equals the range of f.
The graphical view: the graph of f−1 is the reflection of the graph of f across the line y=x.
Important: domain restriction
If f is not one-one on all of its natural domain, you must restrict the domain to make f one-one before defining the inverse. This is exactly the device used to define the principal branches of arcsin, arctan, etc., in Chapter 2.
The reversal rule for inverses
Theorem. If f:A→B and g:B→C are bijective, then g∘f is bijective and
(g∘f)−1=f−1∘g−1.
Proof. Both compositions (f−1∘g−1)∘(g∘f) and (g∘f)∘(f−1∘g−1) reduce to identities by associativity and the inverse relations. ■
The pattern reverse and flip is also true for matrix inverses and group elements, so commit it to long-term memory.
Worked examples
Example 1.f:R→R, f(x)=5x+2. Find f−1.
Solve y=5x+2 for x: x=(y−2)/5. So f−1(y)=(y−2)/5.
Verification: f(f−1(y))=5⋅5y−2+2=y−2+2=y. And f−1(f(x))=((5x+2)−2)/5=x. ✓
Example 2. Find the inverse of f:R∖{2}→R∖{1}, f(x)=x−2x+1.
Example 4. Show that the function f:R→R defined by f(x)=x3 is invertible and find f−1.
f is strictly increasing (since f′(x)=3x2≥0, zero only at one point), so f is one-one. f is onto R because cube roots exist for all real numbers. So f is bijective, and f−1(y)=y1/3.
Example 5. Let f:N→N be f(n)=n+1. Show f is not invertible. What if we change codomain?
f is not onto N (taking N={1,2,3,…}): 1 is not in the range. So f is not bijective. If we replace the codomain by N∖{1}, f becomes bijective with inverse n↦n−1.
Example 6.f:[0,π/2]→[0,1], f(x)=sinx. Find f−1.
f is strictly increasing and onto on this domain. The inverse is arcsin, restricted: f−1(y)=arcsiny for y∈[0,1]. This launches the next chapter.
Try it yourself
Find the inverse of f:R→R, f(x)=7−3x.
Find the inverse of f:R→R, f(x)=x3+1.
Find the inverse of f:R∖{−1}→R∖{1}, f(x)=x+1x−1.
Find the inverse of f:[1,∞)→[0,∞), f(x)=x−1.
Show that f(x)=cx+dax+b on appropriate domain has inverse f−1(y)=a−cydy−b, provided ad−bc=0.
Let f,g:R→R be invertible. Express (f∘g)−1 in terms of f−1 and g−1.
Given f(x)=logx (base e) on (0,∞), find f−1.
Given f(x)=2x on R, find f−1.
Show that f:R→R, f(x)=x∣x∣, is bijective and find f−1.
If f,g are mutually inverse, show f is one-one and g is onto.
If f is invertible and f∘f=I, what can f be? (Such functions are called involutions.)
Find the inverse of f:[0,π/2]→[0,1], f(x)=sinx, and compute f−1(21).
Prove that if f:A→B is bijective, then f−1 is also bijective and (f−1)−1=f.
Compute the inverse of f:(0,∞)→R, f(x)=ln(x)+x. (Hint: this cannot be solved in elementary form; conclude that not every inverse has a closed form, though it exists.)
Pitfalls / Tricks
Do not confuse f−1(y) (the inverse map) with 1/f(y) (the reciprocal).
A common error is to write f−1 before checking f is one-one and onto. If f is one-one but not onto, the inverse exists only as a map from the range of f.
When restricting domain to obtain a bijection, you must explicitly state both new domain and new codomain.
(f−1)−1=f always. (f∘g)−1=g−1∘f−1 , the order reverses.
Graphically, f−1 is the reflection of f across y=x. If f has a horizontal tangent, f−1 has a vertical one.
The chapter closes with a tour of binary operations, which generalise composition.