Sub topic 13
Restricting the Domain to Create an Inverse
This chapter assumes you can read function notation, identify a function’s domain and range, solve basic equations, and interpret graphs of lines, parabolas, and square roots. You should also know that a function has an inverse function only when each output comes from exactly one input.
Why a Domain Restriction Is Needed
A function is one-to-one if different inputs always produce different outputs. Its graph passes the horizontal line test when every horizontal line intersects the graph at most once.
Consider the square function:
f(x) = x²
It is not one-to-one on all real numbers because:
- f(3) = 9
- f(-3) = 9
The same output has two inputs. Therefore, an inverse rule would need to send 9 to both 3 and -3, which is not a function.
A domain restriction keeps only part of the original inputs. For the square function, choose x ≥ 0. The restricted function is:
f(x) = x², with domain [0, ∞)
On this domain, the function increases as x increases. Each output has only one allowed input, so the function is one-to-one.
| Original function | Restricted domain | Inverse |
|---|---|---|
| f(x) = x² | x ≥ 0 | f⁻¹(x) = √x |
You could instead restrict the domain to x ≤ 0. That version is also one-to-one, but its inverse is f⁻¹(x) = -√x.
Choosing and Using a Restriction
A common choice is to keep one side of a turning point. For a parabola, the turning point is its vertex. The full parabola fails the horizontal line test, but either half passes it.
For example:
g(x) = (x - 2)² + 1
The vertex is (2, 1). Restricting the domain to x ≥ 2 gives the right half of the parabola. Its range is y ≥ 1. Solving for the inverse:
- Replace g(x) with y: y = (x - 2)² + 1.
- Swap x and y: x = (y - 2)² + 1.
- Solve for y: y - 1 = (y - 2)² is not the direct swapped form; instead, carefully solve the original equation for x:
x = (y - 2)² + 1 x - 1 = (y - 2)² y - 2 = √(x - 1), because the restriction requires y ≥ 2.
- Therefore, g⁻¹(x) = 2 + √(x - 1), with domain x ≥ 1.
The inverse’s domain is the original function’s range. The inverse’s range is the restricted original domain.
Checking the Result
Use composition to verify an inverse:
f⁻¹(f(x)) = x for every x in the restricted domain.
For f(x) = x² with x ≥ 0:
f⁻¹(f(x)) = √(x²) = |x| = x
The last equality works only because x ≥ 0. Without the restriction, √(x²) equals |x|, not x for negative values.
import math
def square_restricted(x):
if x < 0:
raise ValueError("x must be nonnegative")
return x ** 2
def square_inverse(y):
if y < 0:
raise ValueError("y must be nonnegative")
return math.sqrt(y)
x = 5
print(square_inverse(square_restricted(x))) # 5.0Exercise
Restrict the domain of h(x) = (x + 1)² to x ≥ -1, then find h⁻¹(x).
Show answer
The restriction makes h one-to-one. Solving x = (y + 1)² gives y = √x - 1, so h⁻¹(x) = √x - 1 with domain x ≥ 0.