Open In App

Applications of Matrices and Determinants

Improve
Improve
Like Article
Like
Save
Share
Report

One application of matrix and determinant is that it can be used to solve linear equations in two or three variables. Matrices and determinants are also used to check the consistency of any system, whether they are consistent or not.

Solution of a system of linear equation using the inverse of a matrix

The solution of a system of linear equations can be found out using the inverse of a matrix. Let the equations are:

a1x + b1y + c1z = d1

a2x r+ b2y + c2z = d2

a3x + b3y + c3z = d3

These equations can be represented using matrix as follows

\begin{bmatrix} a_{1}x +b_{1}y+c_{1}z\\ a_{2}x +b_{2}y+c_{2}z \\ a_{3}x +b_{3}y+c_{3}z \end{bmatrix}= \begin{bmatrix} d_{1}\\ d_{2}\\ d_{3} \end{bmatrix}

Further this can be written as

\begin{bmatrix} a_{1} & b_{1} &c_{1} \\ a_{2}& b_{2} & c_{2}\\ a_{3} & b_{3} & c_{3} \end{bmatrix} \begin{bmatrix} x \\ y\\ z \end{bmatrix}= \begin{bmatrix} d_{1} \\ d_{2}\\ d_{3}  \end{bmatrix}

Further this system can be written as

AX = B

where matrix A is containing coefficients of unknown variables.

A = \begin{bmatrix} a_{1} & b_{1} &c_{1} \\ a_{2}& b_{2} & c_{2}\\ a_{3} & b_{3} & c_{3} \end{bmatrix}

Matrix X is a column matrix that contains the unknown variables.

X = \begin{bmatrix}x\\y\\z \end{bmatrix}

Matrix B is also a column matrix, and it contains the constants.

B = \begin{bmatrix} d_{1} \\ d_{2}\\ d_{3} \end{bmatrix}

So, as given above, a system of linear equations can be converted into the form of a matrix which can be written as:

AX = B

If A is a non-singular matrix then A-1 exists.

Multiplying by A-1 on both sides

A-1AX = A-1B

IX = A-1B

X = A-1B

This provides a unique solution for the unknown variables. The solution will be unique because any non-singular matrix has a unique inverse.

If A is a singular matrix then A-1 doesn’t exist. In this case |A| = 0, so you will have to calculate (adj A)B.

1. If (adj A)B ≠ O, then any doesn’t exist for the system of linear equations, and this system will be inconsistent.

2. If (adj A)B = O, then the system of linear equations will have either zero solution or infinitely many solutions, that’s why the system may be inconsistent if it doesn’t have any solution or maybe consistent if it has infinitely many solutions.

Consistency of a system

A system of equations is said to be consistent or inconsistent based on the number of solutions it possesses.

  • Consistent System: A system of equations is said to be consistent if it possesses a solution.
  • Inconsistent System: A system of equations is said to be inconsistent if it doesn’t possess a solution.

Sample Problems

Question 1. Solve the following linear equations using matrix

2x + y = 3

2x + 3y = 6

Solution: 

The above system of linear equations can be written in the form of AX = B where A is the matrix of coefficients, X is the matrix of unknown variables and B is the matrix of constants.

A = \begin{bmatrix} 2 &1 \\ 2 &3 \end{bmatrix}

X = \begin{bmatrix} x \\ y \end{bmatrix}

B = \begin{bmatrix} 3 \\ 6 \end{bmatrix}

First find out the |A|

as you can see |A| = 4 ≠ 0. Hence, the system of equations is consistent and will possess an unique solution and the solution can be found out using X = A-1B

A^{-1} = \frac{adj A}{|A|}

A-1\frac{1}{4}\begin{bmatrix} 3 &-1 \\ -2 &2 \end{bmatrix}

X = A-1B

\begin{bmatrix} x \\ y \end{bmatrix} = \frac{1}{4}\begin{bmatrix} 3 &-1 \\ -2 &2 \end{bmatrix} \begin{bmatrix} 3 \\ 6 \end{bmatrix}

\begin{bmatrix} x \\ y \end{bmatrix} = \frac{1}{4} \begin{bmatrix} 9-6 \\ -6+12 \end{bmatrix}

\begin{bmatrix} x \\ y \end{bmatrix} = \frac{1}{4} \begin{bmatrix} 3 \\ 6 \end{bmatrix}

From here, you can conclude that

x = 3/4

and y = 6/4

Question 2. Say whether the given system is consistent or not

x + 3y = 5

2x + 6y = 8

Solution: 

The above system of equations can be written in the form of AX = B, where

A = \begin{bmatrix} 1 & 3\\ 2 & 6 \end{bmatrix}

X = \begin{bmatrix} x \\ y \end{bmatrix}

B = \begin{bmatrix} 5 \\ 8 \end{bmatrix}

Now check determinant of A

|A| = 6 – 6 = 0g

For checking consistency of the system, you have to check (adj A)B

adj A = \begin{bmatrix} 6 & -3\\ -2 & 1 \end{bmatrix}

(adj A)B = \begin{bmatrix} 6 & -3\\ -2 & 1 \end{bmatrix} \begin{bmatrix} 5 \\ 8 \end{bmatrix}

(adj A)B = \begin{bmatrix} 30-24 \\ -10+8 \end{bmatrix}

(adj A)B = \begin{bmatrix} 6 \\ -2 \end{bmatrix}

Since (adj A)B ≠ 0, the solution of the given system of linear equations doesn’t exist. Hence, the system of equations is inconsistent.

Question 3. Solve the system of linear equations, using matrix method

x – y + 2z = 7

3x + 4y – 5z = -5

2x – y + 3z = 12

Solution: 

The above system of equations can be written in the form of AX = B, where

A = \begin{bmatrix} 1 & -1 &2 \\ 3& 4 &-5 \\ 2& -1 & 3 \end{bmatrix}

X = \begin{bmatrix} x  \\ y \\ z \end{bmatrix}

B = \begin{bmatrix} 7  \\ -5 \\ 12 \end{bmatrix}

Now check determinant of A

|A| = 1 * (12 – 5) + 1 * (9 + 10) + 2 * (-3 – 8)

|A| = 7 + 19 – 22 = 4

|A| ≠ 0

Hence, its inverse exists and hence there exists a unique solution that can be found out by X = A-1B

A^{-1} = \frac{adj A}{|A|}

A-1\frac{1}{4}\begin{bmatrix} 7 & 1 &-3 \\ -19& -1 &11\\ -11& -1 & 7 \end{bmatrix}

X = A-1B

\begin{bmatrix} x  \\ y \\ z \end{bmatrix} = \frac{1}{4}\begin{bmatrix} 7 & 1 &-3 \\ -19& -1 &11\\ -11& -1 & 7 \end{bmatrix} \begin{bmatrix} 7  \\ -5 \\ 12 \end{bmatrix}

\begin{bmatrix} x  \\ y \\ z \end{bmatrix} = \frac{1}{4} \begin{bmatrix} 49-5-36  \\ -133+5+132 \\ -77+5+84 \end{bmatrix}

\begin{bmatrix} x  \\ y \\ z \end{bmatrix} = \frac{1}{4}\begin{bmatrix} 8 \\ 4 \\ 12 \end{bmatrix}

\begin{bmatrix} x  \\ y \\ z \end{bmatrix} = \begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}

From here, you can see that x =2, y = 1, and z = 3.

Hence, x = 2, y = 1, and z = 3.



Last Updated : 12 Mar, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads