How can the matrix representing a relation R on a set A be used to determine whether the relation is irreflexive?

This is an interesting type of exercise.

To make easier this exercise, let’s write an irreflexive relation, represent it using a matrix, and find out what are the characteristics of such a matrix.

But first, let’s refresh what an irreflexive relation is.

Definition: “A relation R on the set A is irreflexive if for every a ∈ A, (a, a) ∈/ R. That is, R is irreflexive if no element in A is related to itself.”

Let R={(1,2),(2,1), (3,1)} be a relation on the set A={1,2,3}.

We can state that R is irreflexive as there is no element a∈A such that (a,a)∈R.

Now, let’s see the matrix representation of R.

Example of irreflexive relation
Example of irreflexive relation

Notice that all elements in the diagonal of the matrix are 0.

Also, notice that if at least 1 element in the diagonal was 1, then at least one element of the set A will be related with itself by R. This will make the relation not irreflexive.

Answer:

The relation is irreflexive if and only if the main diagonal of the matrix does not contain any 1. In other words, if the main diagonal of the matrix contains only 0s.

Related exercises: