Domain and range trade places
Leans on
Quick review (2 minutes)
Picture a coat check.
If f is a one-to-one function, then: domain of = range of f, and range of = domain of f.
Make sure f is a one-to-one function, so that exists: no output repeated in a table, or a graph that passes the horizontal line test.
Find the domain of f: every input f allows.
Find the range of f: every output f actually produces. List only outputs that really come out, not every number you can imagine.
Trade the two lists. Domain of = range of f. Range of = domain of f.
Check with one pair. Pick an allowed input a and compute b = f(a). Then (b) = a, so b must sit in your new domain and a must sit in your new range.
The function f(x) = + 1 is a one-to-one function, so it has an inverse function. Without finding a formula for , find the domain and the range of . In plain words: which numbers may go into , and which numbers can come out of it?
Domain of : [1, ∞)
Range of : [2, ∞)
Writing the domain of f again as the domain of . The two functions trade their lists, and the two lists are often different. For f(x) = + 1 the tempting answer is 'domain of : [2, ∞)', but [2, ∞) is what gives back, not what it takes in. To avoid this, write two labeled lines before you answer, 'goes into ' and 'comes out of ', and fill the first line from the outputs of f.
Confirm that f is a one-to-one function, so an inverse function exists.
List what goes into f: its domain.
List what comes out of f: its range.
Write the range of f as the domain of , and the domain of f as the range of . Keep each bracket with its own list.
Test one pair: compute b = f(a) for an allowed a, then confirm b is in the new domain and a is in the new range.
inverse function
A function that undoes another one. It takes each output of the first function back to the input it came from.
one-to-one function
A function in which no two different inputs share an output. Every output comes from exactly one input, so the function can be undone.
horizontal line test
A check done on a graph. If no horizontal line crosses the graph more than once, the function is a one-to-one function and has an inverse function.
domain
The set of all inputs a function accepts. For an inverse function, the domain is the range of the original function.
range
The set of all outputs a function actually produces. For an inverse function, the range is the domain of the original function.
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.