2.7 Composite and inverse functions

2.7 Composite and inverse functions

IB Maths: Applications and Interpretation HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)): apply gg first, then ff. In general f∘g≠g∘ff\circ g\neq g\circ f.
  • The inverse f−1f^{-1} reverses ff; it exists only if ff is one-to-one.
  • (f∘f−1)(x)=(f−1∘f)(x)=x(f\circ f^{-1})(x)=(f^{-1}\circ f)(x)=x.
  • To find f−1f^{-1}: write y=f(x)y=f(x), make xx the subject, then swap yy for xx.
  • The domain of f−1f^{-1} is the range of ff; the graphs are reflections in y=xy=x.
  • A many-to-one function has an inverse once its domain is restricted.

Composite functions

A composite function applies one function after another: (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)) applies gg first.

The order matters: in general f∘g≠g∘ff\circ g\neq g\circ f. The output of gg must lie in the domain of ff.

  • (f∘g)(x)(f\circ g)(x)f(g(x))f(g(x)): gg first

Worked example

Let f(x)=2x+3f(x)=2x+3 and g(x)=x2g(x)=x^2. Find (f∘g)(x)(f\circ g)(x) and (g∘f)(x)(g\circ f)(x), then solve (f∘g)(x)=11(f\circ g)(x)=11.

With f(x)=2x+3f(x)=2x+3 and g(x)=x2g(x)=x^2, what is (g∘f)(1)(g\circ f)(1)?

Composites in context

In a model each function is one step of a process, and the composite links the start to the end.

If a taxi fare in EUR is f(d)=3+1.2df(d)=3+1.2d and conversion to AED is g(x)=4xg(x)=4x, the fare in AED is (g∘f)(d)=4(3+1.2d)=12+4.8d(g\circ f)(d)=4(3+1.2d)=12+4.8d.

Check the order by asking what goes into the first function: distance dd goes into ff, so ff is the inner function. Use your GDC to evaluate a composite at a value, and interpret the result with units.

  1. 1

    Distance dd (km)

    input

  2. 2

    ff: fare in EUR

    3+1.2d3+1.2d

  3. 3

    gg: convert to AED

    4x4x

  4. 4

    Fare in AED

    12+4.8d12+4.8d

g∘fg\circ f: distance goes through ff first, then gg.

With f(d)=3+1.2df(d)=3+1.2d (EUR) and g(x)=4xg(x)=4x (EUR to AED), what is the fare in AED for 5 km?

Inverse functions

The inverse f−1f^{-1} reverses ff, and its graph is the reflection of ff in the line y=xy=x.

If f(a)=bf(a)=b then f−1(b)=af^{-1}(b)=a. It exists only if ff is one-to-one. Then (f∘f−1)(x)=(f−1∘f)(x)=x(f\circ f^{-1})(x)=(f^{-1}\circ f)(x)=x.

To find f−1f^{-1}: write y=f(x)y=f(x), make xx the subject, then replace yy by xx. The domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff.

−6−4−22468−6−4−22468xy(−3, −3)y = f(x)y = f⁻¹(x)y = x
A function and its inverse are reflections in the line y=xy=x.

Worked example

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

If f(4)=9f(4)=9, what is f−1(9)f^{-1}(9)?

Domain restriction

A many-to-one function has no inverse, but restricting its domain makes it one-to-one.

f(x)=(x−3)2−2f(x)=(x-3)^2-2 has f(2)=f(4)=−1f(2)=f(4)=-1, so it has no inverse on R\mathbb{R}. Restrict to x≥3x\geq3 (or x≤3x\leq3) and it is one-to-one.

For x≤3x\leq3 you take the negative root instead.

−11234567−22468xyx = 3(3, −2)(2, −1)(4, −1)y = (x − 3)² − 2
Two inputs (2 and 4) give the same output, so restrict to x≥3x\geq3.

Worked example

Find the inverse of f(x)=(x−3)2−2f(x)=(x-3)^2-2 for x≥3x\geq3.

Why does f(x)=x2f(x)=x^2 on R\mathbb{R} have no inverse?

Inverses in context

An inverse answers the reverse question: it turns an output back into the input that produced it.

If f(d)=3+1.2df(d)=3+1.2d gives a fare from a distance, f−1(x)=x−31.2f^{-1}(x)=\frac{x-3}{1.2} gives the distance for a fare.

If V(d)=40001+19e−0.5dV(d)=\frac{4000}{1+19e^{-0.5d}} gives visitors after dd days, then V−1(v)=2ln⁡19v4000−vV^{-1}(v)=2\ln\frac{19v}{4000-v} gives the time to reach vv visitors; V−1(3000)=8.09V^{-1}(3000)=8.09 days. Use logarithms to undo an exponential, or solve V(d)=3000V(d)=3000 on your GDC. State units.

  • f−1(fare)f^{-1}(\text{fare})distance for that fare
  • V−1(visitors)V^{-1}(\text{visitors})days to reach it

With f(d)=3+1.2df(d)=3+1.2d, what distance gives a fare of 15 EUR?

Try an exam question

Let f(x)=3x−5f(x)=3x-5 and g(x)=x2g(x)=x^2. Find (g∘f)(x)(g\circ f)(x) and f−1(x)f^{-1}(x), and hence solve f−1(x)=4f^{-1}(x)=4.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find (f∘g)(x)(f\circ g)(x).

1 mark, marked against the mark scheme

Revision notes