1 The function rule

A function can be thought of as a rule which operates on an input and produces an output . This is often illustrated pictorially in two ways as shown in Figure 1. The first way is by using a block diagram which consists of a box showing the input, the output and the rule. We often write the rule inside the box. The second way is to use two sets, one to represent the input and one to represent the output with an arrow showing the relationship between them.


Figure 1 : { A general function}


More precisely, a rule is a function if it produces only a single output for any given input. The function with the rule ‘treble the input’ is shown in Figure 2.


Figure 2 :

{ The function with the rule `treble the input'}


Note that with an input of 4 the function will produce an output of 12. With a more general input, x say, the output will be 3 x . It is usual to assign a letter or other symbol to a function in order to label it. The trebling function in Figure 2 has been given the symbol f .

Key Point 1

A function is a rule which operates on an input and produces a single output from that input.

Task!

Several different notations are used by engineers to describe functions. For the trebling function in Figure 2 it is common to write

f ( x ) = 3 x

This indicates that with an input x , the function, f , produces an output of 3 x . The input to the function is placed in the brackets after the ‘ f ’. f ( x ) is read as ‘ f is a function of x ’, or simply ‘ f of x ’, meaning that the value of the output from the function depends upon the value of the input x . The value of the output is often called the ‘value of the function’.

Example 1

State in words the rule defined by each of the following functions:

  1. f ( x ) = 6 x
  2. f ( t ) = 6 t 1
  3. g ( x ) = x 2 7
  4. h ( t ) = t 3 + 5
  5. p ( x ) = x 3 + 5
Solution
  1. The rule for f is ‘multiply the input by 6’.
  2. Here the input has been labelled t . The rule for f is ‘multiply the input by 6 and subtract 1’.
  3. Here the function has been labelled g . The rule for g is ‘square the input and subtract 7’.
  4. The rule for h is ‘cube the input and add 5’.
  5. The rule for p is ‘cube the input and add 5’.

Note from Example 1, parts (d) and (e), that it is the rule that is important when describing a function and not the letters used. Both h ( t ) and p ( x ) instruct us to ‘cube the input and add 5’.

Task!
Interactive Exercise