Exercise 2.5 — Q1: Matrix Inversion Method
A system of three linear equations in three unknowns can be written in matrix form as:
A X = B
where:
A is the 3 × 3 coefficient matrix
X = x y z is the column vector of unknowns
B is the column vector of constants
The system has a unique solution if and only if ∣ A ∣ = 0 (i.e., A is non-singular).
If ∣ A ∣ = 0 , then A − 1 exists and the solution is:
X = A − 1 B
Step 1: Write the system in the form A X = B .
Step 2: Find ∣ A ∣ (the determinant of A ) using cofactor expansion.
∣ A ∣ = a 11 C 11 + a 12 C 12 + a 13 C 13
where C ij = ( − 1 ) i + j M ij and M ij is the minor obtained by deleting row i and column j .
Step 3: If ∣ A ∣ = 0 , find the cofactor matrix C , then the adjoint:
adj ( A ) = C T
Step 4: Compute the inverse:
A − 1 = ∣ A ∣ 1 ⋅ adj ( A )
Step 5: Multiply to get the solution:
X = A − 1 B
An alternative method uses the augmented matrix [ A ∣ I ] . Apply elementary row operations to reduce A to the identity matrix I . The right side transforms into A − 1 :
[ A ∣ I ] row ops [ I ∣ A − 1 ]
Row operations allowed:
R i ↔ R j (swap two rows)
R i → k R i (multiply a row by a non-zero scalar k )
R i → R i + k R j (add a multiple of one row to another)
Solve the system:
x + y + z = 6
2 x − y + z = 3
x + 2 y − z = 2
Matrix form:
A = 1 2 1 1 − 1 2 1 1 − 1 , B = 6 3 2
Step 1: Find ∣ A ∣ (expanding along Row 1):
∣ A ∣ = 1 ⋅ − 1 2 1 − 1 − 1 ⋅ 2 1 1 − 1 + 1 ⋅ 2 1 − 1 2
= 1 ( 1 − 2 ) − 1 ( − 2 − 1 ) + 1 ( 4 + 1 ) = − 1 + 3 + 5 = 7
Since ∣ A ∣ = 7 = 0 , the inverse exists.
Step 2: Find cofactors:
C 11 = + − 1 2 1 − 1 = 1 − 2 = − 1
C 12 = − 2 1 1 − 1 = − ( − 2 − 1 ) = 3
C 13 = + 2 1 − 1 2 = 4 + 1 = 5
C 21 = − 1 2 1 − 1 = − ( − 1 − 2 ) = 3
C 22 = + 1 1 1 − 1 = − 1 − 1 = − 2
C 23 = − 1 1 1 2 = − ( 2 − 1 ) = − 1
C 31 = + 1 − 1 1 1 = 1 + 1 = 2
C 32 = − 1 2 1 1 = − ( 1 − 2 ) = 1
C 33 = + 1 2 1 − 1 = − 1 − 2 = − 3
Step 3: Adjoint (transpose of cofactor matrix):
adj ( A ) = − 1 3 5 3 − 2 − 1 2 1 − 3
Step 4: Inverse:
A − 1 = 7 1 − 1 3 5 3 − 2 − 1 2 1 − 3
Step 5: Solution:
X = A − 1 B = 7 1 − 1 3 5 3 − 2 − 1 2 1 − 3 6 3 2
= 7 1 − 6 + 9 + 4 18 − 6 + 2 30 − 3 − 6 = 7 1 7 14 21 = 1 2 3
∴ x = 1 , y = 2 , z = 3