Functions explained through an analogy
We start from two sets A and B
Let $A$ and $B$ be two sets. A function is a mapping from elements of $A$ onto elements in $B$ that follows three rules:
The three fundamental rules for a function $f: A \to B$:
-
Domain Rule: For every element $x \in A$, there exists at least one element $y \in B$ such that $f(x) = y$.
-
Uniqueness Rule: For every element $x \in A$, there exists at most one element $y \in B$ such that $f(x) = y$.