Math Lab
Home/Class XII/Ch 1/Invertible functions

Invertible functions

To invert a function means to undo it: if ff takes xx to yy, then f1f^{-1} takes yy back to xx. Not every function admits an inverse , only bijections do. The aim of this subtopic is to define f1f^{-1} precisely, prove it exists when ff is bijective, and give you a recipe for computing it.

Definition

A function f:ABf : A \to B is invertible if there exists a function g:BAg : B \to A such that

gf=IAandfg=IB.g \circ f = I_A \quad \text{and} \quad f \circ g = I_B.

When it exists, gg is called the inverse of ff and is denoted f1f^{-1}.

Notice that the two conditions are not redundant. Without the first, gg may merely be a right inverse; without the second, it may merely be a left inverse. Both together force ff and gg to be bijections that exactly cancel.

Theorem: invertible iff bijective

Theorem. A function f:ABf : A \to B is invertible if and only if it is bijective. The inverse, when it exists, is unique.

Proof. (\Leftarrow) Suppose ff is bijective. Define g:BAg : B \to A by setting g(y)=g(y) = the unique xAx \in A such that f(x)=yf(x) = y. (Uniqueness comes from injectivity; existence from surjectivity.) Then g(f(x))=xg(f(x)) = x for all xx, so gf=IAg \circ f = I_A. And f(g(y))=yf(g(y)) = y by construction, so fg=IBf \circ g = I_B.

(\Rightarrow) Suppose gf=IAg \circ f = I_A and fg=IBf \circ g = I_B. From gf=IAg \circ f = I_A we see ff is one-one (because gfg \circ f is). From fg=IBf \circ g = I_B we see ff is onto (because fgf \circ g is). So ff is bijective.

Uniqueness. If g1g_1 and g2g_2 both satisfy the inverse conditions, then g1=g1IB=g1(fg2)=(g1f)g2=IAg2=g2g_1 = g_1 \circ I_B = g_1 \circ (f \circ g_2) = (g_1 \circ f) \circ g_2 = I_A \circ g_2 = g_2. \blacksquare

The uniqueness justifies the article the in "the inverse". You can speak about f1f^{-1} unambiguously.

Computing an inverse

For a bijective ff given by a formula y=f(x)y = f(x), the inverse is found by solving for xx in terms of yy:

  1. Write y=f(x)y = f(x).
  2. Solve algebraically for xx to get x=g(y)x = g(y).
  3. Swap symbols (optional): rename yy as xx to write f1(x)=g(x)f^{-1}(x) = g(x).
  4. State the domain of f1f^{-1}, which equals the range of ff.

The graphical view: the graph of f1f^{-1} is the reflection of the graph of ff across the line y=xy = x.

Important: domain restriction

If ff is not one-one on all of its natural domain, you must restrict the domain to make ff one-one before defining the inverse. This is exactly the device used to define the principal branches of arcsin\arcsin, arctan\arctan, etc., in Chapter 2.

The reversal rule for inverses

Theorem. If f:ABf : A \to B and g:BCg : B \to C are bijective, then gfg \circ f is bijective and (gf)1=f1g1.(g \circ f)^{-1} = f^{-1} \circ g^{-1}.

Proof. Both compositions (f1g1)(gf)(f^{-1} \circ g^{-1}) \circ (g \circ f) and (gf)(f1g1)(g \circ f) \circ (f^{-1} \circ g^{-1}) reduce to identities by associativity and the inverse relations. \blacksquare

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:RRf : \mathbb{R} \to \mathbb{R}, f(x)=5x+2f(x) = 5x + 2. Find f1f^{-1}.

Solve y=5x+2y = 5x + 2 for xx: x=(y2)/5x = (y - 2)/5. So f1(y)=(y2)/5f^{-1}(y) = (y - 2)/5.

Verification: f(f1(y))=5y25+2=y2+2=yf(f^{-1}(y)) = 5 \cdot \tfrac{y - 2}{5} + 2 = y - 2 + 2 = y. And f1(f(x))=((5x+2)2)/5=xf^{-1}(f(x)) = ((5x + 2) - 2)/5 = x. \checkmark

Example 2. Find the inverse of f:R{2}R{1}f : \mathbb{R} \setminus \{2\} \to \mathbb{R} \setminus \{1\}, f(x)=x+1x2f(x) = \tfrac{x + 1}{x - 2}.

Solve y=(x+1)/(x2)y = (x + 1)/(x - 2): y(x2)=x+1x(y1)=2y+1x=(2y+1)/(y1)y(x - 2) = x + 1 \Rightarrow x(y - 1) = 2y + 1 \Rightarrow x = (2y + 1)/(y - 1).

So f1(y)=(2y+1)/(y1)f^{-1}(y) = (2y + 1)/(y - 1) for y1y \neq 1.

Example 3. Let f:[0,)[0,)f : [0, \infty) \to [0, \infty), f(x)=x2f(x) = x^2. Find f1f^{-1}.

y=x2y = x^2 with x0x \ge 0 gives x=yx = \sqrt{y}. So f1(y)=yf^{-1}(y) = \sqrt{y} on [0,)[0, \infty).

Example 4. Show that the function f:RRf : \mathbb{R} \to \mathbb{R} defined by f(x)=x3f(x) = x^3 is invertible and find f1f^{-1}.

ff is strictly increasing (since f(x)=3x20f'(x) = 3x^2 \ge 0, zero only at one point), so ff is one-one. ff is onto R\mathbb{R} because cube roots exist for all real numbers. So ff is bijective, and f1(y)=y1/3f^{-1}(y) = y^{1/3}.

Example 5. Let f:NNf : \mathbb{N} \to \mathbb{N} be f(n)=n+1f(n) = n + 1. Show ff is not invertible. What if we change codomain?

ff is not onto N\mathbb{N} (taking N={1,2,3,}\mathbb{N} = \{1, 2, 3, \ldots\}): 11 is not in the range. So ff is not bijective. If we replace the codomain by N{1}\mathbb{N} \setminus \{1\}, ff becomes bijective with inverse nn1n \mapsto n - 1.

Example 6. f:[0,π/2][0,1]f : [0, \pi/2] \to [0, 1], f(x)=sinxf(x) = \sin x. Find f1f^{-1}.

ff is strictly increasing and onto on this domain. The inverse is arcsin\arcsin, restricted: f1(y)=arcsinyf^{-1}(y) = \arcsin y for y[0,1]y \in [0, 1]. This launches the next chapter.

Try it yourself

  1. Find the inverse of f:RRf : \mathbb{R} \to \mathbb{R}, f(x)=73xf(x) = 7 - 3x.
  2. Find the inverse of f:RRf : \mathbb{R} \to \mathbb{R}, f(x)=x3+1f(x) = x^3 + 1.
  3. Find the inverse of f:R{1}R{1}f : \mathbb{R} \setminus \{-1\} \to \mathbb{R} \setminus \{1\}, f(x)=x1x+1f(x) = \tfrac{x - 1}{x + 1}.
  4. Find the inverse of f:[1,)[0,)f : [1, \infty) \to [0, \infty), f(x)=x1f(x) = \sqrt{x - 1}.
  5. Show that f(x)=ax+bcx+df(x) = \tfrac{ax + b}{cx + d} on appropriate domain has inverse f1(y)=dybacyf^{-1}(y) = \tfrac{dy - b}{a - cy}, provided adbc0ad - bc \neq 0.
  6. Let f,g:RRf, g : \mathbb{R} \to \mathbb{R} be invertible. Express (fg)1(f \circ g)^{-1} in terms of f1f^{-1} and g1g^{-1}.
  7. Given f(x)=logxf(x) = \log x (base ee) on (0,)(0, \infty), find f1f^{-1}.
  8. Given f(x)=2xf(x) = 2^x on R\mathbb{R}, find f1f^{-1}.
  9. Show that f:RRf : \mathbb{R} \to \mathbb{R}, f(x)=xxf(x) = x|x|, is bijective and find f1f^{-1}.
  10. If f,gf, g are mutually inverse, show ff is one-one and gg is onto.
  11. If ff is invertible and ff=If \circ f = I, what can ff be? (Such functions are called involutions.)
  12. Find the inverse of f:[0,π/2][0,1]f : [0, \pi/2] \to [0, 1], f(x)=sinxf(x) = \sin x, and compute f1(12)f^{-1}(\tfrac{1}{2}).
  13. Prove that if f:ABf : A \to B is bijective, then f1f^{-1} is also bijective and (f1)1=f(f^{-1})^{-1} = f.
  14. Compute the inverse of f:(0,)Rf : (0, \infty) \to \mathbb{R}, f(x)=ln(x)+xf(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 f1(y)f^{-1}(y) (the inverse map) with 1/f(y)1/f(y) (the reciprocal).
  • A common error is to write f1f^{-1} before checking ff is one-one and onto. If ff is one-one but not onto, the inverse exists only as a map from the range of ff.
  • When restricting domain to obtain a bijection, you must explicitly state both new domain and new codomain.
  • (f1)1=f(f^{-1})^{-1} = f always. (fg)1=g1f1(f \circ g)^{-1} = g^{-1} \circ f^{-1} , the order reverses.
  • Graphically, f1f^{-1} is the reflection of ff across y=xy = x. If ff has a horizontal tangent, f1f^{-1} has a vertical one.

The chapter closes with a tour of binary operations, which generalise composition.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Invertible functions
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6