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 :
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 :
Note that with an input of 4 the function will produce an output of 12. With a more general input, say, the output will be . 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 .
Key Point 1
A function is a rule which operates on an input and produces a single output from that input.
Task!
Write down the output from the function shown in Figure 3 when the input is
- ,
- ,
- .
Figure 3
- When the input is 4 the output is 26
- When the input is the output is
- When the input is the output is
- When the input is the output is .
Several different notations are used by engineers to describe functions. For the trebling function in Figure 2 it is common to write
This indicates that with an input , the function, , produces an output of . The input to the function is placed in the brackets after the ‘ ’. is read as ‘ is a function of ’, or simply ‘ of ’, meaning that the value of the output from the function depends upon the value of the input . 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:
Solution
- The rule for is ‘multiply the input by 6’.
- Here the input has been labelled . The rule for is ‘multiply the input by 6 and subtract 1’.
- Here the function has been labelled . The rule for is ‘square the input and subtract 7’.
- The rule for is ‘cube the input and add 5’.
- The rule for 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 and instruct us to ‘cube the input and add 5’.
Task!
Write down a mathematical function which can be used to describe the following rules:
- ‘square the input and divide the result by 2’. Use the letter for input and the letter to represent the function.
- ‘divide the input by 3 and add 7’. Call the function and call the input .
- ,
Exercise
State the rule of each of the following functions:
- ,
- ,
- ,
- ,
- ,
- ,
- multiply the input by 5.
- same as (a).
- multiply the input by 8 and then add 10.
- multiply the input by 7 and then subtract 27.
- subtract the input from 1.
- divide the input by 3 and then add 2/3.
- add 1 to the input and then find the reciprocal of the result.