Finding the inverse of a formula by swapping and solving — quick review
Think of wrapping a gift.
For a one-to-one function f: write y = f(x), swap x and y to get x = f(y), solve for y, and name the result (x). If solving produces ±, the domain of f picks the sign, because the outputs of are the inputs of f. The domain of is the range of f.
Make sure f is a one-to-one function on its domain. Use the horizontal line test, or use the restricted domain you are given. If two inputs share an output, stop: there is no inverse function yet.
Write y in place of f(x). If the function comes with a domain condition such as x ≥ 0, write it beside the equation.
Swap the letters. Every x becomes y and every y becomes x, in the equation and in the domain condition. So x ≥ 0 becomes y ≥ 0.
Solve the swapped equation for y. One y: undo the steps in reverse order. Two y's in a fraction: clear the fraction, gather the y terms on one side, factor y out, divide. A squared y: take the square root of both sides and write ±.
If ± appeared, keep the one sign that fits the condition on y.
Write (x) = your result, and state its domain, which is the range of f.
Check. Send one number through f, then send the result through . You should land on the number you started with.
Confirm that f is a one-to-one function on its domain.
Write y = f(x), with the domain condition beside it if there is one.
Swap x and y everywhere, in the domain condition too.
Solve for y, using the branch of the map below that fits the formula.
If ± appeared, keep the sign that fits the condition on y.
Write (x) = the result. Its domain is the range of f.
Check with a number: through f, then through , back to the start. For full proof, compose both ways and get x each time.
Find (x) for f(x) = + 5. In plain words: f halves its input, then adds 5. Find the rule that takes each output back to its input.
The most common mistake comes with the square root. After x = , people write y = out of habit, or leave y = ± as the answer. Neither is safe. Write ± first, then look at the condition on y that came from the domain of f, and keep the one sign that fits it. For x ≥ 0 that is . For x ≤ 0 it is −. Then test with a number from the domain of f: it must come back to itself.
inverse function
A function that undoes another one. It takes each output of the first function back to the input it came from.
one-to-one function
A function in which no two different inputs share an output. Every output comes from exactly one input, so the function can be undone.
horizontal line test
A check done on a graph. If no horizontal line crosses the graph more than once, the function is a one-to-one function and has an inverse function.
domain
The set of all inputs a function accepts. For an inverse function, the domain is the range of the original function.
range
The set of all outputs a function actually produces. For an inverse function, the range is the domain of the original function.
the line y = x
The diagonal line through the origin where both coordinates are equal, such as (2, 2). The graph of a function and the graph of its inverse function are mirror images across it.
restricted domain
A domain made smaller on purpose. When the inputs kept are picked so that no two of them give the same output, the function becomes one-to-one on them and gains an inverse function.