Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

3.2: Null Space

( \newcommand{\kernel}{\mathrm{null}\,}\)

Definition: Null Space

The null space of an m-by-n matrix A is the collection of those vectors in Rn that A maps to the zero vector in Rm. More precisely,

N(A)={xRn|Ax=0}

Null Space Example

As an example, we examine the matrix A

A=(010010100001)

It is fairly easy to see that the null space of this matrix is:

N(A)={t(1010)|tR}

This is a line in R4

The null space answers the question of uniqueness of solutions to Sx=f. For, if Sx=f and Sy=f then S(xy)=SxSy=ff=0 and so (xy)N(S). Hence, a solution to Sx=f will be unique if, and only if, NS={0}

Method for Finding the Basis

Let us now exhibit a basis for the null space of an arbitrary matrix A. We note that to solve Ax=0 is to solve Aredx=0. With respect to the latter, we suppose that

{cj|j={1,,r}}

are the indices of the pivot columns and that

{cj|j={r+1,,n}}

are the indices of the nonpivot columns. We accordingly define the r pivot variables

{xcj|j={1,,r}}

and the nr free variables

{xcj|j={r+1,,n}}

One solves Aredx=0 by expressing each of the pivot variables in terms of the nonpivot, or free, variables. In the example above, x1,x2, and x4 are pivot while x3 is free. Solving for the pivot in terms of the free, we find x4=0,x3=x1,x2=0, or, written as a vector,

x=x3(1010)

where x3 is free. As x3 ranges over all real numbers the x above traces out a line in R4. This line is precisely the null space of A. Abstracting these calculations we arrive at:

Definition: A Basis for the Null Space

Suppose that A is m-by-n with pivot indices {cj|j={1,,r}} and free indices {cj|j={r+1,,n}}. A basis for N(A) may be constructed nr vectors {z1,z2,,znr} where zk, and only zk possesses a nonzero in its cr+k component.

A MATLAB Observation

As usual, MATLAB has a way to make our lives simpler. If you have defined a matrix A and want to find a basis for its null space, simply call the function null(A). One small note about this function: if one adds an extra flag, 'r', as in null(A, 'r'), then the basis is displayed "rationally" as opposed to purely mathematically. The MATLAB help pages define the difference between the two modes as the rational mode being useful pedagogically and the mathematical mode of more value (gasp!) mathematically.

Final thoughts on null spaces

There is a great deal more to finding null spaces; enough, in fact, to warrant another module. One important aspect and use of null spaces is their ability to inform us about the uniqueness of solutions. If we use the column space to determine the existence of a solution x to the equation Ax=b. Once we know that a solution exists it is a perfectly reasonable question to want to know whether or not this solution is the only solution to this problem. The hard and fast rule is that a solution x is unique if and only if the null space of A is empty. One way to think about this is to consider that if Ax=0 does not have a unique solution then, by linearity, neither does Ax=b. Conversely, if (Az=0)(z0)(Ay=b) then A(z+y)=b as well.


This page titled 3.2: Null Space is shared under a CC BY 1.0 license and was authored, remixed, and/or curated by Steve Cox via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?