Determinants Ex 4.6: Solving Systems of Linear Equations by Matrix Method
Welcome, Class 12 students! In this crucial chapter on Determinants, Exercise 4.6 introduces a powerful and systematic method for solving systems of linear equations: the Matrix Method. You've previously encountered linear equations in two or three variables and solved them using substitution or elimination. However, as the number of variables increases, these traditional methods become cumbersome. The Matrix Method, leveraging your understanding of matrices and determinants, provides an elegant solution.
This section will equip you with the skills to represent systems of linear equations in matrix form, find the inverse of a matrix, and then apply it to solve for the unknown variables. More importantly, you'll learn to determine whether a system has a unique solution, infinitely many solutions, or no solution at all – a concept known as consistency and inconsistency. Mastering this exercise is vital not just for your board exams but also for understanding applications in engineering, economics, and various scientific fields. Let's dive in and unlock the power of determinants!
Understanding Systems of Linear Equations
A system of linear equations is a collection of two or more linear equations involving the same set of variables. For instance, a system with two variables x and y might look like:
a₁x + b₁y = c₁a₂x + b₂y = c₂
And for three variables x, y, z:
a₁x + b₁y + c₁z = d₁a₂x + b₂y + c₂z = d₂a₃x + b₃y + c₃z = d₃
The matrix method allows us to represent such systems in a compact form: AX = B.
Here's what each part represents:
- A is the coefficient matrix, formed by the coefficients of the variables. For a 3x3 system,
A = [[a₁, b₁, c₁], [a₂, b₂, c₂], [a₃, b₃, c₃]]. - X is the variable matrix (or column vector), containing the variables. For a 3x3 system,
X = [[x], [y], [z]]. - B is the constant matrix (or column vector), containing the constants on the right-hand side of the equations. For a 3x3 system,
B = [[d₁], [d₂], [d₃]].
This matrix representation simplifies the process of solving and analyzing the system significantly.
Solving Systems Using Matrix Inversion: A Step-by-Step Guide
The core idea behind the matrix inversion method is to isolate the variable matrix X. If we have AX = B and the inverse of matrix A (denoted as A⁻¹) exists, we can pre-multiply both sides by A⁻¹:
A⁻¹(AX) = A⁻¹B(A⁻¹A)X = A⁻¹B (by associativity of matrix multiplication)IX = A⁻¹B (since A⁻¹A = I, the identity matrix)X = A⁻¹B
This formula, X = A⁻¹B, is the key! It tells us that if we can find A⁻¹, we can directly find the values of x, y, z by multiplying A⁻¹ with B.
When does A⁻¹ exist? The inverse of a matrix A exists if and only if its determinant, |A|, is non-zero (i.e., |A| ≠ 0). If |A| ≠ 0, the system has a unique solution.
Steps to solve a system of linear equations using the matrix method:
- Write the system in matrix form
AX = B. Identify matricesA,X, andB. - Calculate the determinant of the coefficient matrix
A, i.e.,|A|. - Check the value of
|A|:
- If
|A| ≠ 0, proceed to step 4. A unique solution exists. - If
|A| = 0, the system may have infinitely many solutions or no solution. You must proceed to the consistency analysis (covered in the next section).
- Find the adjoint of matrix
A, denoted asadj A. - **Calculate the inverse of matrix
A,A⁻¹ = (1/|A|) * adj A**. - Calculate the variable matrix
Xby multiplyingA⁻¹withB:X = A⁻¹B. - Identify the values of
x, y, zfrom the matrixX.
Consistency and Inconsistency of Systems of Equations
Understanding whether a system of linear equations has a solution (and how many) is crucial. This property is called consistency.
1. Consistent System: A system of linear equations is said to be consistent if it has at least one solution. This solution can be unique or there can be infinitely many solutions.
- Case 1: Unique Solution: This occurs when
|A| ≠ 0. If the determinant of the coefficient matrix is non-zero, thenA⁻¹exists, and the systemAX = Bhas a unique solution given byX = A⁻¹B. This is the most straightforward case. - Case 2: Infinitely Many Solutions: This happens when
|A| = 0AND(adj A)B = 0(where0denotes the zero matrix). In this scenario, the equations are dependent, meaning one equation can be derived from the others, leading to an infinite number of solutions. You usually express these solutions in terms of a parameter.
2. Inconsistent System: A system of linear equations is said to be inconsistent if it has no solution.
- Case: No Solution: This occurs when
|A| = 0AND(adj A)B ≠ 0(where0denotes the zero matrix). When|A|=0, the matrixAis singular, meaning its rows/columns are linearly dependent. If(adj A)Bis also non-zero, it signifies a contradiction within the system, making it impossible for any values ofx, y, zto satisfy all equations simultaneously.
Summary for |A| = 0:
- Calculate
(adj A)B. - If
(adj A)B = 0(zero matrix), the system is consistent with infinitely many solutions. - If
(adj A)B ≠ 0(non-zero matrix), the system is inconsistent with no solution.
Solved Examples: Step-by-Step Application
- Example 1: Solving a 2x2 system with a unique solution
Solve the system of equations using the matrix method:
2x + 5y = 13x + 2y = 7Step 1: Write the system in matrix form AX = B.A = [[2, 5], [3, 2]],X = [[x], [y]],B = [[1], [7]]Step 2: Calculate the determinant of A.|A| = (2 2) - (5 3) = 4 - 15 = -11Step 3: Check |A|. Since|A| = -11 ≠ 0, a unique solution exists. Step 4: Find the adjoint of A.adj A = [[2, -5], [-3, 2]](Swap diagonal elements, change signs of off-diagonal) Step 5: Calculate the inverse of A.A⁻¹ = (1/|A|) adj A = (1/-11) [[2, -5], [-3, 2]] = [[-2/11, 5/11], [3/11, -2/11]]Step 6: Calculate X = A⁻¹B.X = [[-2/11, 5/11], [3/11, -2/11]] [[1], [7]]X = [[(-2/11)1 + (5/11)7], [(3/11)1 + (-2/11)*7]]X = [[(-2 + 35)/11], [(3 - 14)/11]]X = [[33/11], [-11/11]]X = [[3], [-1]]Step 7: Identify the values of x and y.x = 3,y = -1Final answer: The solution is x=3, y=-1. - Example 2: Solving a 3x3 system with a unique solution
Solve the system:
x - y + z = 42x + y - 3z = 0x + y + z = 2Step 1: Write the system in matrix form AX = B.A = [[1, -1, 1], [2, 1, -3], [1, 1, 1]],X = [[x], [y], [z]],B = [[4], [0], [2]]Step 2: Calculate the determinant of A.|A| = 1(11 - (-3)1) - (-1)(21 - (-3)1) + 1(21 - 11)|A| = 1(1 + 3) + 1(2 + 3) + 1(2 - 1)|A| = 1(4) + 1(5) + 1(1) = 4 + 5 + 1 = 10Step 3: Check |A|. Since|A| = 10 ≠ 0, a unique solution exists. Step 4: Find the adjoint of A (adj A). First, find the cofactor matrixC:C₁₁ = 1(1 - (-3)) = 4C₁₂ = -1(2 - (-3)) = -5C₁₃ = 1(2 - 1) = 1C₂₁ = -1(-1 - 1) = 2C₂₂ = 1(1 - 1) = 0C₂₃ = -1(1 - (-1)) = -2C₃₁ = 1(3 - 1) = 2C₃₂ = -1(-3 - 2) = 5C₃₃ = 1(1 - (-2)) = 3C = [[4, -5, 1], [2, 0, -2], [2, 5, 3]]adj A = Cᵀ = [[4, 2, 2], [-5, 0, 5], [1, -2, 3]]Step 5: Calculate the inverse of A.A⁻¹ = (1/10) [[4, 2, 2], [-5, 0, 5], [1, -2, 3]]Step 6: Calculate X = A⁻¹B.X = (1/10) [[4, 2, 2], [-5, 0, 5], [1, -2, 3]] [[4], [0], [2]]X = (1/10) [[44 + 20 + 22], [-54 + 00 + 52], [14 + (-2)0 + 32]]X = (1/10) [[16 + 0 + 4], [-20 + 0 + 10], [4 + 0 + 6]]X = (1/10) * [[20], [-10], [10]]X = [[2], [-1], [1]]Step 7: Identify the values of x, y, and z.x = 2,y = -1,z = 1Final answer: The solution is x=2, y=-1, z=1. - Example 3: System with |A|=0 (Checking Consistency)
Examine the consistency of the system:
x + 2y = 52x + 4y = 10Step 1: Write in matrix form AX = B.A = [[1, 2], [2, 4]],X = [[x], [y]],B = [[5], [10]]Step 2: Calculate |A|.|A| = (1 4) - (2 2) = 4 - 4 = 0Step 3: Check |A|. Since|A| = 0, the system either has no solution or infinitely many solutions. We need to check(adj A)B. Step 4: Find adj A.adj A = [[4, -2], [-2, 1]]Step 5: Calculate (adj A)B.(adj A)B = [[4, -2], [-2, 1]] [[5], [10]](adj A)B = [[45 + (-2)10], [(-2)5 + 1*10]](adj A)B = [[20 - 20], [-10 + 10]](adj A)B = [[0], [0]](Zero matrix) Step 6: Conclude consistency. Since|A| = 0and(adj A)B = 0, the system is consistent and has infinitely many solutions. Final answer: The system is consistent and has infinitely many solutions.
Exam Strategy and Common Pitfalls
To score well in questions related to Determinants Ex 4.6, pay attention to these critical points:
- Careful Calculations: Matrix inversion involves calculating determinants, cofactors, and adjoints, followed by matrix multiplication. Each step is prone to sign errors or arithmetic mistakes. Double-check your calculations, especially when finding cofactors and their signs.
- Order of Multiplication: Remember that in
X = A⁻¹B, the order matters. It'sA⁻¹multiplied byB, notBbyA⁻¹. Matrix multiplication is generally not commutative. - Don't Stop at
|A|=0: A common mistake is to conclude 'no solution' immediately if|A|=0. This is only half the story! When|A|=0, you must calculate(adj A)B. Only if(adj A)B ≠ 0is there no solution. If(adj A)B = 0, then infinitely many solutions exist. - Practice Cofactor Signs: The sign pattern for cofactors
(-1)^(i+j)is crucial. Visualise[[+, -, +], [-, +, -], [+, -, +]]for a 3x3 matrix to avoid errors. - Present Your Work Clearly: For board exams, show every step: setting up
AX=B, calculating|A|,adj A,A⁻¹, and finallyX = A⁻¹B. Clearly state your conclusion about consistency and the solution set. This structured approach helps in fetching step-wise marks even if the final answer has a minor error.
Practice Questions with Solutions
- Q: Solve the following system of linear equations using the matrix method:
3x - 2y = 32x + y = 16A: Step 1: Write in matrix formAX = B.A = [[3, -2], [2, 1]],X = [[x], [y]],B = [[3], [16]]Step 2: Calculate|A|.|A| = (3 1) - (-2 2) = 3 + 4 = 7Step 3: Since|A| = 7 ≠ 0, a unique solution exists. Step 4: Findadj A.adj A = [[1, 2], [-2, 3]]Step 5: CalculateA⁻¹.A⁻¹ = (1/7) [[1, 2], [-2, 3]]Step 6: CalculateX = A⁻¹B.X = (1/7) [[1, 2], [-2, 3]] [[3], [16]]X = (1/7) [[13 + 216], [-23 + 316]]X = (1/7) [[3 + 32], [-6 + 48]]X = (1/7) [[35], [42]]X = [[5], [6]]Final answer:x = 5,y = 6. - Q: Using the matrix method, solve the system of equations:
x + y + z = 6y + 3z = 11x - 2y + z = 0A: Step 1: Write in matrix formAX = B.A = [[1, 1, 1], [0, 1, 3], [1, -2, 1]],X = [[x], [y], [z]],B = [[6], [11], [0]]Step 2: Calculate|A|.|A| = 1(11 - 3(-2)) - 1(01 - 31) + 1(0(-2) - 11)|A| = 1(1 + 6) - 1(0 - 3) + 1(0 - 1)|A| = 7 + 3 - 1 = 9Step 3: Since|A| = 9 ≠ 0, a unique solution exists. Step 4: Findadj A(cofactor matrixCfirst).C₁₁ = 7,C₁₂ = 3,C₁₃ = -1C₂₁ = -(11 - 1(-2)) = -(1 + 2) = -3C₂₂ = (11 - 11) = 0C₂₃ = -(1(-2) - 11) = -(-2 - 1) = 3C₃₁ = (13 - 11) = 2C₃₂ = -(13 - 10) = -3C₃₃ = (11 - 10) = 1C = [[7, 3, -1], [-3, 0, 3], [2, -3, 1]]adj A = Cᵀ = [[7, -3, 2], [3, 0, -3], [-1, 3, 1]]Step 5: CalculateA⁻¹.A⁻¹ = (1/9) [[7, -3, 2], [3, 0, -3], [-1, 3, 1]]Step 6: CalculateX = A⁻¹B.X = (1/9) [[7, -3, 2], [3, 0, -3], [-1, 3, 1]] [[6], [11], [0]]X = (1/9) [[76 + (-3)11 + 20], [36 + 011 + (-3)0], [(-1)6 + 311 + 10]]X = (1/9) [[42 - 33 + 0], [18 + 0 + 0], [-6 + 33 + 0]]X = (1/9) * [[9], [18], [27]]X = [[1], [2], [3]]Final answer:x = 1,y = 2,z = 3. - Q: Examine the consistency of the system of equations:
5x - y + 4z = 52x + 3y + 5z = 25x - 2y + 6z = -1A: Step 1: Write in matrix formAX = B.A = [[5, -1, 4], [2, 3, 5], [5, -2, 6]],X = [[x], [y], [z]],B = [[5], [2], [-1]]Step 2: Calculate|A|.|A| = 5(36 - 5(-2)) - (-1)(26 - 55) + 4(2(-2) - 35)|A| = 5(18 + 10) + 1(12 - 25) + 4(-4 - 15)|A| = 5(28) + 1(-13) + 4(-19)|A| = 140 - 13 - 76 = 140 - 89 = 51Step 3: Since|A| = 51 ≠ 0, the system is consistent and has a unique solution. Final answer: The system is consistent with a unique solution. - Q: Examine the consistency of the system of equations:
x + y + z = 12x + 3y + 2z = 2ax + ay + 2az = 4A: Step 1: Write in matrix formAX = B.A = [[1, 1, 1], [2, 3, 2], [a, a, 2a]],X = [[x], [y], [z]],B = [[1], [2], [4]]Step 2: Calculate|A|.|A| = 1(32a - 2a) - 1(22a - 2a) + 1(2a - 3a)|A| = 1(6a - 2a) - 1(4a - 2a) + 1(2a - 3a)|A| = 4a - 2a - a = aStep 3: Check|A|. Case 1: If|A| ≠ 0, i.e.,a ≠ 0, then the system is consistent with a unique solution. Case 2: If|A| = 0, i.e.,a = 0. Ifa = 0, thenA = [[1, 1, 1], [2, 3, 2], [0, 0, 0]].|A|=0is confirmed. Now we need to check(adj A)Bwhena=0. Whena=0, the system becomes:x + y + z = 12x + 3y + 2z = 20x + 0y + 0z = 4The last equation0 = 4is a contradiction. Alternatively, let's findadj Afora=0.C₁₁ = 0,C₁₂ = 0,C₁₃ = 0(since last row is all zeros)C₂₁ = 0,C₂₂ = 0,C₂₃ = 0C₃₁ = 1(2 - 3) = -1C₃₂ = -(12 - 12) = 0C₃₃ = 1(3 - 2) = 1adj A = [[0, 0, -1], [0, 0, 0], [0, 0, 1]](Mistake in calculation of C₃. If row is all zero, determinant of minor will be zero leading to Cofactors being zero for first 2 rows. But for 3rd row, Cofactors are not necessarily zero unless 2 rows are identical. Let's recalculate the cofactors forA = [[1, 1, 1], [2, 3, 2], [0, 0, 0]].C₁₁ = 30 - 20 = 0C₁₂ = -(20 - 20) = 0C₁₃ = 20 - 30 = 0C₂₁ = -(10 - 10) = 0C₂₂ = 10 - 10 = 0C₂₃ = -(10 - 10) = 0C₃₁ = 12 - 13 = -1C₃₂ = -(12 - 12) = 0C₃₃ = 13 - 12 = 1adj A = Cᵀ = [[0, 0, -1], [0, 0, 0], [0, 0, 1]](CorrectedC₂₁,C₂₂,C₂₃) Now(adj A)B = [[0, 0, -1], [0, 0, 0], [0, 0, 1]] [[1], [2], [4]](adj A)B = [[01 + 02 + (-1)4], [01 + 02 + 04], [01 + 02 + 14]](adj A)B = [[-4], [0], [4]]which is not the zero matrix. Since|A|=0and(adj A)B ≠ 0(specifically[[ -4 ], [ 0 ], [ 4 ]]), the system is inconsistent whena=0. Final answer: The system is consistent with a unique solution ifa ≠ 0. The system is inconsistent (no solution) ifa = 0.
Frequently Asked Questions
What is the primary condition for a system of linear equations to have a unique solution using the matrix method?
For a system `AX = B` to have a unique solution, the determinant of the coefficient matrix `A`, denoted as `|A|`, must be non-zero. If `|A| ≠ 0`, then the inverse `A⁻¹` exists, allowing us to find a unique solution `X = A⁻¹B`.
What does it mean if the determinant of the coefficient matrix `|A|` is zero?
If `|A| = 0`, it means the coefficient matrix `A` is singular, and its inverse `A⁻¹` does not exist. In this situation, the system of equations might have infinitely many solutions or no solution at all. Further analysis using `(adj A)B` is required to determine the exact nature of the system.
How do we distinguish between 'no solution' and 'infinitely many solutions' when `|A| = 0`?
When `|A| = 0`, you must calculate the product `(adj A)B`. If `(adj A)B` results in a zero matrix, the system has infinitely many solutions (consistent). However, if `(adj A)B` is a non-zero matrix, the system has no solution (inconsistent).
Why is the matrix method advantageous over other methods like substitution or elimination for solving linear equations?
The matrix method provides a structured and systematic approach that is especially efficient for solving systems with three or more variables. It is also well-suited for computational methods and provides insights into the consistency of the system through the determinant of the coefficient matrix.