A function maps one number to another
We have looked at triangle, square and cube number sequences
And we have defined functions for all of these but we didn’t use the word function
For triangle numbers we mapped n to the number in the sequence,
We did the same for square numbers
And cube numbers
These are all like functions except that functions are written in a different way.
The function for square numbers can be written as
This is read as “f of x equals x-squared”
We can then plug numbers in to the function in place of x
Letters other than f can be used to name functions. f is the most common but other letters are used, g and h for example.
For triangle numbers
For cube numbers