2.7 · AHL · HL onlyPaper 1Paper 3

Composite and inverse functions

In a minute

A feeds one 's output into another: (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)). In a model it chains quantities, such as time to items to cost. An undoes ff, and a parabola gets one once you keep only one side of its vertex.

You'll be able to

  • Form and evaluate (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)), applying the functions in the right order.
  • Build a from two models, interpret it in context, and solve equations it gives with your GDC.
  • Use (f∘f−1)(x)=(f−1∘f)(x)=x(f \circ f^{-1})(x) = (f^{-1} \circ f)(x) = x, and find f−1(x)f^{-1}(x) and its .
  • Restrict the domain of a quadratic so it has an inverse, choose the right sign of the square root, and interpret f−1(a)f^{-1}(a) in context.
Before you start2 quick questions on what this builds on
Check yourself
A stone's height is h(t)=50−4.9t2h(t) = 50 - 4.9t^{2} metres after tt seconds. Find h(2)h(2).
Check yourself
A function ff has domain 0≤x≤50 \le x \le 5 and 2≤f(x)≤172 \le f(x) \le 17, and it has an inverse. What is the domain of f−1f^{-1}?

Revise first: 2.2 Function concepts, domain and range

Composite functions and their notation

Think of each function as a machine. Put xx into gg, then put its output, g(x)g(x), into ff. The two machines together make one new function: a .

Learn this
(f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x))

Read f∘gf \circ g as “ff of gg”. The function written next to xx acts first. So in f∘gf \circ g, gg acts first even though ff is written first.

Worked exampleLet f(x)=2x+5f(x) = 2x + 5 and g(x)=x2−3g(x) = x^{2} - 3, for x∈Rx \in \mathbb{R}. Find (f∘g)(4)(f \circ g)(4) and (g∘f)(4)(g \circ f)(4).

Try it first, then reveal one step at a time.

  1. (f∘g)(4)=f(g(4))(f \circ g)(4) = f(g(4)), so start with the inside function: g(4)=42−3=13g(4) = 4^{2} - 3 = 13.
Check yourself
Let f(x)=x+4f(x) = x + 4 and g(x)=3x2g(x) = 3x^{2}, for x∈Rx \in \mathbb{R}. Find (g∘f)(x)(g \circ f)(x).

In 2.2 you converted temperatures with F=1.8C+32F = 1.8C + 32. A composite can chain two conversions into one.

Worked exampleA thermometer reads in kelvin (K). The function g(x)=x−273.15g(x) = x - 273.15 converts xx K to degrees Celsius, and f(x)=1.8x+32f(x) = 1.8x + 32 converts xx degrees Celsius to degrees Fahrenheit. (a) Find (f∘g)(x)(f \circ g)(x). (b) Find (f∘g)(300)(f \circ g)(300) and say what it means.

Try it first, then reveal one step at a time.

  1. (a) gg acts first: (f∘g)(x)=f(x−273.15)=1.8(x−273.15)+32(f \circ g)(x) = f(x - 273.15) = 1.8(x - 273.15) + 32.

A composite only works where the output of gg is an input ff accepts. With f(x)=xf(x) = \sqrt{x} and g(x)=x−7g(x) = x - 7, (f∘g)(3)=f(−4)(f \circ g)(3) = f(-4), which doesn't exist. So g(x)g(x) must lie in the of ff.

Check yourself
Let f(x)=4x−1f(x) = 4x - 1 and g(x)=x2+2g(x) = x^{2} + 2, for x∈Rx \in \mathbb{R}. Find (g∘f)(−1)(g \circ f)(-1).

Composite functions in context

In a model, a composite chains quantities. If gg turns time into a number of items, and ff turns a number of items into a cost, then f∘gf \circ g turns time straight into cost.

The output of gg must be the quantity ff expects as its input, in the same units. Swap the two and the composite usually changes, so say which step happens first.

Worked exampleA bureau changes euros into US dollars. c(x)=1.08xc(x) = 1.08x gives the dollars received for xx euros, and k(x)=x−12k(x) = x - 12 takes off a fee of 1212 units of whatever currency it is applied to. (a) Describe (c∘k)(x)(c \circ k)(x) and (k∘c)(x)(k \circ c)(x) in context. (b) Which is better for the customer, and by how much?

Try it first, then reveal one step at a time.

  1. (a) (c∘k)(x)=c(x−12)=1.08(x−12)(c \circ k)(x) = c(x - 12) = 1.08(x - 12): a fee of 1212 euros is taken first, then the rest is changed into dollars.
Check yourself
A weather balloon is h(t)h(t) metres high tt minutes after launch. The air temperature, in degrees Celsius, at a height of hh metres is T(h)T(h). What does (T∘h)(10)(T \circ h)(10) represent?

A composite model can give an equation you can't solve by hand. Write down the equation, then solve it with your GDC.

Worked exampleA car bought for 26 00026\,000 dollars is worth V(t)=26 000(0.82)tV(t) = 26\,000(0.82)^{t} dollars after tt years. Its yearly insurance costs I(V)=350+0.045VI(V) = 350 + 0.045V dollars when the car is worth VV dollars. (a) Find (I∘V)(t)(I \circ V)(t). (b) Use your GDC to find when the insurance falls to 950950 dollars. Give your answer to 3 s.f.

Try it first, then reveal one step at a time.

  1. (a) VV acts first: (I∘V)(t)=350+0.045×26 000(0.82)t=350+1170(0.82)t(I \circ V)(t) = 350 + 0.045 \times 26\,000(0.82)^{t} = 350 + 1170(0.82)^{t}.
Check yourself
A circular ripple has radius r(t)=0.6t+0.2r(t) = 0.6t + 0.2 metres, tt seconds after a stone lands. Its area is A(r)=πr2A(r) = \pi r^{2}. Find the time when the area of the ripple is 10 m210\text{ m}^{2}, in seconds. Give your answer to 3 s.f.

Inverse functions: undo, then find

In 2.2 you met the f−1f^{-1}. It undoes ff: if f(a)=bf(a) = b, then f−1(b)=af^{-1}(b) = a.

So doing ff and then f−1f^{-1} takes every input back to where it started. The same happens in the other order.

Learn this
(f∘f−1)(x)=(f−1∘f)(x)=x(f \circ f^{-1})(x) = (f^{-1} \circ f)(x) = x

Use this to check an inverse you have found: compose the two and you should get back xx.

To find f−1(x)f^{-1}(x), undo ff with algebra:

1. Write y=f(x)y = f(x).

2. Swap xx and yy. This step earns a method mark, so show it.

3. Rearrange to make yy the subject, and write the result as f−1(x)=…f^{-1}(x) = \ldots.

4. The domain of f−1f^{-1} is the of ff. Check one value: if f(a)=bf(a) = b, then f−1(b)f^{-1}(b) should be aa.

You may rearrange first and swap the letters last instead. Either order gives the same f−1(x)f^{-1}(x).

Worked exampleA taxi fare is F(d)=3.5+2.5dF(d) = 3.5 + 2.5d dollars for a trip of dd km, where d≥0d \ge 0. (a) Find F−1(x)F^{-1}(x). (b) Find F−1(21.5)F^{-1}(21.5) and interpret it.

Try it first, then reveal one step at a time.

  1. (a) Write y=3.5+2.5xy = 3.5 + 2.5x, using xx for the input. Swap xx and yy: x=3.5+2.5yx = 3.5 + 2.5y.
Check yourself
Let f(x)=4x−9f(x) = 4x - 9, for x∈Rx \in \mathbb{R}. Which function gg gives (f∘g)(x)=x(f \circ g)(x) = x?
Worked exampleAn investment is worth A(t)=2000e0.045tA(t) = 2000\mathrm{e}^{0.045t} dollars after tt years, where t≥0t \ge 0. (a) Find A−1(x)A^{-1}(x). (b) State the domain of A−1A^{-1}. (c) Find A−1(3000)A^{-1}(3000) to 3 s.f., and interpret it.

Try it first, then reveal one step at a time.

  1. (a) Swap: x=2000e0.045yx = 2000\mathrm{e}^{0.045y}. Divide by 20002000: e0.045y=x2000\mathrm{e}^{0.045y} = \frac{x}{2000}.
Check yourself
A car park charges P(h)=4+3.2hP(h) = 4 + 3.2h dollars for hh hours. Find P−1(20)P^{-1}(20), the number of hours you can park for 2020 dollars.
Check yourself
Let f(x)=3+8x−1f(x) = 3 + \frac{8}{x - 1}, for x>1x > 1. Find f−1(x)f^{-1}(x).

Restricting the domain

In 2.2 you saw that only a has an inverse. A parabola fails: a horizontal line can meet it twice.

Take f(x)=(x−1)2+2f(x) = (x - 1)^{2} + 2. Both x=−1x = -1 and x=3x = 3 give 66, so f−1(6)f^{-1}(6) would have two answers. On x∈Rx \in \mathbb{R}, ff has no inverse.

Fix this by keeping only one side of the vertex. On x≥1x \ge 1 the graph only rises, so every output comes from one input.

x y O y = x y = 6 (1, 2) (2, 1) y = f(x), x ≥ 1 y = f⁻¹(x)
Keeping x≥1x \ge 1 makes f(x)=(x−1)2+2f(x) = (x - 1)^{2} + 2 one-to-one. Its inverse is the reflection of that half in y=xy = x.

Either side works, but each side gives a different inverse. With x≤1x \le 1, the same ff would have the inverse 1−x−21 - \sqrt{x - 2} instead of 1+x−21 + \sqrt{x - 2}.

1. Find the vertex (complete the square, or use your GDC's minimum or maximum) and keep the side you are given.

2. Swap xx and yy, and rearrange. A square root gives ±\pm: the restricted domain decides the sign. Say why.

3. The domain of f−1f^{-1} is the range of the restricted ff, and the range of f−1f^{-1} is the restricted domain.

Worked exampleLet f(x)=(x+1)2−6f(x) = (x + 1)^{2} - 6. (a) Show that ff has no inverse when its domain is x∈Rx \in \mathbb{R}. (b) The domain is now restricted to x≤−1x \le -1. Find f−1(x)f^{-1}(x).

Try it first, then reveal one step at a time.

  1. (a) f(−3)=(−2)2−6=−2f(-3) = (-2)^{2} - 6 = -2 and f(1)=22−6=−2f(1) = 2^{2} - 6 = -2. Two inputs share an output, so ff is not one-to-one and has no inverse.
Check yourself
Let f(x)=2x2−12x+7f(x) = 2x^{2} - 12x + 7, for x≥kx \ge k. Find the smallest value of kk for which ff has an inverse.
Check yourself
Let h(x)=9−(x−1)2h(x) = 9 - (x - 1)^{2}, for x≥1x \ge 1. Find h−1(x)h^{-1}(x).
Check yourself
For the same function, h(x)=9−(x−1)2h(x) = 9 - (x - 1)^{2} with x≥1x \ge 1, state the domain of h−1h^{-1}.

In a model, the context often restricts the domain for you. Time, length and speed can't be negative.

Worked exampleA car travelling at vv km/h needs d(v)=0.006v2+0.2vd(v) = 0.006v^{2} + 0.2v metres to stop, where v≥0v \ge 0. (a) Explain why dd has an inverse on this domain. (b) Use your GDC to find d−1(50)d^{-1}(50). Give your answer to 3 s.f., and interpret it.

Try it first, then reveal one step at a time.

  1. (a) The vertex of y=0.006v2+0.2vy = 0.006v^{2} + 0.2v is at v=−0.22×0.006≈−16.7v = -\frac{0.2}{2 \times 0.006} \approx -16.7, outside the domain. So for v≥0v \ge 0, dd only increases, and it is one-to-one.

Common mistakes

  • Composing in the wrong order. In (f∘g)(x)(f \circ g)(x) the function next to xx acts first, so substitute g(x)g(x) into ff.
  • Describing a composite in context without saying which step comes first. Say, for example, “the fee is taken before the money is converted”.
  • Leaving ± \pm\sqrt{\ } in f−1(x)f^{-1}(x). Use the restricted domain to reject one sign, and show why.
  • Giving the domain of f−1f^{-1} from its formula, or with the wrong endpoint. It is the range of ff: use ≤\le where ff reaches the endpoint and << where it doesn't.
  • Giving a negative time or speed as f−1(a)f^{-1}(a) in a model. Check each solution against the domain and reject the ones outside it.

Exam tips

  • “Find f−1(x)f^{-1}(x)”: show the line where you swap xx and yy. It earns a method mark even if the algebra slips later.
  • “Describe the meaning of (f∘g)(x)(f \circ g)(x)” or “interpret”: answer in words about the context, saying which step happens first and naming the quantities with units.
  • To find f−1(a)f^{-1}(a) without a formula, solve f(x)=af(x) = a on your GDC. Write down the equation first, then give the value in the domain, to 3 s.f.

Key takeaways

Learn this(f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x))
Learn thisIn (f∘g)(x)(f \circ g)(x), the function next to xx acts first: do gg, then ff. The output of gg must lie in the domain of ff.
Learn thisIn context, (f∘g)(x)(f \circ g)(x) means “do the step gg models, then the step ff models”. Swapping the order usually changes the result.
Learn this(f∘f−1)(x)=x for x in the domain of f−1(f−1∘f)(x)=x for x in the domain of f(f \circ f^{-1})(x) = x \text{ for } x \text{ in the domain of } f^{-1} \qquad (f^{-1} \circ f)(x) = x \text{ for } x \text{ in the domain of } f
Learn thisTo find f−1(x)f^{-1}(x) for a one-to-one ff: write y=f(x)y = f(x), swap xx and yy, then make yy the subject. The domain of f−1f^{-1} is the range of ff.
Learn thisA function has an inverse only if it is one-to-one. A quadratic becomes one-to-one when its domain is restricted to one side of its vertex (h,k)(h, k): x≥hx \ge h or x≤hx \le h.
Learn thisWhen rearranging gives ± \pm\sqrt{\ }, the restricted domain of ff (the range of f−1f^{-1}) decides the sign.

Practise this

12 past-paper questions on Composite and inverse functions in the AI HL bank, each with a mark scheme and a worked explanation.

Practise Composite and inverse functions →