



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




(^) with(linalg):
Warning, the protected names norm and trace have been redefined and unprotected
(^) A := array(1..3,1..3,[[1,3,2],[2,1,4],[4,7,8]]);
1.1.1 Row Space
(^) gaussjord(A);
(^) rowspace(A); {[1, 0 , 2], [0, 1 , 0]}
1.1.2 Column Space
(^) gaussjord(transpose(A));
(^) colspace(A); {[0, 1 , 1], [1, 0 , 2]} 1.1.3 Null Space (^) zero := array(1..3,1..1,[[0],[0],[0]]);
zero :=
(^) linsolve(A,zero);
− 2 t 11 0 t 11
(^) nullspace(A); {[− 2 , 0 , 1]}
(^) A := array(1..3,1..4,[[-3,1,3,4],[1,2,-1,-2],[-3,8,4,2]]);
1.2.1 Row Space
(^) gaussjord(A); 1 0 0
(^) rowspace(A);
{[0, 0 , 1 , 0],
1.2.2 Column Space
(^) gaussjord(transpose(A));
(^) colspace(A); {[0, 0 , 1], [1, 0 , 0], [0, 1 , 0]} 1.2.3 Null Space (^) linsolve(A,zero); 10 7 t 11
2 7
t 11
0 t 11
(^) nullspace(A);
{
(^) A := array(1..3,1..4,[[1,3,-2,1],[2,1,3,2],[3,4,5,6]]);
1.3.1 Row Space
(^) gaussjord(A);
Free variables are the {2,4,5}, Lead variables are {1,3,6}
(^) A1 := submatrix(A,1..3,[1,3,6]);
(^) linsolve(A1,submatrix(A,1..3,2..2));
column 2 = 2*column 1
(^) linsolve(A1,submatrix(A,1..3,4..4));
column 4 = 5*column 1 - column 3
(^) linsolve(A1,submatrix(A,1..3,5..5));
column 5 = -3column 1 + 2column 3
Lead variables are columns {1,3,6} Solution to this part is same as in a)
3 Problem 4
(^) A := array(1..2,1..2,[[1,2],[2,4]]); (^) b := array(1..2,1..1,[[4],[8]]);
A :=
b :=
(^) gaussjord(augment(A,b)); [ 1 2 4 0 0 0
infinitely many solutions, so equation is consistent b = 4column 1 = 2column 2
(^) A := array(1..2,1..2,[[3,6],[1,2]]); (^) b := array(1..2,1..1,[[1],[1]]);
A :=
b :=
(^) gaussjord(augment(A,b)); [ 1 2 0 0 0 1
No solution, hence equations are inconsistent
(^) A := array(1..2,1..2,[[2,1],[3,4]]); (^) b := array(1..2,1..1,[[4],[6]]);
A :=
b :=
(^) gaussjord(augment(A,b)); [ 1 0 2 0 1 0
unique solution, hence consistent
(^) A := array(1..3,1..3,[[1,1,2],[1,1,2],[1,1,2]]); (^) b := array(1..3,1..1,[[1],[2],[3]]);
b :=
(^) gaussjord(augment(A,b));
no solution, hence inconsistent (note second row!)
6 Problem 7
If A is an mxn matrix with m>n, and N(A)={ 0 } (which means the nullspace has dimension zero), then the rank = n-0 = n Since the dimension of the column space and the rowspace are the same, the dimension of the column space = n = # of columns. This means they are linearly independent. The column vectors can not span Rmsince m > n. Fewer than m vectors cannot span Rm
If b is not in the column space of A, then Ax=b can not have any solution! If b is in the column space, the solution must be unique, since N(A)={ 0 }. If there were two solutions, the difference would be in the nullspace of A...
7 Problem 15
If Ax=Bx for all x in Rn then (A-B)x=0 for all x in Rn This means that the null space is all of Rn which means that N(A-B)= Rn
Consequenlty, since rank(A-B)=0, A-B must be the zero matrix (since it is the only matrix with rank 0! Therefore A=B