Quarry School

Inverses of rational functions

Subject: MathematicsLeans on: The name f⁻¹Leans on: Zero in the bottomLeans on: Clearing a fractionLeans on: DistributingLeans on: Moving a termLeans on: Factoring out a common letterLeans on: Writing every number except one
Level 1 · FoundationsAbout 26 min read1 new term
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.

    Quick review (2 minutes)

    In plain words

    A rational function is a fraction whose top and bottom are polynomials.

    Rule

    For f(x) = ax+bcx+d with c ≠ 0 and ad − bc ≠ 0, swap and solve gives f⁻¹(x) = −dx+bcx−a. Domain of f: x ≠ −dc. Range of f: y ≠ ac. Domain of f⁻¹ = range of f. Range of f⁻¹ = domain of f.

    Step

    1. Find the input f cannot take: set the bottom of f equal to 0 and solve. Leave that number out of the domain of f.

    2. Write y in place of f(x).

    3. Swap x and y everywhere.

    4. Multiply both sides by the whole bottom, written in brackets, so the fraction disappears.

    5. Distribute to remove the brackets.

    6. Gather: move every term that contains y to one side and every term without y to the other side.

    7. Factor y out of the side that holds it, so y appears once, times a bracket.

    8. Divide both sides by that bracket. Rename y as f⁻¹(x).

    9. Find the input f⁻¹ cannot take: set the bottom of f⁻¹ equal to 0 and solve. That number is left out of the domain of f⁻¹ and out of the range of f.

    10. Trade: the range of f⁻¹ is the domain of f from step 1.

    11. Check with one number: pick an input, run f, feed the output to f⁻¹, and confirm you get the input back.

    Question

    Find the inverse function of f(x) = 2x+1x−3. Then give the domain and range of f and of f⁻¹.

    Answer

    f⁻¹(x) = 3x+1x−2
    Domain of f: x ≠ 3, or (−∞, 3) ∪ (3, ∞)
    Range of f: y ≠ 2, or (−∞, 2) ∪ (2, ∞)
    Domain of f⁻¹: x ≠ 2, or (−∞, 2) ∪ (2, ∞)
    Range of f⁻¹: y ≠ 3, or (−∞, 3) ∪ (3, ∞)

    Trap

    After the fraction is cleared, y sits in two terms on opposite sides, as in xy − 3x = 2y + 1. The common mistake is to divide right away and write y = 2y+3x+1x. That is not solved, because y is still on the right. Gather every y term on one side first, factor y out, and only then divide.

    Strategy

    1. Set the bottom of f equal to 0 and solve. Leave that input out of the domain of f.

    2. Write y for f(x), then swap x and y.

    3. Clear the fraction: multiply both sides by the bottom, in brackets, and distribute.

    4. Gather every y term on one side and everything else on the other.

    5. Factor y out, then divide by the bracket. Name the result f⁻¹(x).

    6. Set the bottom of f⁻¹ equal to 0 and solve. Leave that input out of the domain of f⁻¹.

    7. Trade: range of f = domain of f⁻¹, and range of f⁻¹ = domain of f.

    8. Check one number through f and back through f⁻¹.

    Term

    inverse function

    Definition

    The function that undoes another function. If f turns 3 into 7, then the inverse, written f−1, turns 7 back into 3.

    Term

    one-to-one function

    Definition

    A function in which every output comes from only one input. No two inputs share an output, so no horizontal line meets its graph twice.

    1 In plain words

    A rational function is a fraction whose top and bottom are polynomials. This lesson works with the kind ax+bcx+d that has x in the bottom and does not cancel down to a constant, such as 2x+1x−3. Picture a machine that uses your number twice, once upstairs and once downstairs, then divides. To run it backward you swap x and y and solve for y, as you did before. The new problem: after the swap, y sits in two places. It is like one pair of socks left in two drawers. Bring them into one drawer first. Here that means: move every term with y to one side, pull y out as a common factor, then divide. The machine has one number it cannot take in and one number it never gives out. The inverse function trades those two numbers.

    2 Picture it

    (4, 9)(10, 3)−44812−8−44812(4, 9)(10, 3)−44812−8−44812
    The graph of f(x) = 2x+1x−3 never touches the dashed line x = 3 (the input it cannot take) or the dashed…

    Reminder

    Reminder: The name f⁻¹, Zero in the bottom, Clearing a fraction, Distributing, Moving a term, Factoring out a common letter, Writing every number except one
    • The name f⁻¹. f⁻¹ is the name of the inverse function. The small −1 is not a power: f⁻¹(x) does not mean 1f(x).
    • Zero in the bottom. A fraction with 0 in the bottom has no value, so any input that makes the bottom 0 is left out of the domain: for 5x−4, leave out x = 4.
    • Clearing a fraction. Multiplying a fraction by its own bottom leaves only the top: 62 · 2 = 6, and 6y−1 · (y − 1) = 6.
    • Distributing. The number or letter outside multiplies every term inside: x(y − 3) = xy − 3x.
    • Moving a term. Do the same thing to both sides. To move 2y off the right of xy = 2y + 1, subtract 2y from both sides: xy − 2y = 1.
    • Factoring out a common letter. If every term on a side contains y, write y once outside brackets: xy − 2y = y(x − 2). Distribute back to check.
    • Writing every number except one. x ≠ 3 in interval notation is (−∞, 3) ∪ (3, ∞): everything left of 3, joined with everything right of 3.

    3 Why

    The inverse function answers one question: which input produced this output. Swapping x and y writes that question down, and solving for y answers it. Factoring is needed because xy − 2y holds y twice, and no single division can free a letter that appears twice. Written as y(x − 2), y appears once, times a bracket, and division undoes that. Domain and range trade because every pair (input, output) of f, read backward, is a pair of the inverse. So the inputs f accepts are the outputs its inverse returns, and the other way around.

    4 The rule

    For f(x)=ax+bcx+d with c≠0 and ad−bc≠0, swap and solve gives f−1(x)=−dx+bcx−a.

    Domain of f: x≠−dc. Range of f: y≠ac. Domain of f−1= range of f. Range of f−1= domain of f.

    The same idea, five ways

    Say it

    f inverse of x equals three x plus one, over x minus two.

    Write it

    The inverse function of f(x) = 2x+1x−3 is f⁻¹(x) = 3x+1x−2, and the number each one cannot take in is the number the other never gives out.

    In math
    • f(x)=2x+1x−3
    • f⁻¹(x)=3x+1x−2
    • Domain of f = range of f⁻¹: x ≠ 3, (−∞, 3) ∪ (3, ∞), {x | x ≠ 3}
    • Range of f = domain of f⁻¹: y ≠ 2, (−∞, 2) ∪ (2, ∞), {y | y ≠ 2}
    Like

    A one-way street with one closed entrance and one closed exit. Drive it in reverse and the closed entrance becomes the closed exit.

    See it

    f(x)=2x+1x−3

    f⁻¹(x)=3x+1x−2

    f: in ≠ 3, out ≠ 2

    f⁻¹: in ≠ 2, out ≠ 3

    The same idea, other ways

    As a picture

    The graph of f(x) = 2x+1x−3 has two dashed guide lines it never touches: an up-and-down line at x = 3, the input f cannot take, and a level line at y = 2, the output f never gives. The graph shown here is the inverse function f⁻¹(x) = 3x+1x−2. It has the same two numbers with their jobs traded: the up-and-down line is at x = 2 and the level line is at y = 3. The points trade too: (4, 9) on f becomes (9, 4) here.

    (9, 4)(3, 10)−8−44812−44812
    The inverse function never touches x = 2 or y = 3, the two left-out numbers of f with their jobs traded.
    With small numbers

    The table lists four inputs of f(x) = 2x+1x−3 and their outputs. Read a column from top to bottom and you are running f: 4 goes in, 9 comes out. Read the same column from bottom to top and you are running the inverse function: 9 goes in, 4 comes out. The formula agrees: f⁻¹(9) = 3(9)+19−2 = 287 = 4. However long you make this table, 3 can never appear in the input row and 2 can never appear in the output row. The 3 you see in the output row is allowed: 3 is a fine output, only a forbidden input.

    input xoutput f(x)−412−549103↓ evaluate: input given, read the output below it
    Top to bottom is f, bottom to top is the inverse function: the column under 4 says f(4) = 9 and f⁻¹(9) = 4.
    Why it must be true

    Ask f to produce the output 2: 2x+1x−3 = 2. Multiply both sides by (x − 3): 2x + 1 = 2x − 6. Subtract 2x from both sides: 1 = −6. That is false, so no input gives 2. The inverse function takes outputs of f as its inputs, so it has nothing to hand back for 2. Its formula agrees: the bottom x − 2 is zero at x = 2.

    As a rule of thumb

    Swap, clear, gather, factor, divide. Swap x and y. Clear the fraction by multiplying by the bottom. Gather the y terms on one side. Factor y out. Divide by the bracket. Then read each function's forbidden input from its own bottom, and hand that number to the other function as its missing output.

    Swap: x = 2y+1y−3

    Clear: x(y − 3) = 2y + 1

    Gather: xy − 2y = 3x + 1

    Factor: y(x − 2) = 3x + 1

    Divide: y = 3x+1x−2

    FunctionInput it cannot takeOutput it never gives
    f(x)=2x+1x−332
    f⁻¹(x)=3x+1x−223

    5 How

    1. Find the input f cannot take: set the bottom of f equal to 0 and solve. Leave that number out of the domain of f.
    2. Write y in place of f(x).
    3. Swap x and y everywhere.
    4. Multiply both sides by the whole bottom, written in brackets, so the fraction disappears.
    5. Distribute to remove the brackets.
    6. Gather: move every term that contains y to one side and every term without y to the other side.
    7. Factor y out of the side that holds it, so y appears once, times a bracket.
    8. Divide both sides by that bracket. Rename y as f⁻¹(x).
    9. Find the input f⁻¹ cannot take: set the bottom of f⁻¹ equal to 0 and solve. That number is left out of the domain of f⁻¹ and out of the range of f.
    10. Trade: the range of f⁻¹ is the domain of f from step 1.
    11. Check with one number: pick an input, run f, feed the output to f⁻¹, and confirm you get the input back.

    Inverting a rational function and matching domain and range

    1
    After the swap, is y in the bottom of a fraction?
    YesMultiply both sides by the whole bottom, in brackets, then distribute.
    NoGo on.
    ↓
    2
    Is y in more than one term?
    YesMove every y term to one side and everything else to the other, then factor y out.
    NoMove the terms without y to the other side.
    ↓
    3
    Is y multiplied by a bracket or a number?
    YesDivide both sides by it. The result is f⁻¹(x).
    Noy is alone. The solving is done.
    ↓
    4
    Does your f⁻¹ have x in a bottom?
    YesSet that bottom = 0 and solve. Leave that x out of the domain of f⁻¹. The same number is left out of the range of f.
    NoRecheck the algebra. When f has x in its bottom, its inverse has x in a bottom too.
    1. Set the bottom of f equal to 0 and solve. Leave that input out of the domain of f.
    2. Write y for f(x), then swap x and y.
    3. Clear the fraction: multiply both sides by the bottom, in brackets, and distribute.
    4. Gather every y term on one side and everything else on the other.
    5. Factor y out, then divide by the bracket. Name the result f⁻¹(x).
    6. Set the bottom of f⁻¹ equal to 0 and solve. Leave that input out of the domain of f⁻¹.
    7. Trade: range of f = domain of f⁻¹, and range of f⁻¹ = domain of f.
    8. Check one number through f and back through f⁻¹.

    6 Worked example

    Worked example

    Inverse of a line over a line, with domain and range

    Find the inverse function of f(x) = 2x+1x−3. Then give the domain and range of f and of f⁻¹.

    Show the steps and the answer
    =x(y − 3)2y + 1do the same thing to both sides
    After multiplying by the bottom, the fraction is gone and y sits on both pans.
    3(−∞, 3) ∪ (3, ∞)
    The domain of f is every number except 3, shown as an open dot at 3.
    2(−∞, 2) ∪ (2, ∞)
    The domain of f⁻¹ is every number except 2, which is also the range of f.
    1. Say what the question asks. f takes an input x and gives an output. The inverse function takes that output and hands back the input. Find its formula, then list which numbers each function takes in (domain) and gives out (range).Knowing the goal in plain words tells you when you are finished: one formula and four sets of numbers.
    2. Find the input f cannot take. Set the bottom equal to 0: x−3=0, so x=3. Domain of f: x≠3.This step finds the one input that would put 0 in the bottom, so we can throw it out. Plug it in to see: 2(3)+13−3 = 70, which has no value.
    3. Write y for f(x): y=2x+1x−3.y is a shorter name for the output, and it makes the swap possible to write.
    4. Swap x and y: x=2y+1y−3.The inverse function trades the jobs of input and output. After the swap, x is the old output and y is the old input we want back.
    5. Multiply both sides by (y − 3): x(y−3)=2y+1.y is trapped in a bottom. Multiplying a fraction by its own bottom leaves only the top, so the fraction disappears. The brackets make x multiply the whole bottom.
    6. Distribute on the left: xy−3x=2y+1.x multiplies both things inside the brackets: x · y and x · (−3).
    7. Gather the y terms. Subtract 2y from both sides, then add 3x to both sides: xy−2y=3x+1.y sits in two terms, xy and 2y. Put both on the left and everything without y on the right, so y can be pulled out.
    8. Factor y out of the left side: y(x−2)=3x+1.Both left terms contain y: xy = y · x and 2y = y · 2. Check by distributing back: y(x − 2) = xy − 2y.
    9. Divide both sides by (x − 2): y=3x+1x−2.y is now multiplied by one bracket, and division undoes multiplication. The division is allowed only when x − 2 is not 0, which is where the next restriction comes from.
    10. Rename y: f−1(x)=3x+1x−2.The y we solved for is the old input written in terms of the old output. That is the inverse function.
    11. Find the input f−1 cannot take. Set its bottom equal to 0: x−2=0, so x=2. Domain of f−1: x≠2.This finds the one input that would put 0 in the bottom of the inverse. Plug it in to see: 3(2)+12−2 = 70, which has no value.
    12. Trade the sets. Range of f= domain of f−1: y≠2. Range of f−1= domain of f: y≠3.The outputs of f are exactly the inputs of f⁻¹, and the outputs of f⁻¹ are exactly the inputs of f.
    Answer
    • f⁻¹(x)=3x+1x−2
    • Domain of f: x ≠ 3, or (−∞, 3) ∪ (3, ∞)
    • Range of f: y ≠ 2, or (−∞, 2) ∪ (2, ∞)
    • Domain of f⁻¹: x ≠ 2, or (−∞, 2) ∪ (2, ∞)
    • Range of f⁻¹: y ≠ 3, or (−∞, 3) ∪ (3, ∞)
    Double-check Run a number through both machines. f(4) = 2(4)+14−3 = 91 = 9. Then f⁻¹(9) = 3(9)+19−2 = 287 = 4, the input we started with. A second pair: f(10) = 217 = 3 and f⁻¹(3) = 101 = 10. For the range, ask f for the output 2 directly: 2x+1x−3 = 2 means 2x + 1 = 2x − 6, so 1 = −6, which is false. No input gives 2, as claimed.

    Ladder: from easy to exam-hard

    Try each rung before you open its steps.

    Rung 1 of 6

    X only in the bottom

    Find the inverse function of f(x) = 6x−1, with the domain and range of both functions.

    Show the steps and the answer
    (4, 2)−448−8−448
    The graph of f(x) = 6x−1 never touches x = 1 or y = 0, the input and output it leaves out.
    1. Say what the question asks: a formula that turns each output of f back into its input, plus the numbers each function leaves out.The goal in plain words tells you what a finished answer contains.
    2. Set the bottom equal to 0: x−1=0, so x=1. Domain of f: x≠1.This finds the one input that would put 0 in the bottom. Plug it in: 61−1 = 60, which has no value.
    3. Write y=6x−1, then swap: x=6y−1.Swapping makes x the old output and y the old input we want to recover.
    4. Multiply both sides by (y − 1): x(y−1)=6.Multiplying by the bottom removes the fraction and frees y.
    5. Distribute: xy−x=6.x multiplies both y and −1.
    6. Add x to both sides: xy=x+6.y is in only one term, so there is nothing to gather. Move the term without y away from it.
    7. Divide both sides by x: y=x+6x. So f−1(x)=x+6x.y was multiplied by x, and division undoes that.
    8. Set the bottom of f−1 equal to 0: x=0. Domain of f−1: x≠0. Trade: range of f is y≠0, and range of f−1 is y≠1.This finds the one input the inverse cannot take: 0+60 = 60 has no value. It makes sense that f never gives 0, since a fraction with 6 on top is never 0.
    Answer
    • f⁻¹(x)=x+6x
    • f: domain x ≠ 1, range y ≠ 0
    • f⁻¹: domain x ≠ 0, range y ≠ 1
    Double-check f(4) = 64−1 = 63 = 2. Then f⁻¹(2) = 2+62 = 82 = 4, the input we started with.

    Rung 2 of 6

    X on top and bottom, so y must be gathered

    Find the inverse function of f(x) = x+5x−2, with the domain and range of both functions.

    Show the steps and the answer
    1. Say what the question asks: the function that undoes f, and the numbers each one leaves out.Same goal as before. The new feature is x in two places.
    2. Set the bottom equal to 0: x−2=0, so x=2. Domain of f: x≠2.This finds the input that would put 0 in the bottom: 2+52−2 = 70, which has no value.
    3. Write y=x+5x−2, then swap: x=y+5y−2.The swap trades input and output.
    4. Multiply both sides by (y − 2): x(y−2)=y+5.This clears the fraction.
    5. Distribute: xy−2x=y+5.x multiplies both y and −2.
    6. Subtract y from both sides, then add 2x to both sides: xy−y=2x+5.y is in two terms, xy and y. Gather them on the left and send everything else to the right.
    7. Factor y out: y(x−1)=2x+5.xy = y · x and y = y · 1, so a 1 stays in the bracket. Distribute back to check: y · x − y · 1 = xy − y.
    8. Divide by (x−1): y=2x+5x−1. So f−1(x)=2x+5x−1.Division undoes the multiplication by the bracket.
    9. Set the bottom of f−1 equal to 0: x−1=0, so x=1. Domain of f−1: x≠1. Trade: range of f is y≠1, and range of f−1 is y≠2.This finds the input the inverse cannot take: 2(1)+51−1 = 70 has no value. Each function's left-out input is the other's left-out output.
    Answer
    • f⁻¹(x)=2x+5x−1
    • f: domain x ≠ 2, range y ≠ 1
    • f⁻¹: domain x ≠ 1, range y ≠ 2
    Double-check f(3) = 3+53−2 = 81 = 8. Then f⁻¹(8) = 2(8)+58−1 = 217 = 3, the input we started with.

    Rung 3 of 6

    A number in front of x in the bottom

    Find the inverse function of f(x) = 3x−22x+1, with the domain and range of both functions.

    Show the steps and the answer
    −0.5(−∞, −0.5) ∪ (−0.5, ∞)
    The domain of f is every number except −12, the one input that makes 2x + 1 equal 0.
    1. Say what the question asks: the function that undoes f, and the numbers each one leaves out. Expect fractions among those numbers.The 2 in front of x in the bottom means the forbidden input will not be a whole number.
    2. Set the bottom equal to 0: 2x+1=0, so 2x=−1 and x=−12. Domain of f: x≠−12.This finds the input that makes the bottom 0. Plug it in: 2(−12) + 1 = −1 + 1 = 0.
    3. Write y=3x−22x+1, then swap: x=3y−22y+1.The swap trades input and output.
    4. Multiply both sides by (2y + 1): x(2y+1)=3y−2.This clears the fraction.
    5. Distribute: 2xy+x=3y−2.x multiplies both 2y and 1.
    6. Subtract 3y from both sides, then subtract x from both sides: 2xy−3y=−x−2.The y terms are 2xy and 3y. Gather them on the left. The x that has no y moves to the right.
    7. Factor y out: y(2x−3)=−x−2.2xy = y · 2x and 3y = y · 3. Distribute back to check: y · 2x − y · 3 = 2xy − 3y.
    8. Divide by (2x−3): y=−x−22x−3. So f−1(x)=−x−22x−3.Division undoes the multiplication by the bracket.
    9. Set the bottom of f−1 equal to 0: 2x−3=0, so 2x=3 and x=32. Domain of f−1: x≠32. Trade: range of f is y≠32, and range of f−1 is y≠−12.This finds the input the inverse cannot take. Plug it in: 2(32) − 3 = 3 − 3 = 0 in the bottom.
    Answer
    • f⁻¹(x) = −x−22x−3, which can also be written x+23−2x by multiplying top and bottom by −1
    • f: domain x ≠ −12, range y ≠ 32
    • f⁻¹: domain x ≠ 32, range y ≠ −12
    Double-check f(−1) = 3(−1)−22(−1)+1 = −5−1 = 5. Then f⁻¹(5) = −5−22(5)−3 = −77 = −1, the input we started with. The shortcut agrees on the range: the numbers in front of x are 3 on top and 2 on the bottom, and 32 is the missing output.

    Rung 4 of 6

    A negative x term on top

    Find the inverse function of f(x) = 5−2xx+4, with the domain and range of both functions.

    Show the steps and the answer
    1. Say what the question asks: the function that undoes f, and the numbers each one leaves out. Watch the signs when gathering.The −2x on top turns into −2y after the swap, and it will change sign when it crosses the equals sign.
    2. Set the bottom equal to 0: x+4=0, so x=−4. Domain of f: x≠−4.This finds the input that would put 0 in the bottom: 5−2(−4)−4+4 = 130, which has no value.
    3. Write y=5−2xx+4, then swap: x=5−2yy+4.The swap trades input and output.
    4. Multiply both sides by (y + 4): x(y+4)=5−2y.This clears the fraction.
    5. Distribute: xy+4x=5−2y.x multiplies both y and 4.
    6. Add 2y to both sides, then subtract 4x from both sides: xy+2y=5−4x.The y terms are xy and −2y. Adding 2y to both sides brings it to the left as + 2y.
    7. Factor y out: y(x+2)=5−4x.xy = y · x and 2y = y · 2. Distribute back to check: y · x + y · 2 = xy + 2y.
    8. Divide by (x+2): y=5−4xx+2. So f−1(x)=5−4xx+2.Division undoes the multiplication by the bracket.
    9. Set the bottom of f−1 equal to 0: x+2=0, so x=−2. Domain of f−1: x≠−2. Trade: range of f is y≠−2, and range of f−1 is y≠−4.This finds the input the inverse cannot take: 5−4(−2)−2+2 = 130 has no value.
    Answer
    • f⁻¹(x)=5−4xx+2
    • f: domain x ≠ −4, range y ≠ −2
    • f⁻¹: domain x ≠ −2, range y ≠ −4
    Double-check f(−3) = 5−2(−3)−3+4 = 111 = 11. Then f⁻¹(11) = 5−4(11)11+2 = −3913 = −3, the input we started with.

    Rung 5 of 6

    Using the inverse to find a range

    Find the range of g(x) = 4x−12x+6.

    Show the steps and the answer
    2(−∞, 2) ∪ (2, ∞)
    The range of g is every number except 2, shown as an open dot at 2.
    1. Say what the question asks. The range is the set of all outputs of g. Outputs are hard to read from a formula, but the outputs of g are the inputs of its inverse function, and inputs can be read from a bottom. So find the inverse and take its domain.Range of g = domain of g⁻¹. A domain question is one you already know how to answer.
    2. Write y=4x−12x+6, then swap: x=4y−12y+6.The swap trades input and output.
    3. Multiply both sides by (2y + 6): x(2y+6)=4y−1.This clears the fraction.
    4. Distribute: 2xy+6x=4y−1.x multiplies both 2y and 6.
    5. Subtract 4y from both sides, then subtract 6x from both sides: 2xy−4y=−6x−1.The y terms are 2xy and 4y. Gather them on the left and send the rest to the right.
    6. Factor y out: y(2x−4)=−6x−1.2xy = y · 2x and 4y = y · 4. Distribute back to check: y · 2x − y · 4 = 2xy − 4y.
    7. Divide by (2x−4): y=−6x−12x−4. So g−1(x)=−6x−12x−4.Division undoes the multiplication by the bracket.
    8. Set the bottom of g−1 equal to 0: 2x−4=0, so 2x=4 and x=2. Domain of g−1: x≠2. So the range of g is y≠2.This finds the one input the inverse cannot take. Plug it in: 2(2) − 4 = 0 in the bottom. That input of g⁻¹ is the one output g never gives.
    Answer
    • Range of g: every real number except 2
    • In interval notation: (−∞, 2) ∪ (2, ∞)
    Double-check Ask g for the output 2 directly: 4x−12x+6 = 2 means 4x − 1 = 2(2x + 6) = 4x + 12, so −1 = 12, which is false. No input gives 2. Another output, such as 1, can be reached: 4x − 1 = 2x + 6 gives 2x = 7, so x = 72, and g(72) = 14−17+6 = 1313 = 1. The shortcut agrees: 42 = 2.

    Rung 6 of 6

    The gotcha, a function that is its own inverse

    Find the inverse function of f(x) = x+5x−1, with the domain and range of both functions.

    Show the steps and the answer
    (2, 7)(7, 2)−448−448
    Both (2, 7) and (7, 2) lie on the same curve.
    1. Say what the question asks: the function that undoes f, and the numbers each one leaves out.Same goal. The surprise comes at the end.
    2. Set the bottom equal to 0: x−1=0, so x=1. Domain of f: x≠1.This finds the input that would put 0 in the bottom: 1+51−1 = 60, which has no value.
    3. Write y=x+5x−1, then swap: x=y+5y−1.The swap trades input and output.
    4. Multiply both sides by (y−1) and distribute: xy−x=y+5.Clearing the fraction gives x(y − 1) = y + 5, and x multiplies both y and −1.
    5. Subtract y from both sides, then add x to both sides: xy−y=x+5.Gather the y terms, xy and y, on the left.
    6. Factor y out: y(x−1)=x+5.xy = y · x and y = y · 1. Distribute back to check: xy − y.
    7. Divide by (x−1): y=x+5x−1. So f−1(x)=x+5x−1.Division undoes the multiplication by the bracket.
    8. Notice that f−1 has the same formula as f. Nothing went wrong. Domain of f−1: x≠1. Range of f: y≠1. Range of f−1: y≠1.Some functions undo themselves. Here the forbidden input and the missing output are both 1, so trading them changes nothing. The corner check agrees: 1 and −1 trade places and change sign, which gives 1 and −1 again.
    Answer
    • f⁻¹(x) = x+5x−1, the same formula as f
    • f: domain x ≠ 1, range y ≠ 1
    • f⁻¹: domain x ≠ 1, range y ≠ 1
    Double-check f(2) = 2+52−1 = 71 = 7. Then f⁻¹(7) = 7+57−1 = 126 = 2, the input we started with. A second pair: f(3) = 82 = 4 and f⁻¹(4) = 93 = 3. Running the same formula twice returns the starting number.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Flipping the fraction: f⁻¹(x) = x−32x+1.
    Turning a fraction upside down gives 1 divided by f(x), which is a different thing from undoing f. Test it: f(4) = 9, but 9−32(9)+1 = 619, which is not 4.
    ✓ Instead: Swap x and y and solve: f⁻¹(x) = 3x+1x−2. Then f⁻¹(9) = 287 = 4.
    ✗ Not this: Saying the domain of f⁻¹ is x ≠ 3 because the domain of f is x ≠ 3.
    Each function has its own bottom. The inverse accepts 3 without trouble: f⁻¹(3) = 3(3)+13−2 = 101 = 10. Its bottom is x − 2, which is zero at 2.
    ✓ Instead: Domain of f⁻¹: x ≠ 2. The number 3 moves to the range of f⁻¹: y ≠ 3.
    ✗ Not this: Factoring xy − y as y(x) or as y(x − 0), dropping the second term.
    The lone y is y · 1. Pulling y out leaves a 1 behind. Distribute to test: y(x) = xy, which has lost the − y.
    ✓ Instead: xy − y = y(x − 1). Distribute back: y · x − y · 1 = xy − y.
    ✗ Not this: Looking for the inverse of f(x) = 2x+4x+2 by swap and solve.
    The rule does not apply. The top is 2 times the bottom, since 2(x + 2) = 2x + 4, so the fraction equals 2 for every allowed x. Many inputs share one output, so this is not a one-to-one function. Here ad − bc = 2 · 2 − 4 · 1 = 0, the case the rule excludes.
    ✓ Instead: This function has no inverse function. Before inverting, glance at whether the top is a multiple of the bottom.

    Tips and tricks

    • Five verbs carry the whole method: swap, clear, gather, factor, divide.
    • A ten-second check, not something to memorize: compare f(x) = ax+bcx+d with your answer. The two corner numbers a and d should have traded places and changed sign, while b and c stayed put. For 2x+1x−3: 2 and −3 trade and flip sign, giving 3x+1x−2.
    • Do not memorize the formula in the rule. Swap and solve rebuilds it every time, and the steps are the skill.
    • Shortcut for the output f never gives: divide the number in front of x on top by the number in front of x on the bottom. For 2x+1x−3 that is 21 = 2. If the top has no x, the missing output is 0.
    • For a check with whole numbers, pick the input that makes the bottom equal 1. For x − 3 that is x = 4.
    • No cut is needed here. Swap and solve gives exactly one y for each x, so each output comes from one input. Unlike a parabola, there is no sign to choose.
    • Always write the bottom in brackets when you multiply by it: x(y − 3), never xy − 3.

    7 The trap

    After the fraction is cleared, y sits in two terms on opposite sides, as in xy − 3x = 2y + 1. The common mistake is to divide right away and write y = 2y+3x+1x. That is not solved, because y is still on the right. Gather every y term on one side first, factor y out, and only then divide.

    Flash cards

    Say the answer out loud, then flip.

    After you swap x and y in a rational function and clear the fraction, y sits in two terms. What three moves free it?
    • Gather every term with y on one side.
    • Factor y out, so y appears once, times a bracket.
    • Divide both sides by that bracket.
    • It is like one pair of socks left in two drawers: bring them into one drawer first.
    From xy − 3x = 2y + 1, someone writes y = 2y+3x+1x. Why is that not a finished answer, and what is the fix?
    • y is still on the right side, so nothing is solved. No single division can free a letter that appears twice.
    • Gather: xy − 2y = 3x + 1.
    • Factor: y(x − 2) = 3x + 1.
    • Divide: y = 3x+1x−2.
    For f(x) = 2x+1x−3, the inverse function is f⁻¹(x) = 3x+1x−2. Which number is left out of the domain of each, and how do those two numbers trade?
    • Domain of f: x ≠ 3, because 3 makes the bottom x − 3 equal 0.
    • Domain of f⁻¹: x ≠ 2, because 2 makes the bottom x − 2 equal 0.
    • The trade: 2 is the one number f never gives out, so the range of f is y ≠ 2. And 3 is the one number f⁻¹ never gives out, so the range of f⁻¹ is y ≠ 3.
    How do you check an inverse function with one number? Try it on f(x) = 2x+1x−3 and f⁻¹(x) = 3x+1x−2 with the input 4.
    • Pick an input, run f, feed the output to f⁻¹, and confirm the input comes back.
    • f(4)=2·4+14−3=91=9.
    • f⁻¹(9)=3·9+19−2=287=4.
    • The 4 came back, so the inverse passes the check.