Matrices can be used to compactly write and work with systems of equations. As we have learned in previous sections, matrices can be manipulated in any way that a normal equation can be. This is very helpful when we start to work with systems of equations. It is helpful to understand how to organize matrices to solve these systems.
Writing a System of Equations with Matrices
It is possible to solve this system using the elimination or substitution method, but it is also possible to do it with a matrix operation. Before we start setting up the matrices, it is important to do the following:
- Make sure that all of the equations are written in a similar manner, meaning the variables need to all be in the same order.
- Make sure that one side of the equation is only variables and their coefficients, and the other side is just constants.
Solving a system of linear equations using the inverse of a matrix requires the definition of two new matrices:
To solve a system of linear equations using an inverse matrix, let
Given the system:
The coefficient matrix is:
The variable matrix is:
The constant matrix is:
Thus, to solve a system
Provided the inverse
If the coefficient matrix is not invertible, the system could be inconsistent and have no solution, or be dependent and have infinitely many solutions.