For AI agents: use /llms.txt for the Nakafa content index.
The determinant of a matrix is a scalar value (a single number) that can be calculated from the elements of a square matrix. The concept of a determinant is very important in linear algebra, one of its uses being to help solve systems of linear equations. Every square matrix has a unique determinant value.
A 2 × 2 2 \times 2 2 × 2 order matrix is a matrix that has two rows and two columns. Suppose we have matrix as follows:
The determinant of matrix A A A , usually written as det ( A ) \det(A) det ( A ) or ∣ A ∣ |A| ∣ A ∣ , is calculated by subtracting the product of the elements of the main diagonal from the product of the elements of the second diagonal.
Note that the notation ∣ a b c d ∣ \begin{vmatrix} a & b \\ c & d \end{vmatrix} a c b d uses straight lines, which denote the determinant, as opposed to square brackets [ a b c d ] \begin{bmatrix} a & b \\ c & d \end{bmatrix} [ a c b d ] which denote the matrix itself.
Suppose we have matrix B B B :
To calculate its determinant, we identify a = − 1 a = -1 a = − 1 , b = 3 b = 3 b = 3 , c = − 7 c = -7 c = − 7 , and d = − 5 d = -5 d = − 5 .
Then, the determinant of matrix B B B is:
So, the determinant value of matrix B B B is 26 26 26 .
One important application of determinants is to solve systems of linear equations. This method is often called Cramer's Rule.
Consider the following system of linear equations with two variables (SPLDV):
In this system, x x x and y y y are the variables whose values we want to find. The coefficients a 11 , a 12 , a 21 , a 22 a_{11}, a_{12}, a_{21}, a_{22} a 11 , a 12 , a 21 , a 22 and constants b 1 , b 2 b_1, b_2 b 1 , b 2 are known numbers.
This system of equations can be converted into matrix multiplication form:
The first step is to calculate the determinant of the coefficient matrix, which we call D D D :
A system of linear equations will have a unique solution if and only if D ≠ 0 D \neq 0 D = 0 .
Next, we calculate two other determinants:
D x D_x D x , which is the determinant of the coefficient
matrix where the first column (coefficients of x x x ) is replaced
by the constant column (b 1 , b 2 b_1, b_2 b 1 , b 2
):
D y D_y D y , which is the determinant of the coefficient
matrix where the second column (coefficients of y y y ) is replaced
by the constant column (b 1 , b 2 b_1, b_2 b 1 , b 2
):
After obtaining the values of D D D , D x D_x D x , and D y D_y D y , we can find the values of x x x and y y y using the formulas:
These formulas are only valid if D ≠ 0 D \neq 0 D = 0 .
Determine the solution of the following system of linear equations:
From the system above, we get:
a 11 = 2 a_{11} = 2 a 11 = 2 , a 12 = − 1 a_{12} = -1 a 12 = − 1 , b 1 = 7 b_1 = 7 b 1 = 7
a 21 = 1 a_{21} = 1 a 21 = 1 , a 22 = − 4 a_{22} = -4 a 22 = − 4 , b 2 = 14 b_2 = 14 b 2 = 14
Step 1 1 1 : Calculate the determinant D D D .
Since D = − 7 ≠ 0 D = -7 \neq 0 D = − 7 = 0 , this system has a unique solution.
Step 2 2 2 : Calculate the determinant D x D_x D x .
Step 3 3 3 : Calculate the determinant D y D_y D y .
Step 4 4 4 : Calculate the values of x x x and y y y .
So, the solution set of the system of linear equations is x = 2 x=2 x = 2 and y = − 3 y=-3 y = − 3 , or can be written as the ordered pair ( 2 , − 3 ) (2, -3) ( 2 , − 3 ) .
Given matrix M = [ 9 x 8 − 7 ] M = \begin{bmatrix} 9 & x \\ 8 & -7 \end{bmatrix} M = [ 9 8 x − 7 ] and det ( M ) = 9 \det(M) = 9 det ( M ) = 9 . Determine the value of x x x .
Determine the solution of the following system of linear equations:
For matrix M = [ 9 x 8 − 7 ] M = \begin{bmatrix} 9 & x \\ 8 & -7 \end{bmatrix} M = [ 9 8 x − 7 ] , its determinant is:
Given det ( M ) = 9 \det(M) = 9 det ( M ) = 9 , then:
So, the value of x x x is − 9 -9 − 9 .
System of linear equations:
We determine D , D x , D, D_x, D , D x , and D y D_y D y .
Then, the values of x x x and y y y are:
So, the solution of the system of linear equations is x = 2 x=2 x = 2 and y = − 4 y=-4 y = − 4 , or the ordered pair ( 2 , − 4 ) (2, -4) ( 2 , − 4 ) .