A relation between two sets puts pairs of elements into correspondence: it is the first step towards the concept of a function.

Definition — Relation

A relation is a set of “arrows” that connect elements of one set (the domain set) to elements of another set (the codomain set).

Example — The relation "had a puppy with"

Let A={George, Rufus, Albert, Jack}A=\{\text{George, Rufus, Albert, Jack}\} and B={Susie, Prilly, Jay, Jill, Nerina}B=\{\text{Susie, Prilly, Jay, Jill, Nerina}\}. The relation f ⁣:ABf\colon A\to B defined by ”aa had a puppy with bb” is represented by arrows:

Each arrow connects an element of AA to an element of BB.

The same relation can be written in equivalent ways:

  • Ordered pairs: {(George, Susie),(George, Prilly),(Rufus, Jay),(Jack, Jay),(Jack, Jill)}\{(\text{George, Susie}),\,(\text{George, Prilly}),\,(\text{Rufus, Jay}),\,(\text{Jack, Jay}),\,(\text{Jack, Jill})\}.
  • Cartesian representation: each arrow corresponds to a point of the plane, with AA on the horizontal axis and BB on the vertical axis.

Topics: Set theory
Concepts: Ordered pair · Cartesian plane · Relation