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 | where is the first member and is the second |
| Function | A set of ordered pairs with no two pairs sharing the same first member |
| Domain | Set of all first members of pairs in |
| Range | Set of all second members of pairs in |
| Function notation | means the pair belongs to |
Why a Formal Definition?
Previously, we described a function as a "rule" or "procedure" that assigns to each element of a set exactly one element in a set . However, the words rule, procedure, and assigns are not mathematical concepts: they can mean different things to different people. To make the definition completely precise, we reformulate it using the mathematical concept of an ordered pair.
Ordered Pairs
An ordered pair consists of two objects, where is the first member and is the second. Two ordered pairs and are equal if and only if both members match:
You have already seen ordered pairs in coordinate geometry: the point is different from the point . In an ordered pair, order matters.
Definition of a Function
A function is a set of ordered pairs in which no two pairs share the same first member.
The set of all elements that appear as first members of pairs in is called the domain of . The set of all second members is called the range (or set of values) of .
Think of a function as a two-column table: the left column holds -values (the domain), the right column holds the corresponding -values (the range). The key rule is that no two rows can have the same -value with different -values. In set notation:
Let
Solution
is a function because no two pairs share the same first element. The domain and range are:
Function Notation Revisited
Since for every in the domain there is precisely one with , once is specified, is uniquely determined. This justifies the familiar notation
which simply means "the pair belongs to the set ." The notation is more efficient and readable than writing every time.
Domain, Range, and Codomain
When we write , we declare:
- 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, defined by has codomain but range .
In the next section, we will study domain and range of a function in more detail and various examples.