Lecture2 - Square Matrix and Determinant
Lecture2 - Square Matrix and Determinant
a1,1 a1,2 ··· a1,n
a ···
2,1 a2,2 a2,n
A=
.. .. .. ..
. . . .
an,1 an,2 ··· an,n
Example 7. !
3 4
A= ⇒ A ∈ M2 (R)
−2 1
Example 8.
3 4 −2 3
A= ⇒ AT =
−2 1 1 4
3 4 1 −1 15 5
A= B= ⇒ AB =
−2 1 3 2 1 4
Definition 5.
2. The identity matrix denoted In is a diagonal matrix in which all the diagonal terms are
equal to 1.
Example 9.
1 0 0
2 0 1 0
D= I1 = 1 I2 = I3 = 0 1 0
0 −1 0 1
0 0 1
Example 10.
1 3 −2 1 0 0 1 3 −2
A = −5 0 3 I3 = 0 1 0 ⇒ I3 A = AI3 = −5 0 3 =A
2 2 1 0 0 1 2 2 1
Definition 6.
Example 11.
1 2 −1 0 −4 −3
A= 2 2 5 B = 4 0 1 ⇒ A = AT and B = −B T
−1 5 3 3 −1 0
8
Determinant of a square matrix
Definition 7. There is only one map det : Mn (K) → K called determinant such that:
Example 13.
1 2
A1 = 5 A2 =
−3 2
1 2
det A1 = 5 det A2 = = 1(2) − (−3)2 = 8
−3 2
Definition 8.
Let A ∈ Mn (K) and Aij the matrix A from which we have removed the ith row and the jth
column.
We call minor of order n − 1 the number detAij
We call cofactor of A relatively to the element aij the number Cij = (−1)i+j det Aij
Theorem 3. Let A ∈ Mn (K)
X
n
∀i ∈ {1, · · · , n}, det A = aij Cij
j=1
X
n
∀j ∈ {1, · · · , n}, det A = aij Cij
i=1
Example 14.
3 2 −1
A3 = 1 2 −1
−1 2 3
We can calculate the determinant with respect to the first row by choosing i = 1
X
3
2 −1 1 −1 1 2
i = 1 ⇒ det A = a1j C1j = a11 C11 + a12 C12 + a13 C13 = 3 −2 + (−1)
2 3 −1 3 −1 2
j=1
9
We can also calculate the determinant with respect to the second column by choosing j = 2
X
3
1 −1 3 −1 3 −1
j = 2 ⇒ det A = ai2 Ci2 = a12 C12 + a22 C22 + a32 C32 = −2 +2 −2
−1 3 −1 3 1 −1
i=1
Example 15.
3 2 −1 3 1 −1
A = 1 2 −1 ⇒ AT = 2 2 2
−1 2 3 −1 −1 3
2 2 2 2 2 2
det A = 3
T
− − = 3(8) − 8 − 0 = 16 = det A
−1 3 −1 3 −1 −1
Definition 9. A square matrix A is said to be upper triangular if all the terms below the diagonal
are zero. It said to be lower triangular if all the terms located above the diagonal are zero.
Example 16.
2 0 0
D = 0 −1 0 ⇒ det A = 2(−1)3 = −6
0 0 3
3 0 0
L = −1 2 0 ⇒ det L = 3(2)3 = 18
1 3 3
1 2 −1
U = 0 1 2 ⇒ det L = 1(1)1 = 1
0 0 1
The theorem remains valid if we replace the columns by the rows because det t A = det A
Example 17.
1 2 −1
A= 3 2 −1
−1 2 3
10