HW 1 S
HW 1 S
Question 1. Which number q makes this system singular and which right hand side t gives
it infinitely many solutions? Find the solution that has z = 1.
x + 4y 2z = 1
x + 7y 6z = 6
3y + qz = t.
Solution: Subtracting the first equation from the second gives 3y 4z = 5, we have a singular
system for q = 4. t = 5: infinitely many solutions. z = 1 gives y = 3 and equation 1 then
gives x = 9.
Question 2. For which three numbers a will elimination fail to give three pivots?
ax + 2y + 3z = b1
ax + ay + 4z = b2
ax + ay + az = b3 .
Solution: The given system can be converted to:
ax + 2y + 3z = b1
(a 2)y + z = b2 b1
(a 4)z = b3 b2 .
So, elimination will fail for a = 0, a = 2, a = 4.
Question 3. Which three matrices E21 , E31 , E32 put A into a triangular form U ?
1 1 0
A= 4 6 1 and E32 E31 E21 A = U
2 2 0
Multiply those E 0 s to get one matrix M that does elimination: M A = U .
Solution:
1 0 0 1 0 0 1 0 0
E21 = 4 1 0 , E31 = 0 1
0 , E23 = 0 1 0
0 0 1 2 0 1 0 2 1
1
1 0 0
M = 4 1 0 .
10 2 1
Question 4. Decide whether the following systems are singular or non singular and whether
they have no solution, one solution or infinitely many solutions:
vw =2
uv =2
uw =2
vw =0
uv =0
uw =0
v+w =1
u+v =1
u+w =1
Solution: System 1: The first two equations give uw = 4. No Solution. System 2: The first
two equations give u w = 0. Infinitely many solutions. System 3: The first two equations
give u w = 0. One solution: u = 12 , v = 12 , w = 21 .
a b c d
Question 6. What are L and D for this matrix A? What is U in A = LU and what is the
new U in A = LDU ?
2 4 8
A= 0 3
9 .
0 0 7
2
Solution: L = I,
2
D= 3 .
7
1 2 4
U = D1 A = 0 1 3 .
0 0 1
Question 7. Use Gauss-Jordan elimination on [A I] to solve AA1 = I:
1 a b 1 0 0
0 1 c x1 x2 x3 = 0 1 0
0 0 1 0 0 1
Solution:
1 a b 1 0 0 1 a 0 1 0 b 1 0 0 1 a ac b
0 1 c 0 1 0 0 1 0 0 1 c 0 1 0 0 1 c
0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1
Question 8. The following matrix has a remarkable inverse. Find A1 by elimination on
[A I]. Extend to a 5 by 5 alternating matrix and guess its inverse
1 1 1 1
0 1 1 1
A= .
0 0 1 1
0 0 0 1
Solution:
1 1 0 0
0 1 1 0
A1 =
0
.
0 1 1
0 0 0 1
Question 9. Solve Ax = b by solving the triangular systems Lc = b and U x = c:
1 0 0 2 2 4 0
A = LU = 4 1 0 0 1 3 ,b = 0 .
1 0 1 0 0 1 1
What part of A1 have you found with this particular b?
Solution:
0 1
c = 0 , b = 3 .
1 1
This solution gives the third column of A1 .
3
Question 10. Solve by elimination or show that there is no solution:
u+v+w =0 u+v+w =0
u + 2v + 3w = 0 u + v + 3w = 0
3u + 5v + 7w = 1 3u + 5v + 7w = 1.
Solution: System 1: The first two equations give 3u + 5v + 7w = 0 which means the
system has no solution. System 2: u = 1
2
, v = 12 , w = 0.