Skip to main content

6  Linearity and Fundamental Subspaces

A linear system asks for coefficients that combine the columns of a matrix to produce a prescribed vector. The answer depends on two different questions. Is the prescribed vector in the span of the columns? If it is, can two different coefficient vectors produce it? The range and null space express these questions directly.

6.1 Linear Systems and Geometric Interpretations

A matrix equation \(\bA\bx = \bb\) expresses the requirement that a data vector \(\bb\) be produced by a linear combination of the columns of \(\bA\), weighted by the unknown coordinates \(\bx\).

NoteDefinition: Linear System

A linear system of \(m\) equations in \(n\) unknowns is written in matrix-vector form as \[ \begin{align} \bA\bx = \bb, \end{align} \] where \(\bA \in \fR^{m \times n}\) is the coefficient matrix, \(\bx \in \fR^n\) is the unknown solution vector, and \(\bb \in \fR^m\) is the right-hand side vector.

WarningExercise

Consider \[ \begin{align} \bA=\begin{pmatrix}1&2\\2&4\end{pmatrix}. \end{align} \] Find every solution for \(\bb=(1,2)^T\), then show that no solution exists for \(\bb=(1,3)^T\). Interpret the two systems as pairs of lines. Which multiples of the columns can the matrix produce, and which nonzero vectors does it send to zero?

TipRemark

(Row versus column perspectives) There are two complementary geometric interpretations of \(\bA\bx = \bb\):

  1. Row view: Each nonzero row \(\ba_i^T\bx=b_i\) defines an affine hyperplane in \(\fR^n\). A zero row gives either no restriction or an inconsistent equation, depending on \(b_i\). Solving the system means locating the mutual intersection of these \(m\) hyperplanes.

  2. Column view: Partitioning \(\bA = [\ba_1, ..., \ba_n]\) into its columns, the product evaluates to \(\bA\bx = \sum_{j=1}^n x_j \ba_j\). Solving the system means expressing the vector \(\bb\) as a linear combination of the column vectors of \(\bA\).

NoteTheorem: Superposition Principle

Let \(\bA \in \fR^{m \times n}\) define a linear operator. If \(\bA\bx_1 = \bb_1\) and \(\bA\bx_2 = \bb_2\), then for any scalars \(\alpha, \beta \in \fR\), \[ \begin{align} \bA(\alpha\bx_1 + \beta\bx_2) = \alpha\bb_1 + \beta\bb_2. \end{align} \] Consequently, the solution to a linear system with a composite source term decomposes into a linear combination of individual response vectors.

WarningExercise

Prove superposition by distributing \(\bA\) over the linear combination. If \(\bA\) is singular and the two systems are consistent, explain why the conclusion still holds even though their solutions may not be unique.

6.2 Invertibility and the Four Fundamental Subspaces

The solvability and uniqueness of solutions are governed by four fundamental subspaces associated with \(\bA\).

NoteDefinition: The Four Fundamental Subspaces

Let \(\bA \in \fR^{m \times n}\).

  1. The Column Space (Range) \(\mathcal{R}(\bA) = \{ \bA\bx : \bx \in \fR^n \} \subseteq \fR^m\).

  2. The Null Space (Kernel) \(\mathcal{N}(\bA) = \{ \bx \in \fR^n : \bA\bx = \bzero \} \subseteq \fR^n\).

  3. The Row Space \(\mathcal{R}(\bA^T) = \{ \bA^T\by : \by \in \fR^m \} \subseteq \fR^n\).

  4. The Left Null Space \(\mathcal{N}(\bA^T) = \{ \by \in \fR^m : \bA^T\by = \bzero \} \subseteq \fR^m\).

The rank \(r = \operatorname{rank}(\bA)\) is the dimension of the column space \(\mathcal{R}(\bA)\).

NoteTheorem: The Rank-Nullity Theorem

Let \(\bA \in \fR^{m \times n}\) with rank \(r = \dim \mathcal{R}(\bA)\). Then \[ \begin{align} \operatorname{rank}(\bA) + \dim \mathcal{N}(\bA) = n. \end{align} \]

Let \(k = \dim \mathcal{N}(\bA)\), and choose a basis \(\{\bv_1, ..., \bv_k\}\) for the null space. Extend this list to a basis \(\{\bv_1, ..., \bv_n\}\) of \(\fR^n\). The basis-extension theorem permits this choice because the null space is a subspace of \(\fR^n\). The first \(k\) basis vectors are precisely those on which the matrix vanishes. We will show that the images of the other \(n-k\) vectors form a basis of the range.

For any \(\bx \in \fR^n\), expand \(\bx = \sum_{i=1}^n c_i \bv_i\). Linearity gives \[ \begin{align} \bA\bx = \sum_{i=1}^k c_i \bA\bv_i + \sum_{i=k+1}^n c_i \bA\bv_i = \bzero + \sum_{i=k+1}^n c_i \bA\bv_i = \sum_{i=k+1}^n c_i \bA\bv_i. \end{align} \] Thus the vectors \(\{\bA\bv_{k+1}, ..., \bA\bv_n\}\) span \(\mathcal{R}(\bA)\). Spanning alone would only bound the rank from above. We must also rule out dependence among these output vectors before concluding that their number equals the rank.

To establish linear independence, suppose \(\sum_{i=k+1}^n d_i \bA\bv_i = \bzero\). Linearity yields \[ \begin{align} \bA\left(\sum_{i=k+1}^n d_i \bv_i\right) = \bzero \quad \Longrightarrow \quad \bw = \sum_{i=k+1}^n d_i \bv_i \in \mathcal{N}(\bA). \end{align} \] Because \(\{\bv_1, ..., \bv_k\}\) is a basis for \(\mathcal{N}(\bA)\), there exist coefficients \(a_1, ..., a_k\) such that \(\bw = \sum_{j=1}^k a_j \bv_j\). Equating the two expressions gives \[ \begin{align} \sum_{j=1}^k a_j \bv_j - \sum_{i=k+1}^n d_i \bv_i = \bzero. \end{align} \] Since the full set \(\{\bv_1, ..., \bv_n\}\) is linearly independent, every coefficient vanishes: \[ \begin{align} a_1 = ... = a_k = d_{k+1} = ... = d_n = 0. \end{align} \] Therefore \(\{\bA\bv_{k+1}, ..., \bA\bv_n\}\) is a basis for \(\mathcal{R}(\bA)\), containing exactly \(n - k\) vectors. Hence \[ \begin{align} r = n - k = n - \dim\mathcal{N}(\bA) \quad \Longrightarrow \quad \operatorname{rank}(\bA) + \dim \mathcal{N}(\bA) = n. \end{align} \]

NoteTheorem: Fundamental Theorem of Linear Algebra and Orthogonal Decompositions

For any matrix \(\bA \in \fR^{m \times n}\):

  1. The row space and null space are orthogonal complements in \(\fR^n\): \[ \begin{align} \mathcal{R}(\bA^T) \perp \mathcal{N}(\bA) \qquad \text{and} \qquad \fR^n = \mathcal{R}(\bA^T) \oplus \mathcal{N}(\bA). \end{align} \]

  2. The column space and left null space are orthogonal complements in \(\fR^m\): \[ \begin{align} \mathcal{R}(\bA) \perp \mathcal{N}(\bA^T) \qquad \text{and} \qquad \fR^m = \mathcal{R}(\bA) \oplus \mathcal{N}(\bA^T). \end{align} \]

Consequently, \(\dim \mathcal{R}(\bA^T) = \dim \mathcal{R}(\bA) = \operatorname{rank}(\bA)\).

Let the rows of \(\bA\) be \(\ba_1^T,...,\ba_m^T\). The equation \(\bA\bx=\bzero\) is equivalent to the \(m\) scalar equations \(\ba_i^T\bx=0\). Thus a vector belongs to the null space exactly when it is perpendicular to every row.

A vector perpendicular to each row is perpendicular to every linear combination of rows, because \[ \begin{align} \left(\sum_i c_i\ba_i\right)^T\bx=\sum_i c_i\ba_i^T\bx=0. \end{align} \] Conversely, being perpendicular to the row span implies being perpendicular to each individual row. Since this span is \(\mathcal R(\bA^T)\), \[ \begin{align} \mathcal N(\bA)=\mathcal R(\bA^T)^\perp. \end{align} \] In a finite-dimensional inner-product space, \(S^{\perp\perp}=S\): extend an orthonormal basis of \(S\) to one of the entire space, and the remaining basis vectors span \(S^\perp\). Taking the complement again returns the original basis vectors. Hence \[ \begin{align} \mathcal N(\bA)^\perp=\mathcal R(\bA^T). \end{align} \] The same calculation applied to the matrix \(\bA^T\) gives \(\mathcal N(\bA^T)=\mathcal R(\bA)^\perp\) and its equivalent reversed-complement identity.

The orthonormal-basis construction also proves the direct-sum decompositions and the dimension rule \(\dim S+\dim S^\perp=n\) in \(\fR^n\). Therefore \[ \begin{align} \dim\mathcal R(\bA^T) =n-\dim\mathcal N(\bA) =\operatorname{rank}(\bA), \end{align} \] where the last equality is rank–nullity. Thus row rank equals column rank.

NoteTheorem: Solvability and the Left Null Space

The linear system \(\bA\bx = \bb\) has a solution if and only if \(\bb \in \mathcal{R}(\bA)\). Equivalently, \(\bA\bx = \bb\) is solvable if and only if \(\bb\) is orthogonal to every vector in the left null space of \(\bA\): \[ \begin{align} \bA\bx = \bb \text{ has a solution} \iff \by^T\bb = 0 \quad \text{for all } \by \text{ such that } \bA^T\by = \bzero. \end{align} \] If a solution exists and \(\bx_p\) is one particular solution, the complete set of solutions is the affine space \[ \begin{align} \bx = \bx_p + \bz, \qquad \bz \in \mathcal{N}(\bA). \end{align} \]

Solvability means that \(\bb\) can be produced as an output \(\bA\bx\). By the definition of the range, this is exactly \(\bb\in\mathcal R(\bA)\). The preceding theorem identifies that range with \(\mathcal N(\bA^T)^\perp\). Consequently \[ \begin{align} \bA\bx=\bb\text{ is solvable} \quad\Longleftrightarrow\quad \by^T\bb=0\text{ for every }\by\text{ with }\bA^T\by=\bzero. \end{align} \] One direction can also be checked directly: if \(\bb=\bA\bx\), then \(\by^T\bb=(\bA^T\by)^T\bx=0\). The subspace theorem supplies the converse, which is not obtained by this calculation alone.

Now suppose a solution \(\bx_p\) has been found. For any \(\bz\in\mathcal N(\bA)\), \[ \begin{align} \bA(\bx_p+\bz)=\bA\bx_p+\bA\bz=\bb+\bzero=\bb. \end{align} \] Thus every vector in \(\bx_p+\mathcal N(\bA)\) is a solution.

To prove that these are all the solutions, take any \(\bx\) satisfying the equations and subtract the equations for \(\bx_p\): \[ \begin{align} \bA(\bx-\bx_p)=\bA\bx-\bA\bx_p=\bb-\bb=\bzero. \end{align} \] Hence \(\bz=\bx-\bx_p\) belongs to the null space and \(\bx=\bx_p+\bz\). A trivial null space therefore gives uniqueness. A nonzero null-space vector gives distinct solutions by adding its scalar multiples.

WarningExercise

The Fredholm alternative and inconsistent systems. Consider the \(3 \times 2\) system \[ \begin{align} \bA = \begin{pmatrix} 1 & 1 \\ 1 & 2 \\ 2 & 3 \end{pmatrix}, \qquad \bb = \begin{pmatrix} 1 \\ 2 \\ b_3 \end{pmatrix}. \end{align} \]

  1. Compute a basis for the left null space \(\mathcal{N}(\bA^T)\).

  2. Apply the referenced result to find the exact value of \(b_3\) that makes the system consistent.

  3. For \(b_3 = 5\), find the orthogonal projection of \(\bb\) onto \(\mathcal{R}(\bA)\) and compute the minimum residual norm \(\min_{\bx} \|\bA\bx - \bb\|_2\).

TipRemark

This compatibility condition is often called the finite-dimensional Fredholm alternative. Each left-null vector describes one obstruction that a solvable right-hand side must avoid.

6.3 Further Exercises

WarningExercise

Dimensions and bases for the four fundamental subspaces. Let \[ \begin{align} \bA = \begin{pmatrix} 1 & 2 & 1 & 3 \\ 2 & 4 & 1 & 4 \\ 3 & 6 & 2 & 7 \end{pmatrix}. \end{align} \]

  1. Compute the row reduced echelon form of \(\bA\). Determine the rank \(r = \operatorname{rank}(\bA)\).

  2. Find bases for \(\mathcal{R}(\bA)\), \(\mathcal{N}(\bA)\), \(\mathcal{R}(\bA^T)\), and \(\mathcal{N}(\bA^T)\). After studying QR factorization, return and replace them by orthonormal bases.

  3. Confirm that \(\dim \mathcal{R}(\bA) + \dim \mathcal{N}(\bA^T) = 3\) and \(\dim \mathcal{R}(\bA^T) + \dim \mathcal{N}(\bA) = 4\).

  4. Verify numerically that every vector in your basis of \(\mathcal{R}(\bA^T)\) is orthogonal to every vector in your basis of \(\mathcal{N}(\bA)\).

WarningExercise

Decomposition into row space and null space components. Let \(\bA \in \fR^{m \times n}\).

  1. Prove that every vector \(\bx \in \fR^n\) has a unique orthogonal decomposition \(\bx = \bx_{\text{row}} + \bx_{\text{null}}\) with \(\bx_{\text{row}} \in \mathcal{R}(\bA^T)\) and \(\bx_{\text{null}} \in \mathcal{N}(\bA)\).

  2. Show that \(\bA\bx = \bA\bx_{\text{row}}\), demonstrating that the null-space component contributes nothing to the output.

  3. Prove that among all solutions to a consistent underdetermined system \(\bA\bx = \bb\), the unique solution of minimal Euclidean norm \(\|\bx\|_2\) lies strictly in the row space: \(\bx_{\text{min}} \in \mathcal{R}(\bA^T)\).