Composite and inverse functions

Composite and inverse functions

Spec B8 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • fg(x)=f(g(x))fg(x)=f(g(x)): apply gg first, then ff. In general fg≠gffg\ne gf.
  • The domain of fgfg comes from the inner function gg; find the composite first.
  • The inverse f−1f^{-1} exists only if ff is one-to-one: make xx the subject.
  • The domain of f−1f^{-1} is the range of ff, and vice versa.
  • The graph of f−1f^{-1} is the reflection of ff in y=xy=x.

Composite functions

A composite function applies one function after another. fg(x)fg(x) means f(g(x))f(g(x)): apply gg first, then ff.

In general fg≠gffg\ne gf. The function nearest to xx is applied first.

−3−2−11235101520xyfg(x) = 2x² + 1gf(x) = (2x + 1)²
With f(x) = 2x + 1 and g(x) = x², fg(x) = 2x² + 1 and gf(x) = (2x + 1)²: they are different
  • fg(x)fg(x)f(g(x))f(g(x)): gg first, then ff

Worked example

For f(x)=3x−2f(x)=3x-2 and g(x)=x2+1g(x)=x^2+1, find fg(x)fg(x) and gf(x)gf(x).

If f(x)=x+1f(x)=x+1 and g(x)=2xg(x)=2x, what is fg(3)fg(3)?

Domain and range of a composite

Find the composite first, then state the domain from the inner function and the range from the values the whole expression can take.

The domain of fgfg is the set of xx in the domain of gg for which g(x)g(x) lies in the domain of ff.

Simplifying a composite can hide a restriction, so write the domain beside the answer.

−112345678910−11234xy(2, 0)fg(x) = √(x − 2)
f(x) = √x and g(x) = x − 2 give fg(x) = √(x − 2), which exists only for x ≥ 2 (range y ≥ 0)
  • Domain of fgfgxx in the domain of gg, with g(x)g(x) in the domain of ff

Worked example

Let f(x)=x+5f(x)=\sqrt{x+5} for x≥−5x\ge-5 and g(x)=x2−4g(x)=x^2-4. Find gf(x)gf(x), with its domain and range.

f(x)=xf(x)=\sqrt{x} for x≥0x\ge0 and g(x)=x−4g(x)=x-4. What is the domain of fgfg?

Inverse functions

The inverse f−1f^{-1} undoes ff. It exists only if ff is one-to-one.

f−1(f(x))=xf^{-1}(f(x))=x and f(f−1(x))=xf(f^{-1}(x))=x.

One-to-one means each output comes from exactly one input. A many-to-one function needs its domain restricted first.

To find the inverse, write y=f(x)y=f(x), make xx the subject, then replace yy by xx.

  1. 1

    Write y = f(x)

    give the output a letter

  2. 2

    Make x the subject

    rearrange the equation

  3. 3

    Swap the letters

    replace y by x

Finding an inverse

Worked example

Find the inverse of h(x)=2x+1x−3h(x)=\frac{2x+1}{x-3}.

What is the inverse of f(x)=2x−5f(x)=2x-5?

Domain and range of an inverse

They swap: the domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff.

For f(x)=(x−2)2+3f(x)=(x-2)^2+3 with x≥2x\ge2, the inverse is f−1(x)=2+x−3f^{-1}(x)=2+\sqrt{x-3}.

Use the positive root because the original domain was x≥2x\ge2. The original domain tells you which root to keep.

2468101224681012xy(2, 3)(3, 2)f(x), x ≥ 2f⁻¹(x), x ≥ 3y = x
f(x) = (x − 2)² + 3 for x ≥ 2 and its inverse 2 + √(x − 3): a reflection in y = x, with domain and range swapped

f(x)=(x−2)2+3f(x)=(x-2)^2+3

Domain:
x≥2x\ge2
Range:
f(x)≥3f(x)\ge3

f−1(x)=2+x−3f^{-1}(x)=2+\sqrt{x-3}

Domain:
x≥3x\ge3
Range:
f−1(x)≥2f^{-1}(x)\ge2

f(x)=x2+1f(x)=x^2+1 for x≥0x\ge0. What is the domain of f−1f^{-1}?

Graphs of inverses

The graph of y=f−1(x)y=f^{-1}(x) is the reflection of y=f(x)y=f(x) in the line y=xy=x.

Swapping xx and yy swaps the coordinates of every point.

If ff is increasing, the graphs of ff and f−1f^{-1} can only meet on y=xy=x, so solve f(x)=xf(x)=x. For f(x)=x+5f(x)=\sqrt{x+5} this gives x2−x−5=0x^2-x-5=0, so x=1+212x=\frac{1+\sqrt{21}}{2} (reject the negative root).

−6−4−2246−6−4−2246xy(2.79, 2.79)y = f(x)y = f⁻¹(x)y = x
A function and its inverse are reflections in y = x.

The point (2,7)(2,7) lies on y=f(x)y=f(x). Which point lies on y=f−1(x)y=f^{-1}(x)?

Try an exam question

The function ff is defined by f(x)=x−1x+2f(x)=\frac{x-1}{x+2} for x≠−2x\ne-2. Find f−1(x)f^{-1}(x) and state its domain.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find fg(x)fg(x).

1 mark, marked against the mark scheme

Revision notes