In this section, we apply the concepts of matrices and determinants to solve systems of linear equations in two or three variables.
A system of linear equations may behave in one of the following ways:
Consistent System
A system is said to be consistent if it has at least one solution. A consistent system may have:
a unique solution, or
infinitely many solutions.
Inconsistent System
A system is said to be inconsistent if it has no solution.
For two variables, the geometric meaning is very clear:
If two lines intersect at one point, the system has a unique solution.
If two lines coincide, the system has infinitely many solutions.
If two lines are parallel and distinct, the system has no solution.
For three variables, the equations represent planes. Depending on how the planes intersect, the system may have one solution, infinitely many solutions, or no solution.
Matrix Representation of a System of Linear Equations
Consider the system of linear equations:
a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3
This system can be written in the compact matrix form
AX=B,
where
A=a1a2a3b1b2b3c1c2c3,X=xyz,B=d1d2d3.
Here,
A is called the coefficient matrix because it contains the coefficients of the variables.
X is called the variable matrix or unknown matrix.
B is called the constant matrix.
This form is useful because once the system is written as AX=B, matrix operations can be used to study and solve the system.
Solution of a System of Linear Equations using Inverse of a Matrix
To solve the system
AX=B,
we examine the determinant of the coefficient matrix A.
Case I:
If A is non-singular, i.e. ∣A∣=0
Then the inverse of A exists. Pre-multiplying both sides of the equation by A−1, we get
A−1(AX)=A−1B.
Using associativity of matrix multiplication,
(A−1A)X=A−1B.
Since A−1A=I,
IX=A−1B,
so
X=A−1B.
Thus the system has a unique solution.
Case II:
If A is singular, i.e. ∣A∣=0
Then A−1 does not exist. In this case, we examine (adjA)B.
Subcase (i): If
(adjA)B=O,
then the system is inconsistent, so no solution exists.
Subcase (ii): If
(adjA)B=O,
then the system may be consistent. In standard school-level treatment, this generally indicates that the system has infinitely many solutions.
The reason is that if we premultiply AX=B by adjA, then
(adjA)AX=(adjA)B.
Using the property
(adjA)A=∣A∣I,
and since ∣A∣=0, the left-hand side becomes the zero matrix. So if the right-hand side is non-zero, we get a contradiction. If the right-hand side is also zero, the system is dependent and may have infinitely many solutions.
Example 1: Solving a 2x2 System
Solve the system of equations using matrix method:2x+5y=13x+2y=7
Solution:
Step 1: Write the system in matrix form AX=B:
A=[2352],X=[xy],B=[17].
Step 2: Find the determinant of A:
∣A∣=2352=(2)(2)−(3)(5)=4−15=−11.
Since ∣A∣=0, the matrix is non-singular and the system has a unique solution.
Step 3: Find A−1:
adjA=[2−3−52],
so
A−1=−111[2−3−52].
Example 2: Checking Consistency (Inconsistent System)
Examine the consistency of the system of equations:x+3y=52x+6y=8
Solution:
Step 1: Write the system in matrix form:
A=[1236],X=[xy],B=[58].
Step 2: Find ∣A∣:
∣A∣=1236=1⋅6−2⋅3=6−6=0.
Since ∣A∣=0, the system is not guaranteed to have a unique solution. We now examine (adjA)B.
Step 3: Find adjA:
adjA=[6−2−31].
Now multiply by B:
(adjA)B=[6−2−31][58]=[30−24−10+8]=[6−2].
This is not the zero matrix.
Step 4: Since ∣A∣=0 and (adjA)B=O, the system is inconsistent.
Answer: The system has no solution and is inconsistent.
Example 3: Checking Consistency (Infinitely Many Solutions)
Examine the consistency of the system of equations:3x−y=56x−2y=10
Solution:
Step 1: Matrix form:
A=[36−1−2],B=[510].
Step 2: Find the determinant:
∣A∣=3(−2)−6(−1)=−6+6=0.
So the matrix is singular.
Step 3: Find the adjoint:
adjA=[−2−613].
Now compute
(adjA)B=[−2−613][510]=[−10+10−30+30]=[00]=O.
Step 4: Since ∣A∣=0 and (adjA)B=O, the system is consistent and dependent. The second equation is exactly twice the first equation, so both equations represent the same line.
Answer: The system is consistent and has infinitely many solutions.
Example 4: Solving a 3x3 System
Solve the following system of equations by matrix method:3x−2y+3z=82x+y−z=14x−3y+2z=4
Step 2: Find ∣A∣ by expanding along the first row:
∣A∣=31−3−12−(−2)24−12+3241−3.
So,
∣A∣=3(2−3)+2(4+4)+3(−6−4)=3(−1)+2(8)+3(−10)=−3+16−30=−17.
Since ∣A∣=0, a unique solution exists.
Step 3: Compute the determinant:
∣A∣=2−695−20−3465−20+1046−69.
So,
∣A∣=2(120−45)−3(−80−30)+10(36+36)⇒∣A∣=2(75)−3(−110)+10(72)⇒∣A∣=150+330+720=1200.
Since ∣A∣=0, a unique solution exists.
Step 5: Solve for X:
X=120017511072150−10007530−24412X=12001600400240=1/21/31/5.
So,
u=21,v=31,w=51.
Hence,
x=2,y=3,z=5.
Answer:x=2,y=3,z=5.
Example 6: Using Product of Matrices to Solve a System
Find the product 103−12−22−34−2960211−3−2. Hence, solve the system of equations:x−y+2z=12y−3z=13x−2y+4z=2
Solution:
Let
A=103−12−22−34,C=−2960211−3−2.
Compute the product:
AC=1(−2)+(−1)9+2(6)0(−2)+2(9)+(−3)63(−2)+(−2)9+4(6)1(0)+(−1)2+2(1)0(0)+2(2)+(−3)13(0)+(−2)2+4(1)1(1)+(−1)(−3)+2(−2)0(1)+2(−3)+(−3)(−2)3(1)+(−2)(−3)+4(−2).
This gives
AC=100010001=I.
So C=A−1.
Now the system is
AX=B,B=112.
Hence,
X=A−1B=CB.
So,
X=−2960211−3−2112=−2+0+29+2−66+1−4=053.
Answer:x=0,y=5,z=3.
Example 7: Using A−1 to Solve a System
If A=231−3215−4−2, find A−1. Using A−1, solve the system of equations:2x−3y+5z=113x+2y−4z=−5x+y−2z=−3
Solution:
Step 1: Find the determinant:
∣A∣=221−4−2−(−3)31−4−2+53121.
So,
∣A∣=2(−4+4)+3(−6+4)+5(3−2)=0+3(−2)+5=−1.
Thus the inverse exists.
Step 3: Let
B=11−5−3.
Then
X=A−1B=0−2−1195−2−23−1311−5−3=−5+6−22−45+69−11−25+39=123.
Answer:A−1=0−2−1195−2−23−13,x=1,y=2,z=3.
Example 8: Finding k for Unique Solution
Find the value of k for which the system of equations has a unique solution:kx+2y=53x+y=1
Solution:
The coefficient matrix is
A=[k321].
For a unique solution, we need
∣A∣=0.
Now,
∣A∣=k321=k(1)−3(2)=k−6.
So the condition is
k−6=0.
Therefore,
k=6.
Answer: The system has a unique solution for all real values of k except k=6.
Example 9: Word Problem into Matrix Form
The sum of three numbers is 6. If we multiply the third number by 3 and add the second number to it, we get 11. By adding first and third numbers, we get double of the second number. Represent it algebraically and find the numbers using matrix method.
Solution:
Let the three numbers be x,y,z.
Then the equations are:
x+y+z=6,y+3z=11,x+z=2y⇒x−2y+z=0.
So,
A=10111−2131,X=xyz,B=6110.
Now,
∣A∣=11−231−10131+1011−2.
Thus,
∣A∣=1(1+6)−1(0−3)+1(0−1)=7+3−1=9=0.
So a unique solution exists.
Solution:
This is a homogeneous system of the form
AX=O.
Here,
A=[2436],B=[00].
Now,
∣A∣=2⋅6−4⋅3=12−12=0.
Since the determinant is zero, we examine (adjA)B.
adjA=[6−4−32].
Then,
(adjA)B=[6−4−32][00]=[00].
So the system is consistent and has infinitely many solutions.
From the first equation,
2x+3y=0.
Let
y=k.
Then,
2x=−3k⇒x=−23k.
Answer:x=−23k,y=k,
where k is any real number.
Also, x=0,y=0 is the trivial solution.
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.