# Relation

*1,069*pages on

this wiki

## Ad blocker interference detected!

### Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Informally, a **relation** is a rule that describes how elements of a set relate, or interact, with elements of another set. Relations can include, but are not limited to, familial relations (Person A is Person B's mother; or Person A and Person B have the same last name), geographic relations (State A shares a border with State B), and numerical relations (; or ).

A **relation **is also a set of ordered pairs.

A **relation** from a set A to a set B is any subset of the Cartesian product A×B.

For example, if we let be the set of all cities, and the set of all U.S. States, we can define a relation to be the the set of ordered pairs for which the city is in the state .

See also total order.

## Notation

As a relation from a set to a set is formally viewed as a subset of the Cartesian product , the expression is a valid mathematical expression. However, such an expression can be cumbersome to write, and so we may adopt the alternate notation .