Back to the path
ƒ

Introduction to functions

Level 5 · Ages 15–16

Quick recall· Let's wake up what you already know before we start.

Point A has coordinates (3, 7). What is its y-coordinate?

The whole lesson

Read it again any time, including while you work through the exercises.

Imagine a number machine: you slide a number in, it always applies the same recipe, and a new number comes out. For instance, the recipe could be: I double the number, then add 3. If you put in 5, out comes 13. In mathematics, this machine is called a function.

To talk about this machine without rewriting everything, we give it a name, often f, and we write f(x) for the number that comes out when we put x in. The recipe above is written f(x) = 2x + 3. Careful: f(x) does not mean f times x, it is a notation read as f of x.

Two vocabulary words will organise everything. The number that comes out is called the image: since f(5) = 13, we say 13 is the image of 5 under f. The number we put in is called a preimage: 5 is a preimage of 13. Remember the direction: the preimage comes before (at the input), the image comes after (at the output).

A function can also be drawn. In a coordinate system, we plot all the points with coordinates (x, f(x)): the input is read on the horizontal axis, the output on the vertical axis. All these points form the curve of the function. Reading a graph means making the trip: I start from x on the horizontal axis, I move up or down to the curve, and I read f(x) on the vertical axis.

One golden rule to finish: a number has at most one image (the machine gives only one result), but the same image can have several preimages (several inputs can give the same output). Keep this asymmetry in mind, it avoids most traps.

The worked example, step by step

Let f be the function defined by f(x) = 2x + 3. Compute the image of 5 under f.

  1. f(5) = 2 × 5 + 3

    The image of 5 is f(5). So I replace x with 5 everywhere in the formula.

  2. 2 × 5 = 10

    I compute the multiplication first, as priority rules require.

  3. f(5) = 10 + 3 = 13

    I add 3. The machine turns 5 into 13.

Result: The image of 5 under f is 13: we write f(5) = 13.

Still with f(x) = 2x + 3, find a preimage of 11 under f.

  1. 2x + 3 = 11

    Finding a preimage of 11 means finding which input x gives the output 11. So I solve an equation.

  2. 2x = 11 - 3 = 8

    I subtract 3 from both sides to isolate the x term.

  3. x = 8 ÷ 2 = 4

    I divide both sides by 2.

  4. f(4) = 2 × 4 + 3 = 11

    I check: putting 4 into the machine indeed gives 11.

Result: 4 is a preimage of 11 under f.