Problem Set 2
Problem Set 2
Problem Set 2
1. (T) A square matrix P is called a permutation matrix if each row and column of P contains
exactly one
1 and the
rest of the entries are 0. Determine all the 3×3 permutation matrices. Now,
0 0 6
let A = 1 2 3 . Write down the permutation matrix P such that P A is upper triangular.
0 4 5
Which permutation matrices P1 and P2 make P1 AP2 lower triangular?
Solution:
No, first one is singular and the second one is nonsingular.
1 0 2 1 0 2
" # " #
(b) 3 −1 1 , 0 2 10
5 −1 5 2 0 4
Solution: Show that their RREFs(Row reduced echelon forms) are same.
1 0 2 1 0 2 1 0 2 1 0 2
R2 ↔R3 R ←R3 −R1 R2 ←−2R2
3 −1 1 − −−−−→ 5 −1 5 −−3−−−− −−→ 0 −1 −5 −−− −−−−→ 0 2 10 .
R2 ←R2 −5R1 R3 ←R3 −R2
5 −1 5 3 −1 1 2 −1 −1 2 0 4
2 1 −1
" #
1 0 2
(c) 1 1 0 ,
0 2 10
4 3 −1
Solution:
No, two matrices must have the same size, in order to be row equivalent.
2
Solution:
As B is invertible, there exists elementary matrices Ei ’s such that B = E1 E2 · · · Ek . Thus, the
system BAx = Bb is obtained from Ax = b by k elementary row operations.
Conversely, as B −1 = Ek−1 Ek−1
−1
· · · E1−1 and inverse of elementary matrices are also elementary
matrices, we do obtain Ax = b from BAx = Bb by k elementary row operations. Thus, the
above two systems are row equivalent.
3
8. [T] Suppose Ax = b and Cx = b have same solutions for every b. Is it true that A = C?
Solution: First, as Ax = b and Cx = b have same solutions, A and C have same shapes, that
is, same number of rows and columns, as well as same null space (follows from taking b = 0).
Now, if we take b to be the first column of A then x = [ 1 0 . . . 0 ]t solves Ax = b and
therefore also solves Cx = b which in turn implies that the first columns of A and C are same.
Same argument holds for other columns as well. Thus A = C.
9. Find the coefficients a, b, c, d so that the graph of y = ax3 + bx2 + cx + d passes through
(1, 2), (−1, 6), (2, 3) and (0, 1).
Solution:
This is as good as solving a+b+c = 1, a−b+c = 5, 4a+2b+c = 1. Apply Gaussian elimination.
10. Find matrices A and B with the given property or explain why you can not:
1
0
(a) The only solution to Ax = 2 is x =
.
1
3
Solution: Any A satisfying the given equation has to be a 3 × 2 matrix. The linear system
has a unique solution when rank of A is 2 and [ 1 2 3 ]t ∈ {Ax : x ∈ R2 }. Among many
possibilities, one such A is
1 1
0 2 .
0 3
1
0
(b) The only solution to Bx = is x = 2.
1
3
Solution: Any B satisfying the given equation has to be a 2 × 3 matrix which implies that
the null space of B, N (B), can not be trivial and hence we either have an infinitely many
solutions (when [0 1]t lies in the column space of B) or no solution. Thus, finding a B that
exhibits a unique solution is not possible.
11. Apply Gauss elimination to solve the system 2x+y +2z = 3 3x−y +4z = 7 and 4x+3y +6z = 5.
Solution:
2 1 2 3 2 1 2 3 2 1 2 3
R2 ←R2 −(3/2)R1 R ←R −2R1
−−−−−−−−−−→ 0 −5/2 1 5/2 −−3−−−3−−−→
3 −1 4 7 − 0 −5/2 1 5/2
4 3 6 5 4 3 6 5 0 1 2 −1
2 1 2 3
R3 ←R3 +(2/5)R2
−−−−−−−−−−−→ 0 −5/2 1 5/2
0 0 12/5 0
4
We can thus obtain the solution to the given linear system by solving the equivalent system
2x + y + 2z = 3
(−5/2)y + z = 5/2
(12/5)z = 0
Solution:
1 2 2 1 0 0 1 2 2 1 0 0
R2 ←R2 −2R1 R3 ←R3 −(2/3)R2
2 1 2 0 1 0 −−−−−−−−→ 0 −3 −2 −2 1 0 −−−−−−−−−−−→
R3 ←R3 −2R1
2 2 1 0 0 1 0 −2 −3 −2 0 1
1 2 2 1 0 0 1 2 2 1 0 0
R3 ←(−3/5)R3
0 −3 −2 −2 1 0 −−−−−−−−−→ 0 −3 −2 −2 1 0
0 0 −5/3 −2/3 −2/3 1 0 0 1 2/5 2/5 −3/5
1 2 0 1/5 −4/5 6/5
R2 ←R2 +2R3 R2 ←(−1/3)R2
−−−−−−−−→ 0 −3 0 −6/5 9/5 −6/5 −−−−−−−−−→
R1 ←R1 −2R3
0 0 1 2/5 2/5 −3/5
1 2 0 1/5 −4/5 6/5 1 0 0 −3/5 2/5 2/5
R1 ←R1 −2R2
0 1 0 2/5 −3/5 2/5 − −−−−−−−→ 0 1 0 2/5 −3/5 2/5
0 0 1 2/5 2/5 −3/5 0 0 1 2/5 2/5 −3/5
−3/5 2/5 2/5
Thus, the inverse is 2/5 −3/5 2/5 .
2/5 2/5 −3/5
13. (T) Let Bn×n be a real skew-symmetric matrix. Show that I − B is nonsingular.
Solution:
Let if possible I − B be singular. Then, the system (I − B)x = 0 has a non-trivial solution, say
x0 6= 0. Hence, Bx0 = x0 . Also, xt0 Bx0 ∈ R and hence
Thus, xt0 Bx0 = 0. But, 0 = xt0 Bx0 = xt0 (Bx0 ) = xt0 x0 and hence x0 = 0.
14. (T) For two n × n matrices A and B, show that det(AB) = det(A)det(B).
Solution: First, suppose that A is singular. Then, AB is singular as well. We therefore have,
det(A) = 0 and det(AB) = 0 which leads to det(AB) = 0 = det(A)det(B).
5
Now we assume that A is non-singular. Recall that, for a non-singular square matrix, the
reduced row echelon form is the identity matrix, I. In other words, there exist elementary
matrices Es , Es−1 , . . . , E2 , E1 such that
A = Es Es−1 . . . E2 E1 I.
We therefore have
AB = Es Es−1 . . . E2 E1 B.
Thus the problem of showing det(AB) = det(A)det(B) reduces to showing
(a) det(Eij B) = det(Eij )det(B).
(b) det(Ei (c)B) = det(Eij (c))det(B).
(c) det(Eij (c)B) = det(Eij (c))det(B).
Now, for the proof, we use the defining properties 1, 2 and 3 discussed in class. We have
(a) det(Eij B) = −det(B) (property 2) = det(Eij )detB (using det(Eij ) = −det(I) = −1, follows
from properties 2 and 1).
(b) det(Ei (c)B) = c det(B) (property 3a) = det(Ei (c))det(B) (using det(Ei (c)) = c det(I) = c,
follows from properties 3a and 1).
(c) det(Eij (c)B) = det(B) (property 6) = det(Eij (c))det(B) (using det(Eij (c)) = 1, follows
from property 6 on the identity matrix).
The result now follows
Solution:
Recall that, a square matrix can be reduced to an upper form using elementary row operations.
In other words, there exist elementary matrices Es , Es−1 , . . . , E2 , E1 such that
Es Es−1 . . . E2 E1 A = U.
EA = U
with det(E) = det(E T ) = ±1. We also have det(U ) = det(U T ) for the upper triangular matrix
U . Thus
det(U )
det(A) = ,
det(E)
6
and
AT E T = U T
yields
det(U T ) det(U )
det(AT ) = = = det(A).
det(E T ) det(E)
16. Let A be an n × n matrix. Prove that
17. Consider the system Ax = b. Let RREF ([A|b]) be one of the matrices in Question 6. Now,
recall the matrices Aj ’s, for 1 ≤ j ≤ 3 (defined to state the Cramer’s rule for solving a linear
system), that are obtained by replacing the j-th column of A by b. Then, we see that the above
system has NO solution even though det(A) = 0 = det(Aj ), for 1 ≤ j ≤ 3.
18. (T) Let A be an invertible square matrix with integer entries. Show that A−1 has integer entries
if and only if det(A) = ±1.
Solution: If det(A) = ±1, then entries of A−1 are integers as A−1 = det(A)
1
C T , where C is
the matrix of co-factors. If entries of A−1 are integers then 1/det(A) = det(A−1 ) ∈ Z. As
det(A) ∈ Z, the result follows.
19. Let A be an n × n matrix. Prove that the following statements are equivalent:
(a) det(A) 6= 0.
(b) A is invertible.
(c) The homogeneous system Ax = 0 has only the trivial solution.
(d) The row-reduced echelon form of A is In .
(e) A is a product of elementary matrices.
(f) The system Ax = b has a unique solution for every .
¯
(g) The system Ax = b is consistent for every b.
19a =⇒ 19b
Ct
By, definition, whenever det(A) 6= 0, A−1 = , where C is the co-factor matrix.
det(A)
19b =⇒ 19a
As A is invertible, AA−1 = In and hence det(A) det(A−1 ) = det(In ) = 1. Hence, det(A) 6= 0.
19b =⇒ 19c
As A is invertible, A−1 A = In . Let x0 be a solution of the homogeneous system Ax = 0. Then,
1 · x1 + 0 · x2 + 0 · x3 + · · · + 0 · xn = 0
0 · x1 + 1 · x2 + 0 · x3 + · · · + 0 · xn = 0
0 · x1 + 0 · x2 + 1 · x3 + · · · + 0 · xn = 0
.. .
. = ..
0 · x1 + 0 · x2 + 0 · x3 + · · · + 1 · xn = 0.
That is, the final system of homogeneous system is given by In · x = 0. Or equivalently, the
row-reduced echelon form of the augmented matrix [A 0] is [In 0]. That is, the row-reduced
echelon form of A is In .
19d =⇒ 19e
Suppose that the row-reduced echelon form of A is In . Then there exist elementary matrices
E1 , E2 , . . . , Ek such that
E1 E2 · · · Ek A = In . (1)
Now, the matrix Ej−1 is an elementary matrix and is the inverse of Ej for 1 ≤ j ≤ k. Therefore,
successively multiplying Equation (1) on the left by E1−1 , E2−1 , . . . , Ek−1 , we get
−1
A = Ek−1 Ek−1 · · · E2−1 E1−1
20. Let A be an n × n matrix. Then prove that det(A) = 0 if and only if the system Ax = 0 has a
non-trivial solution.
21. Let A be an n × n matrix. Then, the two statements given below cannot hold together.
22. (T) A real square matrix A is said to be orthogonal if AT A = AAT = I. Show that if A is
orthogonal then det(A) = ±1.
23. Let A = [aij ] be an invertible matrix and let B = [pi−j aij ], for some p 6= 0. Find the inverse of
B and also find det(B).
Solution: Note that B = DAD−1 , where D is a diagonal matrix with dii = pi . Hence,
B −1 = DA−1 D−1 . Also,
24. Suppose the 4 × 4 matrix M has 4 equal rows all containing a, b, c, d. We know that det(M ) = 0.
The problem is to find by any method
1+a b c d
a 1 + b c d
det(I + M ) = .
a b 1+c d
a b c 1+d
Thus, det(I + M ) = 1 + a + b + c + d.
9
25. (T) For a complex matrix A = [aij ], let Ā = [ aij ] and A∗ = ĀT . Show that det(Ā) = det(A∗ ) =
detA . Therefore if A is Hermitian (that is, A∗ = A) then its determinant is real.
Solution: The first equality follows directly from the statement in Problem 4:
T
det(Ā) = det (Ā) = det(A∗ ).
26. The numbers 1375, 1287, 4191 and 5731 are all divisible by 11. Prove that 11 also divides the
determinant of the matrix
1 1 4 5
3 2 1 7
.
7 8 9 3
5 7 1 1
1 x1 x21 · · · x1n−1
1 x2 x22 · · · xn−1
2
An = . . . . . . .
. . . ... .
1 xn x2n · · · xnn−1 .
1 x1 x21 · · · xn−1
1
1 x2 x22 · · · xn−1
2
F (x) = . . . ... . .
. . . ... .
2
1 x x ··· x n−1
n−1
Q
Then F is a polynomial of degree n − 1 with roots x1 , x2 , . . . , xn−1 . So, F (x) = c (x − xi )
i=1
where c is coefficient of xn−1 which is clearly det(An−1 ). Therefore,
n−1
Y
F (x) = det(An−1 ) (x − xi ).
i=1