Home page for accesible maths 2 Row operations on matrices

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

2.1. Elementary matrices

Definition 2.1.1.

There are three types of elementary row operations which can be performed on a matrix AMn×m(). They are:

  1. (i)

    Multiplying a row by a non-zero number;

  2. (ii)

    Adding a multiple of one row to another row;

  3. (iii)

    Swapping two rows.

Example 2.1.2.

  • Let A be the following matrix. This is how we will write row operations:

    A=(123456)R1R2(341256)R3=r3+2r2(3412710).

    Here Ri and ri are the names given to row number i (counting from top to bottom). First we swapped R1 and R2, and then we added 2r2 to r3. So Ri=ri+λrj means “The new row i is the old row i plus λ times the old row j”. We will now explain this in more detail, by using elementary matrices.

Definition 2.1.3.

For any integers n1 and 1i,jn with ij, we define three kinds of elementary matrices in Mn() as follows. We are assuming λ is non-zero.

  • (Row multiplication):

    Ei(λ)=(101λ101).

    If A is an n×m matrix, then Ei(λ)A (the matrix multiplication used here is from Definition 1.4.1) is the matrix A except its i-th row has been multiplied by the scalar λ. We will write this row operation as ARi=λriEi(λ)A.

  • (Row addition):

    Eij(λ)=(101λ101),

    Here λ occurs in the i-th row and the j-th column. If A is an n×m matrix, then Eij(λ)A is the matrix whose i-th row is the i-th row of A plus λ times the j-th row of A. We will write this row operation as ARi=ri+λrjEij(λ)A.

  • (Row exchange):

    Eij=(10011001).

    If A is an n×m matrix, then EijA is the matrix whose i-th and j-th rows have been exchanged. We will write this row operation as ARiRjEijA.

Example 2.1.4.

  • Consider the row operations in Example 2.1, where n=3, 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 A on the left by E12. The second operation is the same as multiplying on the left by E32(2). So multiply the following matrices:

    E32(2)(E12(123456))=(100010021)(010100001)(123456)=(3412710)

    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.

Remark 2.1.5.

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 In, where

In=(1001)=(δij),whereδij={1if i=j,0otherwise.

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.

Remark 2.1.6.

Elementary column operations are defined similarly to the row operations, and we will use them in Section 4. The three kinds are the same as in Definition 2.1.1, except every instance of the word “row” is replaced with the word “column”.

Notation 2.1.7.

Given a matrix, we write Ri or ri, (Ci or ci) for the i-th row (i-th column, respectively). During row operations, ri will often mean the “old row i”, and Ri will often mean the “new row i”. For instance, if A is the matrix

A=(123456)thenR1=(123)andC3=(36).

Example 2.1.8.

  • Let A=(0121-100-2-1)M3(). Do the sequence of row operations:

    • 1.

      add twice R1 to R3, written R3=r3+2r1, then

    • 2.

      swap R2 and R1, written R1R2, finally

    • 3.

      multiply R3 by 1/3, written R3=13r3.

    In terms of elementary matrices, this sequence of row operations is the same as the product

    E3(1/3)E12E31(2)A=(1000100013)(010100001)(100010201)A=(1-10012001).

    Notice that the sequence of elementary matrices is written in order starting on the right and ending on the left.