All revision notes topics

Functions: domain, range and compositionEdexcel International A Level Maths: Revision notes

Section 1

Functions and mappings

A function is a rule that gives exactly one output for each input in its domain. It is written f:x↦x2−4x+7f:x\mapsto x^2-4x+7 or f(x)=x2−4x+7f(x)=x^2-4x+7. The inputs form the domain; the set of outputs is the range. A function is one-one if each output comes from exactly one input, and many-one if two or more inputs give the same output. For f(x)=x2−4x+7f(x)=x^2-4x+7, f(1)=f(3)=4f(1)=f(3)=4, so ff is many-one. A one-to-many rule is not a function.

Key termsfunctiondomainrangeone-onemany-one
Common mistake

Saying a many-one mapping is not a function. It is a function; only one-to-many rules are not.

Section 2

Finding domain and range

The domain may be stated, or you find the largest set where the rule works: avoid division by zero, and square roots of negatives. For x−2+1\sqrt{x-2}+1 the domain is x⩾2x\geqslant2. To find the range, complete the square, sketch the graph, or use the extremes of the domain. x2−4x+7=(x−2)2+3x^2-4x+7=(x-2)^2+3 has range f(x)⩾3f(x)\geqslant3; restricting the domain to x⩾4x\geqslant4 makes ff increasing, so the range becomes f(x)⩾f(4)=7f(x)\geqslant f(4)=7. Restricting a domain can turn a many-one function into a one-one function.

Key termsrestricted domaincompleting the square
Exam tip

State the range in terms of f(x)f(x) (or yy), not xx.

Section 3

Composite functions

The composite function fg(x)=f(g(x))\mathrm{fg}(x)=f(g(x)) means 'do gg first, then ff'. With f(x)=2x+3f(x)=2x+3 and g(x)=x2−1g(x)=x^2-1: fg(x)=2(x2−1)+3=2x2+1,gf(x)=(2x+3)2−1.\mathrm{fg}(x)=2(x^2-1)+3=2x^2+1,\qquad \mathrm{gf}(x)=(2x+3)^2-1. In general fg≠gf\mathrm{fg}\neq\mathrm{gf}. To evaluate gf(1)\mathrm{gf}(1): f(1)=5f(1)=5, then g(5)=24g(5)=24.

Key termscomposite function
Common mistake

Reading fg\mathrm{fg} left to right. The function nearest to xx acts first.

Section 4

Domain and range of composites

For fg\mathrm{fg} to be defined, the range of gg must lie within the domain of ff. With f(x)=x−2+1f(x)=\sqrt{x-2}+1 (x⩾2x\geqslant2) and g(x)=4x−1g(x)=\frac{4}{x-1} we need g(x)⩾2g(x)\geqslant2, so 4x−1⩾2\frac{4}{x-1}\geqslant2, giving 1<x⩽31<x\leqslant3. Also gf(x)=4x−2\mathrm{gf}(x)=\frac{4}{\sqrt{x-2}} must exclude x=2x=2, so its domain is x>2x>2. The range of the composite comes from the range of the inner function passed through the outer.

Key termsdomain of a composite
Exam tip

When solving 4x−1⩾2\frac{4}{x-1}\geqslant2, do not multiply by x−1x-1 until you know its sign.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Functions: domain, range and composition

  1. A function ff is defined by f(x)=x2−4x+7f(x)=x^2-4x+7, x∈Rx\in\mathbb{R}.
    The domain of ff is now restricted to x⩾4x\geqslant4. Find the range of ff on this domain.2 marks
  2. The functions ff and gg are defined by f(x)=2x+3f(x)=2x+3, x∈Rx\in\mathbb{R}, and g(x)=x2−1g(x)=x^2-1, x∈Rx\in\mathbb{R}.
    Solve fg(x)=19\mathrm{fg}(x)=19.2 marks
  3. The functions ff and gg are defined by f(x)=x−2+1f(x)=\sqrt{x-2}+1, x⩾2x\geqslant2, and g(x)=4x−1g(x)=\dfrac{4}{x-1}, x∈Rx\in\mathbb{R}, x≠1x\neq1.
    State the range of ff and find an expression for gf(x)\mathrm{gf}(x), stating its domain.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).