1.5 Inverse Functions

If a function ff represents a process, can we reverse it? Can we undo the machine?

1.5.1 The Concept of the Inverse

Intuition (Undoing a Process).

Consider a highly restricted function f⁢(x)=x+3f(x)=x+3 mapping dom⁡(f)={1,2,3}\operatorname{dom}(f)=\{1,2,3\} to ran⁡(f)={4,5,6}\operatorname{ran}(f)=\{4,5,6\}. Using ordered pairs, we have:

equation (1.11) (1.11)
f={(1,4),(2,5),(3,6)}.f=\{(1,4),(2,5),(3,6)\}.

Suppose we are given a value y∈ran⁡(f)y\in\operatorname{ran}(f). Can we find the original x∈dom⁡(f)x\in\operatorname{dom}(f) such that y=f⁢(x)y=f(x)?

y=4⟹x=1,y=5⟹x=2,y=6⟹x=3.\begin{split}y=4&{}\implies x=1,\\ y=5&{}\implies x=2,\\ y=6&{}\implies x=3.\end{split}

This backward mapping defines a new function g:ran⁡(f)→dom⁡(f)g:\operatorname{ran}(f)\to\operatorname{dom}(f), represented by g={(4,1),(5,2),(6,3)}g=\{(4,1),(5,2),(6,3)\}. Because gg “undoes” what ff does, we call gg the inverse of ff. Notice that x=g⁢(y)=g⁢(f⁢(x))x=g(y)=g(f(x)).

Definition 1.5.1 (Inverse Function).

A function gg is the inverse function of ff if:

g⁢(f⁢(x))=xfor each ⁢x∈dom⁡(f), and f⁢(g⁢(x))=xfor each ⁢x∈dom⁡(g).\begin{split}g(f(x))&{}=x\quad\text{for each }x\in\operatorname{dom}(f),\quad% \text{ and }\\ f(g(x))&{}=x\quad\text{for each }x\in\operatorname{dom}(g).\end{split}

We traditionally denote the inverse function gg by the notation f−1f^{-1} (read as “ff inverse”).

This definition is illustrated in Figure 1.4.

A mathematical mapping diagram illustrating an inverse function. Two vertical, lightly shaded ellipses represent set X (light blue) on the left and set Y (light green) on the right. Inside set X, a point is labeled x, and inside set Y, a point is labeled y. A blue curved arrow pointing left-to-right on top, labeled f, maps x to y. A green curved arrow pointing right-to-left on the bottom, labeled f^-1, maps y back to x, showing the bidirectional inverse relationship.
Figure 1.4: Illustration of an inverse function g=f−1g=f^{-1}
Caveat (Notation Danger).

The notation f−1⁢(x)f^{-1}(x) means the inverse function. It unequivocally does not mean the reciprocal 1f⁢(x)\frac{1}{f(x)}. This confusion has claimed the sanity of several students!

Remark 1.5.2.

Several elegant facts emerge from this definition:

  1. 1.
    ​

    If gg is the inverse of ff, then ff is the inverse of gg.

  2. 2.
    ​

    The domains and ranges swap: dom⁡(f−1)=ran⁡(f)\operatorname{dom}(f^{-1})=\operatorname{ran}(f) and ran⁡(f−1)=dom⁡(f)\operatorname{ran}(f^{-1})=\operatorname{dom}(f).

  3. 3.
    ​

    A function need not have an inverse, but if it does, then the inverse is unique.

  4. 4.
    ​

    If the point (a,b)(a,b) is in the graph of y=f⁢(x)y=f(x), then (b,a)(b,a) is in the graph of y=f−1⁢(x)y=f^{-1}(x), see Figure 1.5.

A Cartesian coordinate graph showing the symmetry between a function and its inverse. The graph features a horizontal x-axis and vertical y-axis. A black dashed diagonal line representing y=x splits the quadrant at a 45-degree angle. Above the diagonal, an exponential-like blue curve represents y=f(x). Below the diagonal, a logarithmic-like green curve represents y=f^-1(x). A point (a,b) on the blue curve and a point (b,a) on the green curve are marked with blue and green dots, respectively. A red dashed line directly connects these two points, intersecting the y=x line perpendicularly at its midpoint, illustrated with a small red right-angle marker. Dashed gray projections connect both points to their values a and b on the coordinate axes.
Figure 1.5: Symmetric relationship of the graphs of y=f⁢(x)y=f(x) and y=f−1⁢(x)y=f^{-1}(x) reflected across y=xy=x

1.5.2 Existence of Inverse and the Horizontal Line Test

When does a function actually have an inverse?

Definition 1.5.3 (1-to-1).

A function ff is 1-to-1 if and only if f⁢(x1)=f⁢(x2)f(x_{1})=f(x_{2}) implies x1=x2x_{1}=x_{2} for all x1,x2∈dom⁡(f)x_{1},x_{2}\in\operatorname{dom}(f).

Moral (Horizontal Line Test (HLT)).

Every horizontal line intersects the graph of a 1-to-1 function at most once.

Theorem 1.5.4.

A function has an inverse if and only if it is 1-to-1.

Example 1.5.5.

Is f⁢(x)=x3−1f(x)=x^{3}-1 a 1-to-1 function? Suppose f⁢(x1)=f⁢(x2)f(x_{1})=f(x_{2}). Then:

x13−1=x23−1⟹x13=x23⟹x133=x233⟹x1=x2.\begin{split}x_{1}^{3}-1=x_{2}^{3}-1\implies x_{1}^{3}=x_{2}^{3}\implies\sqrt[% 3]{x_{1}^{3}}=\sqrt[3]{x_{2}^{3}}\implies x_{1}=x_{2}.\end{split}

Therefore, ff is 1-to-1, and by our theorem, f−1f^{-1} exists.

1.5.3 Finding the Inverse

To find the inverse of y=f⁢(x)y=f(x):

  1. 1.
    ​

    Check if the inverse exists (is it 1-to-1 via the HLT or definition?).

  2. 2.
    ​

    Solve for xx as a function of yy: x=g⁢(y)=f−1⁢(y)x=g(y)=f^{-1}(y).

  3. 3.
    ​

    Interchange xx and yy to obtain standard formatting: y=f−1⁢(x)y=f^{-1}(x).

  4. 4.
    ​

    Define dom⁡(f−1)=ran⁡(f)\operatorname{dom}(f^{-1})=\operatorname{ran}(f).

  5. 5.
    ​

    Verify that f⁢(f−1⁢(x))=xf(f^{-1}(x))=x and f−1⁢(f⁢(x))=xf^{-1}(f(x))=x.

Example 1.5.6.

For f⁢(x)=x3−1f(x)=x^{3}-1, we know it is 1-to-1. We solve:

equation (1.12) (1.12)
y=x3−1⇔y+1=x3⇔y+13=x.y=x^{3}-1\iff y+1=x^{3}\iff\sqrt[3]{y+1}=x.

Interchanging variables yields y=x+13y=\sqrt[3]{x+1}, so f−1⁢(x)=x+13f^{-1}(x)=\sqrt[3]{x+1}.

Story (The Limits of Algebraic Formulas).

Consider f⁢(x)=x5+x−1f(x)=x^{5}+x-1. Its graph is strictly increasing, so it passes the HLT and is entirely 1-to-1. Can we find the inverse? We attempt to solve:

equation (1.13) (1.13)
y=x5+x−1⇔x5+x−1−y=0y=x^{5}+x-1\iff x^{5}+x-1-y=0

Can we isolate xx using roots, as we did for x3−1x^{3}-1? Galois theory (in abstract algebra) dictates a profound truth: the equation (1.13) cannot be solved by radicals! The inverse function absolutely exists, but we are fundamentally barred from writing it down using elementary algebraic formulas. The good new is that we can still visualize it: the graph of the inverse is just the reflection of the original function about the line y=xy=x.

1.5.4 Piecewise Functions

Sometimes, a single rule is insufficient to describe a system over its entire domain. The domain is divided into smaller pieces, each governed by its own rule.

Example 1.5.7.
equation (1.14) (1.14)
g⁢(x)={xx≥0x2+1x<0g(x)=\begin{cases}x&x\geq 0\\ x^{2}+1&x<0\end{cases}

Here, dom⁡(g)=ℝ\operatorname{dom}(g)=\mathbb{R}, but the function behaves entirely differently depending on the sign of the input, see Figure 1.6.

A Cartesian coordinate graph representing a piecewise-defined function. The horizontal x-axis and vertical y-axis intersect. For negative x values, the graph shows a smooth, blue quadratic curve opening upwards, representing y = x^2 + 1. This curve terminates just before the vertical y-axis with an open blue circle at (0,1). For positive x values (including zero), the graph shows a straight, blue diagonal line extending up and to the right at a 45-degree angle, representing y = x. This linear segment starts directly at the origin (0,0) with a solid, filled blue circle, indicating the point is included in this piece of the function.
Figure 1.6: Graph of the piecewise function f⁢(x)f(x)