Question
Question: Using matrix method, solve the following system of equations: \(x-2y=10;2x+y+3z=8;-2y+z=7\)...
Using matrix method, solve the following system of equations:
x−2y=10;2x+y+3z=8;−2y+z=7
Solution
We first try to form the matrices of the equations. We have three matrices coefficient, variable, solution matrices. We use the inverse of the coefficient matrix to multiply with the solution matrix to form the relation X=A−1B from AX=B. We equate corresponding elements to find the variables.
Complete step-by-step answer:
We express this given three equations of three unknowns x, y, z in the form of matrices.
There will be three matrices. Matrix A being the coefficient matrix, matrix X is the variable matrix and B is the solution matrix.
We first form every given equation for all variables.
x−2y+0z=10;2x+y+3z=8;0x−2y+z=7.
We now form the coefficient matrix as A=1 2 0 −21−2031.
The variable and the solution matrices are X=x y z ;B=10 8 7 .
The matrix multiplication form for the matrices is AX=B.
Now we perform matrix inverse to get the value of matrix X as X=A−1B.
We need to find the inverse of matrix A. we define ∣A∣ as the determinant of the matrix A.
We know that A−1=∣A∣adj(A), where adj(A) defines the matrix adj(A)=[Aji] for the matrix A=[aij]. aij are the elements of ith row and jth column. Aji represents the cofactors of aij. Basically, we are taking the cofactors and taking transpose of that matrix.
For a11=1, the cofactor will be 1 −2 31=1+6=7.
For a12=−2, the cofactor will be −2 0 31=−(2−0)=−2.
For a13=0, the cofactor will be 2 0 1−2=−4−0=−4.
For a21=2, the cofactor will be −−2 −2 01=−(−2−0)=2.
For a22=1, the cofactor will be 1 0 01=1−0=1.
For a23=3, the cofactor will be 1 0 −2−2=−(−2−0)=2.
For a31=0, the cofactor will be −2 1 03=−6−0=−6.
For a32=−2, the cofactor will be 1 2 03=−(3−0)=−3.
For a33=1, the cofactor will be 1 2 −21=1+4=5.
So, adj(A)=[Aji]=7 2 −6 −21−3−425T=7 −2 −4 212−6−35.
Now expanding through the first row, we get the determinant value as ∣A∣=(1+6)−2(0−2)+0(−4−0)=11.
Therefore, A−1=∣A∣adj(A)=1117 −2 −4 212−6−35. We multiply it with B to get the variables.
X=x y z =A−1B=1117 −2 −4 212−6−3510 8 7 =11170+16−42 −20+8−21 −40+16+35 =11144 −33 11 =4 −3 1 .
We used row-column multiplication and now we equate corresponding elements to get
x=4,y=−3,z=1. This is the solution of the system of equations.
Note: This type of solution is only possible for matrices. If we want to solve in a determinant way then we need to apply the Cramer’s rule. We also need to remember that the inverse will exist for only non-singular matrices, which means the determinant value has to be non-zero.