Week-2 Session 2
Week-2 Session 2
Karthik Thiagarajan
1. 2
2. 4
3. 5
4. 7
5. 8
6. 9
7. 10
8. 11
9. 12
10. 13
11. 14
12. 15
13. 16
14. 17
15. 19
16. 20
17. 21
18. 22
19. 23
20. 24
21. 25
22. 26
23. 27
24. 28
25. 29
26. 30
27. 31
1.
When is a matrix said to be in row echelon form? When is it said to be in
reduced row echelon form?
A
0 2 5
= 5 1 0
0 0 3
B
0 1 5
= 1 1 0
0 0 1
C
0 1 5
= 0 1 0
0 0 1
• C
is not in row echelon form
• Condition-3 is violated.
D
0 1 5
= 0 0 0
0 0 1
E
0 1 5
= 0 0 1
0 0 0
1
A 1
0 2
1
0 4
0 0
B
1 0 0
= 0 1 0
0 0 1
C=
0
0
0
0 0
0
0 0 0 0
- 1
A B C 1 D
0 1 0 1 2 0 2 0 0 0 0
= 1 0 1 , = 0 0 1 , = 0 0 , = 0 0 0
0 1 0 0 0 0 0 0 0 0 0 0
1 1
E F 1 G 1 H
0 1 3 1 0 0 3 1 0 0
1
= 0 1 1 , = 0 0 , = 0 0 , = 0 1 0
0 0 1 0 0 0 0 0 0 0 0
I J K
1 0 0 0 1 0 1 0 0
-
= 0 1 0 , = 0 0 1 , = 0 1 0
0 0 1 0 0 0 0 0 1
A No No
B No No
C Yes Yes
D Yes Yes
E No No
F Yes No
G Yes No
H Yes Yes
I Yes Yes
J Yes Yes
K No No
3.
- 3 1 - 3
Forward elimination
First attempt:
- 3 1 - 3
R R - 1 - 1/3 1
2
8
1
6
2
⏪⏪⏪⏪⏪⏫ 1 → 1 /( 3)
6
2
8
1
6
1 - 1/3 1
R R-R 1 - 1/3 1
⏪⏪⏪⏪⏪⏫ 2 → 2 3 3
6 8 6 0 5 0
2 1 2 2 1 2
1 - 1/3 1
R R 1 - 1/3 1
⏪⏪⏪⏪⏫ 2 → 2 /5
0 5 0 0 1 0
2 1 2 2 1 2
1 - 1/3 1
R R-R 1 - 1/3 1
⏪⏪⏪⏪⏪⏫ 3 → 3 2 1
0 1 0 0 1 0
2 1 2 0 5/3 0
1 - 1/3 1 R 3
R 1 - 1/3 1
⏪⏪⏪⏪⏫
3 → 3
5
0 1 0 0 1 0
0 5/3 0 0 1 0
1 - 1/3 1
R R -R 1 - 1/3 1
⏪⏪⏪⏪⏪⏫ 3 → 3 2
0 1 0 0 1 0
0 1 0 0 0 0
- R R R 1
1
⏪⏪⏪⏪⏪⏫ 1
1 1/3 1 1 → 1+ 2
0 1
3
0 1 0 0 0
0 0 0 0 0 0
Second Attempt:
- 3 1 - 3
R R R - 3 1 - 3
⏪⏪⏪⏪⏪⏫
2 → 2 +2 1
6 8 6 0 10 0
2 1 2 2 1 2
- 3 1 - 3
R R - 6 2 - 6
⏪⏪⏪⏪
R R⏫
3 →3 3
0 10 0 0 10 0
1 →2 1
2 1 2 6 3 6
- 6 2 - 6
R R R - 6 2 - 6
⏪⏪⏪⏪⏪⏫
3 → 3+ 1
0 10 0 0 10 0
6 3 6 0 5 0
- 6 2 - 6
R R - 1 - 1/3 1
0
10
5
0
0
⏪⏪⏪⏪⏪⏫
1 → 1 /( 6)
0
0
10
5
0
1- 1/3 1
R R 1 - 1/3 1
⏪⏪⏪⏪⏪⏫
2 → 2 /10
0 10 0 0 1 0
0 5 0 0 5 0
1 - 1/3 1
R -R - R 1 - 1/3 1
⏪⏪⏪⏪⏪⏫
3 3 5 2
0 1 0 0 1 0
0 5 0 0 0 0
1 - 1/3 1
R R R 1 0 1
⏪⏪⏪⏪⏪⏫ 1 → 1+ 2 /3
0 1 0 0 1 0
0 0 0 0 0 0
4.
Solve for x given the following system:
-
A 0 b
1 1 1 1
00
= 1 1 , = 2
1 3
Backward substitution:
- x
0 y
1 1 1 1
00 z
1 1 = 2
1 3
= 1
= 1+ = 1+3 ( 1) = 5
-
5
The solution is 1 .
3
5.
Compute the augmented matrix for the following system of equations.
x x -x
x x -
1 +2 1 3 = 1
2 + = 1
x x
1 3
1
+ 2
= 5
-
A b -
1 2 1 1
= 2 0 1 , = 1
1 1 0 5
-
Ab -
1 2 1 1
[ | ] = 2 0 1 1
1 1 0 5
6.
Solve the following system using Gaussian elimination:
x -x
x x
2 1 2 = 3
1
+3 2
= 5
Gaussian elimination
• Forward elimination (row echelon form)
• Backward substitution
[ A b | ] =
2 - 1 | 3
1 3 | 5
2 - 1 | 3
⏪⏪⏪⏪⏫ -
R R 1 → 1 /2 1 0.5 | 1.5
1 3 | 5 1 3 | 5
1 - 0.5 | 1.5
⏪⏪⏪⏪⏪⏫ -
R R -R
2 → 2 1 1 0.5 | 1.5
1 3 | 5 0 3.5 | 3.5
1 - 0.5 | 1.5
⏪⏪⏪⏪⏫ -
R -R 2 2 /3.5 1 0.5 | 1.5
0 3.5 | 3.5 0 1 | 1
1 - 0.5 | 1.5 R R
⏪⏪⏪⏪⏪⏪⏫ 1 → 1 +0.5 R 2 1 0 | 2
0 1 | 1 0 1 | 1
x 1 = 2, x 2 = 1
7.
Solve the following system using Gaussian elimination:
x -x x
x x -x -
3 1 2 + 3 = 11
+3 = 1
x x-x
1 2 3
2 1
+ 2
2 3
= 3
-
A b - -
3 1 1 | 11
[ | ] =
-
1 3 1 | 1
2 1 2 | 3
1
A b 1 -
0 0 | 3
1
[ | ] = 0 0 | 1
0 0 | 1
x 1 = 3, x 2 = - x 1, 3 = 1
8.
Let [ Ab | ] denote the augmented matrix of the following system:
x x
x x
2 1 + 2 = 3
+3 = 4
p
1 2
where A =
2 1
and b =
3
. Let the matrix
1 0 |
HOMEWORK
9.
Does the following system of equations have a solution?
- - -
b -
1 0 4 4 1
A =
1
0
0
0 - -
2
3
2
3
, =
1
1
6 0 3 3 0
- - -
-
1 0 4 4 | 1
[ A b | ] =
1
0
0
0 - -
2
3
2
3
|
| 1
1
6 0 3 3 | 0
- - - -
- ⏪⏪⏪⏪ -
1 0 4 4 | 1 1 0 4 4 | 1
R -R
1 0
- -
2 2 | 1
⏫ 1 0
- -
2 2 | 1
1 → 1
0 0 3 3 | 1 0 0 3 3 | 1
6 0 3 3 | 0 6 0 3 3 | 0
- -
- ⏪⏪⏪⏪⏪ - -
1 0 4 4 | 1 1 0 4 4 | 1
R R -R
- - ⏫ - -
1 0 2 2 | 1 2 → 2 1 0 0 2 2 | 0
0 0 3 3 | 1 0 0 3 3 | 1
6 0 3 3 | 0 6 0 3 3 | 0
- -
- - - -
1 0 4 4 | 1 1 0 4 4 | 1
R R R
- - ⏪⏪⏪⏪⏪⏫ - -
0 0 2 2 | 0 4 → 4+ 3 0 0 2 2 | 0
0 0 3 3 | 1 0 0 3 3 | 1
6 0 3 3 | 0 6 0 0 0 | 1
- -
- - - -
1 0 4 4 | 1 1 0 0 0 | 1
R R R
- - ⏪⏪⏪⏪⏪⏫ - -
0 0 2 2 | 0 1 → 1 +2 2 0 0 2 2 | 0
0 0 3 3 | 1 0 0 3 3 | 1
6 0 0 0 | 1 6 0 0 0 | 1
- -
- - - -
1 0 0 0 | 1 1 0 0 0 | 1
R R-R
- - ⏪⏪⏪⏪⏪⏫ - -
0 0 2 2 | 0 4 → 4 6 1 0 0 2 2 | 0
0 0 3 3 | 1 0 0 3 3 | 1
6 0 0 0 | 1 0 0 0 0 | 7
0 x 1 +0 x 2 +0 x 3 +0 x 4 = 7
NOTE: if the last column of the augmented matrix after row reduction has a
leading entry, then that system cannot have a solution.
10.
Consider the system of equations given below:
-x x x
x x-x -
1 + 2 +2 3 = 1
2 + 2 = 1
x cx d
1 2 3
3 + =
c d
2 3
-
A b - -
1 1 2 1
[ | ] =
c d
2 1 2 1
0 3
- - - -
- - - -
1 1 2 1 1 1 2 1
c d c d
2 1 2 1 → 2 1 2 1
0 3 0 3
- - - - - -
- -
1 1 2 1 1 1 2 1
c d c d
2 1 2 1 → 0 3 2 1
0 3 0 3
1 - - - 1 2 1 1 - - 1 2 - 1
c d c- d-
0 3 2 1 0 3 2 1
0 3 0 0 2 1
Unique Solution
- - - c- z d -
y z z dc--
1 1 2 1 ( 2) = 1
1
c- d- x- y - z -
0 3 2 1 ⟹ 3 +2 = 1 ⟹ =
2
0 0 2 1 2 = 1
y 1
-z d- 1 2 1
=
3
(1 2 ) =
c- 3
⋅
2
x =⋯
No solution
c = 2, d ≠ 1
Infinitely many
c = 2, d = 1
11.
Find all solutions to the following system:
A b
1 0 1 1
= 0 1 1 , = 2
0 0 0 0
xyz
1
1
0 1
0 1
0 0 0
Dependent variables: xy
Independent variable: z
,
b
1 0 1 1
0 1 1 , = 2
0 0 0 0
z t
y z y -t
=
x z x -t
+ = 2 ⟹ = 2
+ = 1 ⟹ = 1
x = 1 -t y , = 2 -t z t
, =
There are infinitely many solutions. Some sample solutions are listed
below:
• (1, 2, 0)
• (0, 1, 1)
• ...
12.
Find all solutions to the following system:
x x x
x x x
2 1 +3 2 +2 2 = 0
+2 + = 0
x x x
1 2 3
1
+ 2
+ 3
= 0
1
1
2 3 2 0 1
1 2 1 → 0 0
1 1 1 0 0 0
z t
y
=
x -t
= 0
{( -t t t R
, 0, ) | ∈ } is the set of all solutions.
13.
Find all solutions to the following system:
1 1 0 2 1
A =
0
0
0
0
1
0
3
0
, b =
1
0 0 0 0 0
x1 x x3 x
1
2 4
1
1
1 0 2
1
0 0 3 ,
0
0 0 0 0
0
0 0 0 0
• x x are dependent
• x x
1
, 3
2
, 4
are independent
x t
x x x -t
4 = 1
+3 = 1 ⟹ = 1 3
x t
3 4 3 1
x x x x -x - x -t - t
2 2
1 + 2 +2 4 = 1 ⟹ 1 = 1 2 2 4 = 1 2 2 1
x 1 - t -t
2
x t
1 1 2
x -t
2 2
=
1 3
x t
3 1
4 1
14.
Find the inverse of the following matrix:
A
1 2 1
= 1 3 1
2 4 3
1 2 1 1 0 0
1 3 1 0 1 0
2 4 3 0 0 1
-
1 2 1 1 0 0
0 1 0 1 1 0
2 4 3 0 0 1
-
1 2 1 1 0 0
-
0 1 0 1 1 0
0 0 1 2 0 1
-
-
1 0 1 3 2 0
-
0 1 0 1 1 0
0 0 1 2 0 1
- -
-
1 0 0 5 2 1
-
0 1 0 1 1 0
0 0 1 2 0 1
- -
A B -
1 2 1 5 2 1
-
= 1 3 1 , = 1 1 0
2 4 3 2 0 1
WE DID NOT GET TIME TO DISCUSS THE REMAINING PROBLEMS. JUST ADDING THEM
HERE. MOST OF THEM ARE ACTIVITY QUESTIONS.
15.
Suppose for a real 3×3 matrix A, there exists a real 3×3 matrix P such
that D PAP-
1
is a real diagonal matrix. What is the relationship
A and D? Are A and D equal?
= 3×3
between
-
D P P-
1 1 1 1 1
1
= 2 , = 1 , = 1
3 1 1
-
A P- DP
1 2
1
= = 2
3
16.
If AB = 0 then what can you say about the determinants of A and B?
17.
Let A aij
= [ ] be the matrix of order 3 where aij i j. Find det A .
= × ( )
18.
2013 2014 2015
+ + +
1 0
b
1
= 0 .
a?
2
of
21.
1 0 0