Inverse functions — quick review
Undoing a function, and what f^-1 means
Think of a coat check.
When f has an inverse function and f(a) = b, then (b) = a. The inverse function takes each output of f back to the input it came from. The −1 is part of the name, not a power: (x) does not mean .
Read (b) as a question in plain words: b came out of f. Which input went in?
Rewrite the question as f(?) = b. The number inside ( ) is an output of f.
Find that input. In a table, find b in the output row and read the input above it. With a formula, set the formula equal to b and solve for x.
Write the answer as (b) = the input you found.
Check by going forward: put your answer into f and confirm that b comes out.
Look at where the −1 sits. On the name, as in (b), it means the inverse function. Outside brackets, as in [f(b)], it means 1 over f(b).
Say the question in plain words: b came out of f. Which input went in?
Rewrite it as f(?) = b.
Find the input from whatever describes f: one given fact, a table, or a formula.
Write (b) = that input.
Go forward to check: put the input into f and see that b comes out.
The table shows a function f. Find (7). Then show that the answer is not f(7) and not . In plain words, (7) asks: 7 came out of f, which input went in?
(7) = 3
f(7) = 10, a different question
= , a reciprocal and not an inverse
Reading (x) as . On the name of a function, −1 means inverse, not 1 over. To avoid the mistake, say f inverse out loud and turn (b) into the question f(?) = b before you compute anything. When 1 over f(x) is meant, it is written or [f(x)], with the −1 outside brackets.
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.
Checking that two functions are inverses
Think of a round trip.
Two functions f and g are inverses of each other exactly when both of these are true: f(g(x)) = x for every input x that g accepts, and g(f(x)) = x for every input x that f accepts. When both hold, g is and f is . If either one fails, even for a single input, they are not inverses.
Write down both rules, f(x) and g(x), side by side.
First order, f(g(x)): copy the rule for f, but wherever it has x, write an empty pair of parentheses. Then put the whole formula for g(x) inside the parentheses.
Simplify. The result must be exactly x. Not x + 2, not 3x, not −x.
Second order, g(f(x)): copy the rule for g with empty parentheses in place of x, and put the whole formula for f(x) inside.
Simplify. Again the result must be exactly x.
Decide. If both orders gave x, for every input the inner function accepts, f and g are inverses. If either one gave anything else, they are not, and you can stop at the first failure.
Spot check with one number: pick a number f accepts, run it through f and then g, and confirm it comes back. Then pick a number g accepts and run it through g and then f.
Are f(x) = 3x − 5 and g(x) = inverses of each other? In plain words: if you run any number through one of them and then through the other, in either order, do you always get that number back?
f(g(x)) = x
g(f(x)) = x
Yes, f and g are inverses of each other, so g = .
Stopping after one order. Getting f(g(x)) = x feels like the finish, but it is half of the test. With f(x) = and g(x) = , the first order gives ( = x and passes, while the second order gives g(f(−3)) = = 3, which is not −3. Always write both lines, f(g(x)) and g(f(x)), before you answer yes.
Quick screen: pick one number a that f accepts, find f(a), then put that result into g. If you do not get a back, stop: they are not inverses.
Write f(g(x)): the rule for f with the whole of g(x), in parentheses, in place of x. Simplify.
If the result is not exactly x, stop: they are not inverses.
Write g(f(x)): the rule for g with the whole of f(x), in parentheses, in place of x. Simplify.
If this result is also exactly x for every input f accepts, f and g are inverses. If not, they are not, even though the first order passed.
Check your algebra with a number in both orders.
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 functions and the horizontal line test
Think of a coat check.
A function f is a one-to-one function when different inputs always give different outputs: f(a) = f(b) happens only when a = b. A function has an inverse function exactly when it is one-to-one. Horizontal line test: a function is one-to-one exactly when no horizontal line meets its graph at more than one point.
Say the question in plain words: do any two different inputs share an output?
From a table or a list of pairs: read along the outputs. A value that sits under two different inputs means the function is not one-to-one. No repeated output means it is one-to-one.
From a graph: hold a horizontal line at the bottom of the picture and slide it to the top. If at any height it meets the graph at two or more points, the function is not one-to-one. If it meets the graph at most once at every height, the function is one-to-one.
From a formula: look at its graph and use the horizontal line test, or write f(a) = f(b) and see whether that forces a = b.
To say a function is not one-to-one, write down the proof: two different inputs and the output they share, such as f(−2) = 4 and f(2) = 4.
State the conclusion about undoing: a one-to-one function has an inverse function, and a function that is not one-to-one does not.
Say what is being asked: do any two different inputs give the same output?
Pick the tool that fits how the function is given: the output row of a table, a sliding horizontal line on a graph, or the equation f(a) = f(b) for a formula.
Hunt for one tied pair: two different inputs with the same output. One pair settles it as not one-to-one.
If you find no tied pair, give the reason none can exist: no repeat in the table, at most one meeting point at every height, or f(a) = f(b) forcing a = b.
Finish with the conclusion about undoing: one-to-one means an inverse function exists, not one-to-one means it does not.
Decide whether f(x) = − 3 is a one-to-one function, and say whether it has an inverse function. In plain words: do any two different inputs give the same output?
f(x) = − 3 is not a one-to-one function, because f(−2) = 1 and f(2) = 1.
It fails the horizontal line test, so it has no inverse function.
Using the wrong line. A vertical line tests whether a graph is a function at all. A horizontal line tests whether that function is one-to-one. The graph of y = passes the first test and fails the second. Say the question out loud before you draw the line: "does one input have two outputs?" calls for a vertical line, and "do two inputs share one output?" calls for a horizontal line.
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 and range trade places
Picture a coat check.
If f is a one-to-one function, then: domain of = range of f, and range of = domain of f.
Make sure f is a one-to-one function, so that exists: no output repeated in a table, or a graph that passes the horizontal line test.
Find the domain of f: every input f allows.
Find the range of f: every output f actually produces. List only outputs that really come out, not every number you can imagine.
Trade the two lists. Domain of = range of f. Range of = domain of f.
Check with one pair. Pick an allowed input a and compute b = f(a). Then (b) = a, so b must sit in your new domain and a must sit in your new range.
The function f(x) = + 1 is a one-to-one function, so it has an inverse function. Without finding a formula for , find the domain and the range of . In plain words: which numbers may go into , and which numbers can come out of it?
Domain of : [1, ∞)
Range of : [2, ∞)
Writing the domain of f again as the domain of . The two functions trade their lists, and the two lists are often different. For f(x) = + 1 the tempting answer is 'domain of : [2, ∞)', but [2, ∞) is what gives back, not what it takes in. To avoid this, write two labeled lines before you answer, 'goes into ' and 'comes out of ', and fill the first line from the outputs of f.
Confirm that f is a one-to-one function, so an inverse function exists.
List what goes into f: its domain.
List what comes out of f: its range.
Write the range of f as the domain of , and the domain of f as the range of . Keep each bracket with its own list.
Test one pair: compute b = f(a) for an allowed a, then confirm b is in the new domain and a is in the new range.
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.
Reading an inverse from a table and from a graph
Picture the sign-in sheet at a gym.
If f is a one-to-one function, then: (1) the table of is the table of f with its two rows traded; (2) the point (a, b) is on the graph of f exactly when the point (b, a) is on the graph of ; (3) the graph of is the graph of f reflected (flipped, as in a mirror) across the line y = x.
Check that f is a one-to-one function. In a table, no number may appear twice in the output row. On a graph, use the horizontal line test: no horizontal line may meet the graph twice.
To find one value, such as (7), say what it asks: 'f gave the output 7; which input was it?' Find 7 in the output row of f, or at height 7 on the y-axis, and read back to the input.
To get the whole table of , trade the two rows. The old output row becomes the new input row.
If you want the new inputs in order from smallest to largest, slide whole columns. Never separate an input from its own output.
To get the graph of , pick several clear points on the graph of f, write each one as (a, b), and swap it to (b, a).
Plot the swapped points and join them with the same kind of shape the original had. Draw the line y = x lightly: each point and its swap must sit straight across that line from each other, the same distance away.
Check one value both ways: if you wrote (b) = a, the table or graph of f must show f(a) = b.
Say what is being asked: takes an output of f and returns the input it came from.
Make sure f is a one-to-one function: no repeated number in the output row, or a graph that passes the horizontal line test.
For one value (k), find k among the outputs of f (the output row, or height k on the y-axis) and read back to its input.
For a whole table, trade the two rows, then slide whole columns into order if you like.
For a whole graph, swap each clear point (a, b) to (b, a), plot the new points, and join them as the mirror image in the line y = x.
Check one answer forward: (b) = a is right only if f(a) = b.
The first table shows a function g. In plain words, reads that table backward: it starts from an output of g and returns the input it came from.
(a) Does g have an inverse function?
(b) Write the table of .
(c) Find (7) and (0).
(d) The point (3, 7) is on the graph of g. Which point does that put on the graph of ?
(a) Yes. No output of g repeats, so g is a one-to-one function.
(b) The second table: (−3) = 1, (0) = 6, (1) = 0, (4) = −2, (7) = 3.
(c) (7) = 3 and (0) = 6.
(d) (7, 3)
Reading in the forward direction. For (5), the 5 is an output of f, so look for it in the output row of the table, or at height 5 on the y-axis of the graph. If you look for 5 in the input row, or at 5 on the x-axis, you find f(5), the answer to the forward question. Before you read anything, say the question aloud: 'f gave 5; what went in?'
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.
Restricting a domain so an inverse exists
Picture a town on a long straight road.
A restricted domain is a smaller set of inputs than the full domain of a function. If f fails the horizontal line test, choose a restricted domain on which f is one-to-one. On that piece f has an inverse function. The usual choice also keeps every output of f, so the inverse accepts all of them. For f(x) = the usual restricted domain is x ≥ 0, written [0, ∞). The domain of is then the range of f, and the range of is the restricted domain.
Run the horizontal line test on the whole graph. If no horizontal line meets it twice, stop: the function already has an inverse and needs no restriction.
If the test fails and the graph turns around once, as a parabola or an absolute value graph does, find that turn. For a squared expression, the turn is where the part being squared equals 0. For that is x = 0. For (x − 2 it is x = 2.
For a graph with that one turn, keep the turning point and everything on one side of it. Unless the problem names a side, keep the right side: x ≥ the turning value.
Run the horizontal line test again on the kept piece only. Every horizontal line must now meet it at most once.
Check whether any output was lost. The usual choice keeps the range of the whole function; a piece with a smaller range still has an inverse, but that inverse accepts fewer numbers.
Write the restricted domain next to the formula, for example f(x) = , x ≥ 0. It is now part of the function.
Trade places: the domain of is the range of f, and the range of is the restricted domain. Every answer the inverse gives must lie in the restricted domain.
The function f(x) = fails the horizontal line test. Choose a restricted domain so that f has an inverse, give the domain and range of , and find (25).
Restricted domain: x ≥ 0, or [0, ∞).
Domain of : [0, ∞).
Range of : [0, ∞).
(25) = 5.
The most common mistake is to restrict the domain on paper and then forget it. Once you keep x ≥ 0 for f(x) = , the inputs −1, −2, −3 and the rest are gone. So (9) is 3 only. It is not "3 or −3", and it is not −3. To avoid the mistake, write the restricted domain beside the formula every time you write the function, and check that each answer from the inverse lies inside the restricted domain.
Run the horizontal line test on the whole graph.
If it fails and the graph turns around once, find the turning point: for a squared expression, set the part being squared equal to 0 and solve.
For a graph with one turn, keep the turning point and one side of it. Use the side the problem names, or the right side if none is named.
Run the horizontal line test again on the kept piece.
Check whether the kept piece still has the range of the whole function, as the usual choice does.
Write the restricted domain beside the formula, then trade domain and range to describe the inverse.
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.
Finding the inverse of a formula by swapping and solving
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.