Composite Functions0%

Functions & Graphs · Topic 2 of 9

Composite Functions

Video lesson · from 25:183 worked examples

One lesson video covers all of Functions & Graphs, so it opens at 25:18 for this topic — not from the beginning.

Theory

A composite function is when one function is 'inside' another function.

It is formed by applying one function to the result of another.

e.g., g(f(x))g(f(x)) means you compute f(x)f(x) first, and plug the result into gg.

⚠️ Common Examiner Traps

  • Order matters: f(g(x))f(g(x)) means do gg first, then ff. Reading it left to right and applying ff first is the standard error, and gives a completely different function.
  • Substitute the whole function: every xx in the outer function is replaced by the entire inner expression, in brackets.
  • Use brackets, then expand: f(x)=x2f(x) = x^2 with g(x)=x+3g(x) = x+3 gives (x+3)2(x+3)^2, which is not x2+9x^2+9.
  • f(g(x))f(g(x)) rarely equals g(f(x))g(f(x)): if a question asks you to show they are equal, that is a special result worth checking carefully.

Worked examples

Example 1

Functions ff and gg are defined by f(x)=2xf(x) = 2x and g(x)=x3g(x) = x - 3.

Both are defined on suitable domains.

a) Find f(g(x))f(g(x)).

b) Find g(f(x))g(f(x)).

a) To find f(g(x))f(g(x)), substitute g(x)g(x) into ff:

f(g(x))=f(x3)f(g(x)) = f(x - 3)
f(g(x))=2(x3)=2x6f(g(x)) = 2(x - 3) = 2x - 6

b) To find g(f(x))g(f(x)), substitute f(x)f(x) into gg:

g(f(x))=g(2x)g(f(x)) = g(2x)
g(f(x))=(2x)3=2x3g(f(x)) = (2x) - 3 = 2x - 3

Example 2

Functions f(x)=x3+3f(x) = x^3 + 3 and g(x)=1xg(x) = \frac{1}{x} are defined on suitable domains.

Find formulae for h(x)=f(g(x))h(x) = f(g(x)) and k(x)=(gf)(x)k(x) = (g \circ f)(x).

For h(x)=f(g(x))h(x) = f(g(x)):

f(g(x))=f(1x)f(g(x)) = f\left(\frac{1}{x}\right)
h(x)=(1x)3+3=1x3+3h(x) = \left(\frac{1}{x}\right)^3 + 3 = \frac{1}{x^3} + 3

For k(x)=g(f(x))k(x) = g(f(x)):

g(f(x))=g(x3+3)g(f(x)) = g(x^3 + 3)
k(x)=1x3+3k(x) = \frac{1}{x^3 + 3}

Example 3

Example 3 – Composite Functions with Fractions

Functions ff, gg and hh are defined by f(x)=x1xf(x) = \frac{x}{1-x}, g(x)=1xg(x) = \frac{1}{x} and h(x)=11xh(x) = \frac{1}{1-x}. All are defined on suitable domains.

a) Find f(g(x))f(g(x)).

b) Find f(h(x))f(h(x)).

a) Substitute g(x)g(x) into ff:

f(g(x))=f(1x)=1x11x\begin{aligned} f(g(x)) &= f\left(\frac{1}{x}\right) \\ &= \frac{\frac{1}{x}}{1 - \frac{1}{x}} \end{aligned}

Multiply numerator and denominator by xx:

f(g(x))=1x1f(g(x)) = \frac{1}{x - 1}

b) Substitute h(x)h(x) into ff:

f(h(x))=f(11x)=11x111x\begin{aligned} f(h(x)) &= f\left(\frac{1}{1-x}\right) \\ &= \frac{\frac{1}{1-x}}{1 - \frac{1}{1-x}} \end{aligned}

Multiply numerator and denominator by (1x)(1-x):

f(h(x))=1(1x)1=1x=1x\begin{aligned} f(h(x)) &= \frac{1}{(1-x) - 1} \\ &= \frac{1}{-x} \\ &= -\frac{1}{x} \end{aligned}