2.13 · Extended onlyPaper 2Paper 4

Functions

In a minute

A is a rule that turns each input into exactly one output. , such as f(x)=3x+8\mathrm{f}(x) = 3x + 8, names the rule. You can evaluate it, undo it with an , or join two rules into a .

You'll be able to

  • Use function notation to work out values such as f(−2)\mathrm{f}(-2) and f(x+3)\mathrm{f}(x + 3), and solve f(x)=k\mathrm{f}(x) = k.
  • Describe the and of a function, including on a mapping diagram.
  • Find an inverse function f−1(x)\mathrm{f}^{-1}(x) and use it to undo f\mathrm{f}.
  • Form composite functions such as gf(x)=g(f(x))\mathrm{gf}(x) = \mathrm{g}(\mathrm{f}(x)), as numbers and as simplified expressions.
Before you start3 quick questions on what this builds on
Check yourself
Work out the value of 2x2−3x2x^2 - 3x when x=−4x = -4.
Check yourself
Expand (x−6)2(x - 6)^2.
Check yourself
Make xx the subject of w=6x+5w = 6x + 5.

Revise first: 2.10 Graphs of functions, 2.2 Algebraic manipulation and 2.5 Equations

Function notation

A is a rule that takes an input and gives exactly one output. "Multiply by 33, then add 88" is a function. Put in 44 and you always get 2020.

names the rule: f(x)=3x+8\mathrm{f}(x) = 3x + 8 means f\mathrm{f} turns the input xx into 3x+83x + 8. Read f(x)\mathrm{f}(x) as "f of xx".

f(4)\mathrm{f}(4) means the output when the input is 44. Replace every xx with 44: f(4)=3(4)+8=20\mathrm{f}(4) = 3(4) + 8 = 20. It never means f\mathrm{f} times 44.

Worked exampleGiven g(x)=5−x2\mathrm{g}(x) = 5 - x^2, find g(−3)\mathrm{g}(-3).

Try it first, then reveal one step at a time.

  1. Replace xx with (−3)(-3), keeping the brackets: g(−3)=5−(−3)2\mathrm{g}(-3) = 5 - (-3)^2.

To solve f(x)=k\mathrm{f}(x) = k, you know the output and want the input: set the rule equal to kk and solve.

Worked exampleGiven h(x)=6−5x\mathrm{h}(x) = 6 - 5x, solve h(x)=21\mathrm{h}(x) = 21.

Try it first, then reveal one step at a time.

  1. The output is 2121, so set the rule equal to it: 6−5x=216 - 5x = 21.

The input can be an expression. For f(x+3)\mathrm{f}(x + 3), replace every xx with (x+3)(x + 3), bracket included, then simplify.

Check yourself
Given f(x)=3x2+7\mathrm{f}(x) = 3x^2 + 7, find f(−2)\mathrm{f}(-2).
Check yourself
Given f(x)=x2−4x\mathrm{f}(x) = x^2 - 4x, find f(x+3)\mathrm{f}(x + 3) in its simplest form.

Domain, range and mapping diagrams

This is not the range of a data set, which is one number: largest minus smallest.

A mapping diagram shows a function with arrows: inputs (the domain) on the left, outputs on the right. The range is every value an arrow reaches.

−2 −1 0 1 2 4 1 0 Domain (inputs) Range (outputs) f(x) = x²
f(x)=x2\mathrm{f}(x) = x^2 with domain {−2,−1,0,1,2}\{-2, -1, 0, 1, 2\}. Each input has exactly one arrow, but two inputs can share an output.

Some numbers must be left out of a domain. You can't divide by zero, so f(x)=6x−5\mathrm{f}(x) = \frac{6}{x - 5} needs x≠5x \ne 5, often written beside the rule. You also can't take the square root of a negative number.

Worked exampleThe function f(x)=7−2x\mathrm{f}(x) = 7 - 2x has domain {−1,0,2,3}\{-1, 0, 2, 3\}. Find its range.

Try it first, then reveal one step at a time.

  1. Put each input into the rule: f(−1)=9\mathrm{f}(-1) = 9, f(0)=7\mathrm{f}(0) = 7, f(2)=3\mathrm{f}(2) = 3 and f(3)=1\mathrm{f}(3) = 1.
Worked exampleThe function g(x)=x2+5\mathrm{g}(x) = x^2 + 5 has every real number as its domain. Find its range.

Try it first, then reveal one step at a time.

  1. A square is never negative, so x2≥0x^2 \ge 0 for every xx.
Check yourself
Which value of xx must be left out of the domain of h(x)=122x+7\mathrm{h}(x) = \frac{12}{2x + 7}?
Check yourself
The function f(x)=x2−1\mathrm{f}(x) = x^2 - 1 has domain {−3,0,3}\{-3, 0, 3\}. Which set is its range?

Inverse functions

f(x)=3x+8\mathrm{f}(x) = 3x + 8 multiplies by 33, then adds 88. To undo it, do the opposite steps in reverse order: subtract 88, then divide by 33.

The −1-1 in f−1\mathrm{f}^{-1} is a label, not a power. f−1(x)\mathrm{f}^{-1}(x) does not mean 1f(x)\frac{1}{\mathrm{f}(x)}.

Only a function where each output comes from one input has an inverse. In the mapping diagram above, 44 would have to go back to both −2-2 and 22, so x2x^2 on that domain has none.

To find f−1(x)\mathrm{f}^{-1}(x):

1. Write y=f(x)y = \mathrm{f}(x).

2. Make xx the .

3. Replace yy with xx, and write the result as f−1(x)=…\mathrm{f}^{-1}(x) = \ldots

Worked exampleGiven f(x)=3x+8\mathrm{f}(x) = 3x + 8, find f−1(x)\mathrm{f}^{-1}(x).

Try it first, then reveal one step at a time.

  1. Write y=3x+8y = 3x + 8.
Worked exampleGiven g(x)=7−2x3\mathrm{g}(x) = \frac{7 - 2x}{3}, find g−1(x)\mathrm{g}^{-1}(x).

Try it first, then reveal one step at a time.

  1. Write y=7−2x3y = \frac{7 - 2x}{3}.
Check yourself
Given h(x)=x4−6\mathrm{h}(x) = \frac{x}{4} - 6, find h−1(x)\mathrm{h}^{-1}(x).

You don't always need f−1\mathrm{f}^{-1} itself. If f−1(x)=k\mathrm{f}^{-1}(x) = k, then f\mathrm{f} sends kk to xx, so x=f(k)x = \mathrm{f}(k).

Check yourself
Given f(x)=x3+4\mathrm{f}(x) = x^3 + 4, solve f−1(x)=3\mathrm{f}^{-1}(x) = 3.

Composite functions

You can feed the output of one function straight into another. With f(x)=4−x\mathrm{f}(x) = 4 - x and g(x)=x2−3\mathrm{g}(x) = x^2 - 3, start with 11. f\mathrm{f} gives 33, then g\mathrm{g} turns 33 into 66.

Learn this
gf(x)=g(f(x))\mathrm{gf}(x) = \mathrm{g}(\mathrm{f}(x))
Worked exampleGiven f(x)=4−x\mathrm{f}(x) = 4 - x and g(x)=x2−3\mathrm{g}(x) = x^2 - 3, find fg(−3)\mathrm{fg}(-3).

Try it first, then reveal one step at a time.

  1. fg(−3)=f(g(−3))\mathrm{fg}(-3) = \mathrm{f}(\mathrm{g}(-3)), so work out g(−3)\mathrm{g}(-3) first.
Worked exampleGiven f(x)=4−x\mathrm{f}(x) = 4 - x and g(x)=x2−3\mathrm{g}(x) = x^2 - 3, find gf(x)\mathrm{gf}(x). Give your answer in the form x2+bx+cx^2 + bx + c.

Try it first, then reveal one step at a time.

  1. gf(x)=g(4−x)\mathrm{gf}(x) = \mathrm{g}(4 - x). Replace every xx in g\mathrm{g} with (4−x)(4 - x): gf(x)=(4−x)2−3\mathrm{gf}(x) = (4 - x)^2 - 3.
Worked exampleGiven f(x)=6x−1\mathrm{f}(x) = \frac{6}{x - 1} and g(x)=(2x+1)2\mathrm{g}(x) = (2x + 1)^2, find fg(x)\mathrm{fg}(x). Give your answer as a fraction in its simplest form.

Try it first, then reveal one step at a time.

  1. fg(x)=f((2x+1)2)\mathrm{fg}(x) = \mathrm{f}((2x + 1)^2). Replace the xx in f\mathrm{f} with (2x+1)2(2x + 1)^2: fg(x)=6(2x+1)2−1\mathrm{fg}(x) = \frac{6}{(2x + 1)^2 - 1}.
Check yourself
Given f(x)=5x\mathrm{f}(x) = 5x and g(x)=x+2\mathrm{g}(x) = x + 2, find fg(x)\mathrm{fg}(x).

If f\mathrm{f} has an inverse, the two cancel out: f−1f(x)=x\mathrm{f}^{-1}\mathrm{f}(x) = x and ff−1(x)=x\mathrm{ff}^{-1}(x) = x, for any xx in the domain of the function applied first.

Check yourself
Given f(x)=2x+1\mathrm{f}(x) = 2x + 1 and g(x)=x−6\mathrm{g}(x) = x - 6, solve fg(x)=15\mathrm{fg}(x) = 15.

Common mistakes

  • Substituting without brackets. If g(x)=x2\mathrm{g}(x) = x^2, then g(3x)=(3x)2=9x2\mathrm{g}(3x) = (3x)^2 = 9x^2, not 3x23x^2. Likewise (−2)2=4(-2)^2 = 4, not −4-4.
  • Squaring a bracket term by term. (x−5)2(x - 5)^2 is x2−10x+25x^2 - 10x + 25, not x2+25x^2 + 25: write it as (x−5)(x−5)(x - 5)(x - 5) and find the middle term.
  • Dividing only part of the expression when finding an inverse. From y−8=3xy - 8 = 3x, divide all of y−8y - 8 by 33, so f−1(x)=x−83\mathrm{f}^{-1}(x) = \frac{x - 8}{3}, not x3−8\frac{x}{3} - 8.

Exam tips

  • When asked to **find** f−1(x)\mathrm{f}^{-1}(x), give the final answer in terms of xx, as f−1(x)=…\mathrm{f}^{-1}(x) = \ldots A correct rearranging step earns a method mark even if a later slip follows.
  • Paper 2 has no calculator, so write each stage of a composite: g(−3)=6\mathrm{g}(-3) = 6, then f(6)=−2\mathrm{f}(6) = -2. The first stage can earn a mark on its own.
  • **Give your answer in its simplest form** means collect like terms and cancel any common factor. In a fraction, factorise first so the common factor shows, as in 64x(x+1)=32x(x+1)\frac{6}{4x(x + 1)} = \frac{3}{2x(x + 1)}.

Key takeaways

Learn thisf(a)\mathrm{f}(a) is the output when the input is aa: replace every xx with (a)(a).
Learn thisDomain: the inputs allowed. Range: the outputs produced. Leave out of the domain any xx that makes a denominator zero or puts a negative number under a square root.
Learn thisTo find f−1(x)\mathrm{f}^{-1}(x): write y=f(x)y = \mathrm{f}(x), make xx the subject, then replace yy with xx.
Learn thisgf(x)=g(f(x))\mathrm{gf}(x) = \mathrm{g}(\mathrm{f}(x)): the function next to xx acts first.
Learn thisWhen f\mathrm{f} has an inverse, f−1f(x)=x\mathrm{f}^{-1}\mathrm{f}(x) = x and ff−1(x)=x\mathrm{ff}^{-1}(x) = x: an inverse undoes its function.

Practise this

73 past-paper questions on 2.13 in the 0580 Extended bank, each with a mark scheme and a worked explanation.

Practise 2.13 →