Question
Question: Solve the following equation by matrix method \(2x+y+z=1\) , \(x-2y-3z=1\) , \(3x+2y+4z=5\) ....
Solve the following equation by matrix method 2x+y+z=1 , x−2y−3z=1 , 3x+2y+4z=5 .
Solution
Now we are given with three equations 2x+y+z=1 , x−2y−3z=1 , 3x+2y+4z=5 . We will first write the equation in matrix form. Now first we will calculate the determinant of A. Now we will calculate the cofactor matrix of A. Now we know that adjoin of A is transpose of cofactor matrix of A and inverse of A is given by A−1=detAAdjA . Hence we get the inverse matrix of A. Now we know that the solution to the system of linear equations is given by A−1B . Hence we can easily find the solution by multiplying the matrices
Complete step-by-step answer:
Now we are given with the equations 2x+y+z=1 , x−2y−3z=1 , 3x+2y+4z=5 .
Let us write the equations in matrix form.
2 1 3 1−221−34x y z =1 1 5
Now comparing with the form AX=B we get A=2 1 3 1−221−34 and B=1 1 5 .
Now first let us find the determinant of A.
Now we have A=2 1 3 1−221−34
∣A∣=2(−8+6)−1(4+9)+1(2+6)∣A∣=−4−13+8∣A∣=−9
Now since we have determinant is not equal to zero the solution exists.
Now want to find cofactor matrix of A.
Let us calculate cofactor of each element.
C11=(−1)1+1−2 2 −34=−2
C12=(−1)1+21 3 −34==−13
C13=(−1)1+31 3 −22=8
C21=(−1)2+11 2 14=−2
C22=(−1)2+22 3 14=5
C23=(−1)2+32 3 12=−1
C31=(−1)3+11 −2 1−3=−1
C32=(−1)3+22 1 1−3=7
C33=(−1)3+32 1 1−2=−5
Hence the cofactor matrix is given by C=−2 −2 −1 −13578−1−5
Now we know that adjoin matrix is transpose of cofactor matrix.
Hence AdjA=−2 −13 8 −25−1−17−5
Now we know that A−1=detAAdjA
Hence we get,