Determinants and Cramer's Rule: Example 1: Find The Determinants of The Following Matrices
Determinants and Cramer's Rule: Example 1: Find The Determinants of The Following Matrices
Determinants and Cramer's Rule: Example 1: Find The Determinants of The Following Matrices
This section will deal with how to find the determinant of a square matrix. Every square
matrix can be associated with a real number known as its determinant. The determinant of a
matrix, in this case a 2x2 matrix, is defined below:
⎡a a12 ⎤
Given the matrix A = ⎢ 11 ⎥
⎣ a 21 a 22 ⎦
det ( A ) = A = a11a 22 − a 21a12
The following example will show how to find the determinant of a 2x2 matrix and that
⎡ 2 −3 ⎤ ⎡ 2 1⎤ ⎡ 0 3⎤
a.) A = ⎢ ⎥ b.) B = ⎢ ⎥ c.) C = ⎢ ⎥
⎣ 1 2⎦ ⎣ 4 2⎦ ⎣ 2 4⎦
2 −3 2 1
a.) A = b.) B =
1 2 4 2
= ( 2 )( 2 ) − (1)( −3) = ( 2 )( 2 ) − ( 4 )(1)
= 4 − ( −3 ) = 4−4
= 4+3 =0
=7
0 3
c.) C =
2 4
= ( 0 )( 4 ) − ( 2 )( 3)
= 0−6
= −6
⎡ 0 2 1⎤
A = ⎢⎢ 3 −1 2 ⎥⎥
⎢⎣ 4 0 1⎥⎦
Step 1: Analysis.
⎡ M 11 M 12 M 13 ⎤
⎢ ⎥
⎢ M 21 M 22 M 23 ⎥
⎢⎣ M 31 M 32 M 33 ⎥⎦
The row and column containing each minor is eliminated and the
remaining elements are arranged to solve for that elements minor.
−1 2
M 11 = = ( −1)(1) − ( 0 )( 2 ) = −1 − 0 = −1
0 1
3 2
M 12 = = ( 3)(1) − ( 4 )( 2 ) = 3 − 8 = −5
4 1
3 −1
M 13 = = ( 3)( 0 ) − ( 4 )( −1) = 0 + 4 = 4
4 0
2 1
M 21 = = ( 2 )(1) − ( 0 )(1) = 2 − 0 = 2
0 1
0 1
M 22 = = ( 0 )(1) − ( 4 )(1) = 0 − 4 = −4
4 1
0 2
M 23 = = ( 0 )( 0 ) − ( 4 )( 2 ) = 0 − 8 = −8
4 0
2 1
M 31 = = ( 2 )( 2 ) − ( −1)(1) = 4 + 1 = 5
−1 2
0 1
M 32 = = ( 0 )( 2 ) − ( 3)(1) = 0 − 3 = −3
3 2
0 2
M 33 = = ( 0 )( −1) − ( 3)( 2 ) = 0 − 6 = −6
3 −1
Having found the minors of the 3x3 matrix, the cofactors are found by raising “-1” to a
power equal to the sum of the elements row and column number and multiplying that value by
the minor result (i.e. M23 would result in -1 being raised to the 2+3 or 5th power). Example 3 will
demonstrate how to find the cofactors of the matrix given in example 2.
⎡ 0 2 1⎤
Example 3: Find the cofactors of the matrix A = ⎢⎢ 3 −1 2 ⎥⎥
⎣⎢ 4 0 1⎥⎦
M 11 = − 1 M 12 = − 5 M 13 = 4
M 21 = 2 M 22 = − 4 M 23 = − 8
M 31 = 5 M 32 = − 3 M 33 = − 6
Having now found the cofactors, the determinant of the matrix may be found by finding
the sum of the products of the entries of any row or column of the given matrix and their
respective cofactor (i.e. |A| = a11C11 + a12C12 + … + a1nC1n). Example 4 will show how to solve
for the determinant of the matrix given in examples 2 and 3.
⎡ 0 2 1⎤
Example 4: Find the determinant of the matrix A = ⎢⎢ 3 −1 2 ⎥⎥
⎣⎢ 4 0 1⎥⎦
Step 2: Select any row or column of the matrix and then, using the formula
|A| = a11C11 + a12C12 + … + a1nC1n, find the determinant. For this
example, the second row and the third column will be evaluated.
Step 1: Analyze.
Recall that |A| = a11C11 + a12C12 + … + a1nC1n . For this example, the
second column will be used even though the third column is the simplest
to solve for. This means that for this example
A = 2C12 + 1C 22 + 2C 32 + 4C 42
−1 0 2
C12 = ( −1)
3
0 0 3
3 0 2
−1 0 2
=− 0 0 3
3 0 2
⎡ 4 0 0 5 −1 0 6 −1 0 ⎤
= − ⎢ 2 ( −1) + 3 ( −1) + 2 ( −1) ⎥
⎣ 3 0 3 0 0 0⎦
= − ⎡⎣ 2 ( 0 − 0 ) − 3 ( 0 − 0 ) + 2 ( 0 − 0 ) ⎤⎦
=0
1 3 0
C22 = ( −1)
4
0 0 3
3 0 2
1 3 0
=0 0 3
3 0 2
0 3 3 3 0 4 3 0
= 1( −1) + 0 ( −1) + 3 ( −1)
2
0 2 0 2 0 3
= 1( 0 − 0 ) + 0 ( 6 − 0 ) + 3 ( 9 − 0 )
= 0 + 0 + 27
= 27
1 3 0
C32 = ( −1) −1 0 2
5
3 0 2
1 3 0
= − −1 0 2
3 0 2
⎡ 2 0 2 3 3 0 4 3 0⎤
= − ⎢1( −1) + ( −1)( −1) + 3 ( −1) ⎥
⎣ 0 2 0 2 0 2⎦
= − ⎡⎣1( 0 − 0 ) + 1( 6 − 0 ) + 3 ( 6 − 0 ) ⎤⎦
= − ( 0 + 6 + 18 )
= −24
1 3 0
C42 = ( −1) −1 0 2
6
0 0 3
1 3 0
= −1 0 2
0 0 3
0 2 3 0 3 0
= 1( −1) + ( −1)( −1) + 0 ( −1)
2 3 4
0 3 0 3 0 2
= 1( 0 − 0 ) + 1( 9 − 0 ) + 0 ( 6 − 0 )
= 0+9+0
=9
Cramer’s rule for a system of two equations with two variables is defined by:
k1 a12 a11 k1
k2 a22 a21 k2
then X = and Y =
D D
a11 a12
The matrix of D = is known as the coefficient matrix.
a21 a22
Example 6: Given 4x – 2y = 10 and 3x – 5y = 11, solve for x and y using Cramer’s rule.
Solution:
Step 1: Analyze.
a11 = 4 ; a12 = − 2 ; k1 = 10
and
a21 = 3 ; a22 = − 5 ; k2 = 11
a11 a12
D=
a21 a22
4 −2
=
3 −5
= ( 4 )( −5 ) − ( 3 )( −2 )
= − 20 − ( −6 )
= − 20 + 6
= − 14
k1 a12 a11 k1
k2 a22 a21 k2
X= Y=
D D
10 −2 4 10
11 −5 3 11
= =
−14 −14
( 10 )( −5 ) − ( 11)( −2 ) ( 4 )( 11) − ( 3 )(10 )
= =
−14 −14
−50 + 22 44 − 30
= =
−14 −14
−28 14
= =2 = = −1
−14 −14
∴ ( x , y ) = ( 2 , − 1)
− x + 2 y − 3z = 1
2x + 0 y + z = 0
3 x − 4 y + 4z = 2
Solution:
Step 1: Analyze.
−1
2 −3
D= 2 0 1
3 −4 4
0 1 2 −3 4 2 −3
= ( −1)( −1) + ( 2 )( −1) + ( 3 )( −1)
2 3
−4 4 −4 4 0 1
= ( −1)( 1) ⎡⎣ ( 0 ) − ( −4 ) ⎤⎦ + ( 2 )( −1) ⎡⎣ ( 8 ) − ( 12 ) ⎤⎦ + ( 3 )( 1) ⎡⎣( 2 ) − ( 0 ) ⎤⎦
= ( −1)( 4 ) + ( −2 )( −4 ) + ( 3 )( 2 )
= −4 + 8 + 6
= 10
1 2 −3
0 0 1
2 −4 4
x=
10
0 0 1 2 1 2
( −3 )( −1) + ( 1)( −1) + ( 4 )( −1)
4 5 6
2 −4 2 −4 0 0
=
10
( −3 )( 1) ⎡⎣( 0 ) − ( 0 ) ⎤⎦ + ( 1)( −1) ⎡⎣( −4 ) − ( 4 ) ⎤⎦ + ( 4 )( 1) ⎡⎣( 0 ) − ( 0 ) ⎤⎦
=
10
( −3 )( 0 ) + ( −1)( −8 ) + ( 4 )( 0 )
=
10
0+ 8+ 0
=
10
8 4
= =
10 5
−1 1 −3
2 0 1
3 2 4
y=
10
2 0 5 −1 1 6 −1 1
( −3 )( −1) + ( 1)( −1) + ( 4 )( −1)
4
3 2 3 2 2 0
=
10
( −3 )( 1) ⎡⎣( 4 ) − ( 0 ) ⎤⎦ + ( 1)( −1) ⎡⎣( −2 ) − ( 3 ) ⎤⎦ + ( 4 )( 1) ⎡⎣( 0 ) − ( 2 ) ⎤⎦
=
10
( −3 )( 4 ) + ( −1)( −5 ) + ( 4 )( −2 )
=
10
−12 + 5 − 8
=
10
15 3
=− =−
10 2
−1 2 1
2 0 0
3 −4 2
z=
10
0 0 2 1 2 1
( −1)( −1) + ( 2 )( −1) + ( 3 )( −1)
2 3 4
−4 2 −4 2 0 0
=
10
( −1)( 1) ⎣⎡( 0 ) − ( 0 ) ⎤⎦ + ( 2 )( −1) ⎡⎣( 4 ) − ( −4 ) ⎤⎦ + ( 3 )( 1) ⎡⎣( 0 ) − ( 0 ) ⎤⎦
=
10
( −1)( 0 ) + ( −2 )( 8 ) + ( 3 )( 0 )
=
10
0 − 16 + 0
=
10
16 8
=− =−
10 5
Step 4: Analyze.
4 3 8
The solutions found were x = , y = − and z = − .
5 2 5
This indicates that the solution set or point of interception for the three
given lines is:
( x , y , z ) = ⎛⎜ , − , − ⎞⎟
4 3 8
⎝5 2 5⎠