2.5 Composite and inverse functions

2.5 Composite and inverse functions

IB Maths: Analysis and Approaches SL: 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)): gg goes first. Usually f∘g≠g∘ff\circ g\ne g\circ f.
  • The domain of f∘gf\circ g is restricted by the domain of gg and by what ff can accept.
  • Identity: I(x)=xI(x)=x, and (f∘f−1)(x)=(f−1∘f)(x)=x(f\circ f^{-1})(x)=(f^{-1}\circ f)(x)=x.
  • Find f−1f^{-1} by interchanging xx and yy and rearranging; only one-to-one functions have inverses.
  • If (h∘h)(x)=x(h\circ h)(x)=x then hh is self-inverse.

Composite functions

A composite function applies one function and then another: (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)) means gg first, then ff.

Numerically, work from the inside out. With f(x)=3x−1f(x)=3x-1 and g(x)=x2+2g(x)=x^2+2: (f∘g)(2)=f(6)=17(f\circ g)(2)=f(6)=17.

Algebraically, replace every xx in the outer function by the whole inner expression. (g∘f)(x)=(3x−1)2+2=9x2−6x+3(g\circ f)(x)=(3x-1)^2+2=9x^2-6x+3, so order matters. Read f∘gf\circ g right to left.

  1. 1

    Input

    x=2x = 2

  2. 2

    Apply gg

    g(2)=22+2=6g(2)=2^2+2=6

  3. 3

    Apply ff

    f(6)=3×6−1=17f(6)=3\times6-1=17

(f∘g)(2)(f\circ g)(2): gg happens first.

Worked example

f(x)=3x−1f(x) = 3x - 1 and g(x)=x2+2g(x) = x^2 + 2. Find (f∘g)(x)(f \circ g)(x).

With f(x)=3x−1f(x) = 3x - 1 and g(x)=x2+2g(x) = x^2 + 2, what is f(g(1))f(g(1))?

Domain of a composite

For f(g(x))f(g(x)) to exist, xx must be in the domain of gg and g(x)g(x) must be in the domain of ff.

With f(x)=x+5f(x)=\sqrt{x+5}, x≥−5x\ge-5, and g(x)=x2−9g(x)=x^2-9: (f∘g)(x)=x2−4(f\circ g)(x)=\sqrt{x^2-4} needs x≤−2x\le-2 or x≥2x\ge2. And (g∘f)(x)=x−4(g\circ f)(x)=x-4, but only for x≥−5x\ge-5.

Two functions are the same only if they have the same rule and the same domain.

f∘gf\circ g

Rule:
x2−4\sqrt{x^2-4}
Domain:
x≤−2x\le-2 or x≥2x\ge2

g∘fg\circ f

Rule:
x−4x-4
Domain:
x≥−5x\ge-5

f(x)=x+5f(x) = \sqrt{x + 5} and g(x)=x2−9g(x) = x^2 - 9. What is the domain of f∘gf \circ g?

Composites in context

Process stages compose in the order they happen, so the first stage goes on the inside; check the units at each stage.

Bank A deducts a 15 AED fee, then converts at 0.24 euros per dirham: with f(x)=x−15f(x)=x-15 and g(x)=0.24xg(x)=0.24x this is (g∘f)(x)=0.24x−3.6(g\circ f)(x)=0.24x-3.6.

The other order, (f∘g)(x)=0.24x−15(f\circ g)(x)=0.24x-15, would convert first and then take off 15 euros: a different model.

  1. 1

    Start with xx AED

    the amount you send

  2. 2

    Deduct the fee: f(x)=x−15f(x) = x - 15

    in dirhams

  3. 3

    Convert: g(x)=0.24xg(x) = 0.24x

    dirhams to euros

  4. 4

    Result: 0.24x−3.60.24x - 3.6

    euros received

Bank A: the fee comes off first, then the money is converted.

Using (g∘f)(x)=0.24x−3.6(g \circ f)(x) = 0.24x - 3.6, how many euros arrive from 100 AED?

Identity and inverses

Composing a function with its inverse, in either order, gives the identity: xx back again.

The identity function is I(x)=xI(x)=x. So (f∘f−1)(x)=(f−1∘f)(x)=x(f\circ f^{-1})(x)=(f^{-1}\circ f)(x)=x, which checks an inverse: with f(x)=3x−1f(x)=3x-1 and f−1(x)=x+13f^{-1}(x)=\frac{x+1}{3}, f(f−1(x))=xf(f^{-1}(x))=x.

If (h∘h)(x)=x(h\circ h)(x)=x, then hh is self-inverse: h−1=hh^{-1}=h, like h(x)=2x+3x−2h(x)=\frac{2x+3}{x-2}. Here h(4)=5.5h(4)=5.5 and h(5.5)=4h(5.5)=4.

−4−2246810−6−4−2246810xy(4, 5.5)(5.5, 4)y = h(x)y = x
A self-inverse function is symmetric in y=xy=x: (4,5.5)(4,5.5) and (5.5,4)(5.5,4) are both on it.

f(x)=3x−1f(x) = 3x - 1. What is f−1(5)f^{-1}(5)?

Finding an inverse

Write y=f(x)y=f(x), swap xx and yy, then make yy the subject.

An inverse exists only when ff is one-to-one. Example: y=0.24x−3.6→x=0.24y−3.6→f−1(x)=x+3.60.24y=0.24x-3.6\to x=0.24y-3.6\to f^{-1}(x)=\frac{x+3.6}{0.24}. The domain of f−1f^{-1} is the range of ff.

In context the inverse answers the reverse question: how many dirhams give 300 euros?

  1. 1

    Write y=f(x)y=f(x)

  2. 2

    Interchange xx and yy

  3. 3

    Rearrange for yy

    This is f−1(x)f^{-1}(x)

Method

Worked example

The euros received are f(x)=0.24x−3.6f(x) = 0.24x - 3.6 for xx dirhams. How many dirhams give 300 euros?

What is the first step in finding f−1f^{-1} for f(x)=2x+1f(x) = 2x + 1?

Try an exam question

Let f(x)=2x+1f(x)=2x+1 and g(x)=x2−3g(x)=x^2-3. (a) Find (f∘g)(x)(f\circ g)(x). (b) Find f−1(x)f^{-1}(x).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

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

1 mark, marked against the mark scheme

Revision notes