Writing the Solution as the sum of a vector in the row space and a vector homogeous solution.
Let us return to the example
| > |
A:=<<2,2,1>|<2,-2,-1>|<4,6,3>>; |
| > |
xs:=BackwardSubstitute(GaussianElimination(<A|b>)); |
| > |
xh:=xp-(subs(_t[1]=1,xs)); |
Let us look at how xh is related to the null space.
Which is the the same generator as xh execpt that it is 2*xh
}](images/lecture13c_8.gif) |
(1.1) |
The basis vectors in row space x1 and x2 are are always linearly independent. Also since xh is perpendicular to x1 and x2 then xh, x1,x2 form a linearly indepentdent set of vectors. Because they are linearly independent a number three then they form a basis for all of
This means that every vector can be written as a linear combination of the three vectors. We will thus write xp as a linear combination of the three linearly indpendent vectors. We are not really interested in finding the the coefficient of xh since that would be redundant. We will find the coefficients of the above set of basis vectors. This vector will be called xr in the following set of Maple commands.
, Vector[column](%id = 2238064), Vector[column](%id = 4341560)]](images/lecture13c_14.gif) |
(1.2) |
The Basis1 matrix must always be a square matrix. The Basis command is a with(LinearAlgebra) and will well us the linearly independent vectors.
| > |
c:=BackwardSubstitute(GaussianElimination(<Basis1|xp>)); |
We need only use the first two entries from c because the 3/5 would be taken times xh and we already know a basis for the homogenous solution. Remember that we did need xh though to get three linearly independent vectors. The three linearly independent vectors will be a basis for
Which gives the unique solution for the c's above.
This has been a rather long process but let us try to summerize what we have just done. Since the row space vectors are orthogonal to the null space vectors the basis for the row space and the null space are linearly independent set of vectors. When combined they will become a basis for the dimension of the matrix A. This means that the particular solution must be in the span of the combination of the null space vectors and the row space vectors. We set up a system of equation to solve to see what linear combination of these vectors will give the particular soltuion. The only ones we are interested in is the coefficients of the row space vectors. Why? The coefficient for the homogenous vector is all ready in the arbitrary paramenter for the homogenous vector.