Sheet1 MatricesSOL
Sheet1 MatricesSOL
Now, we do the same procedure with b, and we observe that the determinant is the same as
abc a2 a3
1
abc b2 b3
ab
ab c c2
likewise with c,
abc a2 a3
1
abc b2 b3
abc
abc c2 c3
Taking out abc in the first column, the last expression equals
1 a2 a3 1 a2 a3
1
abc 1 b2 b3 = 1 b2 b3
abc 1 c2 c3 1 c2 c3
(4) Solve
the following
equation using the properties of the determinants:
a b c
a x c =0
a b x
Solution: We must assume that a 6= 0. Otherwise, the determinant is 0 for every real
number x. Since,
a b c 1 b c
a x c = a 1 x c
a b x 1 b x
the statement is equivalent (assuming a 6= 0) to
1 b c
1 x c = 0
1 b x
We subtract the first row to the second and third rows to obtain the following equation,
ecuación
1 b c
0 = 0 x−b 0 = (x − b)(x − c)
0 0 x−c
Hence, the solutions are x = b y x = c.
(6) Let A be a square matrix of order n × n such that AT A = In . Show that |A| = ±1.
Solution: Note that 1 = |I| = |At A| = |At ||A| = |A|2 . Hence, |A|2 = 1 and the only
possible values for the determinant are |A| = 1 o |A| = −1.
(8) Study
the rank of the following matrices, depending on the possible values of x:
x2
x 0 1
x x2
1 x x3
2 1 x −1 0 1
x
A= 0 0
B = 1 2 4 C= 0 x −1 1
1 0
1 3 9 1 0 −1 2
0 1 x 0
Solution: We compute first the rank of A.
1 x2 x3
0 1
0 0 1 = = −1
1 x
0 1 x
SHEET 1. MATRICES, DETERMINANTS AND SYSTEMS 5
so rg A ≥ 3 for any value of x. Expanding the determinant of A using the third row
x 0 1
|A| = 1 x2 x
0 1 0
Now we expand the determinant using row 3
x 1
|A| = −
= −(x2 − 1)
1 x
so the rank of A is 4 if x2 6= 1, that is if x 6= 1 and x 6= −1. To sum up,
3, if x = 1 o x = −1;
rg A =
4, in all other cases.
Now we compute the rank of B. Note that the minor
1 2
1 3 =1
(9) Let A and B be square, invertible matrices of the same order. Solve for X in the following
matrix equations:
(a) X t · A = B
−1
(b) (X · A) = A−1 · B
6 SHEET 1. MATRICES, DETERMINANTS AND SYSTEMS
1 2 1 0 1 2
Find X in the preceding equations when A = 0 1 0 and B = 1 0 1
3 1 2 1 1 1
Solution: a): Taking transpose in the equation X t A = B, we obtain B t = (X t A)t =
A X. Solving for X we have that X = (At )−1 B t = (A−1 )t B t . When
t
1 2 1 0 1 2
A = 0 1 1 B = 1 0 1
3 1 2 1 1 1
we see that
6 1 1
X = (A−1 )t B t = −9 −2 −1
−2 0 0
b): Taking inverse matrices in the equation (XA)−1 = A−1 B we see that XA =
(A−1 B)−1 = B −1 (A−1 )−1 = B −1 A. And since, A is invertible, we can solve for X =
B −1 AA−1 = B −1 . When
1 2 1 0 1 2
A= 0 1 1 B= 1 0 1
3 1 2 1 1 1
we obtain
−1/2 1/2 1/2
X = B −1 = 0 −1 1
1/2 1/2 −1/2
2
Substract now the third row times x2 to the second row,
1 0 0 1 0 −x
2
0 1 0
x 1 − x2
0 0 1 0 0 1
from here we obtain the inverse matrix o A.
Now we compute the inverse matrix of
1 0 −1
B= 0 x 3
4 1 −x
By the usual formula we see that
2
x +3 1 −x
1
B −1 = 2 −12 x−4 3
x − 4x + 3
4x 1 −x
We also compute the inverse matrix by noticing that
1 0 −1 1 0 0
0 t 3 0 1 0
4 1 −t 0 0 1
now we subtract from the third row the first row times 4,
1 0 −1 1 0 0
0 t 3 0 1 0
0 1 4 − t −4 0 1
exchange rows 2 and 3
1 0 −1 1
0 0
0 1 4−t −4 0 1
0 t 3 0 1 0
Add the second row times t to the third row
1 0 −1 1
0 0
0 1 4−t −4
0 1
2
0 0 t − 4t + 3 4t 1 −t
From here we see that |A| = t2 − 4t + 3. The roots of this polynomial are
√
4 ± 16 − 12
t= = 1, 3
2
so the inverse matrix exists if and only if t 6= 1 y t 6= 3. Assuming this inequality, divide by
t2 − 4t + 3 the last row
1 0 −1 1 0 0
0 1 4−t −4 0 1
4t 1 t
0 0 1 t2 −4t+3 t2 −4t+3 − t2 −4t+3
and add the third row to the first one and third row times t − 4 to the second row,
2
−t
0 0 t2t−4t+3+3 1
1 t2 −4t+3 t2 −4t+3
0 −12
1 0 t2 −4t+3 t−4 3
t2 −4t+3 t2 −4t+3
0 0 1 4t 1 −t
t2 −4t+3 t2 −4t+3 t2 −4t+3
so 2
t +3 1 −t
1
A−1 = 2 −12 t−4 3
t − 4t + 3
4t 1 −t
8 SHEET 1. MATRICES, DETERMINANTS AND SYSTEMS
4 6 0 1 0 −2 4 5 −2
A = −3 −5 0 B= 0 0 0 C = −2 −2 1
−3 −6 1 −2 0 4 −1 −1 1
Solution: We shall use Gauss’ method to compute the inverse. We begin with the matrix
4 6 0 1 0 0
( A| I) = −3 −5 0 0 1 0
−3 −6 1 0 0 1
divide the first row by 4
1 6/4 0 1/4 0 0
−3 −5 0 0 1 0
−3 −6 1 0 0 1
now, subtract the third row to the second one
1 6/4 0 1/4 0 0
0 1 −1 0 1 −1
−3 −6 1 0 0 1
add the third row to the first one times 3,
1 3/2 0 1/4 0 0
0 1 −1 0 1 −1
0 −3/2 1 3/4 0 1
add the third row to the first one
1 0 1 1 0 1
0 1 −1 0 1 −1
0 −3/2 1 3/4 0 1
add the second row times 3/2 to the third row,
1 0 1 1 0 1
0 1 −1 0 1 −1
0 0 −1/2 3/4 3/2 −1/2
multiply the third row by −2
1 0 1
1 0 1
0 1 −1
0 1 −1
0 0 1 −3/2 −3 1
add the second row to the third one and subtract them to the first one
1 0 0 5/2 3 0
0 1 0 −3/2 −2 0
0 0 1 −3/2 −3 1
Thus, the inverse is
5/2 3 0
−3/2 −2 0
−3/2 −3 1
mx − y = 1
(12) Given the system , find m so that the system
x − my = 2m − 1
(a) has no solution,
(b) has infinitely many solutions,
(c) has a unique solution,
(d) has a solution with x = 3.
10 SHEET 1. MATRICES, DETERMINANTS AND SYSTEMS
x + y + z + 2t − w = 1
(14) Discuss and solve the system −x − 2y + 2w = −2
x + 2z + 4t = 0
(15) Discuss and solve the following system, according the values of a and b:
x+y+z =0
ax + y + z = b
2x + 2y + (a + 1) z = 0
The solution is
b −b
z = 0, y= , x=
1−a 1−a
SHEET 1. MATRICES, DETERMINANTS AND SYSTEMS 13
Now, we study the linear system for the value a = 1. In this case,
1 1 1 0
rg(A|B) = rg 0 0 0 b
0 0 0 0
So, when b 6= 0 the system is inconsistent, since rg(A) = 1, rg(A|B) = 2.
Finally, if a = 1 and b = 0 then rg(A) = rg(A|B) = 1 and the system is consistent
and underdetermined with 3 − 1 = 2 parameters. The original system is equivalent to the
following one
x+y+z =0
Taking y and z as parameters, the set of solutions is
{(−y − z, y, z) : y, z ∈ R}
To sum up,
b −b
a 6= 1, There
is a unique solution: z = 0, y = 1−a , x = 1−a ;
b 6= 0, inconsistent;
a = 1, If .
b = 0, undetermined. The set of solutions is the set {(−y − z, y, z) : y, z ∈ R}.
(16) Discuss and solve the following system, according the values of a and b:
x − 2y + bz = 3
5x + 2y = 1
ax + z = 2
(a) Find m so that it admits solutions other than the trivial solution.
(b) Solve the system.
Solution: The rank of the associated matrix is
3 3 −1 3 3 −1
rg −4 −2 m = rg −1 1 m − 1
3 4 6 0 1 7
we swap the first two rows
−1 1 m−1 −1 1 m−1
= rg 3 3 −1 = rg 0 6 3m − 4
0 1 7 0 1 7
and now swap the last two rows
−1 1 m − 1 −1 1 m−1
= rg 0 1 7 = rg 0 1 7
0 6 3m − 4 0 0 3m − 46
The system has non-trivial solution if and only if the determinant vanishes. This happens
for the value m = 46/3. In this case, the original system is equivalent to the following one
43
−x + y + z = 0
3
y + 7z = 0