Quarry School

Restricting a domain so an inverse exists

Subject: MathematicsLeans on: The horizontal line testLeans on: Squaring a negative numberLeans on: Where a squared expression is smallestLeans on: Domain and range trade placesLeans on: Interval notationLeans on: Absolute valueLeans on: Order of operationsLeans on: Solving a one-step equation
Level 2 · BuildingAbout 25 min read5 new terms
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Leans on

    Quick review (2 minutes)

    In plain words

    Picture a town on a long straight road.

    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 f(x) = x2 the usual restricted domain is x ≥ 0, written [0, ∞). The domain of f−1 is then the range of f, and the range of f−1 is the restricted domain.

    Step

    1. 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.

    2. 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 x2 that is x = 0. For (x − 2)2 it is x = 2.

    3. 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.

    4. Run the horizontal line test again on the kept piece only. Every horizontal line must now meet it at most once.

    5. 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.

    6. Write the restricted domain next to the formula, for example f(x) = x2, x ≥ 0. It is now part of the function.

    7. Trade places: the domain of f−1 is the range of f, and the range of f−1 is the restricted domain. Every answer the inverse gives must lie in the restricted domain.

    Question

    The function f(x) = x2 fails the horizontal line test. Choose a restricted domain so that f has an inverse, give the domain and range of f−1, and find f−1(25).

    Answer

    Restricted domain: x ≥ 0, or [0, ∞).
    Domain of f−1: [0, ∞).
    Range of f−1: [0, ∞).
    f−1(25) = 5.

    Trap

    The most common mistake is to restrict the domain on paper and then forget it. Once you keep x ≥ 0 for f(x) = x2, the inputs −1, −2, −3 and the rest are gone. So f−1(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.

    Strategy

    1. Run the horizontal line test on the whole graph.

    2. 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.

    3. 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.

    4. Run the horizontal line test again on the kept piece.

    5. Check whether the kept piece still has the range of the whole function, as the usual choice does.

    6. Write the restricted domain beside the formula, then trade domain and range to describe the inverse.

    Term

    inverse function

    Definition

    A function that undoes another one. It takes each output of the first function back to the input it came from.

    Term

    one-to-one function

    Definition

    A function in which no two different inputs share an output. Every output comes from exactly one input, so the function can be undone.

    Term

    horizontal line test

    Definition

    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.

    Term

    domain

    Definition

    The set of all inputs a function accepts. For an inverse function, the domain is the range of the original function.

    Term

    range

    Definition

    The set of all outputs a function actually produces. For an inverse function, the range is the domain of the original function.

    Term

    the line y = x

    Definition

    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.

    Term

    restricted domain

    Definition

    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

    (0, 0)(2, 4)domainrange22468(0, 0)(2, 4)domainrange12313579
    The right half of y = x2, starting at (0, 0): the horizontal line at height 4 meets it once, at (2, 4).

    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 = x2 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)2 = (−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)2 is smallest when x − 2 = 0, which is x = 2, and there it equals 0.
    • Domain and range trade places. The domain of f−1 is the range of f, and the range of f−1 is the domain of f. If f has domain [2, ∞) and range [1, ∞), then f−1 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)2 + 1 = 32 + 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 = x2 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 f(x)=x2 the usual restricted domain is x≥0, written [0,∞). The domain of f−1 is then the range of f, and the range of f−1 is the restricted domain.

    The same idea, five ways

    Say it

    f of x equals x squared, for x greater than or equal to zero. Or: x squared, restricted to x at least zero.

    Write it

    The function f squares its input, and the only inputs allowed are the numbers that are zero or more.

    In math
    • f(x)=x2,x≥0
    • f(x) = x2 on [0, ∞)
    • domain: {x | x ≥ 0}
    • graph words: the right half of the parabola, starting at (0, 0) and climbing
    Like

    A road with the west half closed: every distance sign now points to exactly one spot.

    See it
    0[0, ∞)
    The restricted domain x ≥ 0: a filled dot at 0, because 0 is kept, and shading to the right without end.

    The same idea, other ways

    As a picture

    Look at the whole parabola y = x2. 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.

    (−2, 4)(2, 4)−222468
    Cover the left half and the line at height 4 meets the graph once in place of twice.
    As a story

    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.

    With small numbers

    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.

    input xoutput x²−39−24−1100112439↑ solve: output given, read every input above it
    The output 9 points back to two inputs, −3 and 3, until the negative columns are crossed out.
    Why it must be true

    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.

    (1, 1)(2, 4)(4, 2)241234
    The kept half (solid) and its flipped copy (dashed) mirror each other in the line y = x, and each passes the…
    As a rule of thumb

    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 = x2 keptPasses the horizontal line test?Still reaches every output y ≥ 0?Verdict
    all xNo: −2 and 2 both give 4YesNo inverse
    x≥0YesYesWorks. The usual choice
    x≤0YesYesWorks. Use it when the problem names the left side
    x > 0YesNo: the output 0 is lostHas an inverse, but loses the output 0. The usual choice keeps the turning point
    x≥1YesNo: the outputs below 1 are lostHas an inverse, but loses the outputs below 1
    x≥−1No: −1 and 1 both give 1YesToo big. Still no inverse

    5 How

    1. 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.
    2. 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 x2 that is x = 0. For (x − 2)2 it is x = 2.
    3. 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.
    4. Run the horizontal line test again on the kept piece only. Every horizontal line must now meet it at most once.
    5. 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.
    6. Write the restricted domain next to the formula, for example f(x) = x2, x ≥ 0. It is now part of the function.
    7. Trade places: the domain of f−1 is the range of f, and the range of f−1 is the restricted domain. Every answer the inverse gives must lie in the restricted domain.

    Restricting a domain so an inverse exists

    1
    Does any horizontal line meet the graph more than once?
    YesThe function is not a one-to-one function yet. Go on to restrict it.
    NoStop. It already has an inverse, and no restriction is needed.
    ↓
    2
    Does the graph turn around at one lowest or highest point?
    YesCut there. Keep that point and everything on one side of it.
    NoKeep a stretch of inputs on which the graph only climbs or only falls, so no height repeats. Then work out the range of that stretch.
    ↓
    3
    Does the problem say which side to keep?
    YesKeep the side it names.
    NoKeep the right side: x ≥ the turning value. This unit uses that convention.
    ↓
    4
    Does the kept piece pass the horizontal line test?
    YesIt has an inverse. If it also reaches every output of the whole function, it is the usual choice. Write the restricted domain beside the formula.
    NoAn output still repeats, so the piece is too big. Make it smaller and test again.
    1. Run the horizontal line test on the whole graph.
    2. 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.
    3. 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.
    4. Run the horizontal line test again on the kept piece.
    5. Check whether the kept piece still has the range of the whole function, as the usual choice does.
    6. Write the restricted domain beside the formula, then trade domain and range to describe the inverse.

    6 Worked example

    Worked example

    Restricting y = x2 and undoing an output

    The function f(x) = x2 fails the horizontal line test. Choose a restricted domain so that f has an inverse, give the domain and range of f−1, and find f−1(25).

    Show the steps and the answer
    (−5, 25)(5, 25)−6−4−224639152127
    On the whole parabola the line at height 25 meets the graph twice, once on each side of 0.
    input xoutput f(x)00112439416525↑ solve: output given, read every input above it
    On the kept piece each output appears once, and 25 points back to the single input 5.
    1. 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.
    2. Show the problem with numbers: f(−5)=(−5)2=25 and f(5)=52=25. In the first picture, the horizontal line at height 25 meets the graph at (−5,25) 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.
    3. Find where the graph turns around. x2 is smallest when x=0, 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.
    4. Keep the turning point and the right side: x≥0, written [0,∞).No side is named in the problem, so use the convention. This removes one input from every pair that shared an output.
    5. 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.
    6. Check the range. The kept piece starts at height 0 and climbs without end, so its range is y≥0, written [0,∞). 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.
    7. Trade places. Domain of f−1: [0,∞), the range of f. Range of f−1: [0,∞), 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.
    8. Find f−1(25). The output is 25. The kept input that gives it is 5, since 52=25 and 5≥0. So f−1(25)=5.The input −5 also squares to 25, but −5 is not in the restricted domain, so it cannot be an answer.
    Answer
    • Restricted domain: x ≥ 0, or [0, ∞).
    • Domain of f−1: [0, ∞).
    • Range of f−1: [0, ∞).
    • f−1(25)=5.
    Double-check A second way: look at the table of the kept piece. In the output row no number appears twice, and 25 sits in one column only, the column under the input 5. So the point (5, 25) is on the kept graph, and flipping it gives (25, 5) on the graph of the inverse, which says f−1(25) = 5.

    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 p−1(7).

    input xoutput p(x)−27−14031427
    x:−2,−1,0,1,2;p(x):7,4,3,4,7.
    input xoutput p⁻¹(x)304172
    x: 3, 4, 7; p⁻¹(x): 0, 1, 2.
    Show the steps and the answer
    input xoutput p(x)−27−14031427↑ solve: output given, read every input above it
    The output 7 appears twice, under −2 and under 2, so 7 cannot be sent back to one input yet.
    input xoutput p⁻¹(x)304172↓ evaluate: input given, read the output below it
    The kept columns with the rows swapped: each input has one output, and 7 goes to 2.
    1. 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.
    2. Look along the output row of the first table. The two 7s sit under the inputs −2 and 2. The two 4s sit under −1 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.
    3. 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.
    4. 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.
    5. Find p−1(7). In the kept columns, the output 7 sits under the input 2. So p−1(7)=2.The input −2 also gave 7, but it was thrown out, so only 2 remains.
    Answer
    • Keep the inputs 0, 1 and 2.
    • p−1(7)=2.
    Double-check Swap the two rows of the kept table, as you do to read an inverse from a table. The second table shows the result: the new inputs 3, 4 and 7 each have one output, 0, 1 and 2. That is a function, and it sends 7 to 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 g−1, then find g−1(6).

    Show the steps and the answer
    (−6, 6)(0, 0)−6−4−2246
    The left arm of y = |x|: the line at height 6 meets it once, at (−6, 6).
    1. Say what the question asks in plain words: the side to keep is given, the left half x≤0. 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.
    2. See why a restriction is needed. On the whole V-shaped graph, g(−6)=|−6|=6 and g(6)=|6|=6.Absolute value is distance from 0, and distance ignores direction, so −6 and 6 share the output 6.
    3. Keep x≤0: 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.
    4. Find the range of the kept piece: y≥0, written [0,∞).Distances are 0 or more, and the left arm reaches every one of them. The height 6, for example, is reached at x = −6.
    5. Trade places. Domain of g−1: [0,∞). Range of g−1: (−∞,0].The inverse takes the outputs of g as its inputs and hands back the kept inputs of g, which are 0 or less.
    6. Find g−1(6). Of the two numbers at distance 6 from 0, only −6 satisfies x≤0. So g−1(6)=−6.The answer of the inverse must lie in the restricted domain.
    Answer
    • Yes. On x ≤ 0, g is a one-to-one function.
    • Domain of g−1: [0, ∞).
    • Range of g−1: (−∞, 0].
    • g−1(6)=−6.
    Double-check Feed the answer back in: g(−6) = |−6| = 6, the output we started from. Also −6 lies in (−∞, 0], the range of g−1, so it is an allowed answer. The number 6 does not.

    Rung 3 of 6

    A piece that is too big

    Someone restricts f(x) = x2 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
    (−1, 1)(1, 1)22468
    On −1 ≤ x ≤ 3 the line at height 1 still meets the graph twice, so this piece is too big.
    1. Say what the question asks in plain words: do any two inputs between −1 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.
    2. Try a pair on opposite sides of 0: f(−1)=(−1)2=1 and f(1)=12=1. Both −1 and 1 lie between −1 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.
    3. Cut at the turn: keep 0≤x≤3, written [0, 3].x2 is smallest at x = 0. From 0 to 3 the graph only climbs, so no height is reached twice.
    4. Find the range of the repaired piece. The lowest output is f(0)=0 and the highest is f(3)=9, so the range is 0≤y≤9, written [0, 9].The piece climbs from (0, 0) to (3, 9) and passes every height in between.
    5. Compare with the range before the repair. On −1≤x≤3 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.
    6. Trade places. Domain of f−1: [0, 9]. Range of f−1: [0, 3].The domain of the inverse is the range of f, and the range of the inverse is the restricted domain.
    Answer
    • No. The inputs −1 and 1 both give 1.
    • Repaired restricted domain: 0 ≤ x ≤ 3, or [0, 3].
    • Domain of f−1: [0, 9].
    • Range of f−1: [0, 3].
    Double-check Test one of the removed inputs. f(−12) = (−12) × (−12) = 14, since the tops multiply to 1 and the bottoms multiply to 4. The kept input 12 also gives 14. So the output 14 is still reached, and now by one input only.

    Rung 4 of 6

    The turn is not at 0

    Let h(x) = (x − 2)2 + 1. Find the usual restricted domain, give the domain and range of h−1, and find h−1(10).

    Show the steps and the answer
    (−1, 10)(2, 1)(5, 10)−224624681012
    The whole graph turns at (2, 1), and the line at height 10 meets it at x = −1 and at x = 5.
    input xoutput h(x)213245510617↑ solve: output given, read every input above it
    On the kept piece the outputs only climb, and 10 points back to the single input 5.
    1. 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 x2. Only the place of the turn has moved.
    2. Show that a restriction is needed: h(1)=(1−2)2+1=(−1)2+1=2, and h(3)=(3−2)2+1=12+1=2.The inputs 1 and 3 share the output 2, so h is not a one-to-one function on all x.
    3. Find the turn. Set x−2=0 and add 2 to both sides: x=2. This finds the one input where the squared part is as small as it can be. Plug it in: h(2)=(2−2)2+1=0+1=1.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.
    4. Keep x≥2, written [2,∞).No side is named, so keep the turn and the right side. From x = 2 on, the graph only climbs.
    5. Find the range of the kept piece: y≥1, written [1,∞).The lowest output is 1, at the turn, and the graph climbs without end from there. The whole graph had the same range.
    6. Trade places. Domain of h−1: [1,∞). Range of h−1: [2,∞).The inverse takes outputs of h, which are 1 or more, and hands back kept inputs, which are 2 or more.
    7. Find h−1(10). Look at the table of the kept piece. The output 10 sits under the input 5, so h−1(10)=5.h(5) = (5 − 2)2 + 1 = 32 + 1 = 9 + 1 = 10, and 5 ≥ 2, so 5 is a kept input.
    Answer
    • Restricted domain: x ≥ 2, or [2, ∞).
    • Domain of h−1: [1, ∞).
    • Range of h−1: [2, ∞).
    • h−1(10)=5.
    Double-check On the whole graph, the other input that gives 10 is −1, since h(−1) = (−1 − 2)2 + 1 = (−3)2 + 1 = 9 + 1 = 10. But −1 is less than 2, so it was thrown out. That leaves 5 as the only kept input with output 10, which agrees with the table.

    Rung 5 of 6

    A shifted graph, left side kept

    Restrict k(x) = (x − 1)2 to x ≤ 1, the left side this time. Give the domain and range of k−1 and find k−1(16).

    Show the steps and the answer
    input xoutput k(x)−316−29−140110↑ solve: output given, read every input above it
    The kept piece x ≤ 1: no output repeats, and 16 points back to the single input −3.
    1. Say what the question asks in plain words: the problem names the piece, x≤1. 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.
    2. Find the turn. Set x−1=0 and add 1 to both sides: x=1. This finds the input where the squared part is 0, its smallest value. Plug it in: k(1)=(1−1)2=0.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.
    3. Find the range of the kept piece: y≥0, written [0,∞).The lowest output is 0, at the turn, and the piece climbs without end as you move left.
    4. Trade places. Domain of k−1: [0,∞). Range of k−1: (−∞,1].The inverse hands back kept inputs of k, and every kept input is 1 or less.
    5. Find k−1(16). In the table of the kept piece, the output 16 sits under the input −3. So k−1(16)=−3.k(−3) = (−3 − 1)2 = (−4)2 = 16, and −3 ≤ 1, so −3 is a kept input.
    Answer
    • Domain of k−1: [0, ∞).
    • Range of k−1: (−∞, 1].
    • k−1(16)=−3.
    Double-check The whole graph also reaches 16 at x = 5, since k(5) = (5 − 1)2 = 42 = 16. But 5 > 1, so 5 is outside the restricted domain. The answer has to lie in (−∞, 1], the range of k−1, and −3 does.

    Rung 6 of 6

    Decide whether a restriction is needed at all

    Two functions: a(x) = x3 and b(x) = (x + 4)2 − 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
    (−5, −4)(−4, −5)(−3, −4)−8−6−4−2−6−4−2246
    The whole graph of b turns at (−4, −5), and the line at height −4 meets it on both sides of the turn.
    input xoutput b(x)−4−5−3−4−2−1−14011
    On the kept piece x ≥ −4 the outputs only climb, so none repeats.
    1. 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.
    2. Test a. Try a pair of opposites: a(−2)=(−2)×(−2)×(−2)=−8 and a(2)=2×2×2=8. The outputs differ. The graph of x3 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.
    3. Test b. b(−5)=(−5+4)2−5=(−1)2−5=−4, and b(−3)=(−3+4)2−5=12−5=−4.The inputs −5 and −3 share the output −4, so b fails the horizontal line test and needs a restricted domain.
    4. Find the turn of b. Set x+4=0 and subtract 4 from both sides: x=−4. This finds the input where the squared part is 0, its smallest value. Plug it in: b(−4)=(−4+4)2−5=0−5=−5.The lowest point of the graph is (−4, −5). The shared outputs come from the two sides of that point.
    5. Keep x≥−4, written [−4,∞).No side is named, so keep the turn and the right side, where the graph only climbs.
    6. Find the range of the kept piece: y≥−5, written [−5,∞).The lowest output is −5, at the turn, and the graph climbs without end from there.
    7. Trade places. Domain of b−1: [−5,∞). Range of b−1: [−4,∞).The domain of the inverse is the range of b, and the range of the inverse is the restricted domain.
    Answer
    • a(x) = x3 needs no restriction. It is already a one-to-one function.
    • b needs one. Usual restricted domain: x ≥ −4, or [−4, ∞).
    • Domain of b−1: [−5, ∞).
    • Range of b−1: [−4, ∞).
    Double-check Look at the table of the kept piece of b. The output row reads −5, −4, −1, 4, 11. It only climbs, so no output appears twice. The output −4 now comes from −3 alone, because −5 lies left of −4 and was thrown out.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: After restricting f(x) = x2 to x ≥ 0, writing f−1(9) = 3 or −3.
    −3 is not in the restricted domain, so the inverse can never hand it back. An inverse function gives one answer, and that answer must be a kept input.
    ✓ Instead: f−1(9) = 3, because 32 = 9 and 3 ≥ 0.
    ✗ Not this: Giving x > 0 as the usual restriction of f(x) = x2, leaving out 0.
    The piece passes the horizontal line test and has an inverse, but the output 0 is lost, because only the input 0 gives it. The range shrinks from y ≥ 0 to y > 0.
    ✓ Instead: The usual restriction keeps the turning point: x ≥ 0, and the range stays y ≥ 0.
    ✗ Not this: Restricting every function before finding an inverse, for example cutting f(x) = 2x + 1 down to x ≥ 0.
    A line that is not flat already passes the horizontal line test. Cutting it throws away outputs for no reason: with x ≥ 0 the outputs below 1 are gone.
    ✓ Instead: Test first. Restrict only when some horizontal line meets the graph more than once.
    ✗ Not this: Trying to repair y = x2 by cutting the outputs, for example "keep only y ≥ 0".
    The range of x2 is already y ≥ 0, so this changes nothing. The trouble is two inputs sharing one output, and that lives on the input side.
    ✓ Instead: Cut the inputs: keep x ≥ 0.

    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) = x2 with x ≥ 0 and f(x) = x2 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) = x2, the inputs −1, −2, −3 and the rest are gone. So f−1(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) = x2 not be undone while it keeps all of its inputs?
    Two different inputs share one output: −3 and 3 both give 9. An inverse may send 9 back to only one input. It is like a road sign that says "five miles from town" without saying which side.
    For f(x) = (x − 2)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) = x2, x ≥ 0, what is f−1(9)?
    3 only. The input −3 was removed by the restricted domain, so the answer is not "3 or −3".
    After you restrict the domain of f, what are the domain and the range of f−1?
    • They trade places.
    • The domain of f−1 is the range of f.
    • The range of f−1 is the restricted domain.

    From earlier

    Domain and range trade places

    f is a one-to-one function. Where do you get the domain of f−1?
    Show answer
    From the range of f. The backward coat check takes in tickets, and only the tickets that were handed out.

    Domain and range trade places

    You know f(4) = 9, and f is a one-to-one function. Which number goes into f−1, and which comes out?
    Show answer
    9 goes in, so 9 is in the domain of f−1.
    4 comes out, so 4 is in the range of f−1.
    Reason: f(4) = 9 says the same thing as f−1(9) = 4.