College Algebra / Inverse functions
Inverse functions
All 7 lessons, in order.
The unit at a glance
- Undoing a function, and what f^-1 means
Think of a coat check.
- Checking that two functions are inverses
Think of a round trip.
- One-to-one functions and the horizontal line test
Think of a coat check.
- Domain and range trade places
Picture a coat check.
- Reading an inverse from a table and from a graph
Picture the sign-in sheet at a gym.
- Restricting a domain so an inverse exists
Picture a town on a long straight road.
- Finding the inverse of a formula by swapping and solving
Think of wrapping a gift.
Rules (7)
- Undoing a function, and what f^-1 means
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 .
- Checking that two functions are inverses
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.
- One-to-one functions and the horizontal line test
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.
- Domain and range trade places
If f is a one-to-one function, then: domain of = range of f, and range of = domain of f.
- Reading an inverse from a table and from a graph
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.
- Restricting a domain so an inverse exists
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.
- Finding the inverse of a formula by swapping and solving
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.
Recipes (7)
- Undoing a function, and what f^-1 means
- 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.
- Checking that two functions are 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.
- One-to-one functions and the horizontal line test
- 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.
- Domain and range trade places
- 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.
- Reading an inverse from a table and from a graph
- 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.
- Restricting a domain so an inverse exists
- 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.
- Finding the inverse of a formula by swapping and solving
- 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.
Traps (7)
- Undoing a function, and what f^-1 means
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.
- Checking that two functions are inverses
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.
- One-to-one functions and the horizontal line test
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.
- Domain and range trade places
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.
- Reading an inverse from a table and from a graph
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?'
- Restricting a domain so an inverse exists
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.
- Finding the inverse of a formula by swapping and solving
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.
Lesson 1 of 7
Undoing a function, and what f^-1 means
Open this lessonLeans on 1Comes back in 0
Comes back in
No lesson links recorded.
1 In plain words
Think of a coat check. You hand over your coat and get a numbered ticket. That is a function: coat in, ticket number out. At the end of the night you run it backward: ticket number in, coat out. The backward process is the inverse function. It takes each output back to the input it came from. If a function f turns 3 into 7, its inverse turns 7 back into 3. The inverse is written and read as f inverse. The small −1 is part of the name, a tag that says: this is f, run backward. It is not a power, and it does not mean 1 divided by f.
2 Picture it
Reminder
Reminder: Function notation, Reading a table of values, A power of −1 on a number, Solving a linear equation
- Function notation. f(3) = 7 means the input is 3 and the output is 7. The number inside the parentheses goes in. The number after the equals sign comes out.
- Reading a table of values. Inputs are in the top row and each output sits directly below its input. If 3 is on top and 7 is under it, then f(3) = 7.
- A power of −1 on a number. On a number, the power −1 means 1 divided by that number, called its reciprocal: = and = .
- Solving a linear equation. Undo the steps in reverse order, doing the same thing to both sides: 2x + 3 = 11 becomes 2x = 8 after subtracting 3, then x = 4 after dividing by 2.
3 Why
Undoing means getting back what you started with. If f sends a to b, the only way to return to a is to send b to a. So f(a) = b forces (b) = a. The symbol itself is a convention. People chose −1 because undoing a function is a little like dividing after multiplying: both take you back to where you began. But here the −1 sits on the name f, not on a number, so it does not mean 1 over f. Ignore that and answers break: with f(x) = 2x + 3, (11) = 4, while = .
4 The rule
When f has an inverse function and , then .
The inverse function takes each output of f back to the input it came from. The is part of the name, not a power: does not mean .
The same idea, five ways
f inverse of 7 equals 3. Say f inverse, never f to the minus one.
The inverse function of f takes 7, an output of f, back to 3, the input it came from.
- f(a) = b says the same thing as (b) = a
- f(3) = 7, so (7) = 3
- (x) does not mean
- [f(x)] = , a reciprocal, because the −1 sits outside the brackets
A coat check run backward: hand in ticket 7 and get back coat 3, the coat that ticket was given for.
The same idea, other ways
Draw the inputs of f in one oval and the outputs in another, with an arrow from each input to its output. f follows the arrows from tail to tip: 1 to 4, 2 to 6, 3 to 8. The inverse function uses the very same arrows, walked from tip to tail: 4 back to 1, 6 back to 2, 8 back to 3. No new arrows are drawn. So f(2) = 6 and (6) = 2 are one arrow, read in two directions.
A contact list with one number saved under each name is a function: you pick a name and it gives that number. When no two names share a number, caller ID is its inverse function: a number on the list comes in and the phone shows the name. Caller ID does no arithmetic on the phone number. It does not divide 1 by it. It looks up who the number belongs to. That is what does: it looks up which input an output belongs to.
Let g be the function that adds 5. Put in 4 and g gives 9. To undo that, subtract 5, and 9 goes back to 4. So g(4) = 9 and (9) = 4. Try another: g(10) = 15, so (15) = 10. Going through g and then through brings you back to the number you started with, like walking 5 steps forward and then 5 steps back.
f answers the question: this went in, what comes out? answers the opposite question: this came out, what went in? Whenever you see (7), say to yourself: 7 came out of f, what went in? Then rewrite it as f(?) = 7 and hunt for the input.
f(3) = 7: 3 went in, 7 came out
(7) = 3: 7 came out, 3 went in
One fact, read in two directions
Test it with numbers. Let g add 5, so g(4) = 9, and undoing gives (9) = 4. If the −1 were a power, (9) would be 1 divided by g(9). But g(9) = 14, so that reading gives . The number does not take you back to 4, so it undoes nothing. A power of −1 belongs on a number, as in = . On the name of a function, −1 means inverse.
| Written | Say it | What it means | Value, with f(x) = 2x + 3 |
|---|---|---|---|
| f(11) | f of 11 | Put 11 into f and read the output. | 2 · 11 + 3 = 25 |
| f inverse of 11 | 11 came out of f. Find the input that went in. | 4, because f(4) = 2 · 4 + 3 = 11 | |
| one over f of 11 | 1 divided by the output f(11). This is a reciprocal. | ||
| f of 11, all to the power −1 | Another way to write . The brackets make the −1 a power. | ||
| 5 to the power −1 | On a number, −1 is a power: 1 divided by the number. | , no function involved |
5 How
- 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.
Evaluating (b) at one number
- 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.
6 Worked example
Worked example
Reading (7) from a table, and telling it apart from two look-alikes
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?
Show the steps and the answer
- Say what is asked. means: 7 came out of f. Find the input that went in. takes an output of f back to its input, so the 7 here is an output of f, not an input.
- Rewrite the question as f(?) .f(a) = b and (b) = a are the same fact read in two directions.
- Look along the bottom row of the table, the f(x) row, for 7. It appears once, in the third column.The bottom row holds the outputs of f, and 7 is being used as an output.
- Read the input directly above that 7. It is 3. So .In the table each output sits under the input that produced it.
- Write the answer: .The rule says f(a) = b gives (b) = a. Here a = 3 and b = 7.
- Compare with f(7). Find 7 in the top row, in the last column. Below it is 10, so .f(7) uses 7 as an input. (7) uses 7 as an output. Those are different questions, and here their answers differ: 3 and 10.
- Compare with . Since , this is .1 over f(7) is 1 divided by an output. It is a reciprocal, not the inverse function.
- f(7) = 10, a different question
- = , a reciprocal and not an inverse
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 6
One fact, read backward
A one-to-one function h has h(2) = 9. Find (9). In plain words: 9 came out of h, which input went in?
Show the steps and the answer
- Read the fact as: input 2, output 9.In function notation the number inside the parentheses is the input and the number after the equals sign is the output.
- Turn the fact around: the output 9 goes back to the input 2. So .The rule says f(a) = b gives (b) = a. Here a = 2 and b = 9.
Rung 2 of 6
A table where the same number sits in both rows
The table shows a function p. Find (3) and (0). In plain words: 3 came out of p, which input went in? Then the same question for 0.
Show the steps and the answer
- For , look for 3 in the bottom row, the p(t) row. It is in the first column.The number inside ( ) is an output of p, and outputs live in the bottom row. Gotcha: 3 also sits in the top row, but that 3 is an input.
- Read the input above it: 0. So .p(0) = 3, and the inverse reads that fact backward.
- For , look for 0 in the bottom row. It is in the second column, under the input 1.Again the number inside ( ) is an output, so search the output row.
- Write .p(1) = 0, read backward.
Rung 3 of 6
A formula with one step
Let g(x) = x + 5. Find (12). In plain words: 12 came out of g, which input went in?
Show the steps and the answer
- Rewrite the question as , which is .(12) is the input that g turns into 12. This equation finds that one input.
- Subtract 5 from both sides: .g added 5, and subtracting 5 undoes adding 5.
- Write .7 is the input whose output is 12.
Rung 4 of 6
A formula with two steps
Let f(x) = 2x + 3. Find (11). In plain words: 11 came out of f, which input went in?
Show the steps and the answer
- Rewrite the question as , which is .(11) is the input that f turns into 11. Solving this equation finds it.
- Subtract 3 from both sides: .f multiplied by 2 first and added 3 last. Undo the last step first.
- Divide both sides by 2: .Dividing by 2 undoes multiplying by 2.
- Write .4 is the input whose output is 11.
Rung 5 of 6
What an inverse means in a story
A ride costs C(m) = 3m + 4 dollars for a trip of m miles. Say in words what (19) means, then find it.
Show the steps and the answer
- Say what C does: miles go in, dollars come out.The input m is miles and the output C(m) is the cost.
- Say what does: dollars go in, miles come out. So is the number of miles that costs 19 dollars.The inverse function takes each output of C, a cost, back to the input it came from, a distance.
- Rewrite as , which is .This equation finds the one distance whose cost is 19 dollars.
- Subtract 4 from both sides: .C added 4 last, so undo that first.
- Divide both sides by 3: .Dividing by 3 undoes multiplying by 3.
- Meaning: a ride that costs 19 dollars is 5 miles long.
Rung 6 of 6
The inverse and the reciprocal side by side
Let k(x) = 3x − 2. Find (10) and , and show they are different numbers.
Show the steps and the answer
- For , rewrite the question as , which is .(10) asks: 10 came out of k, which input went in?
- Add 2 to both sides: .k subtracted 2 last, and adding 2 undoes that.
- Divide both sides by 3: . So .Dividing by 3 undoes multiplying by 3.
- For , first find .Here 10 is an input of k, so it goes into the formula.
- Write 1 over that output: .A reciprocal is 1 divided by the number.
- Compare: 4 is not .One answers which input gives 10. The other divides 1 by the output at 10. They are different questions.
- The two are different, so (x) is not .
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Say f inverse out loud. Saying f to the minus one invites the 1 over mistake.
- Translate before you compute: (b) = ? becomes f(?) = b.
- Memory cue: f asks what comes out. f inverse asks what went in.
- Check every answer by going forward. Put your answer into f. If the number you started with comes out, you are right.
- Look at where the −1 sits. Right after the name and before the parentheses, (x), it means inverse. Outside brackets, [f(x)], or on a number, it is a power.
- In a table, the number inside ( ) is found in the output row, never the input row.
- Every function in this lesson has each output coming from only one input, so there is one way back. What happens when two inputs share an output is handled later in this unit.
7 The trap
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.
Flash cards
Say the answer out loud, then flip.
At a coat check, the function is: coat in, ticket number out. What does the inverse function do?
A function f has an inverse, and f(5) = 12. What is (12), and why?
Does (x) mean ?
With f(x) = 2x + 3, find (9). Say first what the question asks.
- It asks: 9 came out of f. Which input went in?
- Set 2x + 3 = 9, so 2x = 6 and x = 3.
- Check by going forward: f(3) = 2 · 3 + 3 = 9.
Lesson 2 of 7
Checking that two functions are inverses
Open this lessonLeans on 0Comes back in 1
Leans on
No lesson links recorded.
1 In plain words
Think of a round trip. One bus takes you from home to work. A second bus claims to run the same route backwards. To test the claim, ride the first bus and then the second, and see whether you step off where you started. Then test it from the other end: start at work, ride the second bus and then the first. If both round trips end where they began, from every stop, the two routes undo each other. Two functions are tested the same way. Put a number into one, feed the result into the other, and see whether your starting number comes back. Do it in both orders. If you always get your starting number back, each one is the inverse function of the other.
2 Picture it
Reminder
Reminder: Composing two functions, Substituting a whole expression, Distributing, Multiplying cancels dividing, A fraction times its flip, Square roots, Squaring a negative, What means
- Composing two functions. f(g(x)) means do g first, then feed its output into f. Work from the inside out: if g(2) = 7 and f(7) = 1, then f(g(2)) = 1.
- Substituting a whole expression. Replace x by the whole expression, in parentheses: with f(x) = 2x + 6, f(x − 3) = 2(x − 3) + 6, not 2x − 3 + 6.
- Distributing. The number in front multiplies every term inside: 2(x − 3) = 2x − 6.
- Multiplying cancels dividing. 3 · = x + 5, the same way 3 · = 12.
- A fraction times its flip. · = = 1. Multiply top by top and bottom by bottom.
- Square roots. = 3 because 3 × 3 = 9. The √ sign always gives the answer that is not negative, so is 3 and never −3.
- Squaring a negative. (−3 = (−3) × (−3) = 9. A negative times a negative is positive.
- What means. The −1 in is part of a name, not a power. (x) is the inverse function, not .
3 Why
An inverse function sends each output back to its input. So if f(a) = b, the inverse must give g(b) = a. Chain those two facts: g(f(a)) = g(b) = a. That is the statement g(f(x)) = x, and it says g undoes f. But being inverses is a two-way promise: f must also undo g, which is f(g(x)) = x. One order can pass while the other fails. Squaring sends both 3 and −3 to 9. A square root machine sends 9 back to 3 only, so the trip that starts at −3 never gets home. Checking one order would miss that.
4 The rule
Two functions f and g are inverses of each other exactly when both of these are true: for every input x that g accepts, and 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.
The same idea, five ways
f of g of x equals x, and g of f of x equals x.
Doing g and then f returns every input unchanged, and doing f and then g returns every input unchanged.
- f(g(x)) = x
- g(f(x)) = x
- (f ∘ g)(x) = x and (g ∘ f)(x) = x, where the small circle is another way to write f(g(x)) and g(f(x))
- g = and f =
A round trip: out on one bus, back on the other, and you step off where you got on, whichever end you start from.
f(g(x)) = x
g(f(x)) = x
Both must be true.
Then g = .
The same idea, other ways
Line up two machines. Drop 4 into f, which multiplies by 3 and subtracts 5: out comes 7. Drop that 7 into g, which adds 5 and divides by 3: out comes 4. The number you put in is the number you get out. Now swap the machines and do it again. If the number always survives, the machines are inverses.
A secret code moves every letter 3 places forward in the alphabet. A decoder moves every letter 3 places back. To trust the pair, you test two things. Encode a message and then decode it: you should read the original message. Decode a message and then encode it: you should again read the original. If either test garbles the text, the two are not a matched pair.
Let f add 4 and let g subtract 4. Start with 10. Through f you get 14, then through g you get 10. Now the other order: through g you get 6, then through f you get 10. Any starting number behaves the same way, because (x − 4) + 4 = x and (x + 4) − 4 = x. Both orders return x, so f and g are inverses.
Let f square its input and let g take the square root. Start with 9, g first: = 3, then = 9. Home again. Now start with −3, f first: (−3 = 9, then = 3. You left from −3 and arrived at 3. The trouble is that f sends two different inputs, 3 and −3, to the same output 9, and g can send 9 back to only one of them. The first order never notices. The second order does.
Out and back, both ways. If either trip leaves you anywhere except x, the answer is no.
| Check | What you do | What it shows |
|---|---|---|
| f(g(x)) = x | g first, then f | f undoes g |
| g(f(x)) = x | f first, then g | g undoes f |
| Both give x | Both round trips come home | f and g are inverses |
5 How
- 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.
Testing whether f and g are inverses
- 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.
6 Worked example
Worked example
A linear pair, checked in both orders
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?
Show the steps and the answer
- Write the plan: compute f(g(x)) and g(f(x)), and see whether each one simplifies to x.Being inverses is a two-way promise, so there are two things to test.
- Start f(g(x)). The rule for f is f( ) = 3( ) − 5. Put g(x) in the parentheses: .f(g(x)) means g goes first and its whole output becomes the input of f.
- Simplify to .Multiplying by 3 cancels dividing by 3, the same way 3 · = 12.
- Now .Adding 5 and then subtracting 5 leaves nothing extra. The first order passes.
- Start g(f(x)). The rule for g is . Put f(x) in the parentheses: .g(f(x)) means f goes first and its whole output becomes the input of g.
- Simplify the top: . So .−5 and +5 add to 0.
- .Dividing by 3 cancels multiplying by 3. The second order passes.
- Both orders gave exactly x, so f and g are inverses.That is the rule: f(g(x)) = x and g(f(x)) = x together.
- f(g(x)) = x
- g(f(x)) = x
- Yes, f and g are inverses of each other, so g = .
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 5
Adding and subtracting
Are f(x) = x + 4 and g(x) = x − 4 inverses? In plain words: does running a number through one and then the other, in either order, always return that number?
Show the steps and the answer
- .f adds 4 to its input, and the input is all of g(x), which is x − 4.
- .−4 and +4 add to 0. The first order passes.
- .g subtracts 4 from its input, and the input is all of f(x), which is x + 4.
- .+4 and −4 add to 0. The second order passes.
- f(g(x)) = x
- g(f(x)) = x
- Yes, they are inverses.
Rung 2 of 5
Multiplying and dividing
Are f(x) = 5x and g(x) = inverses? The question asks whether both round trips return x.
Show the steps and the answer
- .f multiplies its input by 5, and the input is g(x) = .
- .Multiplying by 5 cancels dividing by 5. The first order passes.
- .g divides its input by 5, and the input is f(x) = 5x.
- .Dividing by 5 cancels multiplying by 5. The second order passes.
- f(g(x)) = x
- g(f(x)) = x
- Yes, they are inverses.
Rung 3 of 5
A pair that looks right and is not
Are f(x) = 2x + 6 and g(x) = − 6 inverses? The question asks whether both round trips return x. One failure is enough to say no.
Show the steps and the answer
- .f doubles its whole input and adds 6. The input is all of g(x), so it goes in parentheses.
- Distribute the 2: and . So .The 2 multiplies both terms inside the parentheses.
- .
- is not x, so stop here. They are not inverses.The result must be exactly x. A leftover −6 means the round trip lands 6 short every time.
- f(g(x)) = x − 6, which is not x.
- No, they are not inverses.
Rung 4 of 5
Fractions in the rules
Are f(x) = x − 4 and g(x) = (x + 4) inverses? The question asks whether both round trips return x.
Show the steps and the answer
- .f multiplies its input by and subtracts 4. The input is all of g(x).
- , so .A fraction times its flip is 1, and multiplying by 1 changes nothing.
- .+4 and −4 add to 0. The first order passes.
- .g adds 4 to its input and then multiplies by . The input is all of f(x).
- Inside the outer parentheses, , which leaves .Simplify inside parentheses first.
- .Again a fraction times its flip is 1. The second order passes.
- f(g(x)) = x
- g(f(x)) = x
- Yes, they are inverses.
Rung 5 of 5
One order passes, the other fails
Are f(x) = and g(x) = inverses, when f accepts every number? The question asks whether both round trips return x for every input each function accepts.
Show the steps and the answer
- .f squares its input, and the input is g(x) = .
- for every x that g accepts, which is 0 and the positive numbers. is the number whose square is x, so squaring it gives x back. The first order passes.
- .g takes the square root of its input, and the input is f(x) = .
- Test a positive input, x = 5: .A quick number shows what does. Here it returned the 5.
- Test a negative input, x = −3: .f accepts negative numbers, so they must be tested too. (−3 = 9, and is 3, never −3.
- 3 is not , so g(f(x)) is not x for every input. The second order fails.One input that does not come back is enough to fail the check.
- f(g(x)) = x, so the first order passes.
- g(f(−3)) = 3, not −3, so the second order fails.
- No, they are not inverses as given.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory device: out and back, both ways. Out through one function, back through the other, and you must land on x. Then again with the order reversed.
- The answer to each check must be exactly x. If you get x plus or minus a leftover number, such as x − 6, the two functions are not inverses.
- Always wrap the inserted formula in parentheses before you simplify. Most wrong answers here come from a lost pair of parentheses, not from the idea.
- A number can show that two functions are not inverses. One number that works cannot show that they are. Use numbers to catch mistakes, and the letter x to prove.
- You may stop at the first order that fails. One failure settles the question.
- The order of the names does not matter for the verdict: if g is the inverse function of f, then f is the inverse function of g.
7 The trap
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.
Flash cards
Say the answer out loud, then flip.
What two things must both be true for f and g to be inverses of each other?
- f(g(x)) = x for every input that g accepts.
- g(f(x)) = x for every input that f accepts.
- Like two bus routes: both round trips must end where they began.
You worked out f(g(x)) and it came to x. Can you say yes, they are inverses?
You simplify f(g(x)) and get x + 2. What do you conclude?
With f(x) = (x − 1 and g(x) = + 1, the order f(g(x)) hands back x for every x that g accepts. Why are they still not inverses?
- The other order fails. Start at −2:
- g(9) = + 1 = 4, which is not −2.
- Squaring sends both −2 and 4 to 9, and g can send 9 back to only one of them. The trip that starts at −2 never gets home.
Lesson 3 of 7
One-to-one functions and the horizontal line test
Open this lessonLeans on 0Comes back in 0
Leans on
No lesson links recorded.
Comes back in
No lesson links recorded.
1 In plain words
Think of a coat check. You hand over a coat, the input, and get a ticket number, the output. Later you hand back the ticket and the clerk walks it to your coat. That return trip is the inverse. It works only if no two coats got the same number. If two coats both carry ticket 7, the clerk holding a 7 cannot know which coat to bring. A function in which every output belongs to only one input is called a one-to-one function. On a graph you can see this with a ruler held flat. Slide it up the page. If it never touches the graph in two places at once, the function is one-to-one. That is the horizontal line test.
2 Picture it
Reminder
Reminder: What a function is, What means, Horizontal and vertical, Squaring a negative number, Order of operations, Solving a linear equation
- What a function is. Each input gets exactly one output. For f(x) = , the input 3 gives 9 and nothing else.
- What means. The inverse sends each output back to its input: f(a) = b gives (b) = a. If f(2) = 9, then (9) = 2.
- Horizontal and vertical. Horizontal means flat, like the horizon. Vertical means straight up and down. Every point on the horizontal line y = 4 has height 4.
- Squaring a negative number. A negative times a negative is positive: (−2 = (−2) × (−2) = 4, the same as .
- Order of operations. Work inside the parentheses first, then the power, then the adding: (0 − 1 + 2 = (−1 + 2 = 1 + 2 = 3.
- Solving a linear equation. Undo each step in reverse order, doing the same thing to both sides: 2a − 1 = 2b − 1, add 1 to get 2a = 2b, then divide by 2 to get a = b.
3 Why
An inverse function must itself be a function, so it must send each of its inputs to exactly one place. Suppose f(a) = b and f(c) = b with a and c different. Then (b) would have to equal a and also c. That is two outputs for one input, which no function allows. So a shared output blocks the inverse. The picture test says the same thing. Every point on a horizontal line has the same height, which means the same output. If the line meets the graph at two points, those are two different inputs with one output.
4 The rule
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.
The same idea, five ways
f is one to one. Every output comes from only one input.
A function is one-to-one when no two different inputs give the same output.
- f(a) = f(b) only when a = b
- a ≠ b gives f(a) ≠ f(b)
- every horizontal line y = c meets the graph at most once
A coat check where every coat gets its own ticket number, so every ticket leads back to exactly one coat.
The same idea, other ways
Look at the graph of y = . Lay a flat line across it at height 1 and it touches the graph twice, at x = −1 and x = 1. Lay it at height 4 and it touches twice again, at x = −2 and x = 2. Two touches at one height mean two inputs with the same output. One height with two touches is enough to say the function is not one-to-one.
A list sends each person to the month of their birthday. Going forward is fine: each person has one birthday month, so this is a function. Going backward breaks. If someone tells you only "May", you cannot say whether they mean Ana or Cal. Two arrows landing on the same output is what stops you from running the arrows in reverse.
Doubling: 3 goes to 6, and no other number doubles to 6. Ask "which number doubles to 6?" and there is one answer, 3. Doubling can be undone. Squaring: 3 goes to 9, and −3 also goes to 9, because (−3) × (−3) = 9. Ask "which number squares to 9?" and there are two answers. Squaring cannot be undone until you know more.
Undoing a function means answering one question for every output b: which input gave b? An inverse function needs that question to have exactly one answer every time. A one-to-one function is one where it always does. The horizontal line at height b is the picture of that question: it collects every point whose output is b. One meeting point is one answer. Two meeting points are two answers, and the undoing breaks.
Vertical asks: is it a function? Horizontal asks: has it an inverse function? Remember it as H for horizontal, H for has an inverse. A graph must pass the vertical test to be a function at all, and then pass the horizontal test for the function to be undone.
| Test | The line you slide | The question it answers | It fails when |
|---|---|---|---|
| Vertical line test | An up-and-down line, moved from left to right | Is this graph a function? Does each input have only one output? | Some vertical line meets the graph twice: one input, two outputs |
| Horizontal line test | A flat line, moved from bottom to top | Is this function one-to-one? Does each output come from only one input? | Some horizontal line meets the graph twice: two inputs, one output |
5 How
- 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.
Deciding whether a function is one-to-one
- 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.
6 Worked example
Worked example
Can f(x) = − 3 be undone?
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?
Show the steps and the answer
- Look at the graph of f: a U shape with its lowest point at . is never negative and equals 0 only when x = 0, so the smallest output is 0 − 3 = −3. On either side of 0 the outputs climb.
- Lay a horizontal line across the graph at height 1. This is the line .Every point on that line has output 1, so wherever it meets the graph, the function's output is 1. Height 1 is above the lowest point, so the line cuts through both arms of the U.
- Read the meeting points: and (2, 1).The line crosses the left arm above x = −2 and the right arm above x = 2.
- Confirm with the formula: , and .Reading a graph by eye can be slightly off, and the formula settles it. (−2 = (−2) × (−2) = 4, because a negative times a negative is positive.
- Conclude that f is not a one-to-one function.Two different inputs, −2 and 2, share the output 1. One tied pair is enough.
- Conclude that f has no inverse function.(1) would have to be −2 and also 2, and a function gives only one output for each input.
- 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.
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 5
A table with no repeats
The table shows a function f. Is f a one-to-one function? In plain words: does any output appear under two different inputs?
Show the steps and the answer
- Read the output row of the table: 5, 9, 2, 7.One-to-one is a question about outputs, so the output row is the place to look.
- Look for a value that appears twice. There is none.5, 9, 2 and 7 are four different numbers.
- Conclude that f is one-to-one.No two inputs share an output.
Rung 2 of 5
A table with a repeat
The table shows a function h. Is h a one-to-one function? In plain words: does any output appear under two different inputs?
Show the steps and the answer
- Read the output row of the table: 4, 9, 5, 9, 1.A shared output can only show up as a repeat in this row.
- Spot the two 9s. One sits under the input 1 and the other under the input 3.The table says h(1) = 9 and h(3) = 9.
- Conclude that h is not one-to-one.Two different inputs, 1 and 3, share the output 9.
- Notice that h is still a function.Each input in the top row has one output below it. Repeated outputs are allowed in a function. They only stop it from being one-to-one.
- No. h(1) = 9 and h(3) = 9, so h is not a one-to-one function.
- It has no inverse function.
Rung 3 of 5
A slanted straight line
Is f(x) = 2x − 1 a one-to-one function? In plain words: can two different inputs ever give the same output?
Show the steps and the answer
- Look at the graph: a straight line that climbs steadily from left to right.Each step of 1 to the right adds 2 to the output: f(0) = −1, f(1) = 1, f(2) = 3.
- Lay the horizontal line across it. It meets the graph once, at (2, 3).A climbing line passes through each height one time and never comes back to it.
- Slide the horizontal line to any other height. There is still one meeting point.The line keeps climbing to the right and keeps falling to the left, so it reaches every height exactly once.
- Conclude that f passes the horizontal line test.No horizontal line meets the graph at more than one point.
Rung 4 of 5
A curve that still passes
Is f(x) = a one-to-one function? In plain words: do any two different inputs give the same cube? The gotcha: a graph does not have to be straight to pass.
Show the steps and the answer
- Test the tempting pair, 2 and : and .With squaring, opposite inputs tied. Cubing uses three factors: (−2) × (−2) = 4, then 4 × (−2) = −8, so the negative sign survives. The outputs 8 and −8 are different.
- Lay the horizontal line across the graph. It meets the graph only at (2, 8).The point for x = −2 is far below, at height −8, not at height 8.
- Slide the line to other heights. There is one meeting point each time.The graph climbs the whole way from left to right. It flattens near x = 0 but never turns back down, so it never returns to a height it has already passed.
- Conclude that f passes the horizontal line test.No horizontal line meets the graph at more than one point.
Rung 5 of 5
Opposite inputs are not the only pair to try
Is f(x) = (x − 1 + 2 a one-to-one function? In plain words: do any two different inputs give the same output? The gotcha: the tied pair is not 2 and −2 this time.
Show the steps and the answer
- Try 2 and : , and .This is the pair that tied for . Here the outputs are 3 and 11, which differ. That does not show the function is one-to-one: one pair that differs proves nothing.
- Look at the graph: a U shape with its lowest point at (1, 2).(x − 1 is 0 when x = 1 and positive for every other x, so the smallest output is 0 + 2 = 2, at x = 1. The U is centered on x = 1, not on x = 0.
- Lay the horizontal line across it. It meets the graph at (0, 3) and (2, 3).Any height above the lowest point cuts both arms of a U. The meeting points sit the same distance on either side of x = 1: one unit to the left and one unit to the right.
- Confirm with the formula: , and from the first step.The formula settles what the eye read from the graph.
- Conclude that f is not one-to-one and has no inverse function.Two different inputs, 0 and 2, share the output 3, so (3) would need to be two numbers.
- No. f(0) = 3 and f(2) = 3, so f(x) = (x − 1 + 2 is not a one-to-one function.
- It has no inverse function.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory device: vertical asks "is it a function?", horizontal asks "has it an inverse function?". H for horizontal, H for has an inverse.
- Use the edge of a sheet of paper as the horizontal line. Hold it flat and slide it up the graph, watching for a height where it touches twice.
- A horizontal line that misses the graph, or touches it once, is fine. Only two or more meeting points on one line is a fail.
- To show a function is not one-to-one you need only one tied pair. Write it down as proof, for example f(−2) = 4 and f(2) = 4.
- In a table, only the output row decides one-to-one. Scan it for a repeated value.
- A graph in one unbroken piece that only climbs as you read left to right, or only falls, always passes. One that turns around, down then up or up then down, always fails.
- Opposite inputs such as 2 and −2 are a good first pair to try, but they are not the only pair. For a U shape, try two inputs the same distance on either side of its lowest point.
- Failing the test is not the end of the story. A later lesson keeps one piece of such a graph so that an inverse function exists.
7 The trap
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.
Flash cards
Say the answer out loud, then flip.
What makes a function a one-to-one function?
A horizontal line meets a graph at two points. What does that tell you?
Vertical line or horizontal line: which one answers which question?
- Vertical line: does one input have two outputs? It tests whether the graph is a function at all.
- Horizontal line: do two inputs share one output? It tests whether the function is one-to-one.
How do you prove that f(x) = is not a one-to-one function?
Lesson 4 of 7
Domain and range trade places
Open this lessonLeans on 2Comes back in 4
1 In plain words
Picture a coat check. You hand over a coat and get a numbered ticket. The coats the counter will take are its domain: everything that is allowed to go in. The tickets it hands out are its range: everything that actually comes out. At the end of the night the counter runs backward. You hand over a ticket and get your coat back. That backward counter is the inverse function. What goes into it? Tickets, and only tickets that were handed out. What comes out? Coats, and only coats that were checked. So the two lists trade places. The inputs of the inverse are the outputs of the original, and the outputs of the inverse are the inputs of the original.
2 Picture it
Reminder
Reminder: What means, Domain and range, One-to-one function, Interval notation, Set braces, What a square root allows, No zero in a bottom, The union sign
- What means. f(a) = b says the same thing as (b) = a. The −1 is a name, not a power. Example: f(6) = 3 gives (3) = 6.
- Domain and range. The domain is every input a function allows. The range is every output that actually comes out. For the squaring function, the domain is every number and the range is 0 and up, because a square is never negative.
- One-to-one function. No two inputs share an output. Only a one-to-one function has an inverse function. On a graph, no horizontal line meets it twice.
- Interval notation. [2, ∞) means every number from 2 up, with 2 included. A square bracket includes the end, a round bracket leaves it out, and ∞ always gets a round bracket. (−3, 7] leaves out −3 and includes 7.
- Set braces. {5, 7, 9} means exactly the numbers 5, 7 and 9, and nothing between them.
- What a square root allows. The inside of a square root must be 0 or more, and the root itself is never negative. needs x − 2 ≥ 0, so x ≥ 2, and its smallest value is = 0.
- No zero in a bottom. A fraction with 0 on the bottom has no value. In , the input x = 3 is not allowed because it gives .
- The union sign. The sign ∪ joins two pieces into one list. (−∞, 3) ∪ (3, ∞) means every number except 3.
3 Why
Start from what an inverse does: f(a) = b says the same thing as (b) = a. A number b can go into only if there is some input a that f sent to b. That is exactly what it means for b to be an output of f. So the allowed inputs of are the outputs of f. In the same way, each answer gives is some a that f accepted, and every such a is given back from its own b. If you fed a number f never produced, there would be no input to send it back to.
4 The rule
If f is a one-to-one function, then: domain of range of f, and range of domain of f.
The same idea, five ways
The domain of f inverse is the range of f. The range of f inverse is the domain of f.
Every number that accepts is a number that f produces, and every number that produces is a number that f accepts.
- domain of = range of f
- range of = domain of f
- f(a) = b means (b) = a: a is in the domain of f, and b is in the domain of
- a one-to-one f with domain [2, ∞) and range [1, ∞) gives with domain [1, ∞) and range [2, ∞)
A coat check takes coats and gives tickets. Run backward, it takes tickets and gives coats.
f takes in its domain and gives out its range
takes in the range of f
gives out the domain of f
domain of = range of f
range of = domain of f
The same idea, other ways
Feed 2 into f, where f doubles a number and adds 3. Out comes 7. Feed that 7 straight into , which subtracts 3 and halves. Out comes 2 again. Look at the 7 in the middle. It is an output of f and an input of at the same moment. Every number ever receives is a middle number like this one, so the inputs of are exactly the outputs of f.
Look at the table. The input row is the domain of f and the output row is its range. The question (7) asks: which input gave the output 7? Find the 7 in the output row and look up to its input, 2. So (7) = 2. You can ask about any number in the output row, and it answers with a number from the input row. Now ask about 6. There is no 6 in the output row, so (6) has no answer. The output row of f is the full list of what accepts.
A thermometer function f turns Celsius into Fahrenheit by f(x) = x + 32, and you use it only for liquid water. It accepts readings from 0 to 100. It outputs readings from 32 to 212, since f(0) = 32 and f(100) = 180 + 32 = 212. The inverse turns Fahrenheit back into Celsius. It accepts 32 to 212 and returns 0 to 100. Ask it about 68 and it answers 20, because f(20) = 36 + 32 = 68. Ask it about 20 and it has no answer: 20°F is below freezing, so f never produced that number.
Picture the graph of f(x) = + 2. Press the graph flat onto the x-axis and it covers 0 and everything to the right: the domain of f, [0, ∞). Press it flat onto the y-axis and it covers 2 and everything above: the range of f, [2, ∞). The shadow on the y-axis is the list of numbers accepts. The shadow on the x-axis is the list of numbers gives back.
Turn every question about into a question about f. 'Can take 7?' becomes 'Does f ever output 7?' 'Can give back 4?' becomes 'Does f accept 4?' You already know how to answer questions about f, so you never need the inverse itself to find its domain and range.
| Function | Goes in (domain) | Comes out (range) |
|---|---|---|
| Coat check | coats | tickets |
| Coat check run backward | tickets | coats |
| [2, ∞) | [1, ∞) | |
| [1, ∞) | [2, ∞) |
5 How
- 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.
Finding the domain and range of without finding
- 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.
6 Worked example
Worked example
The domain and range of an inverse, with no formula for the inverse
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?
Show the steps and the answer
- Find the domain of f. The inside of the root must be 0 or more: , so . Domain of f: .A negative number has no real square root. Solving x − 2 ≥ 0 finds the smallest input the root accepts. Plug it in to see: f(2) = + 1 = 1, which works, while f(1) would need , which is not a real number.
- Find the range of f. The root is 0 at and grows without end as x grows. Adding 1 lifts every output by 1, so . Range of f: .A square root never comes out negative, so its smallest value is 0 and the smallest output of f is 0 + 1 = 1. The outputs then climb through every number above 1: f(2) = 1, f(3) = 2, f(6) = 3, f(11) = 4.
- Trade the first list. Domain of range of . can only accept numbers that f actually produces, and those are the numbers from 1 up.
- Trade the second list. Range of domain of . hands back the inputs of f, and those are the numbers from 2 up.
- Domain of : [1, ∞)
- Range of : [2, ∞)
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 5
A table
The table shows a one-to-one function h. Find the domain and the range of . In plain words: list the numbers you may feed to , and list the numbers it can give back.
Show the steps and the answer
- Read the domain of h from the input row: .The input row lists every number h accepts.
- Read the range of h from the output row: {4, 1, 8, 6}, or in order {1, 4, 6, 8}.The output row lists every number h actually produces. No number appears twice there, which is why h is a one-to-one function.
- Trade them. Domain of . Range of . takes each output of h back to the input it came from.
- Domain of : {1, 4, 6, 8}
- Range of : {−2, 0, 3, 5}
Rung 2 of 5
A straight line on a limited stretch
A taxi charges f(x) = 3x + 4 dollars for a ride of x miles and only takes rides from 0 to 10 miles, so the domain of f is [0, 10]. The inverse takes a fare and gives back the miles. Find the domain and the range of . In plain words: which fares can you hand to , and which mile counts can it return?
Show the steps and the answer
- Write the domain of f: [0, 10].The question says the taxi accepts rides of 0 to 10 miles, both ends included.
- Find the lowest and highest outputs. and .The fare climbs 3 dollars every mile, so the smallest fare belongs to the shortest ride and the largest fare to the longest ride.
- Write the range of f: [4, 34].A straight line has no gaps, so as x slides from 0 to 10 the fare passes through every number from 4 to 34. It never repeats a fare, so f is a one-to-one function.
- Trade them. Domain of . Range of . takes fares in and gives miles out.
- Domain of : [4, 34]
- Range of : [0, 10]
Rung 3 of 5
A square root that is subtracted
f(x) = 5 − is a one-to-one function. Find the domain and the range of without finding its formula. In plain words: which numbers does f produce, since those are the ones accepts, and which numbers does f accept, since those are the ones returns?
Show the steps and the answer
- Find the domain of f. The inside of the root must be 0 or more: , so . Domain of f: .A negative number has no real square root. Solving x + 4 ≥ 0 finds the smallest input the root accepts. Plug it in to see: f(−4) = 5 − = 5, which works, while f(−5) would need .
- Find the range of f. The root starts at 0 and grows without end, so starts at 5 and falls without end: . Range of f: .The root is never negative, and here it is taken away from 5. Taking away 0 or more leaves 5 or less. This is the gotcha: the range runs down from 5, not up from it.
- Trade them. Domain of . Range of .The outputs of f are the inputs of , and the inputs of f are its outputs. The square bracket at 5 and the square bracket at −4 each stay with their own list.
- Domain of : (−∞, 5]
- Range of : [−4, ∞)
Rung 4 of 5
A fraction with x in the bottom
f(x) = + 2 is a one-to-one function. Find the domain and the range of without finding its formula. In plain words: find the one number f cannot take in and the one number f cannot give out, then trade the two lists.
Show the steps and the answer
- Find the domain of f. Set the bottom equal to 0: , so . Throw that input out. Domain of f: , every number except 3.Setting the bottom equal to 0 finds the one input that would make the fraction divide by zero. Plug it in to see: f(3) = + 2, and has no value.
- Find the one output f can never give. The fraction is 1 divided by something, and that is never 0. So is never .A fraction equals 0 only when its top is 0, and the top here is always 1.
- See that every other output is reached. To get 3 you need , which does: . To get 1 you need , which does: . Any target other than 2 works the same way. Range of f: .For a target other than 2, the fraction must equal the target minus 2, which is not 0, and some x always makes equal a number that is not 0.
- Trade them. Domain of . Range of .The number f never outputs, 2, is the number cannot accept. The number f cannot accept, 3, is the number never gives back.
- Domain of : (−∞, 2) ∪ (2, ∞), every number except 2
- Range of : (−∞, 3) ∪ (3, ∞), every number except 3
Rung 5 of 5
Only the two lists, with open and closed ends
A one-to-one function g has domain (−3, 7] and range [0, 12). (a) Find the domain and the range of . (b) Does (12) exist? (c) Does (0) exist? (d) Could (5) = 9? In plain words: no table, graph or formula is given, only the list of inputs and the list of outputs of g, and you must say what can take in and give out.
Show the steps and the answer
- (a) Trade the lists. Domain of . Range of .The outputs of g are the inputs of , and the inputs of g are its outputs. Each bracket stays with its own list.
- (b) Look for 12 in [0, 12). The round bracket leaves 12 out, so does not exist.g never outputs 12, so there is no input to send 12 back to.
- (c) Look for 0 in [0, 12). The square bracket includes 0, so exists. Its value is some number in .0 is an output of g, so exactly one input produced it. The two lists alone do not say which input.
- (d) exists, because 5 is in [0, 12). Its value cannot be 9, because 9 is not in .(5) = 9 would mean g(9) = 5, and g does not accept 9.
- (a) Domain of : [0, 12). Range of : (−3, 7]
- (b) No
- (c) Yes, and its value lies in (−3, 7]
- (d) No
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory cue: what f gives out, takes in. Outs become ins, and ins become outs.
- You do not need a formula for to know its domain and range. Everything comes from f.
- To test one number, turn the question around. 'Is 7 in the domain of ?' is the same question as 'Does f ever output 7?'
- Brackets travel with their list. If the range of f is [1, ∞), the domain of is [1, ∞), with the same closed end at 1.
- The trade works in both directions, because f is the inverse of . Knowing the domain and range of either function gives you both for the other.
- When a later lesson gives you a formula for , still take its domain from the range of f. A formula can look as if it accepts more numbers than the inverse really does.
7 The trap
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.
Flash cards
Say the answer out loud, then flip.
f is a one-to-one function. Where do you get the domain of ?
You know f(4) = 9, and f is a one-to-one function. Which number goes into , and which comes out?
- 9 goes in, so 9 is in the domain of .
- 4 comes out, so 4 is in the range of .
- Reason: f(4) = 9 says the same thing as (9) = 4.
f(x) = + 1 has domain [2, ∞) and range [1, ∞). What are the domain and range of ?
- Domain of : [1, ∞)
- Range of : [2, ∞)
- The two lists trade places. [2, ∞) is what gives back, not what it takes in.
Why can you not put a number into that f never produced?
Lesson 5 of 7
Reading an inverse from a table and from a graph
Open this lessonLeans on 1Comes back in 0
Leans on
Comes back in
No lesson links recorded.
1 In plain words
Picture the sign-in sheet at a gym. It has two columns: a locker number on the left and the person using that locker on the right. Read left to right, the sheet answers 'who has locker 12?' Read right to left, the same sheet answers the opposite question: 'which locker does Dana have?' You only traded the column you start from. A table of a function works the same way. Trade its two rows and you are holding the table of its inverse function. A graph is a picture of those same pairs, so trading the two numbers in every point draws the graph of the inverse function. That trade looks like a flip across the line y = x, as if the line were a mirror.
2 Picture it
Reminder
Reminder: Reading a point, Negative coordinates, What the notation means, One-to-one function and the horizontal line test, Domain and range trade places, Checking inverses by composing
- Reading a point. (a, b) means go a across, then b up. (3, 1) is 3 right and 1 up. (1, 3) is 1 right and 3 up. The order matters, which is why swapping makes a new point unless the two numbers are equal.
- Negative coordinates. A negative first number means left of zero and a negative second number means below zero. (−1, 2) is 1 left and 2 up. (2, −1) is 2 right and 1 down.
- What the notation means. f(a) = b gives (b) = a. If f(2) = 9, then (9) = 2. The −1 is part of the name of the inverse function. It is not a power.
- One-to-one function and the horizontal line test. A one-to-one function never gives two inputs the same output. On a graph, that means no horizontal line meets the graph twice. Outputs 5, 8, 5 fail. Outputs 5, 8, 6 pass.
- Domain and range trade places. The inputs of are the outputs of f. If the outputs of f are 4, 7 and 9, then 4, 7 and 9 are the only numbers accepts.
- Checking inverses by composing. Feeding the answer back must return the starting number: if (7) = 3, then f(3) must be 7, so f((7)) = 7.
3 Why
Earlier in this unit you saw that f(a) = b means (b) = a. A table column with a on top and b underneath says f(a) = b, so the same column turned upside down says (b) = a. A point (a, b) on a graph says the same thing a column does, so the inverse function owns the point (b, a). Why a mirror? Fold the page along the line y = x. The fold lays the x-axis onto the y-axis, so 'a across and b up' becomes 'b across and a up'. That is the point (b, a).
4 The rule
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 .
The same idea, five ways
'the point a comma b on f becomes the point b comma a on f inverse.' Or say: 'the graph of f inverse is the graph of f flipped over the line y equals x.'
Every input and output pair of f, written in the opposite order, is an input and output pair of the inverse function, so the two graphs are mirror images of each other in the line y = x.
- f(a) = b means (b) = a
- (a, b) on the graph of f gives (b, a) on the graph of
- table of = table of f with the two rows traded
- graph of = graph of f reflected across the line y = x
Draw a curve in wet ink, fold the paper along the diagonal crease, and press. The print that appears on the other side of the crease is the graph of the inverse function.
The same idea, other ways
Fold the page along the line y = x and the graph of f lands on the graph of . This works for curves as well as for straight lines. In the picture, the solid curve is a function and the dashed curve is its inverse function. The point (2, 8) on the solid curve has a partner (8, 2) on the dashed curve. The point (−2, −8) has the partner (−8, −2). Every point has a partner with the same two numbers in the opposite order.
A phrase card for travelers has English on the left and Spanish on the right. Start from the left column and it turns English into Spanish. Start from the right column and the same card turns Spanish back into English. You did not write a new card. You changed which column you enter by. One warning comes with the story: if two English words on the card shared one Spanish word, the backward reading would not know which English word to give you. That is why the function must be a one-to-one function before you trade anything.
Look at the table. The column under 2 holds 4, so f(2) = 4. Read that same column from the bottom up: 4 goes back to 2, so (4) = 2. Do the same with the other two columns: 6 goes back to 1, and 9 goes back to 3. Those three backward readings are the whole inverse function. As points, (1, 6), (2, 4) and (3, 9) on the graph of f become (6, 1), (4, 2) and (9, 3) on the graph of .
A mirror sits exactly halfway between a thing and its reflection. Test that on the pair (1, 4) and (4, 1). Halfway between them is (2.5, 2.5), and a point with two equal numbers is on the line y = x. Try (−1, 2) and (2, −1): halfway is (0.5, 0.5), on the line again. This always happens, because the halfway number is the same whichever order you add in. Also, the trip from (1, 4) to (4, 1) goes 3 right and 3 down, which crosses the line y = x squarely, not at a slant. Halfway and square on: that is a mirror.
| Point on the graph of f | What it says | Swapped point, on the graph of | What it says |
|---|---|---|---|
| (0, 1) | f(0) = 1 | (1, 0) | |
| (1, 3) | f(1) = 3 | (3, 1) | |
| (2, 5) | f(2) = 5 | (5, 2) | |
5 How
- 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.
Reading an inverse from a table or from a graph
- 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.
6 Worked example
Worked example
A table read backward
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 ?
Show the steps and the answer
- Look along the g(x) row of the first table and see whether any number appears twice.Only a one-to-one function can be undone, and one-to-one means no two inputs share an output. The five outputs are all different, so g is a one-to-one function and exists.
- Trade the two rows of the first table. The g(x) row becomes the new input row and the x row becomes the new output row. For example, the column with over 4 becomes a column with 4 over .Each column of g says g(a) = b. The inverse function sends b back to a, so b goes on top as the input and a goes underneath as the output.
- Slide whole columns so the new inputs run from smallest to largest. The second table is the result. Its first column, over 1, came from the old column 1 over .The order of the columns does not change what a table says, as long as each input keeps its own output. Inputs in order are quicker to read.
- Find . Look for 7 in the g(x) row of the first table. It sits under , so .(7) asks which input of g produced the output 7. The first table says g(3) = 7.
- Find . Look for 0 in the g(x) row of the first table, not in the x row. It sits under , so .The 0 in the x row belongs to the fact g(0) = 1, which answers a different question. For the inverse function, 0 has to be an output of g, and the first table says g(6) = 0.
- Swap the two numbers in (3, 7) to get (7, 3).The point (3, 7) on the graph of g says g(3) = 7. That is the same fact as (7) = 3, which is the point (7, 3) 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)
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 5
One fact, read both ways
A one-to-one function h has h(4) = 9. In plain words: the input 4 gives the output 9.
(a) What is (9)?
(b) Name the point this fact puts on the graph of h, and the point it puts on the graph of .
Show the steps and the answer
- Write the fact as the point (4, 9).In a point on a graph, the first number is the input and the second number is the output.
- Read the fact backward: .The inverse function takes each output of h back to the input it came from, and the output 9 came from the input 4.
- Swap the two numbers in (4, 9) to get (9, 4).(9) = 4 has input 9 and output 4, so on the graph of it is the point (9, 4).
- (b) (4, 9) is on the graph of h, and (9, 4) is on the graph of .
Rung 2 of 5
One value from a table, with a tempting wrong column
The table shows a one-to-one function p. Find (5) and (1). In plain words: p gave the output 5, which input was it? Then the same question for the output 1.
Show the steps and the answer
- For , find 5 in the p(x) row. It sits under . So .The input of is an output of p, so it must be found in the output row. The column says p(4) = 5.
- Do not use the column that has 5 on top.That column says p(5) = 1. It answers 'what does p do to 5?', which is the forward question, not the backward one.
- For , find 1 in the p(x) row. It sits under . So .The column says p(5) = 1, so the output 1 came from the input 5. The column with 1 on top says p(1) = 8, which is the forward reading again.
Rung 3 of 5
Flipping the points of a graph
The solid line in the first picture is the graph of a function f. It passes through (0, 3), (2, 2), (4, 1) and (6, 0). In plain words: each point is an input and output pair of f, and the inverse function owns the same pairs in the opposite order.
(a) Give four points on the graph of .
(b) Where does the graph of cross each axis?
(c) Which point is on both graphs?
Show the steps and the answer
- Check that f can be undone. The graph is a slanted straight line, so every horizontal line meets it exactly once.Passing the horizontal line test means f is a one-to-one function, so the inverse function exists.
- Swap the two numbers in each point: (0, 3) becomes (3, 0), (2, 2) becomes (2, 2), (4, 1) becomes (1, 4), and (6, 0) becomes (0, 6).A point (a, b) on the graph of f says f(a) = b, which is the same fact as (b) = a, the point (b, a).
- Find the axis crossings. (3, 0) has second number 0, so it is on the x-axis. (0, 6) has first number 0, so it is on the y-axis.The swap trades the two axes. f crossed the y-axis at (0, 3), so crosses the x-axis at (3, 0). f crossed the x-axis at (6, 0), so crosses the y-axis at (0, 6).
- Notice that (2, 2) did not change.Its two numbers are equal, so it lies on the line y = x, the mirror. A point on the mirror is its own reflection, so both graphs pass through it.
- Plot the four swapped points and join them. The second picture shows the result as a dashed line.The mirror image of a straight line is a straight line, so the swapped points line up.
- (a) (3, 0), (2, 2), (1, 4) and (0, 6)
- (b) It crosses the x-axis at (3, 0) and the y-axis at (0, 6).
- (c) (2, 2), which lies on the line y = x.
Rung 4 of 5
Reading straight from the graph of f
A function f is given only by its graph. The curve passes through (0, 1), (1, 2), (4, 3) and (9, 4). Find (3) and (1) without drawing the graph of . In plain words, (3) asks: the output of f is 3, what was the input?
Show the steps and the answer
- Check that f can be undone. The curve keeps rising as you move to the right, so no horizontal line can meet it twice.A graph that passes the horizontal line test belongs to a one-to-one function, so the inverse function exists.
- For , start at 3 on the y-axis, not on the x-axis.The input of is an output of f, and the outputs of f are heights, measured on the y-axis.
- Move straight across at height 3 until you hit the curve. You arrive at the point (4, 3). Drop straight down to the x-axis and read 4. So .The point (4, 3) says f(4) = 3, so the output 3 came from the input 4.
- For , start at height 1 on the y-axis. The curve is right there, at the point (0, 1). The input is 0, so .The point (0, 1) says f(0) = 1. Do not use the point (1, 2): it says f(1) = 2, which is the forward reading of the number 1.
Rung 5 of 5
You are handed the graph of and asked about f
This time the solid line in the first picture is the graph of , not of f. It passes through (−4, −1), (−2, 0), (0, 1), (2, 2) and (4, 3).
(a) Find f(3).
(b) Find f(0).
(c) Where does the graph of f cross the x-axis?
In plain words: you hold the backward machine and must answer questions about the forward one.
Show the steps and the answer
- Turn the question around. f(3) asks for the output of f when the input is 3. On the graph of , the inputs of f appear as the second numbers of the points.A point (b, a) on the graph of says (b) = a, which is the same fact as f(a) = b. Undoing works in both directions: f undoes as much as undoes f.
- Find the point whose second number is 3. It is (4, 3). So .(4, 3) on the graph of swaps to (3, 4) on the graph of f, and (3, 4) says f(3) = 4.
- Find the point whose second number is 0. It is . So .(−2, 0) swaps to (0, −2), which says f(0) = −2. Do not use (0, 1): its first number is 0, and it says (0) = 1, a different fact.
- The graph of f crosses the x-axis at a point of the form (a, 0). Its swap, (0, a), is on the graph of and on the y-axis. That point is (0, 1). Swap it back to get (1, 0).Swapping trades the axes, so the place where crosses the y-axis tells you where f crosses the x-axis.
- (a) f(3) = 4
- (c) The graph of f crosses the x-axis at (1, 0).
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory cue: 'Inverse: trade places.' The rows of the table trade places, the two numbers in each point trade places, and the two axes trade places.
- Say each point as a sentence. (1, 3) on f is 'f sends 1 to 3'. Its swap (3, 1) is 'f inverse sends 3 back to 1'. If the two sentences do not undo each other, the swap was done wrong.
- A point with two equal numbers, such as (2, 2), does not move when you swap it. So wherever the graph of f touches the line y = x, the graph of passes through the same spot.
- Axis crossings trade axes. If f crosses the y-axis at (0, 3), then crosses the x-axis at (3, 0).
- You can read (k) from the graph of f without drawing anything new: start at height k on the y-axis, go across to the graph, then straight down to the x-axis.
- To check a drawn inverse, turn the paper until the line y = x points straight up. The two graphs should look like the left and right wings of a butterfly. Use the same spacing on both axes, or the mirror will look bent.
- After trading the rows of a table, the new input row is the old output row. If your new inputs are not exactly the old outputs, something was copied wrong.
7 The trap
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?'
Flash cards
Say the answer out loud, then flip.
You have the table of a one-to-one function f. How do you get the table of ?
What does (5) ask, and where do you look for the 5?
The point (2, 9) is on the graph of a one-to-one function f. Which point must be on the graph of , and why?
The graph of is the graph of f flipped across which line, and how do you check a swapped point against it?
From earlier
Show answer
Show answer
4 comes out, so 4 is in the range of .
Reason: f(4) = 9 says the same thing as (9) = 4.
Lesson 6 of 7
Restricting a domain so an inverse exists
Open this lessonLeans on 2Comes back in 0
Comes back in
No lesson links recorded.
1 In plain words
Picture a town on a long straight road. A sign tells you how far you are from town, but not which side you are on. "Five miles" could mean five miles east or five miles west, so you cannot work back from the sign to one spot. Now agree to use only the road east of town, with the town itself included. On that half, "five miles" names exactly one spot, and you can always work back. Restricting a domain is the same move. When a function gives the same output to two different inputs, you keep only a piece of its inputs, a piece where every output comes from one input. On that piece the function can be undone.
2 Picture it
Reminder
Reminder: The horizontal line test, Squaring a negative number, Where a squared expression is smallest, Domain and range trade places, Interval notation, Absolute value, Order of operations, Solving a one-step equation
- The horizontal line test. A function is a one-to-one function when no horizontal line meets its graph more than once. y = fails: the line at height 4 meets it at x = −2 and at x = 2.
- Squaring a negative number. A negative times a negative is positive: (−3 = (−3) × (−3) = 9. That is why −3 and 3 share the output 9.
- Where a squared expression is smallest. A square is never negative, so it is smallest when the part being squared is 0. (x − 2 is smallest when x − 2 = 0, which is x = 2, and there it equals 0.
- Domain and range trade places. The domain of is the range of f, and the range of is the domain of f. If f has domain [2, ∞) and range [1, ∞), then has domain [1, ∞) and range [2, ∞).
- Interval notation. [0, ∞) means every number from 0 up, with 0 included. A square bracket includes the end, a round one leaves it out, and ∞ always gets a round one.
- Absolute value. |x| is the distance from x to 0 on the number line, so it is never negative: |−6| = 6 and |6| = 6.
- Order of operations. Work inside the parentheses first, then the power, then add or subtract: (5 − 2 + 1 = + 1 = 9 + 1 = 10.
- Solving a one-step equation. Undo what was done to x on both sides: x + 4 = 0 becomes x = −4 after subtracting 4 from both sides.
3 Why
An inverse must send each output back to one input. The function y = sends both −3 and 3 to 9, so undoing 9 would need two answers, and a function may give only one. Nothing repairs that while both inputs stay. So you remove one input from every such pair by keeping only x ≥ 0. On that half a bigger input always gives a bigger square, so no output repeats. Every output is still reached, since each one from a negative input also comes from its positive partner. Keeping the right half is a convention: the left half works as well.
4 The rule
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 the usual restricted domain is , written . The domain of is then the range of f, and the range of is the restricted domain.
The same idea, five ways
f of x equals x squared, for x greater than or equal to zero. Or: x squared, restricted to x at least zero.
The function f squares its input, and the only inputs allowed are the numbers that are zero or more.
- f(x) = on [0, ∞)
- domain: {x | x ≥ 0}
- graph words: the right half of the parabola, starting at (0, 0) and climbing
A road with the west half closed: every distance sign now points to exactly one spot.
The same idea, other ways
Look at the whole parabola y = . The horizontal line at height 4 meets it twice, at (−2, 4) and at (2, 4). Now lay your hand over everything left of the y-axis. The same line meets what is still showing only once, at (2, 4). Slide the line to any other height of 0 or more: one meeting point each time. Covering the left half is the restriction x ≥ 0.
A building has floors above the lobby and basement levels below it. A note says: meet me 3 levels from the lobby. That could be 3 up or 3 down, so the note cannot be traced back to one place. If the basement is closed, the same note has one meaning: floor 3. Closing the basement did not change how levels are counted. It only removed the second place a note could point to.
In the table, the output row reads 9, 4, 1, 0, 1, 4, 9. Every output except 0 appears twice, once under a negative input and once under its positive partner. Cross out the columns under −3, −2 and −1. What is left is 0, 1, 2, 3 on top and 0, 1, 4, 9 underneath. No output repeats, and no output is missing.
Flip every point (a, b) of the whole parabola to (b, a), the way an inverse graph is made. The point (2, 4) becomes (4, 2), and (−2, 4) becomes (4, −2). Now the input 4 has two outputs, 2 and −2, so the flipped graph fails the vertical line test and is not a function. Flip only the kept half and (4, −2) never appears. Each input has one output, so the flipped graph is a function.
For a graph with a single turn, such as a parabola: cut at the turn, keep one side. Find the point where the graph stops falling and starts climbing, or stops climbing and starts falling. Keep that point and everything on one side of it. Either side gives an inverse; this unit keeps the right side when nobody says which.
| Piece of y = kept | Passes the horizontal line test? | Still reaches every output y ≥ 0? | Verdict |
|---|---|---|---|
| all x | No: −2 and 2 both give 4 | Yes | No inverse |
| Yes | Yes | Works. The usual choice | |
| Yes | Yes | Works. Use it when the problem names the left side | |
| x > 0 | Yes | No: the output 0 is lost | Has an inverse, but loses the output 0. The usual choice keeps the turning point |
| Yes | No: the outputs below 1 are lost | Has an inverse, but loses the outputs below 1 | |
| No: −1 and 1 both give 1 | Yes | Too big. Still no inverse |
5 How
- 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.
Restricting a domain so an inverse exists
- 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.
6 Worked example
Worked example
Restricting y = and undoing an output
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).
Show the steps and the answer
- Say what the question asks in plain words: pick a piece of the inputs on which no two inputs share an output. Then, for the output 25, find the one kept input that gives it.An inverse sends each output back to one input, so shared outputs have to go before anything can be undone.
- Show the problem with numbers: and . In the first picture, the horizontal line at height 25 meets the graph at and at (5, 25).Two inputs share the output 25, so f is not a one-to-one function on all x. Undoing 25 would have two answers.
- Find where the graph turns around. is smallest when , where it equals 0. Left of 0 the graph falls. Right of 0 it climbs.A square is never negative, so 0 is the lowest output. The repeats happen because the climb on the right retraces the heights of the fall on the left.
- Keep the turning point and the right side: , written .No side is named in the problem, so use the convention. This removes one input from every pair that shared an output.
- Test the kept piece. For inputs 0 or more, a bigger input always gives a bigger square, so the graph only climbs and every horizontal line meets it at most once.A graph that only climbs can never come back to a height it has already passed.
- Check the range. The kept piece starts at height 0 and climbs without end, so its range is , written . The whole parabola had the same range.Each output that came from a negative input also comes from its positive partner, so nothing was lost.
- Trade places. Domain of : , the range of f. Range of : , the restricted domain.The inputs of the inverse are the outputs of f, and the outputs of the inverse are the kept inputs of f.
- Find . The output is 25. The kept input that gives it is 5, since and . So .The input −5 also squares to 25, but −5 is not in the restricted domain, so it cannot be an answer.
- Restricted domain: x ≥ 0, or [0, ∞).
- Domain of : [0, ∞).
- Range of : [0, ∞).
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 6
A table with repeated outputs
The table shows a function p. Two of its outputs appear twice. Which inputs should you keep so that p has an inverse, without losing any output? Then find (7).
Show the steps and the answer
- Say what the question asks in plain words: choose a set of inputs on which no output repeats. Then, for the output 7, find the one kept input that gives it.An inverse sends each output back to one input, so the repeats must go first.
- Look along the output row of the first table. The two 7s sit under the inputs and 2. The two 4s sit under and 1. The 3 sits under 0 alone.Each repeated output marks a pair of inputs that share it, so p is not a one-to-one function yet.
- Find where the outputs turn around. Reading left to right they fall 7, 4, 3 and then climb 4, 7. The turn is at the input 0.The repeats come from the climb retracing the fall, so the cut belongs at the turn.
- Keep the inputs 0, 1 and 2. Their outputs are 3, 4 and 7.This keeps the turn and the right side, the usual choice. The three outputs are all different, and 3, 4 and 7 are every output the full table had. Keeping −2, −1 and 0 would also work.
- Find . In the kept columns, the output 7 sits under the input 2. So .The input −2 also gave 7, but it was thrown out, so only 2 remains.
- Keep the inputs 0, 1 and 2.
Rung 2 of 6
The problem names the left side
Restrict g(x) = |x| to x ≤ 0. Does g have an inverse on that piece? Give the domain and range of , then find (6).
Show the steps and the answer
- Say what the question asks in plain words: the side to keep is given, the left half . Test that half, trade domain and range, and then, for the output 6, find the kept input that gives it.When a problem names the side, you use that side, not the usual right side.
- See why a restriction is needed. On the whole V-shaped graph, and .Absolute value is distance from 0, and distance ignores direction, so −6 and 6 share the output 6.
- Keep : the left arm of the V, with its corner at (0, 0). On that arm, moving left always raises the graph.A graph that only rises as you move one way never reaches the same height twice, so g is a one-to-one function on this piece.
- Find the range of the kept piece: , written .Distances are 0 or more, and the left arm reaches every one of them. The height 6, for example, is reached at x = −6.
- Trade places. Domain of : . Range of : .The inverse takes the outputs of g as its inputs and hands back the kept inputs of g, which are 0 or less.
- Find . Of the two numbers at distance 6 from 0, only satisfies . So .The answer of the inverse must lie in the restricted domain.
- Yes. On x ≤ 0, g is a one-to-one function.
- Domain of : [0, ∞).
- Range of : (−∞, 0].
Rung 3 of 6
A piece that is too big
Someone restricts f(x) = to −1 ≤ x ≤ 3 and says it now has an inverse. Is that right? If not, repair the restricted domain and give the domain and range of the inverse.
Show the steps and the answer
- Say what the question asks in plain words: do any two inputs between and 3 share an output? If they do, cut the piece down until none do.A restricted domain works only if the function is a one-to-one function on all of it.
- Try a pair on opposite sides of 0: and . Both and 1 lie between and 3.The piece reaches past the turning point at 0, so part of the left side is still there to share outputs. The horizontal line at height 1 meets this piece twice, so it fails.
- Cut at the turn: keep , written [0, 3]. is smallest at x = 0. From 0 to 3 the graph only climbs, so no height is reached twice.
- Find the range of the repaired piece. The lowest output is and the highest is , so the range is , written [0, 9].The piece climbs from (0, 0) to (3, 9) and passes every height in between.
- Compare with the range before the repair. On the lowest output was also 0 and the highest was also 9.The inputs that were removed, from −1 up to 0, gave outputs between 0 and 1. The inputs from 0 to 1 still give those outputs, so nothing was lost.
- Trade places. Domain of : [0, 9]. Range of : [0, 3].The domain of the inverse is the range of f, and the range of the inverse is the restricted domain.
- No. The inputs −1 and 1 both give 1.
- Repaired restricted domain: 0 ≤ x ≤ 3, or [0, 3].
- Domain of : [0, 9].
- Range of : [0, 3].
Rung 4 of 6
The turn is not at 0
Let h(x) = (x − 2 + 1. Find the usual restricted domain, give the domain and range of , and find (10).
Show the steps and the answer
- Say what the question asks in plain words: find where this graph turns, keep the right side, trade domain and range, and then, for the output 10, find the one kept input that gives it.The method is the same as for . Only the place of the turn has moved.
- Show that a restriction is needed: , and .The inputs 1 and 3 share the output 2, so h is not a one-to-one function on all x.
- Find the turn. Set and add 2 to both sides: . This finds the one input where the squared part is as small as it can be. Plug it in: .A square is never negative, so its smallest value is 0. That makes (2, 1) the lowest point of the graph, the place where it stops falling and starts climbing.
- Keep , written .No side is named, so keep the turn and the right side. From x = 2 on, the graph only climbs.
- Find the range of the kept piece: , written .The lowest output is 1, at the turn, and the graph climbs without end from there. The whole graph had the same range.
- Trade places. Domain of : . Range of : .The inverse takes outputs of h, which are 1 or more, and hands back kept inputs, which are 2 or more.
- Find . Look at the table of the kept piece. The output 10 sits under the input 5, so .h(5) = (5 − 2 + 1 = + 1 = 9 + 1 = 10, and 5 ≥ 2, so 5 is a kept input.
- Restricted domain: x ≥ 2, or [2, ∞).
- Domain of : [1, ∞).
- Range of : [2, ∞).
Rung 5 of 6
A shifted graph, left side kept
Restrict k(x) = (x − 1 to x ≤ 1, the left side this time. Give the domain and range of and find (16).
Show the steps and the answer
- Say what the question asks in plain words: the problem names the piece, . Confirm that it works, trade domain and range, and then, for the output 16, find the kept input that gives it.The side is given, so do not switch to the right side out of habit.
- Find the turn. Set and add 1 to both sides: . This finds the input where the squared part is 0, its smallest value. Plug it in: .The named piece ends exactly at the turn, (1, 0). Moving left from there, the graph only climbs, so no output repeats on x ≤ 1.
- Find the range of the kept piece: , written .The lowest output is 0, at the turn, and the piece climbs without end as you move left.
- Trade places. Domain of : . Range of : .The inverse hands back kept inputs of k, and every kept input is 1 or less.
- Find . In the table of the kept piece, the output 16 sits under the input . So .k(−3) = (−3 − 1 = (−4 = 16, and −3 ≤ 1, so −3 is a kept input.
- Domain of : [0, ∞).
- Range of : (−∞, 1].
Rung 6 of 6
Decide whether a restriction is needed at all
Two functions: a(x) = and b(x) = (x + 4 − 5. Decide for each whether it needs a restricted domain. For any that does, give the usual one and the domain and range of the inverse.
Show the steps and the answer
- Say what the question asks in plain words: for each function, find out whether two inputs can share an output. Restrict only the one where they can.A restriction repairs a failed horizontal line test. A function that passes needs no repair.
- Test a. Try a pair of opposites: and . The outputs differ. The graph of climbs the whole way from left to right.A negative number cubed stays negative and a positive one stays positive, and a bigger input always gives a bigger cube. So a passes the horizontal line test and needs no restriction.
- Test b. , and .The inputs −5 and −3 share the output −4, so b fails the horizontal line test and needs a restricted domain.
- Find the turn of b. Set and subtract 4 from both sides: . This finds the input where the squared part is 0, its smallest value. Plug it in: .The lowest point of the graph is (−4, −5). The shared outputs come from the two sides of that point.
- Keep , written .No side is named, so keep the turn and the right side, where the graph only climbs.
- Find the range of the kept piece: , written .The lowest output is −5, at the turn, and the graph climbs without end from there.
- Trade places. Domain of : . Range of : .The domain of the inverse is the range of b, and the range of the inverse is the restricted domain.
- a(x) = needs no restriction. It is already a one-to-one function.
- b needs one. Usual restricted domain: x ≥ −4, or [−4, ∞).
- Domain of : [−5, ∞).
- Range of : [−4, ∞).
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory cue: cut at the turn, keep one side.
- The cover check: lay your hand over the part of the graph you threw out, then run the horizontal line test on what is still showing.
- The restricted domain is part of the function. f(x) = with x ≥ 0 and f(x) = with x ≤ 0 share a formula, but they are different functions with different inverses. Write the restriction beside the formula every time.
- Keeping the right side is a convention, not a law. Nothing in the mathematics breaks if you keep the left side, but your inverse would hand back the inputs on the other side of the turn, and your answers would not match anyone who followed the convention. If a problem names a side, use the side it names.
- A fast check on any answer from the inverse: it must lie in the restricted domain. If it does not, you picked the partner that was thrown out.
- The kept piece and its inverse still mirror each other in the line y = x, as every function and its inverse do.
7 The trap
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.
Flash cards
Say the answer out loud, then flip.
Why can f(x) = not be undone while it keeps all of its inputs?
For f(x) = (x − 2, where does the graph turn around, and which restricted domain do you usually keep?
- The turn is where the part being squared equals 0, so x = 2.
- Keep the turning point and the right side: x ≥ 2.
With f(x) = , x ≥ 0, what is (9)?
After you restrict the domain of f, what are the domain and the range of ?
- They trade places.
- The domain of is the range of f.
- The range of is the restricted domain.
From earlier
Show answer
Show answer
4 comes out, so 4 is in the range of .
Reason: f(4) = 9 says the same thing as (9) = 4.
Lesson 7 of 7
Finding the inverse of a formula by swapping and solving
Open this lessonLeans on 2Comes back in 0
Comes back in
No lesson links recorded.
1 In plain words
Think of wrapping a gift. First the box, then the paper, then the ribbon. To unwrap it you make the opposite moves in the opposite order: ribbon off, paper off, box open. A formula is a wrapping recipe. f(x) = 2x + 3 says: take the input, double it, then add 3. The inverse function is the unwrapping recipe: subtract 3, then halve. This lesson gives one method that writes the unwrapping recipe for you, even when the formula is too tangled to unwrap in your head. Write y for the output, trade the letters x and y, then get y alone. What stands on the other side is the inverse function.
2 Picture it
1. Write y = f(x)
2. Swap x and y
3. Solve for y
4. If ± appears, the domain of f picks the sign
5. Name the result (x)
6. Check: a number through f, then through , returns to the start
Reminder
Reminder: Undoing steps in reverse order, Clearing a fraction, Distributing, Factoring out a common letter, Two square roots, A negative on the bottom of a fraction, Domain and range trade places, Checking that two functions are inverses
- Undoing steps in reverse order. To solve 2x + 3 = 11, undo the last step first: subtract 3 to get 2x = 8, then divide by 2 to get x = 4.
- Clearing a fraction. Multiply both sides by the bottom and the bottom cancels: if 6 = , then 6n = 12, so n = 2.
- Distributing. A number or letter outside a bracket multiplies every term inside: x(y − 3) = xy − 3x. With numbers: 2(5 − 3) = 2 · 5 − 2 · 3 = 4.
- Factoring out a common letter. When every term has the same letter, pull it to the front: xy − 2y = y(x − 2). Check by distributing back: y · x − y · 2.
- Two square roots. Both = 9 and (−3 = 9, so = 9 has two answers, y = 3 and y = −3, written y = ±3 and read plus or minus 3. The symbol alone means only 3, the one that is not negative.
- A negative on the bottom of a fraction. Multiply the top and the bottom by −1 to move the sign: = . Every sign on top changes.
- Domain and range trade places. The inputs of are the outputs of f, and the outputs of are the inputs of f. If f takes only x ≥ 0, then gives only y ≥ 0.
- Checking that two functions are inverses. Compose both ways and get x each time. For f(x) = x + 6 and g(x) = x − 6: f(g(x)) = (x − 6) + 6 = x and g(f(x)) = (x + 6) − 6 = x.
3 Why
The equation y = f(x) is a list of pairs: each input x with its output y. The inverse function holds the same pairs turned around, so each old output becomes an input. Trading the letters x and y in the equation turns every pair around at once. That swapped equation already is the inverse, but it is written backwards, with the new output y buried inside the formula. Solving for y digs it out, so the equation reads output = rule again. Calling the input x and the output y is a convention, and the swap keeps that convention for the inverse.
4 The rule
For a one-to-one function f: write , swap x and y to get , solve for y, and name the result .
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.
The same idea, five ways
when f is one-to-one, find f inverse by swapping x and y, then solving for y.
The inverse function of a one-to-one f is found by writing y = f(x), exchanging the letters x and y, and solving the new equation for y.
- y = f(x) becomes x = f(y)
- x = f(y), solved for y, reads y = (x)
- f(a) = b means (b) = a
- f(x) = with x ≥ 0 gives (x) =
Like turning driving directions around for the trip home: read the list from the bottom up, and turn every left into a right.
The same idea, other ways
In the morning you put on socks, then shoes. At night you take off shoes, then socks: the opposite moves in the opposite order. f(x) = 2x + 3 doubles, then adds 3. Its inverse function subtracts 3, then halves, so (x) = . Swapping and solving does this reversing for you. When you solve x = 2y + 3 for y, your first move is to subtract 3 and your second is to divide by 2.
f(x) = 2x + 3 sends 4 to 11, because 2 · 4 + 3 = 11. The inverse function must send 11 back to 4. Ask: which y gives 11 = 2y + 3? Subtract 3 to get 8, then halve to get 4. Now ask the same question for any output x in place of 11: x = 2y + 3, so y = . Swapping and solving is that one question, answered for every output at once.
An earlier lesson showed that the graph of an inverse function is the mirror image of the original graph in the line y = x, because each point (a, b) becomes (b, a). Swapping the letters x and y in the equation is that same flip, done in algebra. The point (1, 5) on y = 2x + 3 becomes the point (5, 1) on the inverse, y = .
The first lesson of this unit said that (b) = a exactly when f(a) = b. Put x in place of b and y in place of a: y = (x) exactly when x = f(y). So the swapped equation is the definition of the inverse function, written out for this formula. Solving for y changes how the equation looks, not which pairs satisfy it.
Write, swap, solve, check. One y after the swap: undo in reverse order. Two y's: gather them and factor. A squared y: take the root, then let the domain of f pick the sign.
| Kind of formula | After the swap | Key move | Inverse |
|---|---|---|---|
| f(x) = 2x + 3 | x = 2y + 3 | Undo in reverse order: subtract 3, then divide by 2 | |
| Clear the fraction, gather the y terms, factor y out | |||
| Square root of both sides, keep the plus sign | |||
| Square root of both sides, keep the minus sign |
Part 1: A linear function: f(x) = mx + b
A linear function does two things to its input: it multiplies by a number, then adds a number. After the swap, y sits in one place only. So you undo the two steps in reverse order, the same way you solve any linear equation.
- Shape: f(x) = mx + b, with m ≠ 0
- After the swap: x = my + b
- Inverse: (x) = . Rebuild it each time, it takes ten seconds.
- Domain and range of f and of : all real numbers
- If m = 0 the function is constant. Every input shares one output, so there is no inverse function.
Worked example
A linear function with a fraction in it
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.
Show the steps and the answer
- Confirm an inverse function exists.The graph is a slanted straight line. A horizontal line meets a slanted line once, so f is a one-to-one function.
- Write .y is a short name for the output f(x).
- Swap the letters: .The inverse function uses the same pairs turned around. Now x stands for an old output and y for the input it came from.
- Subtract 5 from both sides: .Adding 5 was the last thing done to y, so it is the first thing to undo.
- Multiply both sides by 2: , which is .Multiplying by 2 undoes the halving. Distributing gives 2 · x − 2 · 5 = 2x − 10.
- Rename y: .y alone on one side is the output of the inverse function.
Part 2: A fraction with x on the top and the bottom: f(x) = (ax + b) ÷ (cx + d)
Here the input appears twice, once on the top and once on the bottom. After the swap, y appears twice, so you cannot peel the steps off one at a time. The plan has four moves: clear the fraction, bring every term that has y to one side, pull y out as a common factor, then divide by what is left in the bracket.
- Shape: f(x) = , with c ≠ 0 and ad − bc ≠ 0. When ad − bc = 0, f is constant wherever it is defined and has no inverse.
- After the swap: x =
- Clear the fraction: x(cy + d) = ay + b
- Gather and factor: y(cx − a) = b − dx
- Inverse: (x) = . Do not memorize this. Rebuild it with the four moves each time.
- The bottom of is zero at x = . That is the one output f never reaches, so it is the one input cannot take.
Worked example
X on the top and on the bottom
Find (x) for f(x) = . In plain words: find the formula that takes each output of f back to the input it came from.
Show the steps and the answer
- Confirm an inverse function exists.The graph of f is a shifted, stretched copy of y = , and no horizontal line meets that shape twice. So f is a one-to-one function.
- Write , then swap: .The swap turns every pair around. y is now the old input we want.
- Multiply both sides by (y − 5): .Multiplying by the bottom cancels it on the right, so no fraction is left.
- Distribute on the left: .x multiplies each term inside the bracket.
- Subtract y from both sides and add 5x to both sides: .This puts every term that has y on the left and every term without y on the right.
- Factor y out on the left: .Both left terms contain y. Distribute back to confirm: y · x − y · 1 = xy − y.
- Divide both sides by (x − 1): .The bracket is multiplying y, so dividing by it leaves y alone.
- Rename and state the domain: , with .x = 1 would make the bottom zero. This matches f, which never gives the output 1.
- Domain of : x ≠ 1
Part 3: on the restricted domain x ≥ 0
The full squaring function cannot be undone, because 3 and −3 both square to 9. Keep only the inputs that are zero or more, and each output comes from one input. After the swap you solve x = , which has two candidate answers, and −. The restricted domain tells you which sign to keep.
- Function: f(x) = with restricted domain x ≥ 0
- Range of f: y ≥ 0
- After the swap: x = with y ≥ 0
- Undo the square: y = or y = −
- The condition y ≥ 0 keeps the plus sign: (x) =
- Domain of : x ≥ 0. Range of : y ≥ 0.
- The same formula on x ≤ 0 keeps the other sign: (x) = −
Worked example
Squaring, right half only
Find (x) for f(x) = with x ≥ 0. In plain words: f squares numbers that are zero or more. Find the rule that takes each square back to the number it came from.
Show the steps and the answer
- Confirm an inverse function exists.On x ≥ 0 the graph is the right half of the bowl, which rises all the way. No horizontal line meets it twice, so on this restricted domain f is a one-to-one function.
- Write , with beside it.The domain condition is part of the function and must travel with the equation.
- Swap the letters everywhere: , with .After the swap, y stands for an old input, and old inputs were zero or more.
- Take the square root of both sides: .Both and − square to x. Write both until you have a reason to drop one.
- Keep the plus sign: .The condition y ≥ 0 rules out the minus sign, since − is below zero whenever x > 0.
- Rename and state the domain: , with .The domain of is the range of f, and squares are never below zero.
- Domain of : x ≥ 0
5 How
- 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.
Finding an inverse by swapping and solving
- 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.
6 Worked example
Worked example
First full run: a linear function
Find the inverse function of f(x) = 4x − 7. In plain words: f multiplies its input by 4, then subtracts 7. Find the formula that takes each output back to the input it came from.
Show the steps and the answer
- Confirm an inverse function exists.The graph of f is a slanted straight line, and a horizontal line meets a slanted line once. So f is a one-to-one function.
- Write .y is a short name for the output f(x). It makes the swap possible to write.
- Swap the letters: .The inverse function holds the same pairs turned around. From here on, x stands for an old output and y for the old input we are hunting.
- Add 7 to both sides: .Subtracting 7 was the last thing done to y, so it is undone first. This leaves the 4y term alone on its side.
- Divide both sides by 4: .The 4 multiplies y, so dividing by 4 leaves y alone. The whole of x + 7 is divided, not only the 7.
- Rename y: .y alone on one side is the output of the inverse function, written as a rule in x.
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 8
One step, adding
Find (x) for f(x) = x + 6. In plain words: f adds 6. Find the rule that takes each output back.
Show the steps and the answer
- Write .y names the output. The graph is a slanted line, so f is a one-to-one function and an inverse function exists.
- Swap the letters: .The inverse function uses the pairs turned around.
- Subtract 6 from both sides: .Subtracting 6 undoes adding 6 and leaves y alone.
- Rename y: .y alone is the output of the inverse function.
Rung 2 of 8
Two steps, with a negative number in front of x
Find (x) for f(x) = 9 − 2x. In plain words: f multiplies its input by −2, then adds 9. Find the rule that runs this backwards.
Show the steps and the answer
- Write y = 9 − 2x, then swap: .The graph is a slanted line, so f is a one-to-one function. The swap turns every pair around.
- Subtract 9 from both sides: .This removes the 9 from the side that holds y. The minus sign stays with the 2.
- Divide both sides by −2: .The number multiplying y is −2, not 2, so that is what you divide by.
- Tidy the signs: .Multiplying the top and the bottom by −1 keeps the value and changes every sign: −(x − 9) = 9 − x.
- Rename y: .y alone is the output of the inverse function.
Rung 3 of 8
A linear formula written as one fraction
Find (x) for f(x) = . In plain words: f doubles its input, adds 5, then divides by 3. Find the rule that undoes all three steps.
Show the steps and the answer
- Write , then swap: .The bottom is only a number, so this is still a slanted line and a one-to-one function.
- Multiply both sides by 3: .Dividing by 3 was the last step done, so it is undone first.
- Subtract 5 from both sides: .Adding 5 was the step before that.
- Divide both sides by 2: .Doubling was the first step done, so it is undone last.
- Rename y: .y alone is the output of the inverse function.
Rung 4 of 8
X on the bottom only
Find (x) for f(x) = . In plain words: f subtracts 2 from its input, then divides 3 by the result. Find the rule that takes each output back.
Show the steps and the answer
- Note the domain of f: . Then write and swap: .x = 2 would make the bottom zero. The graph is y = stretched and shifted, which no horizontal line meets twice, so f is a one-to-one function.
- Multiply both sides by (y − 2): .Multiplying by the bottom cancels it, so y is no longer trapped under a fraction bar.
- Divide both sides by x: .x multiplies the bracket, so dividing by x frees it. This is allowed because x is never 0 here: x stands for an output of f, and 3 divided by a number is never 0.
- Add 2 to both sides: .This undoes the subtraction and leaves y alone.
- Rename and state the domain: , with .The domain of is the range of f, and f never gives the output 0.
- Domain of : x ≠ 0
Rung 5 of 8
X on the top and the bottom
Find (x) for f(x) = . In plain words: find the formula that takes each output of f back to its input. After the swap, y will show up twice.
Show the steps and the answer
- Note the domain of f: . Write and swap: .The graph is a shifted, stretched copy of y = , so f is a one-to-one function and an inverse function exists.
- Multiply both sides by (y − 3): .This clears the fraction.
- Distribute on the left: .x multiplies each term inside the bracket. Now you can see both y terms.
- Subtract 2y from both sides and add 3x to both sides: .Every term with y is now on the left and every term without y is on the right.
- Factor y out on the left: .Both left terms contain y. Two y's have become one, which is the point of this move.
- Divide both sides by (x − 2): .The bracket multiplies y, so dividing by it leaves y alone.
- Rename and state the domain: , with .x = 2 would make the bottom zero. It is also the one output f never reaches.
- Domain of : x ≠ 2
Rung 6 of 8
Top and bottom, with numbers in front of every x
Find (x) for f(x) = . In plain words: the same job as rung 5, with more signs to watch.
Show the steps and the answer
- Write and swap: .The graph is again a shifted, stretched copy of y = , so f is a one-to-one function.
- Multiply both sides by (2y + 5): .This clears the fraction.
- Distribute on the left: .x multiplies both terms in the bracket.
- Subtract 3y from both sides and subtract 5x from both sides: .Terms with y go left, terms without y go right. Each term changes sign when it crosses over.
- Factor y out: .Check by distributing back: y · 2x − y · 3 = 2xy − 3y.
- Divide both sides by (2x − 3): .This leaves y alone.
- Tidy the signs: .Multiplying the top and the bottom by −1 changes every sign and keeps the value. Either form is correct.
- Rename and state the domain: , with .The bottom 3 − 2x is zero when x = , so that input is thrown out.
- Domain of : x ≠
Rung 7 of 8
on the other half, x ≤ 0
Find (x) for f(x) = with x ≤ 0. In plain words: f squares numbers that are zero or negative. Find the rule that takes each square back to the number it came from.
Show the steps and the answer
- Confirm an inverse function exists.On x ≤ 0 the graph is the left half of the bowl, which falls all the way. No horizontal line meets it twice, so on this restricted domain f is a one-to-one function.
- Write with , then swap everywhere: with .After the swap, y stands for an old input, and old inputs were zero or negative.
- Take the square root of both sides: .Both and − square to x. Write both, then choose.
- Keep the minus sign: .The condition y ≤ 0 rules out the plus sign, since is above zero whenever x > 0.
- Rename and state the domain: , with .The domain of is the range of f, and squares are never below zero.
- Domain of : x ≥ 0
Rung 8 of 8
A shifted square on a restricted domain
Find (x) for f(x) = (x − 1 + 2 with x ≥ 1. In plain words: f subtracts 1, squares, then adds 2, and only inputs of 1 or more are allowed. Find the rule that runs this backwards, and its domain.
Show the steps and the answer
- Confirm an inverse function exists.For x ≥ 1 the bracket x − 1 is zero or more, and two different numbers that are zero or more never have the same square. So no two inputs share an output.
- Find the range of f: outputs are 2 or more.(x − 1 is never below zero, and it equals zero at x = 1. Adding 2 makes the smallest output 2.
- Write with , then swap everywhere: with .The domain condition travels with the swap.
- Subtract 2 from both sides: .Adding 2 was the last step done, so it is undone first. The squared piece is now alone.
- Take the square root of both sides: .Both and − square to x − 2. The whole of x − 2 sits inside the root.
- Keep the plus sign: .y ≥ 1 means y − 1 is zero or more, so it cannot equal a negative number.
- Add 1 to both sides: .This undoes the subtraction inside the bracket and leaves y alone.
- Rename and state the domain: , with .The domain of is the range of f, which is 2 or more. It also keeps the inside of the root from going below zero.
- Domain of : x ≥ 2
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Four words to carry: write, swap, solve, check.
- The ten-second check: send one number through f, then send the result through . If you do not land on your starting number, there is a slip. Pick a starting number that keeps the arithmetic clean, and avoid 0 and 1, which can hide mistakes.
- A number check catches errors but does not prove the answer. Composing both ways and getting x each time is the proof.
- For a linear function you can skip the swap: list the steps f does, reverse the order, and replace each step with its opposite. Use the swap method to confirm.
- With y on the top and the bottom, say the plan out loud: clear, gather, factor, divide.
- After any square root, look back at the domain of f. Inputs of f are outputs of , so keep the sign whose outputs lie in that domain. For itself, x ≥ 0 keeps +√ and x ≤ 0 keeps −√.
- The domain of is the range of f, not whatever the finished formula seems to allow. Example: f(x) = has outputs that are zero or more, so its inverse is with x ≥ 0 only, even though the formula accepts any number.
- Do not memorize a formula for the inverse of . The four moves rebuild it in under a minute, and a memorized formula with one wrong sign is worse than none.
7 The trap
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.
Flash cards
Say the answer out loud, then flip.
What are the three main moves for finding the inverse function of a one-to-one formula?
- Write y in place of f(x).
- Swap the letters x and y.
- Solve for y, then name the result (x).
Why does trading the letters x and y produce the inverse function?
f(x) = with x ≤ 0. After the swap you have x = with y ≤ 0. What is (x)?
- Write y = ± first, then keep the sign that fits y ≤ 0.
- Check: f(−3) = 9, and − = −3, the number you started with.
f(x) = 2x + 3 wraps the input: double it, then add 3. What is the unwrapping recipe, and how do you check it?
- Opposite moves in the opposite order, like taking the ribbon off before the paper: subtract 3, then halve.
- Check: f(1) = 5, and (5) = = 1.
From earlier
Show answer
Checking that two functions are inverses
Show answer
g(f(x)) = x for every input that f accepts.
Like two bus routes: both round trips must end where they began.