Functions

Functions

Spec 3.2 · Edexcel IGCSE Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • f(x)f(x) is the output of function ff for input xx; the brackets show the input, not multiplication.
  • Domain is the valid inputs; exclude values that make a denominator zero or a square root negative.
  • Range is the possible outputs; use the shape of the graph, especially with a restricted domain.
  • fg(x)=f(g(x))fg(x)=f(g(x)): apply the function closest to xx first.
  • To find f−1(x)f^{-1}(x): write y=f(x)y=f(x), make xx the subject, then swap xx and yy.

Function notation

A function takes an input and gives exactly one output; f(x) is that output.

A function is a rule giving exactly one output for each input. If f(x)=2x+3f(x)=2x+3 then f(4)=2(4)+3=11f(4)=2(4)+3=11, f(−1)=1f(-1)=1 and f(a)=2a+3f(a)=2a+3.

To evaluate, replace every xx in the rule with the input, which can also be an expression.

−3−2−1123456−4−2246810121416xy(4, 11)(−1, 1)f(x) = 2x + 3
Each input x gives exactly one output f(x)

Worked example

If g(x)=x2−5g(x)=x^2-5, find g(3)g(3).

If f(x)=3x−2f(x)=3x-2, what is f(5)f(5)?

Domain and range

The domain is the inputs a function accepts; the range is the outputs it can produce.

The domain is all valid xx-values and the range all possible outputs. For linear and quadratic functions the domain is all real numbers unless restricted.

  • A denominator cannot be zero: f(x)=1x−2f(x)=\dfrac{1}{x-2} has domain x≠2x\neq2.
  • A square root needs a value ≥0\geq0: f(x)=x−3f(x)=\sqrt{x-3} has domain x≥3x\geq3.
  • f(x)=x2f(x)=x^2 has range f(x)≥0f(x)\geq0.

With a restricted domain, find the range from that part of the graph only.

24681012−11234xy(3, 0)(7, 2)f(x) = √(x − 3)
f(x) = √(x − 3) only exists for x ≥ 3, and its outputs are never negative

Worked example

Find the range of f(x)=x2+1f(x)=x^2+1 for x≥2x\geq2.

What is the domain of f(x)=1x−5f(x)=\dfrac{1}{x-5}?

Composite functions

fg(x) means do g first, then feed the result into f. Order matters.

A composite function uses the output of one function as the input of another: fg(x)=f(g(x))fg(x)=f(g(x)). Usually fg(x)≠gf(x)fg(x)\neq gf(x).

With f(x)=x+1f(x)=x+1 and g(x)=3xg(x)=3x: fg(x)=f(3x)=3x+1fg(x)=f(3x)=3x+1 but gf(x)=g(x+1)=3x+3gf(x)=g(x+1)=3x+3. For a number, work from the inside out.

  1. 1

    x

    the input

  2. 2

    g

    apply g first (closest to x)

  3. 3

    g(x)

    the output of g is the input of f

  4. 4

    f

    apply f second

  5. 5

    fg(x)

    the final output

How fg(x) = f(g(x)) is built

Worked example

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

f(x)=2xf(x)=2x and g(x)=x−3g(x)=x-3. What is fg(5)fg(5)?

Inverse functions

The inverse undoes the function; rearrange for x then swap x and y.

The inverse function f−1(x)f^{-1}(x) takes an output back to its input. Its graph is the reflection of f(x)f(x) in the line y=xy=x.

  1. Write y=f(x)y=f(x).
  2. Make xx the subject.
  3. Swap xx and yy.
  4. Write f−1(x)=…f^{-1}(x)=\ldots

Check: f(f−1(x))=xf(f^{-1}(x))=x and f−1(f(x))=xf^{-1}(f(x))=x.

−6−4−22468−6−4−22468xy(0, −5)(−5, 0)(5, 5)f(x) = 2x − 5f⁻¹(x) = (x + 5)/2y = x
f(x) = 2x − 5 and its inverse are mirror images in y = x

Worked example

Find the inverse of f(x)=3x+1f(x)=3x+1.

Find the inverse of f(x)=x2+4f(x)=\dfrac{x}{2}+4.

Try an exam question

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

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

What is the value of f(4)f(4)?

1 mark, marked against the mark scheme

Revision notes