Functions

Functions

Spec E2.13 · Cambridge IGCSE Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A function maps every input to exactly one output: f(x)=3x−5f(x) = 3x - 5.
  • The domain is the set of inputs; the range is the set of outputs.
  • To find f(a)f(a), substitute aa for xx.
  • The inverse f−1(x)f^{-1}(x): write y=f(x)y = f(x), swap xx and yy, rearrange for yy.
  • gf(x)=g(f(x))gf(x) = g(f(x)): apply ff first, then gg.

Function notation

A function is a rule that maps every input to exactly one output.

Written f(x)=3x−5f(x) = 3x - 5 or h(x)=2x2+3h(x) = 2x^2 + 3. The domain is the set of all possible inputs (xx-values) and the range is the set of outputs produced. To evaluate f(a)f(a), substitute aa in place of xx.

−2−1123456−10−5510xy(4, 7)(0, -5)f(x) = 3x − 5
f(x) = 3x − 5: each input x gives exactly one output

Worked example

If f(x)=3x−5f(x) = 3x - 5, find f(4)f(4).

If f(x)=x2+1f(x) = x^2 + 1, find f(3)f(3).

Mapping diagrams

A mapping diagram shows each input joined to exactly one output.

If any input maps to two different outputs, the relationship is not a function.

0.511.522.533.544.55−4−22468xy(1, −2)(2, 1)(3, 4)(4, 7)f(x) = 3x − 5
The rule f(x) = 3x − 5 sends each input 1, 2, 3, 4 to exactly one output.

Input x

  • 1
  • 2
  • 3
  • 4

Rule

  • 3(1) − 5
  • 3(2) − 5
  • 3(3) − 5
  • 3(4) − 5

Output f(x)

  • −2
  • 1
  • 4
  • 7

Can one input map to two outputs in a function?

Inverse functions

The inverse reverses the function: swap x and y, then make y the subject.

f−1(x)f^{-1}(x) takes an output back to the original input. The graphs of ff and f−1f^{-1} are reflections of each other in the line y=xy = x.

−6−4−22468−6−4−22468xy(1, -2)(-2, 1)f(x) = 3x − 5f⁻¹(x)y = x
f and its inverse are reflections of each other in y = x

Worked example

Find f−1(x)f^{-1}(x) for f(x)=3x−5f(x) = 3x - 5.

Find f−1(x)f^{-1}(x) for f(x)=x+4f(x) = x + 4.

Composite functions

A composite function applies one function to the result of another: gf(x) means f first, then g.

gf(x)=g(f(x))gf(x) = g(f(x)), and in general gf(x)≠fg(x)gf(x) \neq fg(x). Read gf(x)gf(x) from right to left: the function closest to xx is applied first.

  1. 1

    Input x

  2. 2

    Apply f

    f(x) = 3x − 5

  3. 3

    Apply g

    g(x) = x² squares the result

  4. 4

    Output gf(x)

    (3x − 5)²

gf(x): f is applied first, then g

Worked example

If f(x)=3x−5f(x) = 3x - 5 and g(x)=x2g(x) = x^2, find gf(x)gf(x) and fg(x)fg(x).

f(x)=x+1f(x) = x + 1, g(x)=2xg(x) = 2x. What is gf(x)gf(x)?

Try an exam question

f(x)=2x+3f(x) = 2x + 3 and g(x)=x2g(x) = x^2. (a) Find f(4)f(4). (b) Find f−1(x)f^{-1}(x). (c) Find gf(x)gf(x).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

A printing company models its cost per poster using the function f(x)=3x−5f(x) = 3x - 5, where xx is the number of colours used. Find f(4)f(4).

1 mark, marked against the mark scheme

Revision notes