Source codeVideos

Command Palette

Search for a command to run...

Matrix

Matrix Determinant

Understanding Matrix Determinants

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.

Calculating the Determinant of a 2x2 Order Matrix

A 2x2 order matrix is a matrix that has two rows and two columns. Suppose we have matrix A as follows:

A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}

The determinant of matrix A, usually written as det(A)\det(A) or 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.

The formula is:

det(A)=A=abcd=adbc\det(A) = |A| = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

Note that the notation abcd\begin{vmatrix} a & b \\ c & d \end{vmatrix} uses straight lines, which denote the determinant, as opposed to square brackets [abcd]\begin{bmatrix} a & b \\ c & d \end{bmatrix} which denote the matrix itself.

Calculation of a 2x2 Matrix Determinant

Suppose we have matrix B:

B=[1375]B = \begin{bmatrix} -1 & 3 \\ -7 & -5 \end{bmatrix}

To calculate its determinant, we identify a=1a = -1, b=3b = 3, c=7c = -7, and d=5d = -5.

Then, the determinant of matrix B is:

det(B)=(1×5)(3×7)\det(B) = (-1 \times -5) - (3 \times -7)
det(B)=5(21)\det(B) = 5 - (-21)
det(B)=5+21\det(B) = 5 + 21
det(B)=26\det(B) = 26

So, the determinant value of matrix B is 26.

Solving Systems of Linear Equations with Two Variables (SPLDV) using Determinants

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):

a11x+a12y=b1a_{11}x + a_{12}y = b_1
a21x+a22y=b2a_{21}x + a_{22}y = b_2

In this system, xx and yy are the variables whose values we want to find. The coefficients a11,a12,a21,a22a_{11}, a_{12}, a_{21}, a_{22} and constants b1,b2b_1, b_2 are known numbers.

This system of equations can be converted into matrix multiplication form:

[a11a12a21a22][xy]=[b1b2]\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} b_1 \\ b_2 \end{bmatrix}

The first step is to calculate the determinant of the coefficient matrix, which we call DD:

D=a11a12a21a22=a11a22a12a21D = \begin{vmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{vmatrix} = a_{11}a_{22} - a_{12}a_{21}

A system of linear equations will have a unique solution if and only if D0D \neq 0.

Next, we calculate two other determinants:

  1. DxD_x, which is the determinant of the coefficient matrix where the first column (coefficients of xx) is replaced by the constant column (b1,b2b_1, b_2 ):

    Dx=b1a12b2a22=b1a22a12b2D_x = \begin{vmatrix} b_1 & a_{12} \\ b_2 & a_{22} \end{vmatrix} = b_1a_{22} - a_{12}b_2
  2. DyD_y, which is the determinant of the coefficient matrix where the second column (coefficients of yy) is replaced by the constant column (b1,b2b_1, b_2 ):

    Dy=a11b1a21b2=a11b2b1a21D_y = \begin{vmatrix} a_{11} & b_1 \\ a_{21} & b_2 \end{vmatrix} = a_{11}b_2 - b_1a_{21}

After obtaining the values of DD, DxD_x, and DyD_y, we can find the values of xx and yy using the formulas:

x=DxDx = \frac{D_x}{D}
y=DyDy = \frac{D_y}{D}

These formulas are only valid if D0D \neq 0.

Solving SPLDV with Determinants

Determine the solution of the following system of linear equations:

2xy=72x - y = 7
x4y=14x - 4y = 14

From the system above, we get:

a11=2a_{11} = 2, a12=1a_{12} = -1, b1=7b_1 = 7

a21=1a_{21} = 1, a22=4a_{22} = -4, b2=14b_2 = 14

Step 1: Calculate the determinant DD.

D=2114=(2×4)(1×1)=8(1)=8+1=7D = \begin{vmatrix} 2 & -1 \\ 1 & -4 \end{vmatrix} = (2 \times -4) - (-1 \times 1) = -8 - (-1) = -8 + 1 = -7

Since D=70D = -7 \neq 0, this system has a unique solution.

Step 2: Calculate the determinant DxD_x.

Dx=71144=(7×4)(1×14)=28(14)=28+14=14D_x = \begin{vmatrix} 7 & -1 \\ 14 & -4 \end{vmatrix} = (7 \times -4) - (-1 \times 14) = -28 - (-14) = -28 + 14 = -14

Step 3: Calculate the determinant DyD_y.

Dy=27114=(2×14)(7×1)=287=21D_y = \begin{vmatrix} 2 & 7 \\ 1 & 14 \end{vmatrix} = (2 \times 14) - (7 \times 1) = 28 - 7 = 21

Step 4: Calculate the values of xx and yy.

x=DxD=147=2x = \frac{D_x}{D} = \frac{-14}{-7} = 2
y=DyD=217=3y = \frac{D_y}{D} = \frac{21}{-7} = -3

So, the solution set of the system of linear equations is x=2x=2 and y=3y=-3, or can be written as the ordered pair (2,3)(2, -3).

Exercises

  1. Given matrix M=[9x87]M = \begin{bmatrix} 9 & x \\ 8 & -7 \end{bmatrix} and det(M)=9\det(M) = 9. Determine the value of xx.

  2. Determine the solution of the following system of linear equations:

    {2xy=8x+3y=10\begin{cases} 2x - y = 8 \\ x + 3y = -10 \end{cases}

Answer Key

  1. For matrix M=[9x87]M = \begin{bmatrix} 9 & x \\ 8 & -7 \end{bmatrix}, its determinant is:

    det(M)=(9×7)(x×8)=638x\det(M) = (9 \times -7) - (x \times 8) = -63 - 8x

    Given det(M)=9\det(M) = 9, then:

    638x=9-63 - 8x = 9
    8x=9+63-8x = 9 + 63
    8x=72-8x = 72
    x=728x = \frac{72}{-8}
    x=9x = -9

    So, the value of xx is -9.

  2. System of linear equations:

    2xy=82x - y = 8
    x+3y=10x + 3y = -10

    We determine D,Dx,D, D_x, and DyD_y.

    D=2113=(2×3)(1×1)=6(1)=6+1=7D = \begin{vmatrix} 2 & -1 \\ 1 & 3 \end{vmatrix} = (2 \times 3) - (-1 \times 1) = 6 - (-1) = 6 + 1 = 7
    Dx=81103=(8×3)(1×10)=2410=14D_x = \begin{vmatrix} 8 & -1 \\ -10 & 3 \end{vmatrix} = (8 \times 3) - (-1 \times -10) = 24 - 10 = 14
    Dy=28110=(2×10)(8×1)=208=28D_y = \begin{vmatrix} 2 & 8 \\ 1 & -10 \end{vmatrix} = (2 \times -10) - (8 \times 1) = -20 - 8 = -28

    Then, the values of xx and yy are:

    x=DxD=147=2x = \frac{D_x}{D} = \frac{14}{7} = 2
    y=DyD=287=4y = \frac{D_y}{D} = \frac{-28}{7} = -4

    So, the solution of the system of linear equations is x=2x=2 and y=4y=-4, or the ordered pair (2,4)(2, -4).