Introduction to Functions
What is a function?
- A function is a combination of one or more mathematical operations that takes a set of numbers and changes them into another set of numbers
- It may be thought of as a mathematical “machine”
- For example, if the function (rule) is “double the number and add 1”, the two mathematical operations are "multiply by 2 (×2)" and "add 1 (+1)"
- Putting 3 in to the function would give 2 × 3 + 1 = 7
- Putting -4 in would give 2 × (-4) + 1 = -7
- Putting in would give x would give 2x + 1
- The number being put into the function is often called the input
- The number coming out of the function is often called the output
- A function can be shown in a diagram form
-
- The input is x and the output is y
- In algebra, this says 5x + 6 = y
-
Worked example
A function is given by
(a)
If the input is 10, find the output.
Substitute the number 10 into the function
Work out this value
The output is
(b)
If the input is , find an algebraic expression for the output.
Substitute the letter k into the function
k × 3 - 8
The output is 3k - 8