Inverses of rational functions
Quick review (2 minutes)
A rational function is a fraction whose top and bottom are polynomials.
For f(x) = with c ≠ 0 and ad − bc ≠ 0, swap and solve gives f⁻¹(x) = . Domain of f: x ≠ −. Range of f: y ≠ . Domain of f⁻¹ = range of f. Range of f⁻¹ = domain of f.
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.
Write y in place of f(x).
Swap x and y everywhere.
Multiply both sides by the whole bottom, written in brackets, so the fraction disappears.
Distribute to remove the brackets.
Gather: move every term that contains y to one side and every term without y to the other side.
Factor y out of the side that holds it, so y appears once, times a bracket.
Divide both sides by that bracket. Rename y as f⁻¹(x).
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.
Trade: the range of f⁻¹ is the domain of f from step 1.
Check with one number: pick an input, run f, feed the output to f⁻¹, and confirm you get the input back.
Find the inverse function of f(x) = . Then give the domain and range of f and of f⁻¹.
f⁻¹(x) =
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, ∞)
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 = . 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.
Set the bottom of f equal to 0 and solve. Leave that input out of the domain of f.
Write y for f(x), then swap x and y.
Clear the fraction: multiply both sides by the bottom, in brackets, and distribute.
Gather every y term on one side and everything else on the other.
Factor y out, then divide by the bracket. Name the result f⁻¹(x).
Set the bottom of f⁻¹ equal to 0 and solve. Leave that input out of the domain of f⁻¹.
Trade: range of f = domain of f⁻¹, and range of f⁻¹ = domain of f.
Check one number through f and back through f⁻¹.
inverse function
The function that undoes another function. If f turns 3 into 7, then the inverse, written , turns 7 back into 3.
one-to-one function
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 that has x in the bottom and does not cancel down to a constant, such as . 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
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 .
- 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 , leave out x = 4.
- Clearing a fraction. Multiplying a fraction by its own bottom leaves only the top: · 2 = 6, and · (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 with and , swap and solve gives .
Domain of f: . Range of f: . Domain of range of f. Range of domain of f.
The same idea, five ways
f inverse of x equals three x plus one, over x minus two.
The inverse function of f(x) = is f⁻¹(x) = , and the number each one cannot take in is the number the other never gives out.
- 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}
A one-way street with one closed entrance and one closed exit. Drive it in reverse and the closed entrance becomes the closed exit.
f: in ≠ 3, out ≠ 2
f⁻¹: in ≠ 2, out ≠ 3
The same idea, other ways
The graph of f(x) = 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) = . 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.
The table lists four inputs of f(x) = 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) = = = 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.
Ask f to produce the output 2: = 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.
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 =
Clear: x(y − 3) = 2y + 1
Gather: xy − 2y = 3x + 1
Factor: y(x − 2) = 3x + 1
Divide: y =
| Function | Input it cannot take | Output it never gives |
|---|---|---|
| 3 | 2 | |
| 2 | 3 |
5 How
- 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.
- Write y in place of f(x).
- Swap x and y everywhere.
- Multiply both sides by the whole bottom, written in brackets, so the fraction disappears.
- Distribute to remove the brackets.
- Gather: move every term that contains y to one side and every term without y to the other side.
- Factor y out of the side that holds it, so y appears once, times a bracket.
- Divide both sides by that bracket. Rename y as f⁻¹(x).
- 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.
- Trade: the range of f⁻¹ is the domain of f from step 1.
- 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
- Set the bottom of f equal to 0 and solve. Leave that input out of the domain of f.
- Write y for f(x), then swap x and y.
- Clear the fraction: multiply both sides by the bottom, in brackets, and distribute.
- Gather every y term on one side and everything else on the other.
- Factor y out, then divide by the bracket. Name the result f⁻¹(x).
- Set the bottom of f⁻¹ equal to 0 and solve. Leave that input out of the domain of f⁻¹.
- Trade: range of f = domain of f⁻¹, and range of f⁻¹ = domain of f.
- 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) = . Then give the domain and range of f and of f⁻¹.
Show the steps and the answer
- 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.
- Find the input f cannot take. Set the bottom equal to 0: , so . Domain of f: .This step finds the one input that would put 0 in the bottom, so we can throw it out. Plug it in to see: = , which has no value.
- Write y for f(x): .y is a shorter name for the output, and it makes the swap possible to write.
- Swap x and y: .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.
- Multiply both sides by (y − 3): .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.
- Distribute on the left: .x multiplies both things inside the brackets: x · y and x · (−3).
- Gather the y terms. Subtract 2y from both sides, then add 3x to both sides: .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.
- Factor y out of the left side: .Both left terms contain y: xy = y · x and 2y = y · 2. Check by distributing back: y(x − 2) = xy − 2y.
- Divide both sides by (x − 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.
- Rename y: .The y we solved for is the old input written in terms of the old output. That is the inverse function.
- Find the input cannot take. Set its bottom equal to 0: , so . Domain of : .This finds the one input that would put 0 in the bottom of the inverse. Plug it in to see: = , which has no value.
- Trade the sets. Range of domain of : . Range of domain of f: .The outputs of f are exactly the inputs of f⁻¹, and the outputs of f⁻¹ are exactly the inputs of f.
- 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, ∞)
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) = , with the domain and range of both functions.
Show the steps and the answer
- 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.
- Set the bottom equal to 0: , so . Domain of f: .This finds the one input that would put 0 in the bottom. Plug it in: = , which has no value.
- Write , then swap: .Swapping makes x the old output and y the old input we want to recover.
- Multiply both sides by (y − 1): .Multiplying by the bottom removes the fraction and frees y.
- Distribute: .x multiplies both y and −1.
- Add x to both sides: .y is in only one term, so there is nothing to gather. Move the term without y away from it.
- Divide both sides by x: . So .y was multiplied by x, and division undoes that.
- Set the bottom of equal to 0: . Domain of : . Trade: range of f is , and range of is .This finds the one input the inverse cannot take: = has no value. It makes sense that f never gives 0, since a fraction with 6 on top is never 0.
- f: domain x ≠ 1, range y ≠ 0
- f⁻¹: domain x ≠ 0, range y ≠ 1
Rung 2 of 6
X on top and bottom, so y must be gathered
Find the inverse function of f(x) = , with the domain and range of both functions.
Show the steps and the answer
- 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.
- Set the bottom equal to 0: , so . Domain of f: .This finds the input that would put 0 in the bottom: = , which has no value.
- Write , then swap: .The swap trades input and output.
- Multiply both sides by (y − 2): .This clears the fraction.
- Distribute: .x multiplies both y and −2.
- Subtract y from both sides, then add 2x to both sides: .y is in two terms, xy and y. Gather them on the left and send everything else to the right.
- Factor y out: .xy = y · x and y = y · 1, so a 1 stays in the bracket. Distribute back to check: y · x − y · 1 = xy − y.
- Divide by (): . So .Division undoes the multiplication by the bracket.
- Set the bottom of equal to 0: , so . Domain of : . Trade: range of f is , and range of is .This finds the input the inverse cannot take: = has no value. Each function's left-out input is the other's left-out output.
- f: domain x ≠ 2, range y ≠ 1
- f⁻¹: domain x ≠ 1, range y ≠ 2
Rung 3 of 6
A number in front of x in the bottom
Find the inverse function of f(x) = , with the domain and range of both functions.
Show the steps and the answer
- 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.
- Set the bottom equal to 0: , so and . Domain of f: .This finds the input that makes the bottom 0. Plug it in: 2(−) + 1 = −1 + 1 = 0.
- Write , then swap: .The swap trades input and output.
- Multiply both sides by (2y + 1): .This clears the fraction.
- Distribute: .x multiplies both 2y and 1.
- Subtract 3y from both sides, then subtract x from both sides: .The y terms are 2xy and 3y. Gather them on the left. The x that has no y moves to the right.
- Factor y out: .2xy = y · 2x and 3y = y · 3. Distribute back to check: y · 2x − y · 3 = 2xy − 3y.
- Divide by (): . So .Division undoes the multiplication by the bracket.
- Set the bottom of equal to 0: , so and . Domain of : . Trade: range of f is , and range of is .This finds the input the inverse cannot take. Plug it in: 2() − 3 = 3 − 3 = 0 in the bottom.
- f⁻¹(x) = , which can also be written by multiplying top and bottom by −1
- f: domain x ≠ −, range y ≠
- f⁻¹: domain x ≠ , range y ≠ −
Rung 4 of 6
A negative x term on top
Find the inverse function of f(x) = , with the domain and range of both functions.
Show the steps and the answer
- 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.
- Set the bottom equal to 0: , so . Domain of f: .This finds the input that would put 0 in the bottom: = , which has no value.
- Write , then swap: .The swap trades input and output.
- Multiply both sides by (y + 4): .This clears the fraction.
- Distribute: .x multiplies both y and 4.
- Add 2y to both sides, then subtract 4x from both sides: .The y terms are xy and −2y. Adding 2y to both sides brings it to the left as + 2y.
- Factor y out: .xy = y · x and 2y = y · 2. Distribute back to check: y · x + y · 2 = xy + 2y.
- Divide by (): . So .Division undoes the multiplication by the bracket.
- Set the bottom of equal to 0: , so . Domain of : . Trade: range of f is , and range of is .This finds the input the inverse cannot take: = has no value.
- f: domain x ≠ −4, range y ≠ −2
- f⁻¹: domain x ≠ −2, range y ≠ −4
Rung 5 of 6
Using the inverse to find a range
Find the range of g(x) = .
Show the steps and the answer
- 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.
- Write , then swap: .The swap trades input and output.
- Multiply both sides by (2y + 6): .This clears the fraction.
- Distribute: .x multiplies both 2y and 6.
- Subtract 4y from both sides, then subtract 6x from both sides: .The y terms are 2xy and 4y. Gather them on the left and send the rest to the right.
- Factor y out: .2xy = y · 2x and 4y = y · 4. Distribute back to check: y · 2x − y · 4 = 2xy − 4y.
- Divide by (): . So .Division undoes the multiplication by the bracket.
- Set the bottom of equal to 0: , so and . Domain of : . So the range of g is .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.
- Range of g: every real number except 2
- In interval notation: (−∞, 2) ∪ (2, ∞)
Rung 6 of 6
The gotcha, a function that is its own inverse
Find the inverse function of f(x) = , with the domain and range of both functions.
Show the steps and the answer
- 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.
- Set the bottom equal to 0: , so . Domain of f: .This finds the input that would put 0 in the bottom: = , which has no value.
- Write , then swap: .The swap trades input and output.
- Multiply both sides by () and distribute: .Clearing the fraction gives x(y − 1) = y + 5, and x multiplies both y and −1.
- Subtract y from both sides, then add x to both sides: .Gather the y terms, xy and y, on the left.
- Factor y out: .xy = y · x and y = y · 1. Distribute back to check: xy − y.
- Divide by (): . So .Division undoes the multiplication by the bracket.
- Notice that has the same formula as f. Nothing went wrong. Domain of : . Range of f: . Range of : .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.
- f⁻¹(x) = , the same formula as f
- f: domain x ≠ 1, range y ≠ 1
- f⁻¹: domain x ≠ 1, range y ≠ 1
Counterexamples
What it is not, and the tempting wrong moves.
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) = with your answer. The two corner numbers a and d should have traded places and changed sign, while b and c stayed put. For : 2 and −3 trade and flip sign, giving .
- 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 that is = 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 = . 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 = . 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 = .
For f(x) = , the inverse function is f⁻¹(x) = . 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) = and f⁻¹(x) = with the input 4.
- Pick an input, run f, feed the output to f⁻¹, and confirm the input comes back.
- The 4 came back, so the inverse passes the check.