Here is one method that can be used.
In your question you used Matrix with a capital M and matrix with a lower case m.
In Maple there is a difference. Matrix is used with the newer LinearAlgebra package
in Maple 10. In older versions matrix is used with the linalg package.
Method using Maple 10.
> A:= Matrix([[8,-3,0,-7,2],[-9,4,5,11,-7],[6,-2,2,-4,4],[5,-1,7,0,10]]);
> ColumnVectors:= Column(A,[1..5]);
> B:= SubMatrix(A,[1..4],[1,2,5]);
> b:= Vector([0,0,0,0]);
You can check to see that the 3rd and 4th column vectors of A are in the
span of the first two column vectors. So B is not a unique solution
to this problem.
> LinearSolve(SubMatrix(A,[1..4],[1..2]), Column(A,3));
> 3*Column(A,1) + 8*Column(A,2);
However, the columns of B form a basis for the
column space of A. So the maximum number of columns you
can use is 3.
If you do not have Maple 10 here are the corresponding commands
for the linalg package. (See Help)
> A:= matrix([[8,-3,0,-7,2],[-9,4,5,11,-7],[6,-2,2,-4,4],[5,-1,7,0,10]]);
> ColumnVectors:= col(A, 1..5);
> B:= submatrix(A, 1..4, [1,2,5]);
> b:= vector([0,0,0,0]);
Hope this helps,
This post was generated using the MaplePrimes File Manager
View 162_162_Basis.mw on MapleNet or Download 162_162_Basis.mw
View file details