Conceptualizing Mathematical Functions and Formulas
Understanding Functions
What is a Function?
A function is like a predictable machine. You put something in, and it gives you exactly one thing back. Every single time. It's a rule that connects an input to a single, specific output.
For every input, there is exactly one output.
This rule of 'one unique output' is what makes functions so reliable and important in mathematics. They establish a clear, unambiguous relationship between two sets of values.
In the diagram above, every number in Set X is paired with exactly one letter in Set Y. Notice that input 1 always goes to output B, never to anything else. That's what makes this a function.
But not all relationships work this way. A relationship that pairs an input with more than one output is just a 'relation', not a function.
This second example is not a function because the input '2' is linked to two different outputs, 'A' and 'C'. It breaks our 'one unique output' rule.
Domain and Codomain
Functions have specific names for their sets of inputs and possible outputs. These are the domain and the codomain.
Domain
noun
The set of all possible input values for a function.
Codomain
noun
The set of all possible output values for a function.
Let's look at our function example again, but with these new terms.
The domain is the set {1, 2, 3}, and the codomain is the set {A, B, C, D}. It's perfectly fine for an item in the codomain (like 'D') to not be an output for any input. The codomain is just the set of potential outputs.
Function Notation
Writing out "the function that takes an input and doubles it" is clumsy. Mathematicians use a shorthand called function notation to describe these rules concisely.
We usually use letters like , , or to name functions. Then we write to represent the output of the function when the input is . You would read "" as "f of x".
does NOT mean multiplied by . The parentheses indicate that is the input to the function .
Let's define a function that doubles the input number. We can write this rule as:
This notation gives us a template. To find the output for any input, we just replace with that input's value.
If we want to evaluate our function for an input of 3, we write .
The input is 3, and the output is 6. What about an input of -5?
Let's try one more example. Consider a function defined by:
This rule says to take the input, square it, and then add 1. To find , we substitute 4 for :
Function notation is a powerful and efficient way to define the relationship between inputs and outputs.
What is the key rule that a relationship must follow to be considered a function?
A relationship pairs inputs with outputs as follows: { (2, A), (3, B), (4, C), (2, D) }. Is this relationship a function?
Functions are a fundamental building block in mathematics, providing a clear way to model relationships between quantities.