Elimnation with Matrices
Solving Systems of Equations with Matrices


This post assumes you know about basic matrix operations. If you need to review those check this previous post


Elimination

Elimination is used for solving systems of equations.

The following system can be represented by matrices.

Let’s pick apart the equation . is a coefficient matrix. What this means is that the coefficients from the systems are stored here. The is a vector that contains all the variables . The matrix is contains everything to the left of the equals sign.

Our goal is go from this

to

which is the same as

What we end up with is an upper triangle matrix. All the values below the diagonal are zero which makes substitution trivial because is solved.

The way we change indices to is by adding and subtracting rows from each other like we would with a typical system of equations.

We are going to drop the vector and incorporate it later. Lets start by adding of the first row to the second row.

We are now left with the second row without an coefficient.

Now lets add of the second row to the third row.

With this matrix it is easy to see that . Knowing that, back substitution is trivial.

*****
Written by Justin on 13 November 2015