Composite and inverse functions

Composite and inverse functions

Spec 2.8 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A function gives each input in its domain exactly one output; the outputs form the range.
  • fg(x)=f(g(x))fg(x)=f(g(x)): do gg first, then ff. In general fg≠gffg\neq gf.
  • An inverse function f−1f^{-1} exists only if ff is one-one; restrict the domain if needed.
  • The domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff.
  • 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.

Domain, range and types

A function maps each input in its domain to exactly one output; the outputs make up the range.

A function is written f:x↦3x−2f:x\mapsto3x-2 or f(x)=3x−2f(x)=3x-2. The domain is the set of allowed inputs and the range is the set of outputs. The range depends on the domain: x2x^2 has range y≥0y\ge0 for x∈Rx\in\mathbb{R} but y≥4y\ge4 for x≥2x\ge2.

A relation such as y2=xy^2=x gives two outputs for one input, so it is not a function.

−1123456246810121416xy(2, 3)y = x² − 4x + 7
Only the half with x ≥ 2 is f. The minimum value 3 gives the range f(x) ≥ 3.

Worked example

Find the range of f(x)=x2−4x+7f(x)=x^2-4x+7, x≥2x\geq2.

One-one

  • Each output from exactly one input
  • e.g. f(x) = x³

Many-one

  • Some outputs from two or more inputs
  • e.g. f(x) = x², f(2) = f(−2)

Is f(x)=x2f(x)=x^2, x∈Rx\in\mathbb{R}, one-one or many-one?

Composite functions

fg(x)fg(x) means f(g(x))f(g(x)): apply gg first, then ff.

With f(x)=3x−2f(x)=3x-2 and g(x)=x2+1g(x)=x^2+1:

fg(x)=3(x2+1)−2=3x2+1,gf(x)=(3x−2)2+1.fg(x)=3(x^2+1)-2=3x^2+1,\qquad gf(x)=(3x-2)^2+1.

A composite function is only defined where the range of gg lies inside the domain of ff. For f(x)=xf(x)=\sqrt x and g(x)=x−4g(x)=x-4, fg(x)=x−4fg(x)=\sqrt{x-4} needs x≥4x\ge4. Repeated application is f2(x)=f(f(x))f^2(x)=f(f(x)).

  1. 1

    Input x

    the starting value

  2. 2

    Apply g

    the nearest function acts first

  3. 3

    Apply f

    to the output of g

  4. 4

    Output fg(x)

    the final result

fg(x) applies g first, then f.

Worked example

With f(x)=2x+1f(x)=2x+1 and g(x)=x2g(x)=x^2, find fg(3)fg(3) and gf(3)gf(3).

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

Inverse functions

Make xx the subject of y=f(x)y=f(x), swap, and state the domain as the range of ff.

The inverse function f−1f^{-1} undoes ff, so f−1f(x)=ff−1(x)=xf^{-1}f(x)=ff^{-1}(x)=x. It exists only for one-one functions, so use a restricted domain for a many-one function first.

The restricted domain tells you which root to take: never leave ± \pm\sqrt{\ } in an inverse.

  1. 1

    Write y = f(x)

    replace f(x) by y

  2. 2

    Rearrange

    make x the subject

  3. 3

    Swap

    replace y by x

  4. 4

    State the domain

    the range of the original f

Method for finding an inverse.

Worked example

Find the inverse of f(x)=x2−4x+7f(x)=x^2-4x+7, x≥2x\geq2.

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?

Graphs of inverses

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

Inputs and outputs swap, so if (a,b)(a,b) is on y=f(x)y=f(x) then (b,a)(b,a) is on y=f−1(x)y=f^{-1}(x). This is a reflection in y = x. A vertical asymptote of ff becomes a horizontal asymptote of f−1f^{-1}, and the reverse.

Where an increasing function meets its inverse the point lies on y=xy=x, so solve f(x)=xf(x)=x.

1234567812345678xy(2, 3)(3, 2)y = f(x)y = f⁻¹(x)y = x
f (the x ≥ 2 half) and f⁻¹ are mirror images in the dashed line y = x.

The point (4,9)(4,9) is on y=f(x)y=f(x). Which point is on y=f−1(x)y=f^{-1}(x)?

Putting it together

Check domains and ranges first, simplify with inverse pairs such as eln⁡u=ue^{\ln u}=u, then solve.

To state the domain of a composite, check that the inner function’s range fits the outer domain. For f(x)=e2x−3f(x)=e^{2x}-3 and g(x)=ln⁡(x+4)g(x)=\ln(x+4), gfgf is defined for all real xx.

Simplify with eln⁡u=ue^{\ln u}=u: fg(x)=(x+4)2−3=x2+8x+13fg(x)=(x+4)^2-3=x^2+8x+13. Always give the domain of an inverse.

−4−3−2−11234−4−3−2−11234xyy = −3x = −3f(x)f⁻¹(x)y = x
f(x) = e^(2x) − 3 and its inverse f⁻¹(x) = ½ln(x + 3) are reflections in y = x: the domain of f⁻¹ is the range of f (x > −3).
  • Domain of f⁻¹range of f
  • Range of f⁻¹domain of f

Worked example

With f(x)=e2x−3f(x)=e^{2x}-3 and g(x)=ln⁡(x+4)g(x)=\ln(x+4), solve fg(x)=33fg(x)=33.

If the range of ff is f(x)>−3f(x)>-3, what is the domain of f−1f^{-1}?

Try an exam question

The function ff is defined by f(x)=x2−4x+7f(x)=x^2-4x+7, x≥2x\ge2. Find the range of ff, then find f−1(x)f^{-1}(x) and state its domain.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the value of fg(2)fg(2).

1 mark, marked against the mark scheme

Revision notes