A-level Mathematics

2.10 Composite and inverse functions — Practise

Work through these on your own. For a composite, work from the inside out. For an inverse, make the input the subject and then swap the letters; finish by composing both ways to check. State a domain restriction when the function is not one-to-one on the whole real line.

Both the questions and the answers below come from a set that is checked by computer every time the book is built.

  1. Given f(x)=2x+3f(x) = 2x + 3 and g(x)=x2g(x) = x^2, find f(g(x))f(g(x)).
  2. Given f(x)=2x+3f(x) = 2x + 3 and g(x)=x2g(x) = x^2, find g(f(x))g(f(x)).
  3. Given f(x)=x2+1f(x) = x^2 + 1 and g(x)=3x−1g(x) = 3x - 1, work out f(g(2))f(g(2)).
  4. Find the inverse of f(x)=3x−2f(x) = 3x - 2.
  5. Find the inverse of f(x)=x+1x−2f(x) = \dfrac{x + 1}{x - 2}, where x≠2x \neq 2.
  6. The function f(x)=x2+1f(x) = x^2 + 1 has domain x≥0x \geq 0. Find its inverse.
  7. Find the inverse of f(x)=x3+2f(x) = x^3 + 2.
  8. Given f(x)=2x−1f(x) = 2x - 1, find f(f(x))f(f(x)).
  9. For f(x)=x−2f(x) = \sqrt{x - 2}, state the domain and the range, and work out f(6)f(6).
  10. Explain why f(x)=x2f(x) = x^2 has no inverse function on the whole real line.
  11. Show that f(x)=5x+1f(x) = 5x + 1 and g(x)=x−15g(x) = \dfrac{x - 1}{5} are inverses of each other.
  12. Given f(x)=x2+3f(x) = x^2 + 3 on x≥0x \geq 0, show that g(x)=x−3g(x) = \sqrt{x - 3} is its inverse.
Answers and concise solutions

1. The composite function

Answer: f(g(x))f(g(x)) means ff applied to g(x)g(x): substitute x2x^2 into ff. So f(g(x))=2x2+3f(g(x)) = 2x^2 + 3. The output of gg becomes the input of ff.

2. The composite function

Answer: g(f(x))g(f(x)) substitutes 2x+32x + 3 into gg: g(f(x))=(2x+3)2g(f(x)) = (2x + 3)^2. Notice that f(g(x))=2x2+3f(g(x)) = 2x^2 + 3 is not the same as g(f(x))=(2x+3)2g(f(x)) = (2x + 3)^2, so the order of composition matters.

3. The value

Answer: Work from the inside out. First g(2)=3×2−1=5g(2) = 3 \times 2 - 1 = 5. Then f(5)=52+1=26f(5) = 5^2 + 1 = 26. So f(g(2))=26f(g(2)) = 26.

4. The inverse function

Answer: Write y=3x−2y = 3x - 2 and make xx the subject: y+2=3xy + 2 = 3x, so x=y+23x = \frac{y + 2}{3}. Swap the letters: f−1(x)=x+23f^{-1}(x) = \frac{x + 2}{3}. Check both ways: f−1(f(x))=xf^{-1}(f(x)) = x and f(f−1(x))=xf(f^{-1}(x)) = x.

5. The inverse function

Answer: Write y=x+1x−2y = \frac{x + 1}{x - 2} and cross-multiply: y(x−2)=x+1y(x - 2) = x + 1, so yx−2y=x+1yx - 2y = x + 1. Collect the xx terms: x(y−1)=2y+1x(y - 1) = 2y + 1, so x=2y+1y−1x = \frac{2y + 1}{y - 1}. Swap the letters: f−1(x)=2x+1x−1f^{-1}(x) = \frac{2x + 1}{x - 1}, where x≠1x \neq 1.

6. The inverse function

Answer: Write y=x2+1y = x^2 + 1, so x2=y−1x^2 = y - 1 and x=±y−1x = \pm\sqrt{y - 1}. The domain x≥0x \geq 0 selects the positive root, so x=y−1x = \sqrt{y - 1}. Swap: f−1(x)=x−1f^{-1}(x) = \sqrt{x - 1} with domain x≥1x \geq 1 and range f−1(x)≥0f^{-1}(x) \geq 0.

7. The inverse function

Answer: Write y=x3+2y = x^3 + 2, so x3=y−2x^3 = y - 2 and x=y−23x = \sqrt[3]{y - 2}. Swap the letters: f−1(x)=x−23f^{-1}(x) = \sqrt[3]{x - 2}. A cube has one real root for every input, so no restriction on the domain is needed.

8. The composite function

Answer: Substitute f(x)=2x−1f(x) = 2x - 1 into ff: f(f(x))=2(2x−1)−1=4x−2−1=4x−3f(f(x)) = 2(2x - 1) - 1 = 4x - 2 - 1 = 4x - 3. Applying a function twice is written f2(x)f^2(x).

9. The domain, the range and a value

Answer: The expression under the square root must not be negative, so x−2≥0x - 2 \geq 0 and the domain is x≥2x \geq 2. A square root is never negative, so the range is f(x)≥0f(x) \geq 0. For f(6)f(6): 6−2=4=2\sqrt{6 - 2} = \sqrt{4} = 2. At x=1x = 1 the input inside the root is −1-1, which has no real square root, so x=1x = 1 is outside the domain.

10. A reason, with two inputs

Answer: An inverse needs each output to come from one input. But f(2)=4f(2) = 4 and f(−2)=4f(-2) = 4: two different inputs give the same output, so reversing the function would not know whether to return 22 or −2-2. The function is not one-to-one. Restricting the domain to x≥0x \geq 0 makes it one-to-one, and an inverse then exists.

11. Both compositions

Answer: Compose in both orders. f(g(x))=5(x−15)+1=(x−1)+1=xf(g(x)) = 5\left(\frac{x - 1}{5}\right) + 1 = (x - 1) + 1 = x. And g(f(x))=(5x+1)−15=5x5=xg(f(x)) = \frac{(5x + 1) - 1}{5} = \frac{5x}{5} = x. Both compositions return xx, so each function undoes the other.

12. Both compositions

Answer: g(f(x))=(x2+3)−3=x2g(f(x)) = \sqrt{(x^2 + 3) - 3} = \sqrt{x^2}. Because the domain of ff is x≥0x \geq 0, the value of xx is not negative, so x2=x\sqrt{x^2} = x. In the other direction, f(g(x))=(x−3)2+3=(x−3)+3=xf(g(x)) = \left(\sqrt{x - 3}\right)^2 + 3 = (x - 3) + 3 = x for x≥3x \geq 3. Both compositions return xx, so gg is the inverse of ff.

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.