There are three types of elementary row operations which can be performed on a matrix . They are:
Multiplying a row by a non-zero number;
Adding a multiple of one row to another row;
Swapping two rows.
Example 2.1.2.
Let be the following matrix. This is how we will write row operations:
Here and are the names given to row number (counting from top to bottom). First we swapped and , and then we added to . So means “The new row is the old row plus times the old row ”. We will now explain this in more detail, by using elementary matrices.
For any integers and with , we define three kinds of elementary matrices in as follows. We are assuming is non-zero.
(Row multiplication):
If is an matrix, then (the matrix multiplication used here is from Definition 1.4.1) is the matrix except its -th row has been multiplied by the scalar . We will write this row operation as .
(Row addition):
Here occurs in the -th row and the -th column. If is an matrix, then is the matrix whose -th row is the -th row of plus times the -th row of . We will write this row operation as .
(Row exchange):
If is an matrix, then is the matrix whose -th and -th rows have been exchanged. We will write this row operation as .
Example 2.1.4.
Consider the row operations in Example 2.1, where , because there are 3 rows. Let’s perform the same row operations by using elementary matrices. The first row operation is the same as multiplying on the left by . The second operation is the same as multiplying on the left by . So multiply the following matrices:
which is the same answer as we found in Example 2.1. Notice the order of the matrices. The last operation corresponds to the leftmost elementary matrix.
One way of remembering how row operations correspond to elementary matrices, is as follows. The elementary matrix is the result of the row operation on the identity matrix , where
For us, the primary use of the elementary matrices will be to keep track of row operations on matrices. Notice the product of elementary matrices is the sequence of row operations written from right to left.
Given a matrix, we write or , ( or ) for the -th row (-th column, respectively). During row operations, will often mean the “old row ”, and will often mean the “new row ”. For instance, if is the matrix
Example 2.1.8.
Let . Do the sequence of row operations:
add twice to , written , then
swap and , written , finally
multiply by , written .
In terms of elementary matrices, this sequence of row operations is the same as the product
Notice that the sequence of elementary matrices is written in order starting on the right and ending on the left.