Row Space and Null Space
Learn two complementary subspaces of a matrix, row space and null space.
Definition of row space
The row space of a matrix, , denoted by , is the span of its row vectors. Mathematically,
Example
The row space of is the plane in , which can also be seen as a column space of . The column space of is , with a basis as the first and third columns of . Both the row space and column space of are two dimensional, but they’e fundamentally different.
Note: Even though and have the same dimensions, and aren’t necessarily the same.
When R(A)=C(A)?
When the following conditions are true, .
- is invertible. Consider an invertible matrix, . All columns are linearly independent and hence span . All rows are also linearly independent and hence span .
- is symmetric. Because both the set of columns and rows are the same, their span is also the same space.
Null space
The null space of an matrix, ,
contains a subset of which transforms to a zero vector.
The null space of is typically denoted by .
Note: The zero-vector is always in the null space.
Note: Because is closed under linear combinations, it’s a vector space. In particular, .
The null space of a matrix, , is the solution set of the homogeneous linear system, . When there are fewer pivots as compared to the number of variables, the solution set will be infinite. Otherwise, the only solution is the zero vector.
Example
Let’s look at an example where and .
It’s worth noting that every scalar multiple of is also a solution. The visualization below demonstrates that various vectors in the direction of map to the origin when transformed by .
In the visualization below, the null space is represented by a sequence of purple points, whereas the rest of the points are outside the null space. The visualization demonstrates the mapping of the null space to the origin, whereas the rest of the points map onto the column space of the matrix.
Get hands-on with 1400+ tech skills courses.