Sub topic 12
Inverse Functions and One-to-One Checks
Prerequisites
Assume you can solve linear and quadratic equations, use function notation, and work with domains and ranges. An inverse function reverses the input-output process of a function.
If \(f(a)=b\), then \(f^{-1}(b)=a\). The notation \(f^{-1}\) means “inverse function,” not \(\frac{1}{f(x)}\).
When Does an Inverse Exist?
A function has an inverse function only when each output comes from exactly one input. Such a function is called one-to-one or injective.
For example,
\[ f(x)=2x+3 \]
is one-to-one. Different values of \(x\) always produce different values of \(f(x)\).
However,
\[ f(x)=x^2 \]
is not one-to-one over all real numbers because
\[ f(2)=4 \quad \text{and} \quad f(-2)=4. \]
The output 4 does not identify a unique input. Therefore, \(x^2\) has no inverse function on all real numbers. It does have an inverse if its domain is restricted to \(x\geq 0\) or \(x\leq 0\).
The Horizontal Line Test
A graph represents a one-to-one function if every horizontal line intersects the graph at most once.
| Function | Horizontal-line result | Inverse on stated domain |
|---|---|---|
| \(f(x)=2x+3\), \(x\in\mathbb R\) | Every line meets once | Yes |
| \(f(x)=x^2\), \(x\in\mathbb R\) | Some lines meet twice | No |
| \(f(x)=x^2\), \(x\geq0\) | Every line meets at most once | Yes |
The inverse swaps the domain and range. Thus, the range of \(f\) becomes the domain of \(f^{-1}\).
Finding an Inverse Algebraically
Use this process:
- Write \(y=f(x)\).
- Interchange \(x\) and \(y\).
- Solve for \(y\).
- Rename the result \(f^{-1}(x)\).
- State the appropriate domain.
For \(f(x)=2x+3\):
\[ y=2x+3 \]
Interchange the variables:
\[ x=2y+3 \]
Solve for \(y\):
\[ y=\frac{x-3}{2}. \]
Therefore,
\[ f^{-1}(x)=\frac{x-3}{2}. \]
The check uses composition:
\[ f(f^{-1}(x))=x \quad\text{and}\quad f^{-1}(f(x))=x. \]
def f(x):
return 2 * x + 3
def inverse_f(x):
return (x - 3) / 2
x = 10
print(f(inverse_f(x)))
print(inverse_f(f(x)))Both outputs are 10.
Restrictions and Common Errors
For \(f(x)=x^2\), choose \(x\geq0\) to obtain
\[ f^{-1}(x)=\sqrt{x}. \]
The inverse has domain \(x\geq0\), because the original restricted function has range \(y\geq0\).
Common errors include treating \(f^{-1}(x)\) as a reciprocal, forgetting to restrict a non-one-to-one function, and failing to swap \(x\) and \(y\) before solving.
Exercise
Find the inverse of f(x) = (x - 4)^3 and verify it using composition.
Show answer
Set y = (x - 4)^3, swap x and y, and solve: x = (y - 4)^3, so y = cube root of x + 4. Therefore f inverse of x = cube root of x + 4. Both compositions simplify to x.