Determinant of Square Matrices: Associate Professor Pham Huu Anh Ngoc
Determinant of Square Matrices: Associate Professor Pham Huu Anh Ngoc
October 4, 2016
Return
Motivation
When does the linear system
ax + by = e
cx + dy = f have a unique solution?
Solution
2:Theabove
system
can be rewritten as
a b x e
= . The system has a unique solution if and
c d y f
a b
only if A := is invertible.
c d
ax + by = e
cx + dy = f have a unique solution?
Solution
2:Theabove
system
can be rewritten as
a b x e
= . The system has a unique solution if and
c d y f
a b
only if A := is invertible.
c d
ax + by = e
cx + dy = f have a unique solution?
Solution
2:Theabove
system
can be rewritten as
a b x e
= . The system has a unique solution if and
c d y f
a b
only if A := is invertible.
c d
ax + by = e
cx + dy = f have a unique solution?
Solution
2:Theabove
system
can be rewritten as
a b x e
= . The system has a unique solution if and
c d y f
a b
only if A := is invertible.
c d
a b
In fact, if ad − bc 6= 0 then A := , is invertible and the
c d
inverse of A is given by
1 d −b
A−1 = .
ad − bc −c a
It is easy to check
−1 −1 1 0
AA =A A= = I2
0 1
Determinant of second order
Ex:
1 2
det = 1 × 3 − 2 × 4 = −5
4 3
Notation: The determinant
of a matrix
A is
also denoted by A. For
a b
example, also means det a b .
c d c d
Cramer’s Rule
ax + by = e
cx + dy = f
is
e b a e
f d ed − fb c f af − ec
x= = ; y= =
D D D D
a b
provided D := 6= 0.
c d
Example
4x + 3y = 12
2x + 5y = −8
4 3
Solution: Note that D := = 14 6= 0. So the Cramer’s Rule
2 5
gives
12 3 4 12
−8 5 84 2 −8 −56
x = = = 6; y = = = −4.
4 3
14 4 3
14
2 5 2 5
Third-order determinant
is
a11 a12 a13
D1 D2 D3
6= 0)
x1 = ; x2 = x3 = , (D := a21 a22 a23
D D D a31
a32 a33
where
b1 a12 a13 a11 b1 a13 a11 a12 b1
D1 = b2 a22 a23 ;
D2 = a21 b2 a23 ;
D3 = a21 a22 b2 .
b3 a32 a33 a31 b3 a33 a31 a32 b3
Solve the linear system
3x + 2y + 3z = 4
−2x − 4y + 2z = −12
2x + 3z = 0
3 2 3
Solution Note that D := −2 −4 2 = 8 6= 0. The Cramer’s rule
2 0 3
gives
D1 D2 D3
x1 = ; x2 = x3 = ,
D D D
4 2 3 3 4 3
where D1 = −12 −4 2 = 24; D2 = −2 −12 2 =
0 0 3 2 0 3
3 2 4
4; −2 −4 −12 = −16.
2 0 0
Solve the linear system
3x + 2y + 3z = 4
−2x − 4y + 2z = −12
2x + 3z = 0
3 2 3
Solution Note that D := −2 −4 2 = 8 6= 0. The Cramer’s rule
2 0 3
gives
D1 D2 D3
x1 = ; x2 = x3 = ,
D D D
4 2 3 3 4 3
where D1 = −12 −4 2 = 24; D2 = −2 −12 2 =
0 0 3 2 0 3
3 2 4
4; −2 −4 −12 = −16.
2 0 0
Determinant of n-th order
Definition:
Definition:
det A = a11 (−1)(1+1) M11 + a12 (−1)(1+2) M12 + ... + a1n (−1)(1+n) M1n .
Ex:
1 0 1
= 1(−1)(1+1) 0 1 (1+2) 1 1
1 0 1 + 0(−1) +
1 1 1 1
1 1 1
1 0
1(−1)(1+3) = −1 + 1 = 0.
1 1
Definition: (Determinant of n-th order)
Let A = (aij ) be an n × n matrix. Then the determinant of A is defined
by
det A = a11 (−1)(1+1) M11 + a12 (−1)(1+2) M12 + ... + a1n (−1)(1+n) M1n .
Ex:
1 0 1
= 1(−1)(1+1) 0 1 (1+2) 1 1
1 0 1 + 0(−1) +
1 1 1 1
1 1 1
1 0
1(−1)(1+3) = −1 + 1 = 0.
1 1
Expanding a determinant along a row or a column
det A = ai1 (−1)(i+1) Mi1 + ai2 (−1)(i+2) Mi2 + ... + ain (−1)(i+n) Min ,
det A = a1j (−1)(1+j) M1j + a2j (−1)(2+j) M2j + ... + anj (−1)(n+j) Mnj ,
det A = ai1 (−1)(i+1) Mi1 + ai2 (−1)(i+2) Mi2 + ... + ain (−1)(i+n) Min ,
det A = a1j (−1)(1+j) M1j + a2j (−1)(2+j) M2j + ... + anj (−1)(n+j) Mnj ,
0 1
1(−1)(3+1) = −1 + 1 = 0.
0 1
(Expanding the determinant along the second column)
1 0 1
1 0 1 = 1(−1)(3+2) 1 1
= 0.
1 1
1 1 1
0 1
1(−1)(3+1) = −1 + 1 = 0.
0 1
(Expanding the determinant along the second column)
1 0 1
1 0 1 = 1(−1)(3+2) 1 1
= 0.
1 1
1 1 1
0 1
1(−1)(3+1) = −1 + 1 = 0.
0 1
(Expanding the determinant along the second column)
1 0 1
1 0 1 = 1(−1)(3+2) 1 1
= 0.
1 1
1 1 1
Theorem
(a) If I is the identity matrix then det I = 1.
(b) If B is obtained from A by interchanging two rows of A then
det B = − det A
(c) If B is obtained from A by adding a multiple of one row of A to
another row then det B = det A
(d) If B is obtained from A by multiplying a row by the number k, then
det B = k det A.
Ex:
2 −8 0 1 −4 0
det 0 1 0 = 2 det 0 1 0 =
0 0 −3 0 0 −3
1 0 0 1 0 0
2 det 0 1 0 = 2(−3) det 0 1 0 = −6.
0 0 −3 0 0 1
Determinant of special matrices
Theorem
a11 0 0 0
0 a11 0 0
det
...
= a11 a22 ...ann .
... ... ...
0 0 ... ann
Ex:
1 0 0
det 0 2 0 = 1 × 2 × 3 = 6.
0 0 3
A square matrix U is said to be upper triangular if the entries below the
main diagonal are zeros.
where a11 , a22 , ..., ann are diagonal entries of the matrix A.
Ex:
2 0 1 2 0 0
det 0 1 0 = 2×1×1 = 2 det 1 1 0 = 2×1×1 = 2.
0 0 1 1 0 1
Calculating determinants by row reduction
Ex:
2 −8 0 1 −4 0
det 0 1 0 = 2 det 0 1 0 =
1 0 −3 1 0 −3
1 0 0
2 det 0 1 0 = 2(−3) = −6.
1 0 −3
Example
(a)
1 0 2 1 0 2
det 2 0 4 = det 0 0 0 =0
0 1 0 0 0 −3
(b)
2 4 0 0 0 −6 1 2 3
det 1 2 3 = det 1 2 3 = − det 0 0 −6
0 1 1 0 1 1 0 1 1
1 2 3
= det 0 1 1 = −6
0 0 −6
Further properties of determinants
Calculate
1 0 0 1
2 1 0 0
det
0
1 1 0
0 0 1 2
Solution 1: Expanding the determinant along the first row, we have
1 0 0 1
2 1 0 0 1 0 0
1+1
det
0 1 1 0 = 1(−1)
det 1 1 0
0 1 2
0 0 1 2
2 1 0
+1(−1)1+4 det 0 1 1 = 2 − 2 = 0.
0 0 1
Example
Calculate
1 0 0 1
2 1 0 0
det
0
1 1 0
0 0 1 2
Solution 1: Expanding the determinant along the first row, we have
1 0 0 1
2 1 0 0 1 0 0
1+1
det
0 1 1 0 = 1(−1)
det 1 1 0
0 1 2
0 0 1 2
2 1 0
+1(−1)1+4 det 0 1 1 = 2 − 2 = 0.
0 0 1
Solution 2 Expanding the determinant along the second row, we have
1 0 0 1
2 1 0 0 1
0 0 = 2(−1)2+1 det 1 1
det
0 1 0
1 0
0 1 2
0 0 1 2
1 0 1
+1(−1)2+2 det 0 1 0 = 2 − 2 = 0.
0 1 2
Solution 3 Expanding the determinant along the third row, we have .....
Solution 4 Expanding the determinant along the fourth row, we have ....
Solution 5 Expanding the determinant along the first column, we have
....
Solution 6 Expanding the determinant along the second column, we
have ....
Prove that the linear system
x +y = 1
2x + y = 0
has a unique solution and find the solution. Solution: The given system
can be rewritten in the matrix form as
1 1 x 1
= .
2 1 y 0
1 1 1 1
Moreover, we have = −1 6= 0. Therefore, the matrix
2 1 2 1
is invertible. Thus,
−1
x 1 1 1 −1 1 1 −1
= = = .
y 2 1 0 2 −1 0 2
x +y = 1
2x + y = 0
has a unique solution and find the solution. Solution: The given system
can be rewritten in the matrix form as
1 1 x 1
= .
2 1 y 0
1 1 1 1
Moreover, we have = −1 6= 0. Therefore, the matrix
2 1 2 1
is invertible. Thus,
−1
x 1 1 1 −1 1 1 −1
= = = .
y 2 1 0 2 −1 0 2
x +y = 1
2x + y = 0
has a unique solution and find the solution. Solution: The given system
can be rewritten in the matrix form as
1 1 x 1
= .
2 1 y 0
1 1 1 1
Moreover, we have = −1 6= 0. Therefore, the matrix
2 1 2 1
is invertible. Thus,
−1
x 1 1 1 −1 1 1 −1
= = = .
y 2 1 0 2 −1 0 2
(2) Solve by CRAMER’s rule and check by Gauss elimination and back
substitution
(a)
2x − 5y = 23
4x + 6y = −2
(b)
2x − 3z + w = 30
4x − 5y + 2z = 13
8x − 4y + z + 2w = 42
y − 5z + 3w = 35