Professional Documents
Culture Documents
Bulacan Agricultural State College: Institute of Engineering and Applied Technology
Bulacan Agricultural State College: Institute of Engineering and Applied Technology
BSGE 1A
EXERCISES: Find the determinants and inverse of the given matric equation:
Answers:
->A=[3,-1;2,1]
A=
3. -1.
2. 1.
-->B=[5;5]
B = 5.
5.
-->X=inv(A)*B
X=
2.
1.
-->det(A)*B
ans =
REPUBLIC OF THE PHILIPPINES
25.
25.
Answers:
-->A = [1,-3,3;2,3,-1;4,-3,-1]
A=
1. -3. 3.
2. 3. -1.
4. -3. -1.
-->B = [-4;15;19]
B = -4.
15.
19.
Answers:
--> A=[2,1,2;1,4,-1;2,-1,2]
A=
2. 1. 2.
1. 4. -1.
2. -1. 2.
REPUBLIC OF THE PHILIPPINES
-->lam=poly(0,’Iam’)
lam =
lam
-->CharMat=A-lam*eye(3,3)
CharMat =
2-lam 1 2
1 4 -lam -1
2 -1 2 –lam
-->CharPoly=poly(A,’Iam’)
CharPoly =
-0.4494897
4.
4.4494897
-->B1=A-lam(1)*eye(3,3)
B1 =
2.4494897 1. 2.
1. 4.4494897 -1.
2. -1. 2.4494897
REPUBLIC OF THE PHILIPPINES
-8.
--> X=inv(A)
X=
-0.875 0.5 1.125 0.5
0. -0.5
1.125 -0.5 -0.875
4. x+y+z=1
x + 2y + 4z = η x + 4y
+ 10z = η2
depends on the real parameter η. (a) Show that the rank of the coefficient matrix is two.
What does this imply for the qualitative structure of the solution? (b) Explicitly solve the
system for the cases where a solution exists.
Answers:
A=
1. 1. 1.
1. 2. 4.
1. 4. 10.
b=
1.
REPUBLIC OF THE PHILIPPINES
1.
1.
-->A_aug=[A*eye(3,3)]
A_aug =
1. 1. 1.
1. 2. 4.
1. 4. 10.
-->A_aug_inv=rref(A_aug)
A_aug_inv =
1. 0. -2.
0. 1. 3.
1. 0. 0.
-->A_aug_det=rref(A_aug)
A_aug_det =
2. 0. -2.
0. 1. 3.
0. 0. 0
3x + 2y−z = 10 5x−y−4z
= 17
REPUBLIC OF THE PHILIPPINES
x + 5y + αz = β ,
Where α, β are arbitrary real parameters using row reduction on the augmented matrix.
Answers:
A=
3. 2. -1.
5. -1. -4.
1. 5. 1. b
10.
17.
1.
-->A_aug=[(A*b)*eye(3,3)]
-->A_aug=[(A)*eye(3,3)]
A_aug =
3. 2. -1.
5. -1. -4.
1. 5. 1.
REPUBLIC OF THE PHILIPPINES
-->A_aug_inv=rref(A_aug) A_aug_inv
1. 0. 0.
REPUBLIC OF THE PHILIPPINES
0. 1. 0.
1. 0. 1.
-->A_aug_det=rref(A_aug)
A_aug_det =
2. 0. 0.
0. 1. 0.
0. 0. 1.