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.
x=one solution of Ax=bxp+every combination of nullspace vectorsc1s1+⋯+cn−rsn−r
-xp: one particular solution, free variables zero. Never multiplied by a parameter. -s1,…,sn−r: one per free column, each a solution ofAx=0. - The parametersci run over all numbers. There are exactlyn−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 solvesAx=b andx also does. Subtract:
A(x−xp)=b−b=0.
Sox−xp lies in the nullspace, and every nullspace vector is a combination of then−r special solutions. Adding a nullspace vector toxp never changesAx, 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−r and notn: 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=101202011347,b=257
Reduce. Row 3 − row 1 − row 2 gives a zero row, and the right-hand side becomes7−2−5=0, so the system is consistent:
100200010340250
Pivots and free columns. Pivots in columns1 and3; free columns2 and4. Sor=2,n−r=2.
Particular. Withx2=x4=0, the rows givex1=2 andx3=5:
xp=2050
Specials. Free entry1, pivot entries the negatives of that column's reduced entries:
s1=−2100,s2=−30−41
Answer.
x=2050+c1−2100+c2−30−41
Verify.Axp=(2,5,7)T=b ✓, andAs1=As2=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
1000102−10430 Write the complete solution.
Answers
r=2,n=3, son−r=1: one special solution. Particular (free variable zero):(4,3,0). Special from column3 (reduced entries2 and−1):(−2,1,1).
x=430+c−211
Check the special:1(−2)+0(1)+2(1)=0 ✓ and0+1(1)−1(1)=0 ✓.