Wize Engineering Mathematics Textbook > Linear Algebra

Subspaces, Basis, Dimension, Rank, Column Space and Null Space

From Subspaces to Rank-Nullity

A subspace of Rn\mathbb{R}^n is a set that contains the zero vector and is closed under vector addition and scalar multiplication.


A quick way to prove that a set is a subspace is to take arbitrary vectors in it and show that every linear combination remains in it. A set defined by a homogeneous linear equation, such as x1−2x2+x3=0x_1-2x_2+x_3=0, is a subspace.


Replacing the right side by a nonzero constant removes the zero vector, so the set is not a subspace; it is a translate of one, and checking the origin is the cheapest test available because it needs no arithmetic beyond substitution.


The span of a list of vectors is the collection of all their linear combinations. A basis for a space must do two jobs: span the entire space and be linearly independent.


Because a basis contains no redundant vectors, every basis for the same finite-dimensional space has the same number of vectors, and that number is the dimension.


A spanning list that is too long is not a basis, and an independent list that is too short is not one either; both failures are common and they are opposite failures.

Three vectors drawn from a common point in a plane W. The dashed segments complete a parallelogram: translating c2 to the tip of c1, and c1 to the tip of c2, both land on the tip of c3, which is the geometric statement that c3 is a sum of the other two.

Three vectors drawn from a common point in a plane W. The dashed segments complete a parallelogram: translating c2 to the tip of c1, and c1 to the tip of c2, both land on the tip of c3, which is the geometric statement that c3 is a sum of the other two.

Reading a matrix

For a matrix AA, the column space Col⁡(A)\operatorname{Col}(A) is spanned by its columns, while the null space Nul⁡(A)\operatorname{Nul}(A) contains all vectors satisfying Ax=0A\mathbf{x}=\mathbf{0}. The two live in different places: if AA is m×nm\times n, then Col⁡(A)⊆Rm\operatorname{Col}(A)\subseteq\mathbb{R}^m and Nul⁡(A)⊆Rn\operatorname{Nul}(A)\subseteq\mathbb{R}^n, so their dimensions answer different questions.


Both are constrained by the column count: rank⁡(A)≤min⁡(m,n)\operatorname{rank}(A)\leq\min(m,n) and nullity⁡(A)=n−rank⁡(A)≤n\operatorname{nullity}(A)=n-\operatorname{rank}(A)\leq n. Row reduction reveals pivot columns and free variables. The number of pivots is the rank, which equals dim⁡(Col⁡(A))\dim(\operatorname{Col}(A)). If AA has nn columns, then

rank⁡(A)+nullity⁡(A)=n.\operatorname{rank}(A)+\operatorname{nullity}(A)=n.


For example, let A=[101011]A=\begin{bmatrix}1&0&1\\0&1&1\end{bmatrix}. Its first two columns are pivot columns, so they form a basis for the column space and the rank is 22. Solving Ax=0A\mathbf{x}=\mathbf{0} gives x1=−sx_1=-s, x2=−sx_2=-s, and x3=sx_3=s. Thus the null space has basis {(−1,−1,1)}\{(-1,-1,1)\} and dimension 11, confirming rank-nullity because 2+1=32+1=3.

What changes when the matrix changes

Rank-nullity is an identity, not a fixed pair of numbers, so both sides move when the matrix does. Two cases are worth separating.


Appending a column that already lies in the column space leaves the rank alone but raises nn by one, so the nullity rises by one: the new column contributes a free variable and a new dependency relation.


Appending a column outside the column space raises the rank by one and leaves the nullity unchanged. The chart shows the trade-off line for two different column counts; adding a column shifts the whole line up by one without changing its slope.

Rank-nullity trade-off for two different column counts

Rank-nullity trade-off for two different column counts


A common mistake is to use columns of the reduced matrix as a basis for the original column space. Row operations preserve pivot locations and the null-space solution set, but they generally change the column space. Use the pivot positions to select columns from the original matrix.

In the figure, c3=c1+c2\mathbf{c}_3=\mathbf{c}_1+\mathbf{c}_2, and c1\mathbf{c}_1 and c2\mathbf{c}_2 are not scalar multiples of each other. Which displayed set is a basis for the plane WW?

Three vectors drawn from a common point in a plane W. The dashed segments complete a parallelogram: translating c2 to the tip of c1, and c1 to the tip of c2, both land on the tip of c3, which is the geometric statement that c3 is a sum of the other two.

Three vectors drawn from a common point in a plane W. The dashed segments complete a parallelogram: translating c2 to the tip of c1, and c1 to the tip of c2, both land on the tip of c3, which is the geometric statement that c3 is a sum of the other two.

Rank-nullity trade-off for two different column counts

Rank-nullity trade-off for two different column counts

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A matrix AA has 88 columns and rank 22. Three of its eight columns are then changed so that the rank rises to 55; the matrix still has 88 columns. Finally one further column is appended, and that new column is a linear combination of the columns already present. What are the rank and nullity of the resulting matrix?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Let S={(x1,x2,x3)∈R3:x1+x2=1}S=\{(x_1,x_2,x_3)\in\mathbb{R}^3:x_1+x_2=1\}. Which statement about SS is correct?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors