Euler Hall — free maths guides

Build the special-solution basis of the nullspace

Assemble the n - r special solutions into a basis of N(A). The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

What a basis requires

The special solutionss1,…,sn−rs_1,\dots,s_{n-r} form a basis ofN(A)N(A). That word means three things at once:

  1. 1. Each one is in the nullspace:Ask=0As_k=\mathbf{0}.
  2. 2. They are independent: no one of them is a combination of the others.
  3. 3. They span it, and there are exactlyn−rn-r of them — which isdim⁡N(A)\dim N(A), so the count is right by construction.

Missing any one of the three and you no longer have a basis. A set of two dependent vectors fails (2). A set of one vector in a two-dimensional nullspace fails (3). A set of two independent vectors that are not in the nullspace fails (1) — and that is the failure students find hardest to see, because the vectors look fine.

Why independence can be read off without any computation

Look at the free positions of the special solutions. By construction,sks_k has a11 in free positionkk and a00 in every other free position. So in the free coordinates, the list reads

(1,0,0,… ),(0,1,0,… ),(0,0,1,… ),…(1,0,0,\dots),\quad(0,1,0,\dots),\quad(0,0,1,\dots),\quad\dots

— the identity matrix, written as vectors.

Now take a combinationc1s1+⋯+cn−rsn−rc_1s_1+\cdots+c_{n-r}s_{n-r} and look at its free positions. They are exactly(c1,…,cn−r)(c_1,\dots,c_{n-r}), because each special solution contributes only its own11 there. If the whole combination is0\mathbf{0}, then its free positions are all00, so everyck=0c_k=0. That is independence, proved in two lines with no arithmetic.

The spanning half. Take any nullspace vectorx\mathbf{x}; letf1,…,fn−rf_1,\dots,f_{n-r} be its free coordinates. The combinationf1s1+⋯+fn−rsn−rf_1s_1+\cdots+f_{n-r}s_{n-r} is in the nullspace and has the same free coordinates asx\mathbf{x} (by the same argument). Their difference is in the nullspace with all free coordinates zero. But a nullspace vector with all free coordinates zero must be0\mathbf{0}: the pivot variables are determined by the free ones, and here they are determined to be zero. Sox\mathbf{x} equals the combination.

Independence plus spanning plus the right count plus membership: a basis.

Worked example: the basis built, verified, and an alternative

R=[17080019].R=\begin{bmatrix}1&7&0&8\\0&0&1&9\end{bmatrix}.

Pivots in columns11 and33; free columns22 and44. Two special solutions:

s1=[−7100],s2=[−80−91].s_1=\begin{bmatrix}-7\\1\\0\\0\end{bmatrix},\qquad s_2=\begin{bmatrix}-8\\0\\-9\\1\end{bmatrix}.

Check 1, membership.Rs1Rs_1: row 1 gives−7+7=0-7+7=0, row 2 gives0+0=00+0=0 ✓.Rs2Rs_2: row 1 gives−8+8=0-8+8=0, row 2 gives−9+9=0-9+9=0 ✓.

Check 2, independence. Free positions are(2,4)(2,4).s1s_1 reads(1,0)(1,0) there ands2s_2 reads(0,1)(0,1). A combination has free entries(c1,c2)(c_1,c_2), so it is zero only when both coefficients are zero ✓.

Check 3, the count.n−r=4−2=2n-r=4-2=2, which isdim⁡N(A)\dim N(A) ✓.

An alternative basis. Lett1=s1t_1=s_1 andt2=s1+s2=(−15,1,−9,1)t_2=s_1+s_2=(-15,1,-9,1). Both are in the nullspace, and they are independent: ifc1t1+c2t2=0c_1t_1+c_2t_2=\mathbf{0}, then(c1+c2)s1+c2s2=0(c_1+c_2)s_1+c_2s_2=\mathbf{0}, and sinces1,s2s_1,s_2 are independent this forcesc2=0c_2=0 and thenc1=0c_1=0. So{t1,t2}\{t_1,t_2\} is also a basis — a perfectly correct answer to "give a basis", and a wrong answer to "give the special solutions".

An invalid set. Takes1s_1 and−s1-s_1. Both are in the nullspace, they are not independent, and they span only a line. Two vectors, right count, wrong rank. This is the failure the count alone cannot catch.

By the end you can
  • Assemble the n - r special solutions into a basis of N(A)
  • Verify membership, independence and the count separately
  • Explain why the basis is not unique but the special solutions are canonical
  • Recognise that the right number of dependent vectors is not a basis
Check yourself

A4×64\times6 matrix has rank44. A student offers four independent vectors, each of which satisfiesAx=0A\mathbf{x}=\mathbf{0}. Is that a basis ofN(A)N(A)?

(a) Yes — four independent nullspace vectors. (b) No — the nullspace has dimension22, so four vectors cannot be independent and in it. (c) No — a basis needs five vectors. (d) Yes, but only if they are orthogonal.

The answer

(b).dim⁡N(A)=6−4=2\dim N(A)=6-4=2. A22-dimensional space cannot contain four independent vectors, so the premise is impossible: at least two of the four must be dependent. The student has made an arithmetic error somewhere in producing them.

This is worth reading carefully because it shows the count working in the other direction. Normally you use the count to decide how many to produce; here the count tells you the production went wrong. If the numbers contradict, believe the numbers.

Work out where to start — free, no accountAnswer six real questions — free, no account