Before moving to relations, recall sets:
For two non-empty sets $A$ and $B$, the Cartesian Product is the set of all ordered pairs:
A Relation $R$ from set A to set B is a subset of $A \times B$.
Relations defined on a single set $A$ ($R \subseteq A \times A$):
Note: Both Empty and Universal relations are symmetric and transitive!
Let $R$ be a relation on set $A$:
A relation that satisfies all three: Reflexive, Symmetric, AND Transitive.
A relation $R$ on $A$ is Anti-Symmetric if:
This means if $a \neq b$, you cannot have both $(a,b)$ and $(b,a)$ in the relation.
Classic Example: The relation $\leq$ (less than or equal to) is anti-symmetric on $\mathbb{R}$.
If $R$ is an equivalence relation on set $A$, it partitions $A$ into disjoint subsets called Equivalence Classes.
The most important equivalence relation in integers!
Modulo 3 on $\mathbb{Z}$ gives 3 disjoint classes:
A mapping $f: A \rightarrow B$ where each element of A has exactly one image in B.
Draw any horizontal line across the graph.
Absolute value function $f(x) = |x|$.
$f(x) = |x - a| + |x - b|$
Graph forms a "trough" or boat shape with a flat bottom between critical points $x=a$ and $x=b$.
Floor function $f(x) = [x]$ maps $x$ to the greatest integer $\le x$.
Graph is a "staircase" with open right endpoints.
$f(x) = \{x\} = x - [x]$
Graph forms a repeating "sawtooth" pattern.
Extracts the sign of a real number.
Also written as $\text{sgn}(x) = \frac{|x|}{x}$ for $x \neq 0$.
Range contains exactly three values: $\{-1, 0, 1\}$.
Let $n(A) = m$ and $n(B) = n$:
Composite function $g \circ f$ maps A directly to C via B.
A function $f$ is invertible $\iff$ $f$ is Bijective.
$*: A \times A \rightarrow A$. Takes two inputs from A and produces an output in A (Closure).
If a function isn't bijective (e.g., $y=x^2$), restrict its domain to $[0, \infty)$ to make it invertible!
Here's a quick visual overview of the entire chapter!