VOOZH about

URL: https://www.geeksforgeeks.org/maths/determinant-of-4x4-matrix/

⇱ Determinant of 4x4 Matrix - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Determinant of 4x4 Matrix

Last Updated : 17 Nov, 2025

The determinant of a matrix is a single numerical value that can be calculated from a square matrix (a matrix with the same number of rows and columns).

  • It tells us important information about the matrix, such as whether it is invertible (has an inverse) and how it scales space in geometry.
  • A 4Γ—4 matrix is an array of numbers with four rows and four columns (a square matrix).
πŸ‘ Determinant-of-4-into-4-Matrix_

Properties of 4Γ—4 Matrix

Here are some properties of a 4Γ—4 matrix:

  • Square Matrix: A 4Γ—4 matrix has an equal number of rows and columns, making it a square matrix.
  • Determinant: The determinant of a 4Γ—4 matrix can be calculated using methods like cofactor expansion or row reduction. It provides information about the matrix's invertibility and scaling factor for linear transformations.
  • Inverse: A 4Γ—4 matrix is invertible if its determinant is non-zero. The inverse of a 4Γ—4 matrix allows solving systems of linear equations and undoing transformations represented by the matrix.
  • Transpose: The transpose of a 4Γ—4 matrix is obtained by interchanging its rows and columns. It can be useful in certain computations and transformations.
  • Eigenvalues and Eigenvectors: 4Γ—4 matrices can be analysed to find their eigenvalues and eigenvectors, which represent properties of the matrix under linear transformations.
  • Symmetry: Depending on the specific matrix, it may exhibit properties of symmetry such as being symmetric, skew-symmetric, or neither.
  • Matrix Operations: Various operations, such as addition, subtraction, multiplication, and scalar multiplication, can be performed on 4Γ—4 matrices following specific rules and properties.

Determinant of 4Γ—4 Matrix Formula

Determinant of any 4 Γ— 4 Matrix, i.e., , can be calculated using the following formula:

det(A) = a11 Β· det(A11) - a12 Β· det(A12) + a13 Β· det(A13) - a14 Β· det(A14)

  • Where Aij is the 3Γ—3 submatrix formed by deleting row 1 and column j. (The signs follow (βˆ’1)1+j.)

How do you find the Determinant of a 4 Γ— 4 Matrix?

To find the determinant of a 4x4 matrix, you can use various methods such as expansion by minors, row reduction, or applying specific properties.

One common method is to use expansion by minors, where you expand along a row or column by multiplying each element by its cofactor and summing the results. This process continues recursively until you reach a 2x2 submatrix, for which you can directly compute the determinant. To understand how to find the determinant of a 4Γ—4 matrix, consider an example.

Step 1: Expand along the first row:

det(A) = 2 Β· det(A11) - 1 Β· det(A12) + 3 Β· det(A13) - 4 Β· det(A14)

Where Aij denotes the submatrix obtained by deleting the i-th row and j-th column.

Step 2: Compute the determinant of each 3x3 submatrix.

For A11

β‡’ |A11| = (-1)[(0)(1)-(5)(2)] - 2[(2)(1)-(5)(3)] + 1[(2)(2)-(0)(3)]

β‡’ |A11| = (-1)[(-10)] - 2[(2)-(15)] + 1[(4)-(0)]

β‡’ |A11| = 10 - 2(-13) + 4

β‡’ |A11| = 10 + 26 + 4= 40

For A12

β‡’ |A12| = (0)[(0)(1)-(5)(2)] - 2[(3)(1)-(5)(-1)] + 1[(3)(2)-(0)(-1)]

β‡’ |A12| = (0)[(-10)] - 2[(3)+(5)] + 1[(6)-(0)]

β‡’ |A12| = 0 - 2(8) + 6

β‡’ |A12| = 0 - 16+ 6= - 10

For A13

β‡’ |A13| = (0)[(2)(1)-(3)(5)] - (-1)[(3)(1)-(5)(-1)] + 1[(3)(3)-(2)(-1)]

β‡’ |A13| = (0)[(2)-(15)] - (-1)[(3)+(5)] + 1[(9)-(-2)]

β‡’ |A13| = 0 - (-1)(8) + 1(11)

β‡’ |A13| = 8 + 11 = 19

For A14

β‡’ |A14| = (0)[(2)(2)-(3)(0)] - (-1)[(3)(2)-(0)(-1)] + 2[(3)(3)-(2)(-1)]

β‡’ |A14| = (0)[(4)-(0)] - (-1)[(6)-(0)] + 2[(9)-(-2)]

β‡’ |A14| = 0 - (-1)(6) + 2(11)

β‡’ |A14| = 6 + 22 = 28

Step 3: Substitute the determinants of the 3x3 submatrices into the expansion formula:

(A) = 2 Β· 40 + 1 Β· 10 + 3 Β· 19 - 4 Β· 28

Step 4: Compute the final determinant:

det(A) = 80 + 10 + 57 - 112

det(A) = 35

So, the determinant of the given 4x4 matrix is 35.

Also Check:

Special Cases for Zero Determinant

Here are the special cases (or situations) where the determinant of a matrix becomes zero (0):

1. One Row or Column Is All Zeros

Example:

Here, the second row consist entirely of zeros.

When the row( or column ) in determinant is made of all zeros,the value of the determinant is always zero.

|A| = 0

2. Two Rows or Columns Are Identical

Example :

Notice that Column 1 and Column 3 are exactly the same.

If any two columns ( or rows) of determinants are identical , its determinants is zero.

|B| = 0

3. Two Rows or Columns Are Proportional

Example:

Here, the second row is excatly twice the first row.

That means the two rows are proportional, and whenever any two rows( or column) are proportional, the determinants is zero.

Determinant of 4Γ—4 Matrix Solved Examples

Example 1: Calculate the determinant of the matrix A =

Solution:

First Expand along the first row:

Now, compute the determinant of each 3x3 submatrix.

For (A11):

= (-1)((1)(3)-(5)(-2)) - 2((2)(3)-(5)(0)) + 0((2)(-2)-(1)(0))

= (-1)((3)+(10)) - 2((6)-(0)) + 0((-4)-(0))

= (-1)(13) - 2(6) + 0(-4)

= -13 - 12

= -25

For (A12):

= (4)((1)(3)-(5)(2)) - (2)((-3)(3)-(5)(1)) + (0)((-3)(2)-(1)(1))

= (4)((3)-(10)) - (2)((-9)-(5)) + 0

= 4 (-7) - 2(- 14 )

= =28 + 28 = 0

For (A13):

Since a13 = 0, the contribution of C13​ will be zero. (Computation unnecessary.)

For (A14):

=4[(2)(βˆ’2)βˆ’(1)(0)]βˆ’(βˆ’1)[(βˆ’3)(βˆ’2)βˆ’(1)(1)]+2[(βˆ’3)(0)βˆ’(2)(1)]

=4 [βˆ’ 4 βˆ’ 0] + 1[6 βˆ’ 1] + 2[0 βˆ’ 2]

= 4(-4) + 5 + (- 4)

=βˆ’ 16 + 5 βˆ’ 4

= - 15

Now, substitute the determinants of the 3x3 submatrices into the expansion formula:

det(A) = 2 ( - 25 ) - 1( 80 ) - 3 ( - 15)

= -50 - 80 + 45 + 0

= - 130 + 45

= - 85

So, the determinant of matrix (A) is - 85 .

Example 2: Calculate the determinant of the matrix

Solution:

To find the determinant of the matrix ( A ), we'll use the expansion by minors method along the first row:

Now, let's compute the determinants of the 3x3 submatrices:

= 0 - 2 ( 2 - 0) + 5 ( 6 + 2)

= -4 + 5(8) = - 4 + 40 = 36

= -1 Β· ( 1 - 0) - 2 ( 3- 0) + 5(9 - 4)

= - 1 - 6 + 5(5)

= - 7 + 25 = 18

= -1( 2- 0) - 0 + 5 (-6 - 8 )

= - 72

= -1 Β· (6 + 2) - 0 + 2( - 6 - 8)

= (- 1)(8) + 2 (-14) = -8 - 28 = - 36

Now, substitute these determinants back into the expansion formula:

det(A) = 72 - 18 + 216 + 144 = 54 + 360 = 414

So, the determinant of matrix ( A ) is det(A) = 414.

Example 3: Let C = find its determinants using the cofactor expansion method.

Solution:

Expand along the first row [3,β€…β€Š0,β€…β€Š2,β€…β€Š1]. The expansion is

det⁑(C) = 3β€…β€ŠC11 + 0β€…β€ŠC12 + 2β€…β€ŠC13 + 1C14

where C1j = (βˆ’1)1+j det⁑(M1j) (cofactor).

=4(15) - 1(-5) - 3(-6)
= 60 + 5 + 18
= 83.


= 0 - 4(10) - 3(5)
= -40 - 15
= -55

=0 - 4(-3) + 1(5)
=12 + 5
= 17.

Now substitute:

|C| = 3(83) - 2(-55) + (-17)

|C| = 249 + 110 - 17

|C| = 342

Determinant of 4Γ—4 Matrix Practice Questions

Question 1: Calculate the determinant of the following 4Γ—4 matrix:

Question 2: Find the determinant of the matrix:

Question 3: Calculate the determinant of the following 4Γ—4 matrix:

Question 4: Determine the determinant of the matrix:

Question 5: Find the determinant of the matrix:

Question 6: Find the determinant of the following lower triangular matrix:

Comment

Explore