Restricting a domain so an inverse exists
Leans on
Quick review (2 minutes)
Picture a town on a long straight road.
A restricted domain is a smaller set of inputs than the full domain of a function. If f fails the horizontal line test, choose a restricted domain on which f is one-to-one. On that piece f has an inverse function. The usual choice also keeps every output of f, so the inverse accepts all of them. For f(x) = the usual restricted domain is x ≥ 0, written [0, ∞). The domain of is then the range of f, and the range of is the restricted domain.
Run the horizontal line test on the whole graph. If no horizontal line meets it twice, stop: the function already has an inverse and needs no restriction.
If the test fails and the graph turns around once, as a parabola or an absolute value graph does, find that turn. For a squared expression, the turn is where the part being squared equals 0. For that is x = 0. For (x − 2 it is x = 2.
For a graph with that one turn, keep the turning point and everything on one side of it. Unless the problem names a side, keep the right side: x ≥ the turning value.
Run the horizontal line test again on the kept piece only. Every horizontal line must now meet it at most once.
Check whether any output was lost. The usual choice keeps the range of the whole function; a piece with a smaller range still has an inverse, but that inverse accepts fewer numbers.
Write the restricted domain next to the formula, for example f(x) = , x ≥ 0. It is now part of the function.
Trade places: the domain of is the range of f, and the range of is the restricted domain. Every answer the inverse gives must lie in the restricted domain.
The function f(x) = fails the horizontal line test. Choose a restricted domain so that f has an inverse, give the domain and range of , and find (25).
Restricted domain: x ≥ 0, or [0, ∞).
Domain of : [0, ∞).
Range of : [0, ∞).
(25) = 5.
The most common mistake is to restrict the domain on paper and then forget it. Once you keep x ≥ 0 for f(x) = , the inputs −1, −2, −3 and the rest are gone. So (9) is 3 only. It is not "3 or −3", and it is not −3. To avoid the mistake, write the restricted domain beside the formula every time you write the function, and check that each answer from the inverse lies inside the restricted domain.
Run the horizontal line test on the whole graph.
If it fails and the graph turns around once, find the turning point: for a squared expression, set the part being squared equal to 0 and solve.
For a graph with one turn, keep the turning point and one side of it. Use the side the problem names, or the right side if none is named.
Run the horizontal line test again on the kept piece.
Check whether the kept piece still has the range of the whole function, as the usual choice does.
Write the restricted domain beside the formula, then trade domain and range to describe the inverse.
inverse function
A function that undoes another one. It takes each output of the first function back to the input it came from.
one-to-one function
A function in which no two different inputs share an output. Every output comes from exactly one input, so the function can be undone.
horizontal line test
A check done on a graph. If no horizontal line crosses the graph more than once, the function is a one-to-one function and has an inverse function.
domain
The set of all inputs a function accepts. For an inverse function, the domain is the range of the original function.
range
The set of all outputs a function actually produces. For an inverse function, the range is the domain of the original function.
the line y = x
The diagonal line through the origin where both coordinates are equal, such as (2, 2). The graph of a function and the graph of its inverse function are mirror images across it.
restricted domain
A domain made smaller on purpose. When the inputs kept are picked so that no two of them give the same output, the function becomes one-to-one on them and gains an inverse function.
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.