Let's find a solution for Ax=b
Now we have to find a particularx that solves Ax=b, say this particular solution be xp
Our matrix is A=⎣⎡1232462682810⎦⎤
First we convert our matrix in echelon form using Elimination technique, and unlike in null space here we also have bi's so we use Augmented matrix.
So our Augmented matrix is:
⎣⎡1232462682810b1b2b3⎦⎤
Now let's do elimination.
Step 1: of elimination method, here we make all element 0 in c1 below the 1st element. r2←r2−2r1
⎣⎡1032062282410b1b2−2b1b3⎦⎤
r3←r3−3r1
⎣⎡100200222244b1b2−2b1b3−3b1⎦⎤
Step 2: of elimination method, here we make all element 0 in c2 below the 2nd element.
But 2nd element itself is 0, and all element below it also 0, so we move forward.
Step 3: of elimination method, here we make all element 0 in c3 below the 2nd element.
⎣⎡100200222244b1b2−2b1b3−3b1⎦⎤
r3←r3−r2
⎣⎡100200220240b1b2−2b1b3−b2−b1⎦⎤
(Notice the last row it indicates that b3−b2−b1=0.)
Here c2,c4 are free columns, and c1,c3 are pivot columns, we discussed about them in Null space section.
So x2,x4 are free variable we are free to assign any value to them. So say x2=x4=0
Now say we want to find solution space for Axp=⎣⎡156⎦⎤
( b3−b2−b1=6−5−1=0 so it's a valid question to ask )
So our system of equation becomes:
by solving them: x3=3/2,x1=−2
So xp=⎣⎡−203/20⎦⎤
note
Remember our approach when we are finding Null Space:
We were finding solution for Ax=0 and what we did is, we took our free variables,
and iteratively we set one free variable to 1 and all other free variables to 0.
By this we create multiple special solutions and each special solution consider a particular free column vector.
Then we took linear combination of all of those special solutions.
Now here what we are doing is, we aren't considering any of the free column vector, because our Null space had already considered them for us.
Now say xn represent the Null Space of matrix A, so Ax=0;x∈xn xn represents a vector space(it's not a single vector), it's a linear combination of bunch of vectors.
So complete solution for Ax=b is:
info
x=xp+xn
So any x∈xp+xn solves Ax=b
note
But remember that xp is a vector, and xn is a vector space it's some d-dimensional subspace. How can we add a vector xp and a subspace xn?
Think about a surface in 3-dimensions, let's say that surface is a plane then when we add a vector to a plane,
we are just shifting that plane in the direction of vector.
So xp is just shifting the Null Space in it's direction.
And when xp shifts the Null space then the shifted space is no longer in contact with origin, so the
resultant space xp+xn is not a subspace.
As we derived Null space of A in Null space section.