Quarry School

Inverses and radical functions: crash course

about 21 min to listen6 lessons14 questions to tryUnit 17 of 17

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

1 Why a quadratic needs its domain cut to have an inverse

about 5 minOpen the full lessonOnly this lesson

The rule

A quadratic f(x)=a(x−h)2+k, with a≠0, has its vertex at (h, k).

On all real numbers it is not a one-to-one function, so it has no inverse function. On the restricted domain x≥h (the right half) or x≤h (the left half) it is a one-to-one function, so it has an inverse function. The range does not change: y≥k when a > 0, and y≤k when a < 0.

How

  1. Find the vertex (h, k). In the form a(x − h)2 + k, read it off, remembering that the sign inside the parentheses is the opposite of h. In the form ax2 + bx + c, compute h = −b2a, then k = f(h).
  2. Picture the vertical line x = h through the vertex. It splits the parabola into a left half and a right half that mirror each other.
  3. Choose one half. If the problem names a side, use that side. If it does not, keep the right half.
  4. Write the restricted domain: x ≥ h, which is [h, ∞), for the right half, or x ≤ h, which is (−∞, h], for the left half. The vertex stays in either way.
  5. Write the range. If a is positive the parabola opens up and the range is y ≥ k. If a is negative it opens down and the range is y ≤ k.
  6. Check with two inputs the same distance from h, such as h − 1 and h + 1. They give the same output, and only one of them is still allowed.

Worked example

Worked example

Cutting (x − 2)2 + 1 at its vertex

Let f(x) = (x − 2)2 + 1. First show that f, used on all real numbers, is not a one-to-one function. Then cut its domain at the vertex, keeping the right half, and give the restricted domain and the range. In plain words: find two different inputs with the same output, then choose which inputs to keep so that this can never happen.

Show the steps and the answer
(2, 1)(0, 5)(4, 5)vertex (2, 1)24246810
Before the cut: the line at height 5 meets the parabola at x = 0 and at x = 4.
(2, 1)(4, 5)vertex (2, 1)24246810
After the cut: only the half with x ≥ 2 is drawn, and the line at height 5 meets it once.
input xoutput f(x)213245510↑ solve: output given, read every input above it
On the kept half the output 5 sits in one cell, under the input 4.
  1. Read the vertex off the formula. f(x)=(x−2)2+1 matches a(x−h)2+k with a=1,h=2 and k=1. The vertex is (2, 1).The squared part (x − 2)2 is smallest, namely 0, when x = 2, and then f(2) = 0 + 1 = 1. The sign inside the parentheses is the opposite of h: x − 2 means h = 2.
  2. Pick two inputs the same distance from 2, one on each side: x=0 and x=4. Each is 2 units from the vertex.The parabola is a mirror image across the line x = 2, so a mirrored pair like this is where a repeated output shows up.
  3. Compute both outputs. f(0)=(0−2)2+1=(−2)2+1=4+1=5. f(4)=(4−2)2+1=22+1=4+1=5.Squaring erases the sign: (−2)2 and 22 are both 4.
  4. Conclude that f on all real numbers is not a one-to-one function: the inputs 0 and 4 are different, and both give 5.A one-to-one function never sends two inputs to the same output. On the first graph, the horizontal line at height 5 meets the parabola at (0, 5) and at (4, 5).
  5. Cut at the vertex and keep the right half. The restricted domain is x≥2, which is [2,∞) in interval notation.To the right of the vertex the curve only climbs, so no height can come up twice. The 2 itself stays in, because the output 1 is made by the input 2 alone.
  6. Look again at the pair from step 3. The input 0 is less than 2, so it is no longer allowed. The input 4 is still allowed. The output 5 now comes from 4 and from nothing else.The cut removes exactly one input from every mirrored pair. The second graph shows the line at height 5 meeting the kept half once.
  7. Write the range: y≥1, which is [1,∞).a = 1 is positive, so the parabola opens up and the vertex is its lowest point. (x − 2)2 is never negative, so f(x) is never below 0 + 1 = 1, and the right half alone still climbs through every height from 1 upward.
Answer
  • On all real numbers f is not a one-to-one function, because f(0) = 5 and f(4) = 5.
  • Restricted domain: x ≥ 2, or [2, ∞).
  • Range: y ≥ 1, or [1, ∞).
  • On this restricted domain f is a one-to-one function, so it has an inverse function.
Double-check A second way, with algebra instead of the picture. Ask which inputs give the output 5: solve (x − 2)2 + 1 = 5. Subtract 1 from both sides: (x − 2)2 = 4. Two numbers square to 4, so x − 2 = 2 or x − 2 = −2, which gives x = 4 or x = 0. On all real numbers that is two inputs. On x ≥ 2 only x = 4 is allowed, so it is one input. The table of the kept half agrees: read along its output row and the numbers only rise, with none appearing twice.

The trap

Cutting at x = 0 out of habit. That works only when the vertex sits on the y-axis, as in x2 or x2 + 5. For (x − 4)2, the inputs 3 and 5 are both positive and both give 1, so x ≥ 0 fixes nothing. Find the vertex first, every time, and cut at its x value h.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A plus sign inside, and the left half

f(x) = (x + 3)2 − 2. Cut the domain so that f is a one-to-one function, this time keeping the left half. Give the restricted domain and the range. In plain words: find the turning point, then keep the inputs at or to the left of it.

Show the steps and the answer
−3(−∞, −3]
The restricted domain x ≤ −3: a filled dot at −3 and shading to the left.
input xoutput f(x)−67−52−4−1−3−2↑ solve: output given, read every input above it
On the left half the output −1 appears once, under the input −4.
  1. Rewrite x+3 as x−(−3). So h=−3 and k=−2. The vertex is (−3,−2).The form a(x − h)2 + k has a subtraction inside, so a plus 3 means h = −3. Plug it in to confirm: f(−3) = (−3 + 3)2 − 2 = 0 − 2 = −2.
  2. Test a mirrored pair: f(−4)=(−4+3)2−2=(−1)2−2=1−2=−1, and f(−2)=(−2+3)2−2=12−2=1−2=−1.−4 and −2 are each 1 unit from −3, on opposite sides.
  3. Keep the left half: x≤−3, or (−∞,−3].The left half is the inputs at or to the left of the vertex. The square bracket sits on −3 because the vertex stays in.
  4. Write the range: y≥−2, or [−2,∞).a = 1 is positive, so the parabola opens up and its lowest output is k = −2. Moving left from the vertex, the left half climbs through every height above −2.
Answer
  • Restricted domain: x ≤ −3, or (−∞, −3].
  • Range: y ≥ −2, or [−2, ∞).
Double-check In the table of the kept half, no number appears twice in the output row. The output −1 from step 2 sits under the input −4 alone, because −2 is to the right of the vertex and is not an allowed input.

2 Finding the inverse of a quadratic on a cut domain

about 4 minOpen the full lessonOnly this lesson

The rule

For f(x)=a(x−h)2+k on the restricted domain x≥h, the inverse function is f−1(x)=h+(x−k)÷a.

On the restricted domain x≤h it is f−1(x)=h−(x−k)÷a. The domain of f−1 is the range of f, and the range of f−1 is the restricted domain of f.

How

  1. Write y in place of f(x), and write the restricted domain (the cut domain) beside it as a note, for example x ≥ 3.
  2. Swap x and y everywhere: in the equation and in the note. The note x ≥ 3 becomes y ≥ 3, because y now stands for the old inputs.
  3. Solve for y. Undo the outside steps first, in backward order: the number added or subtracted, then the number multiplying, until the squared part stands alone.
  4. Take the square root of both sides and write ± in front of the root. Both signs are candidates at this point.
  5. Choose the sign by reading the note. If the note says y ≥ h, keep the plus sign. If it says y ≤ h, keep the minus sign.
  6. Finish getting y alone, then rename y as f⁻¹(x).
  7. State the domain of f⁻¹. It is the range of f: the outputs of f are the inputs of f⁻¹.
  8. Check with one number that is not the vertex. Put it through f, put the result through f⁻¹, and confirm you are back where you started.

Worked example

Worked example

A shifted parabola with the right half kept

Find the inverse function of f(x) = (x − 3)2 + 2 on the restricted domain x ≥ 3, and state the domain of the inverse.

Show the steps and the answer
5f: subtract 3,square, add 2f⁻¹: subtract2, take theroot, add 3firstsecond65
The number 5 goes through f and comes out as 6, then goes through f⁻¹ and comes back as 5.
  1. Say what is asked. f takes an input that is 3 or more and gives an output. You want the rule that takes each output back to the input that made it.That is what an inverse function does: it runs f backward.
  2. Write y=(x−3)2+2, with the note x≥3.y is a shorter name for the output f(x), and the note keeps the restricted domain in view.
  3. Swap x and y: x=(y−3)2+2, with the note y≥3.The inverse trades the roles of input and output. The note swaps too, since y now stands for the old inputs.
  4. Subtract 2 from both sides: x−2=(y−3)2.Adding 2 was the last thing f did, so it is the first thing to undo. This leaves the squared bracket alone.
  5. Take the square root of both sides: y−3=±x−2.Two numbers have the same square, so the root step must offer both signs for now.
  6. Choose the sign. The note says y ≥ 3, so y − 3 is 0 or more. Keep the plus sign: y−3=x−2.The symbol √ never gives a negative number, so the plus root matches a quantity that is 0 or more. The minus root would make y − 3 negative for every x above 2, which the note forbids.
  7. Add 3 to both sides: y=3+x−2. Rename y: f−1(x)=3+x−2.y is now alone, and y is the output of the inverse.
  8. State the domain of the inverse: x≥2.The inverse takes the outputs of f as its inputs. A square is 0 or more, so (x − 3)2 + 2 is 2 or more. The root agrees: x − 2 must not be negative.
Answer
  • f⁻¹(x)=3+x−2
  • Domain of f⁻¹: x ≥ 2, which is [2, ∞)
  • Range of f⁻¹: y ≥ 3, the restricted domain of f
Double-check Send a number on a round trip. Start with 5, which is in the restricted domain. f(5) = (5 − 3)2 + 2 = 4 + 2 = 6. Then f⁻¹(6) = 3 + 6−2 = 3 + 4 = 3 + 2 = 5. You are back at 5. The other sign fails: 3 − 4 = 1, and 1 is not in x ≥ 3. A second trip: f(7) = 42 + 2 = 18, and f⁻¹(18) = 3 + 16 = 3 + 4 = 7.

The trap

Writing the plus root out of habit. The root step always produces ±, and the plus sign is right only when the right half of the parabola was kept. When the restricted domain is x ≤ h, the answer needs the minus sign. To avoid the mistake, carry the domain note through the swap, read it before you choose the sign, and test one number that is not the vertex.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

The left half, so the minus sign

Find the inverse function of f(x) = x2 − 4 on the restricted domain x ≤ 0, and state its domain.

Show the steps and the answer
(−4, 0)(−3, −1)(5, −3)domainrange−448−4−22
The graph of −x+4 starts at x = −4 and never rises above 0, so every output lands in the kept half x ≤ 0.
  1. Say what is asked: f squares an input that is 0 or less, then subtracts 4. Find the rule that returns that input, which is 0 or negative.The answers of the inverse must land back in x ≤ 0, the half that was kept.
  2. Write y=x2−4, with the note x≤0. Swap: x=y2−4, with the note y≤0.The letters trade places, and the note now speaks about y.
  3. Add 4 to both sides: x+4=y2.Subtracting 4 was the last step of f, so adding 4 undoes it and leaves the square alone.
  4. Take the square root of both sides: y=±x+4.Both signs are candidates until the note is read.
  5. Choose the sign. The note says y≤0, so keep the minus sign: y=−x+4. Rename: f−1(x)=−x+4.x+4 is 0 or more, so its negative is 0 or less for every x in the domain. The plus root is above 0 for every x except −4.
  6. State the domain: x≥−4.x2 is 0 or more, so the outputs of f are −4 or more. The root agrees: x + 4 must be 0 or more.
Answer
  • f⁻¹(x)=−x+4
  • Domain of f⁻¹: x ≥ −4, which is [−4, ∞)
Double-check f(−3) = 9 − 4 = 5, then f⁻¹(5) = −5+4 = −9 = −3. The plus root would give 3, which is not in x ≤ 0. Again with −1: f(−1) = 1 − 4 = −3, then f⁻¹(−3) = −−3+4 = −1 = −1.

3 Inverses of other polynomials

about 4 minOpen the full lessonOnly this lesson

The rule

A cubic of the form f(x)=a(x−h)3+k, with a≠0, is a one-to-one function on all real numbers, so it has an inverse function with no restricted domain.

To find it: write y=f(x), swap x and y, and solve for y, using a cube root to undo the cube. A cube root has one value and takes no ± sign. The result is f−1(x)=(x−ka)3+h, with domain (−∞,∞) and range (−∞,∞).

How

  1. Look at the shape. If x appears once, inside a single cube, the function is x3 shifted, stretched or flipped. It is one-to-one and needs no cut.
  2. Write y in place of f(x).
  3. Swap x and y. The equation now describes the inverse.
  4. Undo whatever sits outside the cube, last thing done first: move an added or subtracted number to the other side, then divide or multiply away the number in front.
  5. With the cube alone on its side, take the cube root of both sides. Write no ± sign.
  6. If anything is still attached to y, such as y − 2, undo it. That number lands outside the root.
  7. Rename y as f−1(x). State the domain and the range: both are all real numbers.
  8. Check with a number. Put an input into f, feed the output into f−1, and confirm that the input comes back.

Worked example

Worked example

The inverse of a stretched and raised cubic

Find the inverse function of f(x) = 2x3 + 6, and state its domain and range.

Show the steps and the answer
input xoutput f(x) = 2x³ + 6−2−10−140618222↓ evaluate: input given, read the output below it
Every output in the bottom row appears once, so each one can be traced back to a single input.
2f: cube,double, add 6f inverse:subtract 6,halve, cuberootfirstsecond222
The second machine reverses the first, step by step, so the input 2 comes back out.
  1. Say what the question asks: build the rule that takes each output of f back to the one input it came from.An inverse function runs the original function backward. If f turns 2 into 22, the inverse must turn 22 into 2.
  2. Check the shape: x appears once, inside one cube. This is x3 stretched by 2 and raised by 6.A stretched and raised copy of x3 still meets every horizontal line once, so f is a one-to-one function and no restricted domain is needed.
  3. Write y=2x3+6.y is the name of the output. Naming it makes the swap in the next step visible.
  4. Swap x and y: x=2y3+6.The inverse trades the roles of input and output, so the two letters trade places.
  5. Subtract 6 from both sides: x−6=2y3.f cubes first, then doubles, then adds 6. Adding 6 was done last, so it is undone first. This step clears everything from the right side except the term holding y.
  6. Divide both sides by 2: x−62=y3.Doubling is the next thing to undo. This step leaves the cube alone on its side, ready for the cube root.
  7. Take the cube root of both sides: y=(x−62)3.The cube root undoes the cube. Only one number has a given cube, so there is one answer and no ± sign.
  8. Rename y: f−1(x)=(x−62)3. Domain: (−∞,∞). Range: (−∞,∞).f accepts every real number and its outputs cover every real number. The inverse's inputs are f's outputs, and the inverse's outputs are f's inputs, so both lists are all real numbers.
Answer
  • f−1(x)=∛(x−62)
  • Domain: (−∞, ∞)
  • Range: (−∞, ∞)
Double-check A round trip with numbers. In the table, the column under 2 shows f(2) = 2 · 8 + 6 = 22. Then f−1(22) = ∛(22−62) = ∛(162) = 83 = 2, the starting input. A negative input works too: f(−1) = 2 · (−1) + 6 = 4, and f−1(4) = ∛(4−62) = ∛(−1) = −1. A second way to the formula: f cubes, doubles, then adds 6, so the reverse is subtract 6, halve, then cube root, which is the same rule.

The trap

The most common mistake is carrying square root habits into cube roots: writing ± in front of the cube root, or cutting the domain as if the cubic were a parabola. A cube root has one value. 83 is 2 only, because (−2)3 is −8 and not 8. Before writing ±, ask whether the power being undone is even or odd. Only an even power loses the sign.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A negative number in front

Find the inverse function of f(x) = 1 − 2x3.

Show the steps and the answer
  1. Write y = 1 − 2x3, then swap x and y: x=1−2y3.The swap describes the inverse.
  2. Subtract 1 from both sides: x−1=−2y3.The 1 is not attached to the cube, so it moves first. The minus sign stays with the 2.
  3. Divide both sides by −2: x−1−2=y3.The cube is multiplied by −2, so dividing by −2 leaves the cube alone.
  4. Tidy the sign: x−1−2=1−x2, so 1−x2=y3.Multiplying the top and the bottom of a fraction by −1 does not change its value: the top x − 1 becomes 1 − x and the bottom −2 becomes 2.
  5. Take the cube root of both sides and rename: f−1(x)=(1−x2)3.The cube is alone, and the cube root has one value.
Answer
  • f−1(x)=∛(1−x2)
  • Domain: (−∞, ∞)
  • Range: (−∞, ∞)
Double-check f(2) = 1 − 2 · 8 = 1 − 16 = −15, and f−1(−15) = ∛(1−(−15)2) = ∛(162) = 83 = 2. Also f(−1) = 1 − 2 · (−1) = 3, and f−1(3) = ∛(1−32) = ∛(−1) = −1.

4 Radical functions and their domains

about 3 minOpen the full lessonOnly this lesson

The rule

Square root (and every even root): f(x)=ax+b gives a real number only when ax+b≥0.

Solve that inequality. Its solution is the domain.
Cube root (and every odd root): g(x)=(ax+b)3 gives a real number for every x. Its domain is (−∞,∞).

How

  1. Find the root sign and name it: square root (even) or cube root (odd). These steps are for an inside of the form ax + b with a ≠ 0.
  2. If it is a cube root, stop: a cube root accepts every real number, so the domain is every real number, (−∞, ∞).
  3. If it is a square root, copy everything under the root sign and write: inside ≥ 0.
  4. Solve the inequality for x the way you solve an equation: undo the adding or subtracting first, then undo the multiplying. If you multiply or divide both sides by a negative number, flip the sign.
  5. Write the domain as an inequality and as an interval. When the root is not the bottom of a fraction, the endpoint gets a square bracket, because an inside of 0 is allowed: 0 = 0.
  6. Check with three numbers: the endpoint (the inside should be 0), one number in the domain (the inside should be positive), and one number outside it (the inside should be negative).

Worked example

Worked example

The domain of a square root function

Find the domain of f(x) = 2x+6.

Show the steps and the answer
−3failsworks[−3, ∞)
The test input 5 sits in the shaded domain of 2x+6 and the test input −4 sits outside it.
  1. Say what the question asks. Find the domain means: find every x you can put into f and get a real number out.The domain is the set of inputs the function accepts.
  2. Name the root. It is a square root, and the inside is 2x+6.A square root is an even root, so its inside may not be negative. A cube root would have no condition at all.
  3. Write the condition: 2x+6≥0.This sentence says the inside is 0 or more, which is exactly what the square root needs.
  4. Subtract 6 from both sides: 2x≥−6.Subtracting the same number from both sides keeps an inequality true, and it leaves the x term alone on the left.
  5. Divide both sides by 2: x≥−3.2 is positive, so the sign does not flip. This step finds the edge of the domain: −3 is the one input that makes the inside exactly 0, and every x to its right makes the inside positive.
  6. Plug the edge back in: 2·(−3)+6=−6+6=0, and 0=0.The edge gives a real output, so −3 belongs to the domain and gets a square bracket.
  7. Write the domain as an interval: [−3,∞).The square bracket at −3 says −3 is included. Infinity always gets a round bracket because it is never reached.
Answer
  • Domain: x ≥ −3
  • Interval notation: [−3, ∞)
Double-check Test a number on each side of −3. In the domain, x = 5: 2 · 5 + 6 = 16 and 16 = 4, a real number. Outside it, x = −4: 2 · (−4) + 6 = −2, and −2 is not a real number. The graph agrees: the curve starts at (−3, 0) and nothing is drawn to its left.

The trap

Writing x ≥ 0 out of habit. The condition belongs to the whole inside, not to x alone. For f(x) = 2x+6, the answer x ≥ 0 throws away every input from −3 up to, but not including, 0, and those inputs work: x = −1 gives 4 = 2. To avoid it, copy everything under the root sign first, write ≥ 0 after it, and only then solve.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A negative number multiplying x

Find the domain of f(x) = 10−2x.

Show the steps and the answer
5(−∞, 5]
The domain of 10−2x ends at the filled dot at 5 and runs left forever.
00252 < 5: 5 is further right−2−5times −1: −2 > −5, the order reversed
2 is less than 5, but −2 is greater than −5.
  1. Say what the question asks: find every x that f accepts.The domain is the set of allowed inputs.
  2. Name the root: a square root with inside 10−2x. Write 10−2x≥0.The inside of a square root must be 0 or more.
  3. Subtract 10 from both sides: −2x≥−10.Undo the adding first. The x term keeps its negative sign.
  4. Divide both sides by −2 and flip the sign: x≤5.Dividing by a negative number reverses the order of numbers, so ≥ becomes ≤. And −10 ÷ (−2) = 5, since a negative divided by a negative is positive. This finds the edge: 5 is the one input that makes the inside exactly 0.
  5. Plug the edge back in: 10−2·5=0, and 0=0.The edge gives a real output, so it is included.
  6. Write the interval: (−∞,5].x ≤ 5 means everything to the left of 5, with 5 included. The domain runs left this time.
Answer
  • Domain: x ≤ 5
  • Interval notation: (−∞, 5]
Double-check Solve a second way that needs no flip: add 2x to both sides of 10 − 2x ≥ 0 to get 10 ≥ 2x, then divide by 2 to get 5 ≥ x, which is the same as x ≤ 5. Test x = 3: 10 − 6 = 4 and 4 = 2. Test x = 6: 10 − 12 = −2, and −2 is not a real number.

5 Inverses of rational functions

about 5 minOpen the full lessonOnly this lesson

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.

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.

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.

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.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 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.

6 A function and its inverse undo each other

Open the full lessonOnly this lesson

The rule

Two functions f and g are inverses of each other exactly when g(f(x))=x for every x in the domain of f, and f(g(x))=x for every x in the domain of g.

Then g=f−1, the domain of g is the range of f, the range of g is the domain of f, and the point (a, b) is on the graph of f exactly when (b, a) is on the graph of g. The two graphs are mirror images across the line y=x.

How

  1. Write the domain beside each function, including any cut. The domains decide the last step of the check.
  2. Build f(g(x)): copy the rule of f, and wherever f has x, write the whole rule of g in parentheses.
  3. Tidy up. Squaring undoes a square root, cubing undoes a cube root, and opposite steps such as + 3 and − 3 cancel. The result must be exactly x, with nothing left over.
  4. Build g(f(x)) the same way, with the whole rule of f inside g, and tidy up.
  5. If a square root of a square appears, such as x2, write it as |x| first. Then use the domain to decide whether |x| is x or −x.
  6. If both orders give x, the two functions are inverses. Say where each result holds: f(g(x)) = x on the domain of g, and g(f(x)) = x on the domain of f.
  7. Check with a number. Pick an allowed input a, compute b = f(a), and confirm that g(b) = a. The points (a, b) and (b, a) are mirror images across y = x.

Worked example

Worked example

Checking both orders for a cut parabola and its square root function

Let f(x) = x2 + 3 on the restricted domain x ≥ 0, and let g(x) = x−3. Show that g is the inverse function of f by checking both orders, and name a pair of mirrored points.

Show the steps and the answer
2f: square,then add 3g: subtract 3,then take thesquare rootfirstsecond72
The input 2 goes through f and becomes 7, then goes through g and comes out as 2 again.
  1. Say what the question asks. Feed the output of g into f, then feed the output of f into g. Each time the result must be the x you started with.Inverses must undo each other in both orders. One order alone can pass by accident.
  2. Write the domains. f accepts x≥0, which is the cut. For g, the inside of the root must be 0 or more: x−3≥0, so x≥3.Solving x − 3 ≥ 0 finds the inputs the root accepts. At x = 3 the inside is 0, which is allowed. At x = 2 the inside is −1, which is not.
  3. Build the first order: f(g(x))=(x−3)2+3.f(g(x)) means g works first. The whole rule of g goes where f has x.
  4. Square the root: (x−3)2=x−3.Squaring undoes a square root when the inside is 0 or more, and x ≥ 3 makes x − 3 at least 0.
  5. Finish: x−3+3=x. So f(g(x))=x for every x≥3.−3 and + 3 add to 0. The result holds on the domain of g, the function that worked first.
  6. Build the second order: g(f(x))=(x2+3)−3=x2.Now f works first, so the whole rule of f goes where g has x, and + 3 − 3 cancels under the root.
  7. Write the root of a square with bars: x2=|x|.The root sign always gives the answer that is 0 or more. For example (−5)2 = 25 = 5, not −5.
  8. Use the domain of f. Since x≥0,|x|=x. So g(f(x))=x for every x≥0.The bars change nothing on a number that is already 0 or more. This is the step the cut domain was made for.
  9. Name mirrored points. f(2)=22+3=7, so (2, 7) is on the graph of f. Swap the numbers: (7, 2) is on the graph of g, and g(7)=7−3=4=2 agrees.If f sends a to b, the inverse sends b to a, so every point (a, b) on f has the partner (b, a) on the inverse.
Answer
  • f(g(x)) = x for every x ≥ 3
  • g(f(x)) = x for every x ≥ 0
  • So g = f⁻¹ on these domains. The point (2, 7) on f mirrors to (7, 2) on g.
Double-check Use numbers in both orders. Start with 4: f(4) = 16 + 3 = 19, then g(19) = 16 = 4. Start with 12: g(12) = 9 = 3, then f(3) = 9 + 3 = 12. Both numbers came back. The domains also match: the smallest output of f is f(0) = 3, so the range of f is [3, ∞), which is exactly the domain of g.

The trap

Checking one order only, or dropping the domain. With f(x) = x2 on all real numbers and g(x) = x, the order f(g(x)) = (x)2 = x works, yet g(f(−3)) = 9 = 3, not −3. Always work both orders, write x2 as |x|, and write the domain beside each result.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

A cubic and a cube root function

Show that f(x) = 2x3 + 1 and g(x) = ∛(x−12) are inverses. Does either one need a restricted domain?

Show the steps and the answer
(0, 1)(1, 0)(1, 3)(3, 1)(−1, −1)−4−224−4−224
The solid cubic and the dashed cube root trade the numbers of each point.
  1. Write the domains. Both accept every real number.A cube root function takes negative numbers too, and this cubic is a one-to-one function without any cut.
  2. f(g(x))=2((x−12)3)3+1.The whole rule of g goes where f has x.
  3. Cube the cube root: 2·x−12+1.Cubing undoes a cube root for every real number.
  4. 2·x−12=x−1, so the result is (x−1)+1=x.Twice a half of something is the something, and −1 and + 1 cancel.
  5. g(f(x))=((2x3+1)−12)3=(2x32)3=(x3)3.The whole rule of f goes where g has x. Then + 1 − 1 cancels and 2 ÷ 2 = 1.
  6. (x3)3=x for every real x, with no absolute value bars.A cube keeps the sign of its number: (−2)3 = −8 and ∛(−8) = −2. So the cube root hands back the original number, negative or not.
Answer
  • f(g(x)) = x and g(f(x)) = x for every real x
  • They are inverses, and no restricted domain is needed.
Double-check Try a positive and a negative number. f(2) = 2 · 8 + 1 = 17, and g(17) = ∛(162) = 83 = 2. f(−1) = −2 + 1 = −1, and g(−1) = ∛(−22) = ∛(−1) = −1. Both came back.

7 Quick checks for the whole unit

8 questions

Quick check 1 of 8

Where do you cut the domain of f(x) = (x − 4)2 + 1 so that it becomes a one-to-one function?

Show the steps and the answer
Answer
  • At the vertex, x = 4. Keep x ≥ 4 or keep x ≤ 4.
  • On either half, each output comes from only one input.

Quick check 2 of 8

f(x) = x2 + 6 with the restricted domain x ≤ 0. What is f−1(x)?

Show the steps and the answer
Answer
  • f−1(x) = −x−6, for x ≥ 6
  • The minus sign is there because the inverse must give back inputs that are 0 or less. Check: f(−2) = 10 and −10−6 = −2.

Quick check 3 of 8

Find the inverse of f(x) = x3 + 7. Is a cut needed?

Show the steps and the answer
Answer
  • f−1(x)=∛(x−7)
  • No cut is needed, because this cubic is already a one-to-one function. Check: f(1) = 8 and ∛(8 − 7) = 1.

Quick check 4 of 8

Find the domain of f(x) = 3x+12.

Show the steps and the answer
Answer
  • x ≥ −4, or [−4, ∞)
  • The inside must be 0 or more: 3x + 12 ≥ 0 gives 3x ≥ −12, so x ≥ −4.

Quick check 5 of 8

What is the domain of g(x) = ∛(x − 5)?

Show the steps and the answer
Answer
  • Every real number, (−∞, ∞)
  • A cube root accepts negative insides: g(−3) = ∛(−8) = −2.

Quick check 6 of 8

Find the inverse of f(x) = 3xx+2.

Show the steps and the answer
Answer
  • f−1(x) = 2x3−x, with x ≠ 3
  • Swap to get x = 3yy+2, clear the fraction to get xy + 2x = 3y, collect y to get 2x = y(3 − x), then divide. Check: f(4) = 126 = 2 and f−1(2) = 41 = 4.

Quick check 7 of 8

The point (2, 9) is on the graph of f. Name a point that must be on the graph of f−1.

Show the steps and the answer
Answer
  • (9, 2)
  • The inverse swaps input and output, which reflects the point across the line y = x.

Quick check 8 of 8

f(x) = 2x − 6 and g(x) = x+62. Compute f(g(x)) and g(f(x)). Are f and g inverses?

Show the steps and the answer
Answer
  • f(g(x))=2·x+62−6=x+6−6=x
  • g(f(x))=2x−6+62=2x2=x
  • Yes. Both orders return x.