$$ \newcommand{\qed}{\tag*{$\square$}} \newcommand{\span}{\operatorname{span}} \newcommand{\dim}{\operatorname{dim}} \newcommand{\rank}{\operatorname{rank}} \newcommand{\norm}[1]{\|#1\|} \newcommand{\grad}{\nabla} \newcommand{\prox}[1]{\operatorname{prox}_{#1}} \newcommand{\inner}[2]{\langle{#1}, {#2}\rangle} \newcommand{\mat}[1]{\mathcal{M}[#1]} \newcommand{\null}[1]{\operatorname{null} \left(#1\right)} \newcommand{\range}[1]{\operatorname{range} \left(#1\right)} \newcommand{\rowvec}[1]{\begin{bmatrix} #1 \end{bmatrix}^T} \newcommand{\Reals}{\mathbf{R}} \newcommand{\RR}{\mathbf{R}} \newcommand{\Complex}{\mathbf{C}} \newcommand{\Field}{\mathbf{F}} \newcommand{\Pb}{\operatorname{Pr}} \newcommand{\E}[1]{\operatorname{E}[#1]} \newcommand{\Var}[1]{\operatorname{Var}[#1]} \newcommand{\argmin}[2]{\underset{#1}{\operatorname{argmin}} {#2}} \newcommand{\optmin}[3]{ \begin{align*} & \underset{#1}{\text{minimize}} & & #2 \\ & \text{subject to} & & #3 \end{align*} } \newcommand{\optmax}[3]{ \begin{align*} & \underset{#1}{\text{maximize}} & & #2 \\ & \text{subject to} & & #3 \end{align*} } \newcommand{\optfind}[2]{ \begin{align*} & {\text{find}} & & #1 \\ & \text{subject to} & & #2 \end{align*} } $$
Every linear map sends at least one vector in its domain to the zero vector. It is sometimes the case that a map sends non-zero vectors to the zero vector as well — an extreme example is the zero map. The set of vectors collapsed to zero and the complement of that are two key attributes of linear maps, as they in some loose sense capture the number of degrees of freedom that a map posseses. We formalize this idea in this section by studying null spaces and ranges.
Definition 6.1 The null space of a linear map , denoted by , is the set of vectors such that for all . A synonym for null space is kernel.
Definition 6.2 The range of a linear map , denoted by , is the set of vectors such that for some . A synonym for range is image.
You should verify that both the null space and the range of linear map are subspaces of .
Intuitively, the dimension of the range of a linear map tells us how many degrees of freedom has, and the dimension of its null space tells us how degenerate it is. These are, apparently, two sides of the same coin, and this symmetry can be made precise via the following theorem.
Theorem 6.3: Rank-Nullity. Let be a linear map. Then is finite-dimensional and
Proof sketch. Let be a basis for , and extend this list of vectors to a basis of of the form . Show that spans , and also show that is linearly independent. Conclude that .
Definition 6.4 A linear map is injective if implies for all vectors and in .
Null space and injectivity are intimately tied: a linear map is injective if and only if its null space is .
A synonym for “injective” is one-to-one. You can think of an injective map as one that injects a smaller space into a larger or equally sized one. Indeed, there exists an injective linear map from to if and only if (use the rank-nullity theorem to prove this to yourself).
Definition 6.5 A linear map is surjective if for every there exists some such that , that is, if .
A synonym for “surjective” is onto, in the sense that is surjective if its range completely covers . It should be intuitive that there exists a surjective linear map from to if and only (again, use the rank-nullity theorem to prove this to yourself).
Linear Algebra Done Right, by Sheldon Axler.