Maths WorkshopMaths problems with full solutions
Exercise 577Logic, sets and proofs › Sets and mapsL1Added 3 Nov 2026

Relations and their graphs

#relation#binary relation#graph

Statement

Define a binary relation on a set AA, and give an example.

Hint

A binary relation is a subset of A×AA\times A.

Show solutionHide solution

Solution

Definition. A binary relation R\mathcal{R} on AA is a subset R⊆A×A\mathcal{R}\subseteq A\times A.

Example. A={1,2,3}A=\{1,2,3\}, R={(1,1),(1,2),(2,3)}\mathcal{R}=\{(1,1),(1,2),(2,3)\} is a relation on AA.

Notation. (a,b)∈R(a,b)\in\mathcal{R} is often written aRba\mathcal{R}b.

Conclusion. Relations are sets of ordered pairs, allowing arbitrary patterns of connections.