Sign in

← All revision topics

English variety

Function concept: image, pre-image, f(x) notation and domain

Machine translation

Around age 13 · Usually taught in ⁨Key Stage 3⁩ · Free

Learn

  1. A function is a rule that gives each value of x exactly one value of y. Think of a machine: a number goes in, the machine does a calculation and another number comes out. For the same input, you always get the same output, and only one.

    Ellie sells the bread rolls at £2 each. The price of x bread rolls is 2x. That rule is a function. We call it f and write f(x) = 2x, which is read as 'f of x'. Careful: f(x) is not f multiplied by x. It is the value that comes out when the input is x.

    x01234
    f(x)02468
    The function f(x) = 2x in a table: the input x and the output f(x)
  2. If the input is 3, the output is f(3) = 2 × 3 = 6. We say that 6 is the image of 3. The other way round, 3 is the pre-image of 6: it is the value of x that gives 6. To find the pre-image of 10 you solve 2x = 10, and you get x = 5.

    An x has only one image, but an image can have several pre-images, or none. With f(x) = x², the image 4 has two pre-images, 2 and −2, and the image −4 has none. To find out whether a formula works for a table, try it with every column, not just the first ones.

    Not every value of x works. The domain of a function is the values of x you can use. For the price of bread rolls, x is 0, 1, 2, 3… because you don't buy part of a bread roll. In f(x) = 12 ÷ x, x cannot be 0, because you cannot divide by 0: the domain is every number except 0. On a graph, the domain is what the graph covers along the horizontal axis.

    123451234567890xy
    The graph of f(x) = 2x for the bread rolls: these are separate points, because x is a whole number
  3. On a graph, a vertical line crosses the graph of a function at most once, because each x has only one y. This circle is not the graph of a function: the line x = 3 crosses it at two points, P and Q, and x = 3 has two values of y.

    PQ−6−5−4−3−2−1123456−6−5−4−3−2−11234560xy
    The vertical line x = 3 crosses the circle at P(3, 4) and Q(3, −4)

Worked examples

Example 1

Julie defines f(x) = 3x + 2. Find f(4) and the pre-image of 20.

  1. For f(4), replace x with 4: f(4) = 3 × 4 + 2.
  2. 3 × 4 = 12 and 12 + 2 = 14, so f(4) = 14.
  3. For the pre-image of 20 you set up 3x + 2 = 20.
  4. Subtract 2: 3x = 18. Share between 3: x = 6. Check: 3 × 6 + 2 = 20.

f(4) = 14, and the pre-image of 20 is 6.

Watch out! Here many people work out f(20) instead of solving 3x + 2 = 20: they mix up the image and the pre-image.

Common mistake

Example 2

Mara shares 12 biscuits equally between x children, without breaking them. What each child gets is f(x) = 12 ÷ x. For which values of x does this make sense?

  1. x cannot be 0: you cannot divide by 0.
  2. The biscuits are not broken: 12 ÷ x has to be a whole number.
  3. That happens with x = 1, 2, 3, 4, 6 and 12, which are the factors of 12.

The domain is 1, 2, 3, 4, 6 and 12.

Watch out! Here many people say 'every number except 0', but with whole biscuits only the factors of 12 work.

Common mistake

Example 3

Is this table a function? x is the input and y is the output.

x1223
y57911
  1. The x = 2 appears twice.
  2. With x = 2 you get two values of y: 7 and 9.
  3. A function gives only one y for each x.

It is not a function.

Watch out! Here many people look to see whether the y repeats. What matters is that the same x has two different y values.

Common mistake

A challenge to think about

Invent a machine with two steps, for example 'multiply by 3 and subtract 1'. Make a table with five inputs and their outputs. Ask someone else to work out the rule by looking only at the table, and check that their rule gives the same output for each input.

Practise

Rounds of 10 questions. Choose a level:

Your grade in this topic:No grade yetDo a round at the Basic level to get a grade.

Next topic: Linear function (direct proportion): y = kx →