1. Home
  2. Explore
  3. Mathematics
  4. Finding a Matrix’s Null Space

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Finding a Matrix’s Null Space

Null Spaces, Inhomogeneous Systems, and One-to-One Transformations

The null space of a matrix

For a matrix AAA, the null space (or kernel) is the set of all vectors xxx that satisfy the homogeneous system

Ax=0.Ax=0.Ax=0.

Thus,

Null⁡(A)={x:Ax=0}.\operatorname{Null}(A)=\{x:Ax=0\}.Null(A)={x:Ax=0}.

To find the null space, the system can be written as an augmented matrix [A∣0][A\mid 0][A∣0] and row-reduced. The same row operations are applied to both sides of the system. Because the right-hand side is the zero vector, it remains zero under these operations.

After row reduction, any free variables describe the possible solutions. The resulting solution set can be expressed as all linear combinations of certain vectors:

Null⁡(A)=span⁡{v1,v2,…,vk}.\operatorname{Null}(A) = \operatorname{span}\{v_1,v_2,\ldots,v_k\}.Null(A)=span{v1​,v2​,…,vk​}.

The vectors v1,…,vkv_1,\ldots,v_kv1​,…,vk​ are obtained by expressing the solution in terms of its free variables. If there are no free variables, the only solution is the zero vector, so the null space is {0}\{0\}{0}.

The null space is always a subspace and always contains the zero vector, since A0=0A0=0A0=0.


Solutions to an inhomogeneous system

An inhomogeneous system has the form

Ax=b,Ax=b,Ax=b,

where bbb may be nonzero. Row reduction can be performed on the augmented matrix [A∣b][A\mid b][A∣b]. The row operations transform both AAA and bbb, producing an equivalent system. The transformed right-hand side may be denoted b′b'b′, but the system may be inconsistent, so a solution does not necessarily exist.

If the system has a solution, its solutions have a useful general form:

x=xp+z,x=x_p+z,x=xp​+z,

where:

  • xpx_pxp​ is one particular solution to Ax=bAx=bAx=b.

  • zzz is any vector in the null space of AAA, so Az=0Az=0Az=0.

Consequently, the full solution set is a particular solution plus the null space:

{x:Ax=b}=xp+Null⁡(A).\{x:Ax=b\}=x_p+\operatorname{Null}(A).{x:Ax=b}=xp​+Null(A).

This set is an affine translate of the null space. The particular solution shifts the null space to the location of the solutions to Ax=bAx=bAx=b.

Why this form gives solutions

Suppose xpx_pxp​ satisfies Axp=bAx_p=bAxp​=b and zzz belongs to Null⁡(A)\operatorname{Null}(A)Null(A), so Az=0Az=0Az=0. Then

A(xp+z)=Axp+Az=b+0=b.A(x_p+z)=Ax_p+Az=b+0=b.A(xp​+z)=Axp​+Az=b+0=b.

Therefore, every vector of the form xp+zx_p+zxp​+z is a solution.

Why every solution has this form

Suppose xxx is any solution to Ax=bAx=bAx=b, and let xpx_pxp​ be a particular solution. Then

A(x−xp)=Ax−Axp=b−b=0.A(x-x_p)=Ax-Ax_p=b-b=0.A(x−xp​)=Ax−Axp​=b−b=0.

Thus, x−xpx-x_px−xp​ belongs to Null⁡(A)\operatorname{Null}(A)Null(A). Calling this null-space vector zzz gives

x=xp+z.x=x_p+z.x=xp​+z.

So every solution is obtained by adding a null-space vector to a particular solution.

Consequences

  • If Ax=bAx=bAx=b has no solution, its solution set is empty.

  • If it has a solution and Null⁡(A)={0}\operatorname{Null}(A)=\{0\}Null(A)={0}, it has exactly one solution.

  • If it has a solution and the null space contains nonzero vectors, it has multiple solutions: adding different null-space vectors to xpx_pxp​ produces different solutions.


One-to-one transformations and unique solutions

Consider the linear transformation represented by AAA:

T(x)=Ax.T(x)=Ax.T(x)=Ax.

The transformation is one-to-one if distinct inputs always produce distinct outputs. Equivalently, each vector bbb in the codomain has at most one preimage xxx satisfying Ax=bAx=bAx=b. Some vectors bbb may have no preimage at all; that does not prevent the transformation from being one-to-one.

The solution-set description shows why the null space determines whether the transformation is one-to-one:

  • If Null⁡(A)\operatorname{Null}(A)Null(A) contains a nonzero vector zzz, then Az=0Az=0Az=0 and also A0=0A0=0A0=0. Two distinct inputs, zzz and 000, map to the same output. The transformation is not one-to-one.

  • If Null⁡(A)={0}\operatorname{Null}(A)=\{0\}Null(A)={0}, then any two solutions to Ax=bAx=bAx=b must be identical. If x1x_1x1​ and x2x_2x2​ are solutions, then

    A(x1−x2)=Ax1−Ax2=b−b=0.A(x_1-x_2)=Ax_1-Ax_2=b-b=0.A(x1​−x2​)=Ax1​−Ax2​=b−b=0.

    Therefore, x1−x2x_1-x_2x1​−x2​ lies in the null space. Since the null space contains only 000, x1=x2x_1=x_2x1​=x2​.

Hence,

T is one-to-one⟺Null⁡(A)={0}.T \text{ is one-to-one} \quad\Longleftrightarrow\quad \operatorname{Null}(A)=\{0\}.T is one-to-one⟺Null(A)={0}.

Null space, column independence, and rank

Suppose AAA has nnn columns, written as

A=[∣∣∣a1a2⋯an∣∣∣],A= \begin{bmatrix} \vert & \vert & & \vert\\ a_1 & a_2 & \cdots & a_n\\ \vert & \vert & & \vert \end{bmatrix},A=​∣a1​∣​∣a2​∣​⋯​∣an​∣​​,

where each aia_iai​ is a column vector. If x=(x1,…,xn)Tx=(x_1,\ldots,x_n)^Tx=(x1​,…,xn​)T, then matrix multiplication gives

Ax=x1a1+x2a2+⋯+xnan.Ax=x_1a_1+x_2a_2+\cdots+x_na_n.Ax=x1​a1​+x2​a2​+⋯+xn​an​.

Therefore, the equation Ax=0Ax=0Ax=0 is equivalent to

x1a1+x2a2+⋯+xnan=0.x_1a_1+x_2a_2+\cdots+x_na_n=0.x1​a1​+x2​a2​+⋯+xn​an​=0.

The null space contains only the zero vector precisely when the only scalars satisfying this equation are

x1=x2=⋯=xn=0.x_1=x_2=\cdots=x_n=0.x1​=x2​=⋯=xn​=0.

That condition is the definition of linear independence of the columns of AAA. Thus,

Null⁡(A)={0}⟺the columns of A are linearly independent.\operatorname{Null}(A)=\{0\} \quad\Longleftrightarrow\quad \text{the columns of }A\text{ are linearly independent}.Null(A)={0}⟺the columns of A are linearly independent.

The column space of AAA is the span of its columns:

Col⁡(A)=span⁡{a1,…,an}.\operatorname{Col}(A)=\operatorname{span}\{a_1,\ldots,a_n\}.Col(A)=span{a1​,…,an​}.

If the columns are linearly independent, they form a basis for the column space. There are nnn such columns, so the dimension of the column space—the rank of AAA—is nnn:

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

Conversely, if rank⁡(A)=n\operatorname{rank}(A)=nrank(A)=n, then the nnn columns are linearly independent. This makes the null space trivial and the transformation one-to-one.


Equivalent conditions for a one-to-one matrix transformation

For a matrix AAA with nnn columns, the following conditions are equivalent:

  • The transformation T(x)=AxT(x)=AxT(x)=Ax is one-to-one.

  • The null space of AAA is trivial: Null⁡(A)={0}\operatorname{Null}(A)=\{0\}Null(A)={0}.

  • The columns of AAA are linearly independent.

  • The rank of AAA is nnn: rank⁡(A)=n\operatorname{rank}(A)=nrank(A)=n.

The condition rank⁡(A)=n\operatorname{rank}(A)=nrank(A)=n means that AAA has a pivot in every column. Since rank cannot exceed the number of rows, this also requires that the number of rows be at least the number of columns. One-to-one describes uniqueness of inputs for each output that is reached; it does not by itself guarantee that every vector in the codomain is reached.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent