Operation vs. Relation
Symbols placed between two objects, such as $+$ and $<$, do different kinds of things. A binary operation takes two objects and produces a new object of the same type. A binary relation takes two objects and says whether they are related (true or false).
Definitions
A binary operation is a way of combining two numbers to get another number.
A binary operation on a set $S$ is a function $\ast : S \times S \to S$. The output must be in the same set $S$ (the set is “closed” under the operation).
Examples
-
Addition on $\reals$ is a binary operation, because addition combines two real numbers into a new one: “$2 + 4$” produces $6$.
-
Multiplication on $\reals$ is a binary operation, because multiplication combines two real numbers into a new one: “$2 \times 4$” produces $8$.
-
$\cup$ is a binary operation on the subsets of $X$ because the union of two subsets of $X$ is a subset of $X$.
Non-examplesThings that may be mistaken for examples of this term.
-
$=$, $<$, and $\subseteq$ are not binary operations, because they do not produce a new number or set.
-
Subtraction is not a binary operation on $\nats$, because $3 - 5$ is not in $\nats$ (it is one on $\integers$).
A relation is a rule that determines whether whether two objects are related.
Consider sets $X$ and $Y$ and their product $X \times Y$. A binary relation between $X$ and $Y$ is a subset $R \subseteq X \times Y$. For $x \in X$ and $y \in Y$, the statement $x \mathrel{R} y$ (“$x$ is related to $y$”) is true if $(x, y) \in R$ and false if $(x, y) \notin R$.
Examples
-
$=$, $<$, and $\subseteq$ are relations because they make statements that are true or false: “$2 < 3$” is true and “$4 < 4$” is false.
-
$f \mapsto f^{\prime}$ is a relation: it relates each differentiable function $f$ to its derivative $f^{\prime}$.
-
The circle $x^2 + y^2 = 1$ is a relation between $\reals$ and $\reals$: it relates $x$ to $y$ if $x^2 + y^2 = 1$.
-
$f(x) = x^2$ is a relation between $\reals$ and $\reals$: it relates each $x$ to $x^2$, and its graph $\setdef{(x, x^2) \suchthat x \in \reals}$ is a subset of $\reals \times \reals$.
Non-examplesThings that may be mistaken for examples of this term.
-
Addition on $\reals$ is not a relation, because “$2 + 4$” does not have a true or false value.
-
Multiplication on $\reals$ is not a relation, because “$2 \times 4$” does not have a true or false value.
-
Subtraction is not a relation, because “$5 - 3$” is not true or false.
-
$\cup$ is not a relation, because “$A \cup B$” is not true or false.
-
“$x > 3$” is not a relation, which is a set of pairs.
-
The symbol $B$ is not a relation, because $B$ is a symbol of the language, and a relation is a set of tuples of objects. The symbol $B$ has no meaning until an interpretation is chosen, and different interpretations assign $B$ different relations. An interpretation with the plane $\reals^2$ as its domain of discourse can assign $B$ the betweenness relation \[B^D = \setdef{(x, y, z) \in (\reals^2)^3 \suchthat y \text{ lies on the line segment from } x \text{ to } z}.\] An interpretation with $\reals$ as its domain of discourse can assign $B$ the relation \[B^D = \setdef{(x, y, z) \in \reals^3 \suchthat x + y = z}.\]
Worked examples
-
Value:
$\setdef{(x, y) \in \reals \times \reals \suchthat x \text{ is less than } y}$
The relation $<$ on $\reals$ is the set of pairs $(x, y)$ such that $x$ is less than $y$, so $2 < 3$ is true because $(2, 3)$ is in the set, and $3 < 2$ is false because $(3, 2)$ is not in the set.
Examples
| Example | binary operation | relation | Why |
|---|---|---|---|
| $=$, $<$, and $\subseteq$ | ✗ | ✓ | binary operation: $=$, $<$, and $\subseteq$ are not binary operations, because they do not produce a new number or set.
relation: $=$, $<$, and $\subseteq$ are relations because they make statements that are true or false: “$2 < 3$” is true and “$4 < 4$” is false.
|
| Addition $+$ on $\reals$ | ✓ | ✗ | binary operation: Addition on $\reals$ is a binary operation, because addition combines two real numbers into a new one: “$2 + 4$” produces $6$.
relation: Addition on $\reals$ is not a relation, because “$2 + 4$” does not have a true or false value.
|
| Multiplication $\times$ on $\reals$ | ✓ | ✗ | binary operation: Multiplication on $\reals$ is a binary operation, because multiplication combines two real numbers into a new one: “$2 \times 4$” produces $8$.
relation: Multiplication on $\reals$ is not a relation, because “$2 \times 4$” does not have a true or false value.
|
| $\cup$ on the subsets of a set $X$ | ✓ | ✗ | binary operation: $\cup$ is a binary operation on the subsets of $X$ because the union of two subsets of $X$ is a subset of $X$.
relation: $\cup$ is not a relation, because “$A \cup B$” is not true or false.
|
| Subtraction on $\nats$ | ✗ | ✗ | binary operation: Subtraction is not a binary operation on $\nats$, because $3 - 5$ is not in $\nats$ (it is one on $\integers$).
relation: Subtraction is not a relation, because “$5 - 3$” is not true or false.
|
Notes
- “$2 + 3 = 5$” combines both: $+$ is an operation that produces $5$, and $=$ is a relation that makes the whole statement a proposition.
- “Operator” is often used for “operation” in elementary arithmetic (the “plus operator”), but in analysis an operator is a map between vector spaces. See types of maps.