Matrix Row Operations
There are 3 basic operations used on the rows of a matrix when you are using the matrix to solve a system of linear equations . The goal is usually to get the left part of the matrix to look like the identity matrix .
The three operations are:
- Switching Rows
- Multiplying a Row by a Number
- Adding Rows
You can switch the rows of a matrix to get a new matrix.
In the example shown above, we move Row to Row , Row to Row , and Row to Row . (The reason for doing this is to get a in the top left corner.)
Multiplying a Row by a Number
You can multiply any row by a number. (This means multiplying every entry in the row by the same number.)
In this example, we have multiplied Row of the matrix by . (This gives us the we need in Row , Column .)
You can also add two rows together, and replace a row with the result.
For example, in the matrix that resulted in the last example, we can add rows and together, entry by entry:
Then, we replace Row with the result.
Adding Multiples of Rows
We said there were only three operations, and there are. But by using the last two operations in combination, we can add whole multiples of rows to other rows, to make things go faster.
Back up a step, so we have the matrix:
Now instead of just adding Row + Row , add Row :
Then replace Row with the result.
This way, we get a in Row , Column .
We can do this again to get a in Row , Column . Here, we multiply Row by , add it Row , and replace Row with the result.
We'll show a few more steps, to get the identity matrix on the left (and thus solve the system).
The next step is to add to get a in Row , Column .
Next, we need a zero in Row , Column .
The last step is just an application of the second operation, multiplying a row by a number.
We now have the solution as ordered triple .
Important Note: If the equations represented by your original matrix represent identical or parallel lines, you will not be able to get the identity matrix using these row operations. In this case, the solution either does not exist or there are infinitely many solutions to the system.