Courses / Mathematics XI (HSSC-I) – FBISE Complete SLO-Based Course
2.4 Systems of Linear Equations: Consistency, Matrix Inversion and Cramer's Rule
Unit 2 – Matrices and Determinants · 70 min read · 13 MCQs to check yourself
Cramer's rule for 3×3 systems (The Organic Chemistry Tutor)
1. Matrix form
begincasesa₁x + b₁y + c₁z = d₁\ a₂x + b₂y + c₂z = d₂\ a₃x + b₃y + c₃z = d₃endcases ⇔ AX = B, A = beginbmatrixa₁&b₁&c₁\a₂&b₂&c₂\a₃&b₃&c₃endbmatrix, X = beginbmatrixx\y\zendbmatrix, B = beginbmatrixd₁\d₂\d₃endbmatrix If B ≠ O the system is non-homogeneous; if B = O it is homogeneous.
2. Consistent and inconsistent systems
| Type | Meaning | Rank test (r = rank A, r' = rank of augmented [A mid B]) |
|---|---|---|
| Consistent, unique solution | exactly one solution | r = r' = n (number of unknowns), i.e. |
| Consistent, infinitely many | many solutions | r = r' < n |
| Inconsistent | no solution | r < r' |
| Example: x + y = 2, 2x + 2y = 5 is inconsistent (parallel lines). x + y = 2, 2x + 2y = 4 has infinitely many solutions (same line). |
3. Matrix inversion method
If |A| ≠ 0: AX = B ⇒ X = A⁻¹B. Example: x + 2y + z = 4, y + 3z = 7, 3x + 7y + 7z = 22. Using A⁻¹ from Lesson 2.3: X = beginbmatrix-14&-7&5\9&4&-3-3&-1&1endbmatrixbeginbmatrix4\7\22endbmatrix = beginbmatrix-56 - 49 + 110\36 + 28 - 66-12 - 7 + 22endbmatrix = beginbmatrix5-2\3endbmatrix So x = 5, y = -2, z = 3 (check: 5 - 4 + 3 = 4 ✓).
4. Cramer's rule
x = (|Aₓ|)/(|A|), y = (|A_y|)/(|A|), z = (|A_z|)/(|A|) (|A| ≠ 0) where Aₓ is A with its first column replaced by B, and so on. Example (model paper scenario): x + y + z = 6, 2y = 12, 5x + 5y + z = 0. |A| = beginvmatrix1&1&1\0&2&0\5&5&1endvmatrix = 2beginvmatrix1&1\5&1endvmatrix = 2(1 - 5) = -8 (expanding along row 2). |A_z| = beginvmatrix1&1&6\0&2&12\5&5&0endvmatrix = 1(0 - 60) - 1(0 - 60) + 6(0 - 10) = -60, so z = (-60)/(-8) = 7.5. Similarly |A_y| = -48 gives y = 6, and |Aₓ| = 60 gives x = -7.5 (check: -7.5 + 6 + 7.5 = 6 ✓).
Short and long questions
1. Solve by Cramer's rule: 2x + y = 5, x - 3y = -1.
Model answer
|A| = beginvmatrix2&1\1&-3endvmatrix = -6 - 1 = -7; |Aₓ| = beginvmatrix5&1-1&-3endvmatrix = -15 + 1 = -14; |A_y| = beginvmatrix2&5\1&-1endvmatrix = -2 - 5 = -7. x = (-14)/(-7) = 2, y = (-7)/(-7) = 1. Check: 2(2) + 1 = 5 ✓, 2 - 3 = -1 ✓.
2. Determine whether the system x + y + z = 3, x + 2y + 3z = 6, 2x + 3y + 4z = 10 is consistent.
Model answer
Augmented matrix [beginarrayccc|c1&1&1&3\1&2&3&6\2&3&4&10endarray] xrightarrow[R₃ - 2R₁]R₂ - R₁ [beginarrayccc|c1&1&1&3\0&1&2&3\0&1&2&4endarray] xrightarrowR₃ - R₂ [beginarrayccc|c1&1&1&3\0&1&2&3\0&0&0&1endarray] Row 3 says 0 = 1. Rank A = 2, rank [A mid B] = 3, so the system is inconsistent (no solution).
3. Solve the system by the matrix inversion method: x + 2y + z = 4, y + 3z = 7, 3x + 7y + 7z = 22.
Model answer
A = beginbmatrix1&2&1\0&1&3\3&7&7endbmatrix, |A| = 1(7 - 21) - 2(0 - 9) + 1(0 - 3) = -14 + 18 - 3 = 1 ≠ 0. Cofactors: A₁₁ = -14, A₁₂ = 9, A₁₃ = -3, A₂₁ = -7, A₂₂ = 4, A₂₃ = -1, A₃₁ = 5, A₃₂ = -3, A₃₃ = 1. A⁻¹ = 1/1 adjA = beginbmatrix-14&-7&5\9&4&-3-3&-1&1endbmatrix X = A⁻¹B = beginbmatrix-14(4) - 7(7) + 5(22)\9(4) + 4(7) - 3(22)-3(4) - 7 + 22endbmatrix = beginbmatrix5-2\3endbmatrix x = 5, y = -2, z = 3. Check in equation 3: 15 - 14 + 21 = 22 ✓
4. Solve by Cramer's rule: x + y + z = 6, 2x - y + z = 3, x + 2y - z = 2.
Model answer
|A| = beginvmatrix1&1&1\2&-1&1\1&2&-1endvmatrix = 1(1 - 2) - 1(-2 - 1) + 1(4 + 1) = -1 + 3 + 5 = 7 |Aₓ| = beginvmatrix6&1&1\3&-1&1\2&2&-1endvmatrix = 6(1 - 2) - 1(-3 - 2) + 1(6 + 2) = -6 + 5 + 8 = 7 |A_y| = beginvmatrix1&6&1\2&3&1\1&2&-1endvmatrix = 1(-3 - 2) - 6(-2 - 1) + 1(4 - 3) = -5 + 18 + 1 = 14 |A_z| = beginvmatrix1&1&6\2&-1&3\1&2&2endvmatrix = 1(-2 - 6) - 1(4 - 3) + 6(4 + 1) = -8 - 1 + 30 = 21 x = 1, y = 2, z = 3. Check: 1 + 4 - 3 = 2 ✓
This lesson ends with a quiz of 13 MCQs. Open the lesson on PrepOasis to take it and save your progress.
Previous: 2.3 Inverse and Rank of a Matrix by Row Operations · Next: 2.5 Homogeneous Systems, Gaussian Elimination and Real-World Uses of Matrices
All lessons in Mathematics XI (HSSC-I) – FBISE Complete SLO-Based Course