The Lesson
A function is a relation between a set of inputs and a set of outputs, such that each input is related to exactly one output. A function f, relates an input x to an output f(x).Dictionary Definition
The Merriam-Webster dictionary defines a function as "a mathematical correspondence that assigns exactly one element of one set to each element of the same or another set".A Real Example of a Function
It is easier to understand functions with an example.f(x) = x + 1
The function f(x) = x + 1 takes each input and adds 1 to it. The mapping diagram below shows this function.Let us look at the function in function notation:
- The name of the function is f.
- The input is x. It is written in brackets after the name of the function.
- The output is x + 1. It is written to the right of the equals (=) sign.
Properties of a Function
Let us take a closer look at the definition of a function:
A function is a relation between a set of inputs and a set of outputs, such that each input is related to exactly one output.
- "each input": every input in the set must be related to an output in the other set. The mapping diagram below shows that each input relates to an output. It doesn't matter that some outputs (7 and 13) aren't related to. It is a function: In the mapping diagram below, some inputs (2 and 3) are not related to an output. It is not a function:
- "exactly one output": each input relates to one output only. The mapping diagram below shows that each input relates exactly one output. Sometimes, one input relates to one output (this is a one-to-one mapping), such as 2 relating to 4. Sometimes, more than one input relates to one output (this is a many-to-one mapping), such as both −3 and 3 relating to 9. This is a function: In the mapping diagram below, one input (9) relates to more than on output (−3 and 3). This is a one-to-many mapping. It is not a function:
Graphs of Functions
Function can be plotted on graphs. Functions relate an input x to an output f(x). We can plot these pairs of inputs and outputs as Cartesian coordinates, (x, f(x)).- The input x is the x-coordinate. It is plotted on the x-axis.
- The output f(x) is the y-coordinate. It is plotted on the y-axis.