Topic: Solving a 3×3 Non-Homogeneous System Using Matrix Inversion Method and Cramer's Rule
For a system AX=B where A is a 3×3 coefficient matrix, X is the column vector of unknowns, and B is the constant column vector:
X=A−1Bprovided ∣A∣=0
Steps:
- Write the system in matrix form AX=B.
- Find ∣A∣. If ∣A∣=0, the matrix is singular and this method cannot be applied.
- Find the cofactor matrix of A, then the adjoint: adj(A)=(cofactor matrix)T.
- Compute A−1=∣A∣1⋅adj(A).
- Multiply: X=A−1B to get the solution.
For the system AX=B with ∣A∣=0, the unique solution is:
x=∣A∣∣Ax∣,y=∣A∣∣Ay∣,z=∣A∣∣Az∣
where:
- Ax = matrix A with the 1st column replaced by B
- Ay = matrix A with the 2nd column replaced by B
- Az = matrix A with the 3rd column replaced by B
Solve the following system using both methods:
x+2y+z=8
2x−y+z=3
x+y−z=1
Step 1: Write in matrix form AX=B
A=1212−1111−1,X=xyz,B=831
Step 2: Find ∣A∣
∣A∣=1[(−1)(−1)−(1)(1)]−2[(2)(−1)−(1)(1)]+1[(2)(1)−(−1)(1)]
=1(1−1)−2(−2−1)+1(2+1)
=0+6+3=9=0
Since ∣A∣=0, the system has a unique solution.
Step 3 (Cramer's Rule): Find ∣Ax∣, ∣Ay∣, ∣Az∣
Ax=8312−1111−1
∣Ax∣=8(1−1)−2(−3−1)+1(3+1)=0+8+4=12
Ay=12183111−1
∣Ay∣=1(−3−1)−8(−2−1)+1(2−3)=−4+24−1=19
Az=1212−11831
∣Az∣=1(−1−3)−2(2−3)+8(2+1)=−4+2+24=22
Step 4: Apply Cramer's Rule
x=912=34,y=919,z=922