In
mathematics, the
inverse relation of a
binary relation is the relation that occurs when the order of the elements is switched in the relation. For example, the inverse of the relation 'child of' is the relation 'parent of'. In formal terms, if
are sets and
is a relation from
X to
Y then
is the relation defined so that
if and only if
. In
set-builder notation,
.