Skip to content

Mathematics · Ch 1 — Sets, Relations and Functions

Relations

1.5

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. "mm is related to nn if mm divides nn", "xx is related to yy if x≤yx\le y", "a point pp is related to a line LL if pp lies on LL", "student XX is related to school SS if XX studies at SS".

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, {(L,O),(E,H),(T,W),(U,X),(S,V),(W,Z),(I,L),(N,Q)}\{(L,O),(E,H),(T,W),(U,X),(S,V),(W,Z),(I,L),(N,Q)\} is a subset of C×DC\times D where C={L,E,T,U,S,W,I,N}C=\{L,E,T,U,S,W,I,N\} and D={O,H,W,X,V,Z,L,Q}D=\{O,H,W,X,V,Z,L,Q\} -- a relation described purely as a set of ordered pairs.

Illustration -- geometry. The line 2x−y=02x-y=0 (i.e. y=2xy=2x) is the set {(x,2x):x∈R}⊆R×R\{(x,2x):x\in R\}\subseteq R\times R; the parabola x2−y=0x^2-y=0 is {(x,x2):x∈R}\{(x,x^2):x\in R\}; the sideways parabola x−y2=0x-y^2=0 splits into {(x,x)}\{(x,\sqrt x)\} and {(x,−x)}\{(x,-\sqrt x)\} for x≥0x\ge0. All three are subsets of a Cartesian product -- exactly the pattern a relation follows.

Formal definition. For non-empty sets A,BA,B, a relation RR from AA to BB is any subset of A×BA\times B, written R⊆A×BR\subseteq A\times B. A relation from AA to BB is generally different from a relation from BB to AA.

  • Domain of RR: {a∈A:(a,b)∈R for some b∈B}\{a\in A:(a,b)\in R\text{ for some }b\in B\} -- the set of first coordinates that actually occur.
  • Range of RR: {b∈B:(a,b)∈R for some a∈A}\{b\in B:(a,b)\in R\text{ for some }a\in A\} -- the set of second coordinates that actually occur. BB itself is called the co-domain; the range is always a subset of the co-domain.

Extreme relations. For any set AA, both ∅\varnothing and A×AA\times A are relations on AA: the empty relation and the universal relation. …