Determinants by Cofactor Expansion
MAT1503 - Linear Algebra I · Determinants
Determinants by Cofactor Expansion
Determinants are important in linear algebra because they provide valuable information about matrices. They can tell us whether a matrix is invertible, the volume of a geometric shape defined by the matrix, and more. In this lesson, we will focus on the method of cofactor expansion to calculate the determinant of a matrix. Understanding this method will help you solve problems involving determinants effectively.
Key idea: After studying this topic, you should be able to:
- Calculate the determinant of a 2x2 matrix.
- Use cofactor expansion to find the determinant of larger matrices.
- Apply properties of determinants in various contexts.
Understanding Determinants
The determinant of a square matrix is a scalar value that can be computed from its elements. For a 2x2 matrix, the determinant is calculated as follows:
Determinant of a 2x2 Matrix
For a matrix A = [[a, b], [c, d]], the determinant is given by:
det(A) = ad - bcFor example, if we have:
A = [[1, 2], [3, 4]]Then the determinant is:
det(A) = (1)(4) - (2)(3) = 4 - 6 = -2Cofactor Expansion
Cofactor expansion is a method to calculate the determinant of larger matrices (3x3 and above) using the determinants of smaller matrices. The idea is to expand the determinant along a row or a column. The formula for cofactor expansion along the first column is:
det(A) = a11C11 + a21C21 + a31C31 + ... + an1Cn1Where aij is the element of the matrix, and Cij is the cofactor of that element. The cofactor is defined as:
Cij = (-1)^(i+j)det(Mij)Here, Mij is the minor matrix obtained by removing the i-th row and j-th column from the original matrix.
Example: Determinant of a 3x3 Matrix
Let us find the determinant of the matrix:
M = [[1, 2, 3], [0, 4, 5], [1, 0, 6]]We will use cofactor expansion along the first column:
det(M) = 1 * C11 + 0 * C21 + 1 * C31Calculating the cofactors:
- For
C11: Remove the first row and first column:
M11 = [[4, 5], [0, 6]]Now, calculate the determinant of M11:
det(M11) = (4)(6) - (5)(0) = 24So, C11 = (-1)^(1+1) * 24 = 24.
ForC31: Remove the third row and first column:
M31 = [[2, 3], [4, 5]]Calculate the determinant of M31:
det(M31) = (2)(5) - (3)(4) = 10 - 12 = -2So, C31 = (-1)^(3+1) * (-2) = -2.
Now, substituting back into the determinant formula:
det(M) = 1 * 24 + 0 * C21 + 1 * (-2) = 24 - 2 = 22Another Example
Let us consider another matrix:
N = [[2, 0, 1], [1, 3, -1], [4, 1, 2]]We will use cofactor expansion along the second row:
det(N) = 1 * C21 + 3 * C22 + (-1) * C23Calculating the Cofactors
ForC21: Remove the second row and first column:
M21 = [[0, 1], [1, 2]]Calculate:
det(M21) = (0)(2) - (1)(1) = -1So, C21 = (-1)^(2+1) * (-1) = 1.
ForC22: Remove the second row and second column:
M22 = [[2, 1], [4, 2]]Calculate:
det(M22) = (2)(2) - (1)(4) = 4 - 4 = 0So, C22 = (-1)^(2+2) * 0 = 0.
ForC23: Remove the second row and third column:
M23 = [[2, 0], [4, 1]]Calculate:
det(M23) = (2)(1) - (0)(4) = 2So, C23 = (-1)^(2+3) * 2 = -2.
Now substituting back into the determinant formula:
det(N) = 1 * 1 + 3 * 0 + (-1) * (-2) = 1 + 0 + 2 = 3Properties of Determinants
Understanding the properties of determinants can help simplify calculations. Here are some important properties:
The determinant of a triangular matrix (upper or lower) is the product of its diagonal elements.Swapping two rows of a matrix changes the sign of the determinant.Multiplying a row by a scalar multiplies the determinant by that scalar.If two rows are identical, the determinant is zero.
These properties can be useful when calculating determinants using cofactor expansion.
Example: Evaluating a Determinant with Properties
Given that det(A) = 5, det(B) = -1, and det(C) = 2, evaluate det(3A⁻¹BCᵀ).
Using the properties of determinants:
det(A⁻¹) = 1/det(A) = 1/5det(Cᵀ) = det(C) = 2det(3A⁻¹BCᵀ) = 3^n * det(A⁻¹) * det(B) * det(Cᵀ)(wherenis the order of the matrix, which is 3 in this case)
So:
det(3A⁻¹BCᵀ) = 3^3 * (1/5) * (-1) * 2 = 27 * (-1) * (2/5) = -54/5Watch out: Be careful with signs when calculating cofactors and when applying properties of determinants. A small mistake can lead to an incorrect answer.
Summary
Determinants provide important information about matrices.Cofactor expansion is a method for calculating determinants of larger matrices.Understanding properties of determinants can simplify calculations.Always pay attention to signs when calculating cofactors.
Check your understanding
Find det(M) for M=[[1,2,3],[0,4,5],[1,0,6]] by cofactor expansion along column 1.Find det(N) for N=[[2,0,1],[1,3,-1],[4,1,2]] by cofactor expansion along row 2.Given det(A)=5, det(B)=-1, det(C)=2, evaluate det(3A⁻¹BCᵀ).
Test yourself
5 quick questions on this lesson. Pick an answer to see if you're right.
1. When applying cofactor expansion to a larger matrix, what is the role of the minor matrix Mij?
2. Find det(N) for N= by cofactor expansion along row 2.
3. Using cofactor expansion, how would you calculate the determinant of the matrix M = along the first row?
4. If the determinant of a triangular matrix is the product of its diagonal elements, what is the determinant of the matrix A = ?
5. What is the determinant of the 3x3 matrix N = using cofactor expansion along the first row?