Mathematics · Ch 1 — Sets, Relations and Functions
Relations
Relations
From everyday relations to mathematics. "How is he related to you?" ("my father", "my teacher", "not related") shows that relation connects one person to another. Mathematics borrows this: a relation connects one mathematical object to another -- e.g. " is related to if divides ", " is related to if ", "a point is related to a line if lies on ", "student is related to school if studies at ".
Illustration -- cryptography. A Caesar cipher shifts every letter three places later in the alphabet: "LET US WIN" becomes "OHW XVZ LQ". Written as ordered pairs, is a subset of where and -- a relation described purely as a set of ordered pairs.
Illustration -- geometry. The line (i.e. ) is the set ; the parabola is ; the sideways parabola splits into and for . All three are subsets of a Cartesian product -- exactly the pattern a relation follows.
Formal definition. For non-empty sets , a relation from to is any subset of , written . A relation from to is generally different from a relation from to .
- Domain of : -- the set of first coordinates that actually occur.
- Range of : -- the set of second coordinates that actually occur. itself is called the co-domain; the range is always a subset of the co-domain.
Extreme relations. For any set , both and are relations on : the empty relation and the universal relation. …