Mathematics and Statistics · Ch 1 — Sets and Relations
Relations
Relations
A relation captures the idea that some pairs of objects are connected by a rule while others are not — "is the price of", "is older than", "is the capital of". Formally, a relation links elements of one set to elements of another, and every such link is an ordered pair, so a relation is naturally a set of ordered pairs.
Definition. Let and be two non-empty sets. A relation from to is any subset of the Cartesian product :
If , we say " is related to " and write . A relation from a set to itself (a subset of ) is called a relation on .
Because a relation is just a subset of , and has elements, the total number of possible relations from to is (every subset of is a relation).
Describing a relation. A relation can be given by listing its ordered pairs (roster form) or by a rule. For example, with and , the rule "" gives the relation
Domain, range and codomain. For a relation from to :
Domain, range, codomain
- The domain of is the set of all first components of its pairs: — a subset of .
- The range of is the set of all second components: — a subset of .
- The codomain of is the whole set . …
A relation from to is any subset of ; means is …
The set of all first components of the ordered pairs in (a sub …
The set of all second components of the ordered pairs in (a subset of the …
The full second set from which second components may be drawn; the range is a subset …