Elimination Matrix¶
Elimination¶
We shall begin this chapter with a systematic way to solve linear equations with n variables. Consider the following set of equations where n = 3:
Which would correspond to the coefficient matrix \(A\):
A way to systematically solve the equation is called elimination. We begin by eliminating \(x\) in the second equation, and from then on eliminate \(x\) & \(y\) in the third equation.
Intermediate Steps
In this case, we would end up with a matrix like this:
Such a matrix is called an Upper Triangular Matrix, denoted by \(U\).
If we want to solve the equation, we can add the right sides of the equations to the matrix as a column on the right side of the matrix to get an Augmented Matrix.From then on we can go over the same process of elimination. But this is not the point for now.
Elimination Matrix¶
If we look back on what we just did, we were essentially doing row operations: subtracting three times the first row from the second row, etc. Now if you remember what we just discovered in the first chapter about row operations, you might think that we might be able to multiply something by the matrix \(A\) to get the same effect, namely:
where \(E\) is a matrix we call the Elementary Matrix. Since \(U\) and \(A\) are three by three matrices, \(E\) should be as well.
Think about it step by step: first let us leave the third row and get the \(x\) in the second row eliminated. The operation here is to subtract three times the first row from the second row, and leave everything else unchanged. Since the first row and third row are not changed, the first and third row of \(E\) should be \(\begin{bmatrix}1&0&0\end{bmatrix}\) and \(\begin{bmatrix}0&0&1\end{bmatrix}\) respectively. Since we want to subtract three times the first row from the second row of \(A\), the second row of \(E\) would be: \(\begin{bmatrix}-3&1&0\end{bmatrix}\). The resulting matrix \(E\) is then:
Identity Matrix
As you may have discovered, we can also multiply something by the matrix \(A\) for it to remain unchanged. Such a matrix is called the Identity Matrix \(I\). It takes the following form:
And it satisfies:
given that \(A\) is a square matrix.
Through a similar process, we can get the elementary matrix for the next step:
Such that
A very important fact is that matrix multiplication follows the Assiciative Law, and we can rewrite the equation as:
But it's also important to know that switching orders is not valid in most matrix multiplications:
in most cases.
Permutation Matrix
Of course, you can also switch the rows of a matrix by multiplication, for example:
Notably,