1. Relations
A relation is a fundamental connection between the elements of two sets. To understand relations, we first need to define the Cartesian Product.
Ordered Pair: $(x, y)$ where order matters. $(x, y) \neq (y, x)$
Cartesian Product ($A \times B$): The set of all possible ordered pairs from set $A$ to set $B$.
$A \times B = \{ (x, y) \mid x \in A, y \in B \}$
Relation ($R$): Any subset of the Cartesian Product. $R \subseteq (A \times B)$
Cartesian Product ($A \times B$): The set of all possible ordered pairs from set $A$ to set $B$.
$A \times B = \{ (x, y) \mid x \in A, y \in B \}$
Relation ($R$): Any subset of the Cartesian Product. $R \subseteq (A \times B)$
Key Terminology
| Term | Definition |
|---|---|
| Domain | The set of all first elements ($x$-coordinates) of the ordered pairs in a relation. |
| Range | The set of all second elements ($y$-coordinates) that are actually mapped to in the relation. |
| Codomain | The entire target set $B$. (Note: Range $\subseteq$ Codomain). |
| Inverse Relation ($R^{-1}$) | Created by swapping the $x$ and $y$ values of $R$. $R^{-1} = \{ (y, x) \mid (x, y) \in R \}$ |
Example: Let $A = \{1, 2\}$ and $B = \{a, b, c\}$.
Let relation $R = \{(1, a), (2, b)\}$.
* Domain of $R = \{1, 2\}$
* Range of $R = \{a, b\}$
* Codomain = $\{a, b, c\}$
* Inverse $R^{-1} = \{(a, 1), (b, 2)\}$
Let relation $R = \{(1, a), (2, b)\}$.
* Domain of $R = \{1, 2\}$
* Range of $R = \{a, b\}$
* Codomain = $\{a, b, c\}$
* Inverse $R^{-1} = \{(a, 1), (b, 2)\}$