Euler Hall — free maths guides

Write the complete solution as a particular solution plus nullspace combinations

Assemble x = xp + c1 s1 +... from a reduced augmented matrix. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

In plain words

Every solution ofAx=bA\mathbf{x}=\mathbf{b} is

x=xp⏟one solution of Ax=b+c1s1+⋯+cn−rsn−r⏟every combination of nullspace vectors\mathbf{x}=\underbrace{\mathbf{x}_p}_{\text{one solution of }A\mathbf{x}=\mathbf{b}}+\underbrace{c_1\mathbf{s}_1+\cdots+c_{n-r}\mathbf{s}_{n-r}}_{\text{every combination of nullspace vectors}}

-xp\mathbf{x}_p: one particular solution, free variables zero. Never multiplied by a parameter. -s1,…,sn−r\mathbf{s}_1,\dots,\mathbf{s}_{n-r}: one per free column, each a solution ofAx=0A\mathbf{x}=\mathbf{0}. - The parameterscic_i run over all numbers. There are exactlyn−rn-r of them.

So the answer has one term per free variable plus the particular vector, and that count is the single thing to check before moving on.

Why the shape is forced

Supposexp\mathbf{x}_p solvesAx=bA\mathbf{x}=\mathbf{b} andx\mathbf{x} also does. Subtract:

A(x−xp)=b−b=0.A(\mathbf{x}-\mathbf{x}_p)=\mathbf{b}-\mathbf{b}=\mathbf{0}.

Sox−xp\mathbf{x}-\mathbf{x}_p lies in the nullspace, and every nullspace vector is a combination of then−rn-r special solutions. Adding a nullspace vector toxp\mathbf{x}_p never changesAxA\mathbf{x}, which is why every such combination is a solution.

Conversely, any vector of that form solves the system, so the description is exact — nothing is missing and nothing extra is included.

This is also why the count isn−rn-r and notnn: the pivot variables are the ones already determined by the right-hand side, and the free columns are the ones that supply the freedom.

Worked example, with the whole reduction shown

A=[120300141217],b=[257]A=\begin{bmatrix}1&2&0&3\\0&0&1&4\\1&2&1&7\end{bmatrix},\qquad \mathbf{b}=\begin{bmatrix}2\\5\\7\end{bmatrix}

Reduce. Row 3 − row 1 − row 2 gives a zero row, and the right-hand side becomes7−2−5=07-2-5=0, so the system is consistent:

[120320014500000]\left[\begin{array}{cccc|c}1&2&0&3&2\\0&0&1&4&5\\0&0&0&0&0\end{array}\right]

Pivots and free columns. Pivots in columns11 and33; free columns22 and44. Sor=2r=2,n−r=2n-r=2.

Particular. Withx2=x4=0x_2=x_4=0, the rows givex1=2x_1=2 andx3=5x_3=5:

xp=[2050]\mathbf{x}_p=\begin{bmatrix}2\\0\\5\\0\end{bmatrix}

Specials. Free entry11, pivot entries the negatives of that column's reduced entries:

s1=[−2100],s2=[−30−41]\mathbf{s}_1=\begin{bmatrix}-2\\1\\0\\0\end{bmatrix},\qquad \mathbf{s}_2=\begin{bmatrix}-3\\0\\-4\\1\end{bmatrix}

Answer.

x=[2050]+c1[−2100]+c2[−30−41]\mathbf{x}=\begin{bmatrix}2\\0\\5\\0\end{bmatrix}+c_1\begin{bmatrix}-2\\1\\0\\0\end{bmatrix}+c_2\begin{bmatrix}-3\\0\\-4\\1\end{bmatrix}

Verify.Axp=(2,5,7)T=bA\mathbf{x}_p=(2,5,7)^T=\mathbf{b} ✓, andAs1=As2=0A\mathbf{s}_1=A\mathbf{s}_2=\mathbf{0} ✓.

By the end you can
  • Assemble x = x_p + c1 s1 +... from a reduced augmented matrix
  • Count the special solutions as n - r
  • Order the five construction steps so no work is wasted
Test yourself

[102401−130000]\left[\begin{array}{ccc|c}1&0&2&4\\0&1&-1&3\\0&0&0&0\end{array}\right] Write the complete solution.

Answers

r=2r=2,n=3n=3, son−r=1n-r=1: one special solution. Particular (free variable zero):(4,3,0)(4,3,0). Special from column33 (reduced entries22 and−1-1):(−2,1,1)(-2,1,1).

x=[430]+c[−211]\mathbf{x}=\begin{bmatrix}4\\3\\0\end{bmatrix}+c\begin{bmatrix}-2\\1\\1\end{bmatrix}

Check the special:1(−2)+0(1)+2(1)=01(-2)+0(1)+2(1)=0 ✓ and0+1(1)−1(1)=00+1(1)-1(1)=0 ✓.

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