Number of relations
\[n(A)=m,\ n(B)=n \;\Rightarrow\; 2^{mn} \text{ relations from } A \text{ to } B\]
On a set with \(n\) elements there are \(2^{n^2}\) relations, \(2^{n^2-n}\) reflexive relations and \(2^{n(n+1)/2}\) symmetric relations.
Relations and Functions
If \(A\) and \(B\) are sets, a relation \(R\) from \(A\) to \(B\) is any subset of the Cartesian product \(A\times B\). If \((a,b)\in R\) we write \(a\,R\,b\) and say "\(a\) is related to \(b\)". A relation from \(A\) to itself is called a relation on \(A\).
Since \(A\times B\) has \(n(A)\cdot n(B)\) elements and every subset is a relation, there are \(2^{n(A)\,n(B)}\) relations from \(A\) to \(B\).
| Property | Definition | How to test |
|---|---|---|
| Reflexive | \((a,a)\in R\) for every \(a\in A\) | Check every element of \(A\) is related to itself. |
| Symmetric | \((a,b)\in R\Rightarrow(b,a)\in R\) | Every pair must have its reverse. |
| Transitive | \((a,b)\in R\) and \((b,c)\in R\Rightarrow(a,c)\in R\) | Every two-step chain needs its shortcut. |
To prove a property, argue for arbitrary elements. To disprove it, one counter-example is enough. For example, "\(a < b\)" on \(\mathbb{R}\) is transitive but not reflexive (\(2 < 2\) is false) and not symmetric (\(1 < 2\) but not \(2 < 1\)).
\[n(A)=m,\ n(B)=n \;\Rightarrow\; 2^{mn} \text{ relations from } A \text{ to } B\]
On a set with \(n\) elements there are \(2^{n^2}\) relations, \(2^{n^2-n}\) reflexive relations and \(2^{n(n+1)/2}\) symmetric relations.
Prove a property with arbitrary elements; disprove it with a single concrete counter-example.
On a non-empty set, the empty relation is symmetric and transitive but not reflexive; the universal relation \(A\times A\) is an equivalence relation.
For \(R=\{(1,1),(2,2)\}\) on \(A=\{1,2,3\}\), \(R\) is not reflexive because \((3,3)\) is missing.
In testing transitivity, \((1,2)\) and \((2,1)\) form a chain that requires \((1,1)\).
A fresh set of questions from this topic. Change answers freely – solutions appear after you submit.
Start PracticeRelation = subset of a Cartesian product. Test reflexive, symmetric, transitive separately; prove with general elements, disprove with one counter-example.
Create a free account to take practice sessions and tests, see detailed explanations and track your progress.