A function \(\funcdef{f}{A}{B} \) is surjective if \(f(A) = B \text{.}\) Since we have \(f(A) \subseteq B \) by definition of image, to show that a function is surjective we only need to show \(f(A) \supseteq B \text{.}\)
Function \(\funcdef{f}{A}{B} \) is surjective if \(B \subseteq f(A) \text{.}\) That is, \(f \) is surjective if for every element \(b \in B \text{,}\) there exists at least one element \(a \in A \) such that \(f(a) = b \text{.}\)
Function \(\funcdef{f}{A}{B} \) is not surjective if there exists at least one element \(b \in B \) for which there is no element \(a \in A \) satisfying \(f(a) = b \text{.}\) (Equivalently, there exists \(b \in B \) for which every \(a \in A \) satisifes \(f(a) \neq b \text{.}\))
Consider an arbitrary element \(n \) of the codomain \(\N \text{.}\) Since \(\N \subseteq \Z \text{,}\)\(n \) is also an element of the domain. In particular, \(f(n) = n \text{,}\) since \(n\ge 0 \text{.}\) Therefore, as an element of the codomain, we have \(n\in f(\Z) \text{.}\)
We need to find a specific example of a rational number that is not an output for \(g \text{.}\) For this, we could use \(1/3 \text{,}\) since there is no integer such that \(m/2 = 1/3 \text{.}\)
Function \(\funcdef{f}{A}{B} \) is not injective if there exists at least one pair of elements \(a_1,a_2 \in A \) with \(a_1 \ne a_2 \) but \(f(a_1) = f(a_2) \text{.}\)
Example10.2.4.Demonstrating that a function is not injective.
The function \(\funcdef{f}{\R}{\R} \text{,}\)\(f(x) = x^2 \text{,}\) is not injective, since \(f \) has repeated outputs. For example, \(f(-1) = f(1) \text{.}\) And in fact, \(f(-x) = f(x) \) for every \(x\in \R \text{.}\)
Using the contrapositive version of the Injective Function Test, suppose domain elements \(n_1,n_2 \in \N \) satisfy \(f(n_1) = f(n_2) \text{.}\) Then using the formula defining the input-output rule for \(f \text{,}\) we have
Consider again \(\funcdef{f}{\Sigma}{\N} \) from ExampleΒ 10.2.6. If we write \(B = f(\Sigma) = \{1,2,3,\dotsc,26\} \text{,}\) then really we could think of the function as being defined \(\funcdef{f}{\Sigma}{B} \text{.}\) This version of \(f \) is bijective, and allows us to identify each letter with a corresponding number:
\begin{align*}
a \amp \leftrightarrow 1,
\amp b \amp \leftrightarrow 2,
\amp c \amp \leftrightarrow 3,
\amp \amp \dotsc,
\amp z \amp \leftrightarrow 26.
\end{align*}
In this way, we can think of \(\Sigma \) and \(B \) as essentially the same set.
Yes, \(h \) is bijective. It is injective because if \(m_1 \ne m_2 \) then \(-m_1 \ne -m_2 \text{.}\) And it is surjective because for \(n\in \Z \text{,}\) we can realize \(n \) as an output \(n = h(m) \) by setting \(m = -n \text{.}\)