MAT_124___LECTURE_No__2
MAT_124___LECTURE_No__2
Introduction
Each n-square matrix A = [aij ] is assigned a special scalar called
the determinant of A, denoted by det(A) or |A| or
2.
5 3
= 5(6) − 3(4) = 30 − 12 = 18;
4 6
3 2
= 3(7) − 2(−5) = 21 + 10 = 31.
−5 7
Determinant of Order 3: Co-factor method
a11 a12 a13
The determinant of the 3 × 3 matrix A = a21 a22 a23 may be
a31 a32 a33
rewritten as follows:
a22 a23 a a23 a a22
det(A) = a11 − a12 21 + a13 21
a32 a33 a31 a33 a31 a32
= a11 a22 a33 − a11 a23 a32 − a12 a21 a33 + a12 a23 a31 + a13 a21 a32 − a13 a22 a31
Definition
Consider an n-square matrix A = [aij ]. Let Mij denote the
(n − 1) × (n − 1) submatrix of A obtained by deleting its ith row
and jth column. The determinant |Mij | is called the minor of the
element aij of A, and we define the cofactor of aij , denoted by Aij ,
to be the ’signed’ minor: Aij = (−1)i+j |Mij |.
Remark
The sign (−1)i+j of the cofactor Aij is frequently obtained using
the checkerboard pattern.
+ − + − ...
− + − + ...
+ − + − ...
... ... ... ... ...
Example
1 2 3
Let A = 4 5 6
7 8 9
Find the following minors and cofactors:
(a) |M23 | and A23 ,
(b) |M31 | and A31 .
1 2
(a) |M23 | = = 8 − 14 = −6,
7 8
A23 = (−1)2+3 |M23 | = (−1)5 (−6) = 6.
2 3
(b) |M31 | = = 12 − 15 = −3,
5 6
A31 = (−1)3+1 |M31 | = (−1)4 (−3) = −3.
Determinant by Laplace Expansion/Cofactor Method
(Laplace)
The determinant of a square matrix A = [aij ] is equal to the sum
of the products obtained by multiplying the elements of any row
(column) by their respective cofactors:
Using a row i:
n
X
|A| = ai1 Ai1 + ai2 Ai2 + · · · + ain Ain = aij Aij
j=1
Using a Column j.
n
X
|A| = a1j A1j + a2j A2j + · · · + anj Anj = aij Aij
i=1
The above formulas for |A| are called the Laplace expansions of the
determinant of A by the ith row and the jth column respectively.
Example: Determinant Calculation By L.E/C.F Method
We find the determinant of
2 1 3
A = 1 2 1 .
2 2 3
We make the arbitrary choice to expand along the first row. We
compute the minors as
2 1 1 1 1 2
|M11 | = det , |M12 | = det , |M13 | = det .
2 3 2 3 2 2
Computing these 2 × 2 determinants, we have
|M11 | = 4, |M12 | = 1, |M13 | = 6.
By inserting signs, we find that the cofactors are
A11 = 4, A12 = −1, A13 = 6.
Thus,
det A = a11 A11 + a12 A12 + a13 A13 = 2(4) + (1)(−1) + 3(6) = 25.
Example: Determinant Calculation using Laplace
Expansion
Example: Find the determinant of the following matrix using
Laplace expansion method
1 2 3
A = 4 3 2
1 0 3
Solution:
= −24 + 0 + 4
= −20.
Rule of Sarrus
Definition
The Rule of Sarrus is a mnemonic rule for solving the determinant
of a 3 × 3 matrix.
Key Points
▶ Also known as scheme of Sarrus or method of Sarrus, named
after Pierre Frédéric Sarrus, a French mathematician of the
19th century.
▶ To find the determinant of a 3 × 3 matrix using the Rule of
Sarrus, duplicate the first two columns of the matrix to the
right of its third column. Then, add the products of the main
diagonals going from top to bottom and subtract the products
of the main diagonals going from bottom to top.
Figure: Sarrus
Example
2 1 3 2 1
−1 1 0 · −1 1 =
−2 4 1 −2 4
= 2 · 1 · 1 + 1 · 0 · (−2) + 3 · (−1) · 4
−{(−2) · 1 · 3} − {4 · 0 · 2} − {1 · (−1) · 1}
= 2 + 0 − 12 + 6 − 0 + 1
= −3
Problem 1: Determinant using Rule of Sarrus
Problem
Find the determinant of the following 3 × 3 matrix using the rule
of Sarrus:
5 0 2
1 3 4
−1 1 0
Solution
First of all, we duplicate the first two columns of the matrix to its
right:
5 0 2 5 0
1 3 4 1 3
−1 1 0 −1 1
And then we apply the Sarrus’ rule:
5 0 2 5 0
1 3 4 1 3 = 5 · 3 · 0 + 0 · 4 · (−1) + 2 · 1 · 1
−1 1 0 −1 1 −{(−1) · 3 · 2} − {1 · 4 · 5} − {0 · 1 · 0}
= 0 + 0 + 2 + 6 − 20 + 0
= −12
Properties of Determinants
Theorem
The determinant of a matrix A and its transpose AT are equal;
that is, |A| = |AT |.
By this theorem, any theorem about the determinant of a matrix A
that concerns the rows of A will have an analogous theorem
concerning the columns of A.
Theorem
Let A be a square matrix.
1. If A has a row (column) of zeros, then |A| = 0.
2. If A has two identical rows (columns), then |A| = 0.
3. If A is triangular (i.e., A has zeros above or below the
diagonal), then |A| = product of diagonal elements. Thus, in
particular, |I | = 1, where I is the identity matrix.
Theorem
Suppose B is obtained from A by an elementary row (column)
operation.
1. If two rows (columns) of A were interchanged, then
|B| = −|A|.
2. If a row (column) of A were multiplied by a scalar k, then
|B| = k|A|.
3. If a multiple of a row (column) of A were added to another
row (column) of A, then |B| = |A|.
Major Properties of Determinants
▶ Theorem: The determinant of a product of two matrices A
and B is the product of their determinants; that is,
det(AB) = det(A) det(B).
▶ Theorem: Let A be a square matrix. Then the following are
equivalent:
1. A is invertible; that is, A has an inverse A−1 .
2. AX = 0 has only the zero solution.
3. The determinant of A is not zero; that is, det(A) ̸= 0.
1 2 3 4
5 1 2 3
A=
4
5 4 3
2 2 −4 5
R2-5R1, R3-4R1, R4-2R1, Yields,
1 2 3 4
0 −9 −13 −17
B= 0 −3 −8 −13
0 −2 −10 −3
Note the above row operations do not change the
Determinant of A, det B = det A.
9R3 − 3R2 , 9R4 − 2R2 , Yields,
1 2 3 4
0 −9 −13 −17
C =
0 0 −33 −66
0 0 −64 7
det C = 9 × 9 det B
1
33 R3 Yields
1 2 3 4
0 −9 −13 −17
D=
0 0 −1 −2
0 0 −64 7
1
det D = 33 det C and finally,
R4 − 64R3 Yields,
1 2 3 4
0 −9 −13 −17
E =
0 0 −1 −2
0 0 0 135
adjA = [Aij ]T
Definition
Cramer’s rule is one of the methods used to solve a system of
equations. This rule involves determinants, where the values of the
variables in the system are found with the help of determinants.
▶ The system of equations is typically written in the matrix form
AX = B, where:
▶ A is the coefficient matrix, which is a square matrix,
▶ X is the column matrix with variables, and
▶ B is the column matrix with the constants (which are on the
right side of the equations).
Cramer’s Rule Formula
Cramer’s Rule
Here is the Cramer’s rule formula to solve the system AX = B (or)
to find the values of the variables x1 , x2 , x3 , . . . , xn :
1. Find det |A| and represent it by D.
2. Find the determinants Dx1 , Dx2 , Dx3 , . . . , Dxn , where Dxi is the
determinant of matrix A where the ith column is replaced by
the column matrix B.
3. We divide each of these determinants by D to find the value
of the corresponding variables, i.e.,
Dx1 Dx Dx
x1 = , x2 = 2 , . . . , xn = n .
D D D
Note that the system of equations has a unique solution only when
D ̸= 0.
Example 1: Solving a System of Equations
Problem: Solve the following system of 2x2 equations: x + y = 5
and 2x − 3y = −4.
Solution:
The given system can be written in the matrix form AX = B
where,
1 1 x 5
A= , X = , and B = .
2 −3 y −4
Now, we will find the determinants.
1 1
D = det(A) = = 1(−3) − 1(2) = −3 − 2 = −5.
2 −3
5 1
Dx = = 5(−3) − 1(−4) = −15 + 4 = −11.
−4 −3
1 5
Dy = = 1(−4) − 5(2) = −4 − 10 = −14.
2 −4
Now, by Cramer’s rule for 2 equations,
Dx −11 11 Dy −14 14
x= = = , y= = = .
D −5 5 D −5 5
11 14
Answer: The solution of the given system is x = 5 and y = 5 .
Example 2: Solving a System of Equations using Cramer’s
Rule (Part 1)
Problem: Solve the following system of 3 equations in 3 variables
using Cramer’s rule:
x + y + z = 2,
2x + y + 3z = 9,
x − 3y + z = 10.
Solution (continued):
The given system can be written in the matrix form AX = B
where,
1 1 1 x 2
A = 2 1 3 , X = y , and B = 9 .
1 −3 1 z 10
Example 2: Solving a System of Equations using Cramer’s
Rule (Part 2)
1 1 1
D = det(A) = 2 1 3 = 4.
1 −3 1
Continuing similarly, we find Dx = 4, Dy = −8, and Dz = 12.
Now, we apply the formulas:
Dx 4 Dy −8 Dz 12
x= = = 1, y= = = −2, z= = = 3.
D 4 D 4 D 4
Answer: The solution of the given system is x = 1, y = −2, and
z = 3.
Figure: Cramers R
Figure: Cramers R