Functions with Their Inverse Functions
An inverse reverses input and output, but it is a function only when the original function is one-to-one. Use vertical and horizontal line tests, reflect points across y = x, swap domain and range, solve inverse equations, and check inverse pairs by composition.

Meet the Undo Machine
Think of a function as a number machine: an input goes in, the machine applies a rule, and an output comes out. If you know only the output, can you always determine the input?
For the squaring rule x → x², an input of 3 gives 9, and an input of −3 also gives 9. Running this rule backward from 9 gives two possible inputs, 3 and −3. Two different inputs have collided at the same output, so reversing the rule does not identify a unique input
The central question is therefore not just whether a function has an inverse relation, but whether that inverse relation is also a function. The tests, reflection, algebra, and composition checks below explain when the reversal is unambiguous and how to write and verify its rule
The Two Line Tests
Vertical line test: is the graph a function?
A function gives exactly one output for every input in its domain. A vertical line collects graph points with the same x-value. If any vertical line intersects a graph more than once, that input has more than one output, so the graph is not a function
Consider a left-opening parabola with vertex (0, 1). The vertical line x = 0 meets it once, at the vertex. That single successful line is not enough to establish that the graph is a function. The vertical line x = −2 meets the two branches at two different points. Thus the input −2 has two outputs, and this graph is not a function
Horizontal line test: is the inverse a function?
A horizontal line collects graph points with the same y-value. It asks whether one output comes from more than one input. A function is one-to-one when each output comes from only one input. If any horizontal line intersects the graph more than once, its inverse relation is not a function
The course's wavy curve rises from the lower left to a local maximum near (−1, 2), dips to a local minimum near (1, 0), and then rises to the upper right. Every vertical line intersects it exactly once, so it is a function. The exploration asks for a height where a horizontal line intersects it three times. At y = 3 there is only one intersection, but at heights strictly between 0 and 2 there are three. In particular, y = 1 meets the curve at three points: three distinct inputs produce the same output, 1. The function is not one-to-one, and its inverse is not a function
The left-opening parabola gives a different comparison. Every horizontal line meets it exactly once, so its inverse is a function, even though the original parabola is not a function. Passing one line test does not imply passing the other
| Test | Question answered | Evidence of failure |
|---|---|---|
| Vertical line test | Is this graph a function? | One vertical line meets the graph more than once. |
| Horizontal line test | Is the inverse relation a function? | One horizontal line meets the graph more than once. |
Practice 1: choose the test for the inverse
Consider a circle centered at the origin with radius 3. Three candidate lines are given: y = 1, x = 1, and y = 4. The horizontal line y = 1 intersects the circle twice; the vertical line x = 1 also intersects it twice; the horizontal line y = 4 lies above the circle and has no intersections
Inverses as Reflections
Inverting a relation swaps inputs and outputs: every point (a, b) becomes (b, a). On a coordinate graph, this is a reflection across the line y = x. Because inputs and outputs exchange roles, the domain and range exchange roles too
For f(x) = (x − 1)², the point (3, 4) lies on the graph because f(3) = (3 − 1)² = 4. Its inverse therefore contains (4, 3). Reflecting the entire upward-opening parabola across y = x produces a right-opening curve. The original vertex (1, 0) becomes the inverse's vertex (0, 1)
| Relation | Domain | Range |
|---|---|---|
| f(x) = (x − 1)² | All real numbers | y ≥ 0 |
| Inverse relation | x ≥ 0 | All real numbers |
A horizontal line above the original parabola's vertex meets the parabola twice. Reflection turns this into a vertical line meeting the inverse twice. Thus a failure of the horizontal line test becomes a failure of the inverse's vertical line test. The inverse of a function is itself a function exactly when the original function is one-to-one
Practice 2: match facts across the inverse
A function h contains the point (2, 5). Its domain is all real numbers, and its range is {y | y ≥ −3}. The task is to match each fact about h to its corresponding fact about the inverse
The correct relationships are: (2, 5) on h corresponds to (5, 2) on its inverse; the domain of h, all real numbers, becomes the range of the inverse; and the range of h, {y | y ≥ −3}, becomes the domain of the inverse, {x | x ≥ −3}. Each match swaps the role of input and output rather than keeping the same role
Writing the Inverse Rule
Worked example: invert f(x) = (2x + 1)²
Find the inverse rule for f(x) = (2x + 1)², decide whether the inverse is a function, and state its domain and range. The original function has domain all real numbers. Its graph is an upward-opening parabola with vertex (−1/2, 0). Horizontal lines above the vertex intersect it twice, so the inverse is predicted not to be a function
Step 1. Replace f(x) with y: y = (2x + 1)². Step 2. Switch x and y: x = (2y + 1)²
Step 3. Undo the square, keeping both signs: ±√x = 2y + 1. The square root requires x ≥ 0. Step 4. Subtract 1 from both sides: −1 ± √x = 2y. Step 5. Divide both sides by 2: y = (−1 ± √x)/2
For every positive x, the plus and minus signs give two distinct y-values. The inverse relation y = (−1 ± √x)/2 is therefore not a function, agreeing with the horizontal line test
Domain and range of the inverse
The original function accepts any real input. Its squared output is never negative, and its range is {y | y ≥ 0}. Swapping domain and range gives the inverse domain {x | x ≥ 0} and inverse range all real numbers. The inverse domain agrees with the condition required by √x
| Relation | Domain | Range |
|---|---|---|
| f(x) = (2x + 1)² | All real numbers | y ≥ 0 |
| y = (−1 ± √x)/2 | x ≥ 0 | All real numbers |
Practice 3: complete the inverse steps
Find the inverse of f(x) = (x − 3)². After switching x and y, the equation is x = (y − 3)². Complete the remaining steps and decide whether the inverse is a function
The completed chain is x = (y − 3)² → ±√x = y − 3 → y = 3 ± √x → the inverse is not a function. The three correct completions are ±√x, 3 ± √x, and “not a function.” Undo the square first, preserving both signs, then add 3 to isolate y
Verifying with Composition
Two functions f and g are inverses exactly when both compositions return the original input: f(g(x)) = x and g(f(x)) = x on their respective domains. To verify an inverse pair, substitute one rule into the other and simplify in both orders. To reject a proposed pair, a composition that fails to return x is enough
A pair that fails
Let f(x) = 4x − 2 and g(x) = (1/4)x + 2. Are they inverses? Substituting g(x) into f gives f(g(x)) = 4((1/4)x + 2) − 2 = (x + 8) − 2 = x + 6. This is not x, so f and g are not inverses
Opposite-looking operations do not prove that two formulas undo each other. The order of undoing matters, and the composition must simplify all the way to x
A pair that passes, with a domain restriction
For x ≥ 0, let f(x) = (1/4)x² and g(x) = 2√x. Check the first order: f(g(x)) = (1/4)(2√x)² = (1/4)(4x) = x
Check the other order: g(f(x)) = 2√((1/4)x²) = 2((1/2)x) = x. The step √((1/4)x²) = (1/2)x is valid here because x ≥ 0. Both compositions equal x, so these functions are inverses on the stated nonnegative domain
Practice 4: judge by composition
Use f(x) = 2x − 6 and g(x) = (1/2)x + 6 for the following question. Inverses must satisfy f(g(x)) = g(f(x)) = x
Summary
1. The vertical line test asks whether a graph is a function. Each input in a function's domain must have exactly one output; a vertical line intersecting the graph more than once disproves this
2. The horizontal line test asks whether the inverse relation is a function. A function's inverse is a function exactly when the original is one-to-one: each output comes from only one input
3. Inverting swaps (a, b) to (b, a), reflects the graph across y = x, and exchanges domain with range
4. To find an inverse rule, replace f(x) with y, switch x and y, and solve for y. For the unrestricted squared functions in this lesson, keep ± when undoing the square. Two distinct outputs for a positive input show that the full inverse relation is not a function
5. Verify an inverse pair by composition in both orders. Both f(g(x)) and g(f(x)) must equal x on the relevant domains; opposite-looking operations alone are not proof
Quiz
Quiz 1: judge an inverse from a graph
The graph of f(x) = |x| − 2 is V-shaped, with vertex (0, −2). Its left arm rises toward the upper left, and its right arm rises toward the upper right
Quiz 2: find the missing solutions
A student's work for f(x) = (x + 5)² is shown below. These are the student's proposed steps, including an error:
- y = (x + 5)²
- switch x and y to obtain x = (y + 5)²
- √x = y + 5
- y = √x − 5. The student concludes, “So the inverse IS a function.”
Quiz 3: finish both compositions
Let f(x) = (1/2)x − 3 and g(x) = 2x + 6. The substituted compositions are f(g(x)) = (1/2)(2x + 6) − 3 and g(f(x)) = 2((1/2)x − 3) + 6. Simplify each expression completely before deciding whether the functions are inverses