Further Maths Help.co.uk

Topics

Composite functions

In fg(x), apply g first and then apply f.

Read the lesson: Composite functions

Composition substitutes an entire output into the next function. Brackets keep the substituted expression intact. In general fg and gf differ; composition is not ordinary multiplication.

The domain requires x to belong to g’s domain and g(x) to belong to f’s domain. A simplified formula may conceal one of these requirements. Track the restrictions through the two operations before simplifying.

Worked example

Given f(x) = x² + 1 and g(x) = 2x − 3, find fg(x).

  1. Start with g(x) = 2x − 3.
  2. Substitute into f: f(g(x)) = (2x − 3)² + 1.
  3. Expand 4x² − 12x + 9 + 1.

Answer: 4x² − 12x + 10

Revise first: Expanding and factorising.

Check the inner output before using the outer rule

In fg(x), g acts first. The input must belong to the domain of g, and its output must belong to the domain of f. A simplified formula can conceal a restriction inherited from either step. State the convention for composition if the notation could be misunderstood.

A logarithm after a quadratic

Let f(x)=ln⁡xf(x)=\ln x and g(x)=x2−1g(x)=x^2-1. Then f(g(x))=ln⁡(x2−1)f(g(x))=\ln(x^2-1), requiring x²−1 > 0. Its domain is x < −1 or x > 1.

Reversing the order

g(f(x))=(ln⁡x)2−1g(f(x))=(\ln x)^2-1 instead has domain x > 0. At x = e it equals zero. At x = 0 neither order is available, for different reasons.

A mistake worth checking

The expressions fg and gf generally differ. Matching the same two function names does not make the order interchangeable.

For f(x)=1/xf(x)=1/x and g(x)=1/xg(x)=1/x, is fg the identity on all real numbers?

Its rule simplifies to x, but both stages require x ≠ 0. It is the identity only on the nonzero reals.

Try this before opening the working

For f(x)=xf(x)=\sqrt{x} and g(x)=2−xg(x)=2-x, give the domains of fg and gf.

Compare your reasoning

fg(x) = √(2−x) needs x ≤ 2. gf(x) = 2−√x needs x ≥ 0.

Choose a longer question · Check a misconception

Practise composite functions

Course mapping

These specification references show where the topic occurs. The questions cover only some parts of each topic.

Next practice: Domain and range, Inverse functions.