Solving systems with matrix equations
Solving Systems with Matrix Equations
Solving systems of linear equations is a fundamental concept in mathematics, and matrices provide a powerful and efficient method for doing so, especially for larger systems. A system of linear equations can be represented in matrix form as AX = B.
Matrix Form of a System
Consider a system of n linear equations with n variables:
- a₁₁x₁ + a₁₂x₂ + ... + a₁nxn = b₁
- a₂₁x₁ + a₂₂x₂ + ... + a₂nxn = b₂
- ...
- an₁x₁ + an₂x₂ + ... + annxn = bn
This system can be written as a single matrix equation:
AX = B
Where:
- A is the coefficient matrix, containing the coefficients of the variables. For the system above, A would be an n x n matrix:
[[a₁₁, a₁₂, ..., a₁n],
[a₂₁, a₂₂, ..., a₂n],
...,
[an₁, an₂, ..., ann]] - X is the variable matrix (or column vector) containing the variables:
[[x₁],
[x₂],
...,
[xn]] - B is the constant matrix (or column vector) containing the constants on the right side of the equations:
[[b₁],
[b₂],
...,
[bn]]
For example, the system:
2x + 3y = 7
x - 4y = -2
can be written as:
[[2, 3], [1, -4]] * [[x], [y]] = [[7], [-2]]
Solving AX = B Using the Inverse Matrix
To solve for the variable matrix X, we can use the concept of an inverse matrix. If the coefficient matrix A is a square matrix (n x n) and its determinant is non-zero (det(A) ≠ 0), then A has an inverse, denoted as A⁻¹.
The steps to solve AX = B are:
- Identify matrices A, X, and B from the system of equations.
- Calculate the determinant of A. If det(A) = 0, the matrix is singular, and there is no unique solution (either no solution or infinitely many solutions).
- If det(A) ≠ 0, calculate the inverse matrix A⁻¹.
- Multiply both sides of the equation AX = B by A⁻¹ on the left:
A⁻¹(AX) = A⁻¹B
(A⁻¹A)X = A⁻¹B
IX = A⁻¹B
X = A⁻¹B
The resulting matrix X will give the values of the variables. It is crucial that the inverse matrix A⁻¹ is multiplied on the left side because matrix multiplication is not commutative (AB ≠ BA in general).
Example of Solving a 2x2 System
Consider the system:
2x + y = 8
3x - 2y = 5
1. Matrices: A = [[2, 1], [3, -2]], X = [[x], [y]], B = [[8], [5]]
2. Determinant of A: det(A) = (2)(-2) - (1)(3) = -4 - 3 = -7. Since det(A) ≠ 0, A⁻¹ exists.
3. Inverse of A: For a 2x2 matrix [[a, b], [c, d]], A⁻¹ = (1/det(A)) * [[d, -b], [-c, a]]
A⁻¹ = (1/-7) * [[-2, -1], [-3, 2]] = [[2/7, 1/7], [3/7, -2/7]]
4. Solve for X: X = A⁻¹B
X = [[2/7, 1/7], [3/7, -2/7]] * [[8], [5]]
X = [[(2/7)*8 + (1/7)*5], [(3/7)*8 + (-2/7)*5]]
X = [[(16/7) + (5/7)], [(24/7) - (10/7)]]
X = [[21/7], [14/7]]
X = [[3], [2]]
So, x = 3 and y = 2. This method is extendable to larger systems (3x3, 4x4, etc.) though calculating inverses by hand becomes more complex, often requiring graphing calculators or software.
Practice questions
Convert the system of equations 3x - y = 5 and 2x + 4y = -1 into the matrix equation form AX = B.
Given the matrix equation AX = B, if A is a 3x3 matrix and its determinant is zero, what can be concluded about the solution to the system?
To solve the matrix equation AX = B for X, what matrix operation must be performed on both sides, and in what order?
For the system represented by AX = B, where A = [[4, 1], [3, 2]] and B = [[10], [5]], what is the determinant of A?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/precalculus/unit-4-functions-involving-parameters-vectors-and-matrices/solving-systems-with-matrix-equations