The informal idea of a function as a "rule" is intuitive but imprecise. This section gives the rigorous, set-theoretic definition of a function based on ordered pairs, removing all ambiguity and providing a foundation for advanced mathematics.
Quick Reference
| Concept | Formal Meaning |
|---|---|
| Ordered pair | |
| Function |
A set of ordered pairs |
| Domain | Set of all first members of pairs in |
| Range | Set of all second members of pairs in |
| Function notation |
Why a Formal Definition?
Previously, we described a function as a "rule" or "procedure" that assigns to each element of a set
Ordered Pairs
An ordered pair
You have already seen ordered pairs in coordinate geometry: the point
Definition of a Function
A function
The set of all elements
Think of a function as a two-column table: the left column holds
Let
Solution
Function Notation Revisited
Since for every
which simply means "the pair
Domain, Range, and Codomain
When we write
is the domain of : the set of allowable inputs. is the codomain of : the set that outputs are supposed to lie in. - The range of
is the set of outputs actually produced: , which is always a subset of .
The range may be strictly smaller than the codomain. For example,
In the next section, we will study domain and range of a function in more detail and various examples.