Return to the Purplemath home page


powered by FreeFind


Return to the Lessons Index  | Do the Lessons in Order  |  Get "Purplemath on CD" for offline use  |  Print-friendly page

Matrix Row Operations (page 1 of 2)

"Operations" is mathematician-ese for "procedures". The four "basic operations" on numbers are addition, subtraction, multiplication, and division. For matrices, there are three basic row operations; that is, there are three procedures that you can do with the rows of a matrix.

The first operation is row-switching. For instance, given the matrix:

    [[ 0 0 1 3 ][ 1 2 3 5 ][ 0 1 -2 4 ]] can switch the rows around to put the matrix into a nicer row arrangement, like this:

    [[ 1 2 3 5 ][ 0 1 -2 4 ][ 0 0 1 3 ]]

Row-switching is often indicated by drawing arrows, like this:

    arrows show first row becoming third, second becoming first, and third becoming second

When switching rows around, be careful to copy the entries correctly.

The second operation is row multiplication. For instance, given the following matrix:

    [[-1 0 0 3 ][ 0 1 0 2 ][ 0 0 -2 4 ]] can multiply the first row by 1 to get a positive leading value in the first row:

    [[ 1 0 0 -3 ][ 0 1 0 2 ][ 0 0 -2 4 ]]

This row multiplication is often indicated by using an arrow with multiplication listed on top of it, like this:

    the first row goes from [-1 0 0 3 ] to [ 1 0 0 -3 ]

The "1R1" indicates the actual operation. The "1" says that we multiplied by negative one; the "R1" says that we were working with the first row. Note that the second and third rows were copied down, unchanged, into the second matrix. The multiplication only applied to the first row, so the entries for the other two rows were just carried along unchanged.

You can multiply by anything you like. For instance, to get a leading 1 in the third row of the previous matrix, you can multiply the third row by a negative one-half:

    third row goes from [ 0 0 -2 4 ] to [ 0 0 1 -2 ]

Since you weren't doing anything with the first and second rows, those entries were just copied over unchanged into the new matrix.

You can do more than one row multiplication within the same step, so you could have done the two above steps in just one step, like this:

    both operations done in one step

It is a good idea to use some form of notation (such as the arrows and subscripts above) so you can keep track of your work. Matrices are very messy, especially if you're doing them by hand, and notes can make it easier to check your work later. It'll also impress your teacher.

The last row operation is row addition. Row addition is similar to the "addition" method for solving systems of linear equations. Suppose you have the following system of equations:

    x + 3y = 1
    x + y = 3
      Copyright Elizabeth Stapel 2003-2011 All Rights Reserved




You could start solving this system by adding down the columns to get 4y = 4:

    Adding down yields "4y = 4"; the x-terms cancel off.

You can do something similar with matrices.For instance, given the following matrix:

    [[ 1 0 3 2 ][-1 1 5 -4 ][ 0 1 3 0 ]] can "reduce" (get more leading zeroes in) the second row by adding the first row to it (the general goal with matrices at this stage being to get a "1" or "0's" and then a "1" at the beginning of each matrix row). When you were reducing the two-equation linear system by adding, you drew an "equals" bar across the bottom and added down. When you are using addition on a matrix, you'll need to grab some scratch paper, because you don't want to try to do the work inside the matrix. So add the two rows on your scratch paper:

    Scratch work
    don't hand this in!

    [ 1 0 3 2 ] + [-1 1 5 -4 ] = [ 0 1 8 -2 ]

This is your new second row; you will write it in place of the old second row. The result will look like this:

    [[ 1 0 3 2 ][ 0 1 8 –2 ][ 0 1 3 0 ]]

In this case, the "R1 + R2" on the arrow means "I added row one to row two, and this is the result I got". Since row one didn't actually change, and since we didn't do anything with row three, these rows get copied into the new matrix unchanged.

Top  |  1 | 2  |  Return to Index  Next >>

Cite this article as:

Stapel, Elizabeth. "Matrix Row Operations." Purplemath. Available from Accessed


  Linking to this site
  Printing pages
  School licensing

Reviews of
Internet Sites:
   Free Help
   Et Cetera

The "Homework

Study Skills Survey

Tutoring from Purplemath
Find a local math tutor

This lesson may be printed out for your personal use.

Content copyright protected by Copyscape website plagiarism search

  Copyright 2003-2012  Elizabeth Stapel   |   About   |   Terms of Use


 Feedback   |   Error?