Naive Set Theory: Functions
Restrictions
It is sometimes handy to "shrink" down a function to only be defined on a subset of its domain. Such a shrunken function is called a restriction.
Formally, the restriction of a function $f : A \rightarrow B$ to a subset $A' \subseteq A$ is a new function $f|A' : A' \rightarrow B$ whose rule is $\{(a, f(a)) : a \in A'\}$. Equivalently, the rule for $f|A'$ is simply $f|A'(a) = f(a)$ for all $a \in A'.$
Problems
Let $f : \mathbb{R} \rightarrow \mathbb{R}$ be a function whose rule is $f(x) = \cos(x)$. Graph the following:
- $f|\mathbb{R}_{[-\pi,\pi]}$
- $f|\mathbb{R}_{[-\frac{3\pi}{4},-\frac{\pi}{4}]}$
- $f|\mathbb{R}_{[-\frac{pi}{2},\frac{3\pi}{4}]}$
Let $f : A \rightarrow B$ be a function, and let $A'' \subseteq A' \subseteq A$. Show that $f|A'' = (f|A')|A''$.
The restriction $(f|A')|A''$ is a function whose codomain is $B$ and whose rule is $\{(a, f|A'(a)) : a \in A''\}$. In turn, the restriction $f|A'$ is a function whose codomain is $B$ and whose rule is $\{(a, f(a)) : a \in A'\}$. It follows that for all $a \in A''$, $f|A'(a) = f(a)$. Therefore we can rewrite the rule for $(f|A')|A''$ as $\{(a, f(a)) : a \in A''\}$. But this is exactly the rule for $f|A''$. Because $(f|A')|A''$ and $f|A''$ have the same codomain and rule, the two restrictions are equal.