As we venture further into the world of matrices, we will eventually need to learn how to carry out matrix row operations. These operations help us solve a number of problems with matrices, and they can be very useful. There are three basic matrix row operations that we need to cover: Switching rows, multiplying a row by a number, and adding rows. By combining these three techniques, we can rearrange our matrices in the same way that we rearrange algebraic equations. But how do these matrix row operations work, and when should we use them? Let''s find out:
We use matrix row operations primarily to solve systems of linear equations. As we may have learned, it is possible to solve systems of linear equations using matrices. A key part of this process is turning the left side of our matrix into an identity matrix.
We may recall that an identity matrix is the equivalent of the value "1" in the world of matrices. This means that if we can get one side of the matrix to look like an identity matrix, we can solve for variables x and y. If one part of the matrix represents the variable and the left side represents the value "1," this simply means we are multiplying our value by 1 to get our variable. In other words, the right side of the matrix is the correct variable value.
Recall that an identity matrix has elements of "1" along its main diagonal with all other elements as zeros. For example:
Note that as long as an identity matrix follows the above pattern, it can have any number of elements. This means that we can turn any matrix into an identity matrix.
The first operation we''re going to learn is switching rows. As the name implies, this involves switching the rows around on our matrix:
Let's carry out the following operations:
We are left with:
Why did we do this? Remember, we are in the process of creating an identity matrix. This means that we need a value of "1" in the top left corner, which we have achieved with this matrix row operation.
Multiplying a row by a number is quite straightforward:
What happens if we multiply row 3 by ?
We get:
Now we have a 1 in row 3, column 3.
Another operation is to add two rows together and replace an entire row with the sum.
What happens if we add rows 2 and 3 together, and then replace row 2 with the result?
Let's add those two rows together first:
Now let's replace row 2 with the result:
While there are only three matrix row operations, it is possible to combine two of these operations into one. We call this "adding rows of multiples." As the name suggests, this is a combination of both adding rows and multiplying rows by a number.
Consider this matrix -- the same matrix we add after multiplying row 3 by :
What if we combined the last two steps to make things go a little faster? In other words, instead of starting by adding row 2 to row 3, we can add .
Starting with the brackets first, we multiply row 3 by 2 to get:
Now we can replace row 2 with this result. We are left with:
The benefit here is that we now have a 0 in row 2, column 3. We are one step closer to creating our identity matrix.
Now we can do exactly the same step once more, this time getting another zero in row 2, column 1. In this case, we multiply row 1 by (-2) and replace row 2 with this result:
Now we have learned all of the various steps we need to find our identity matrix. Let's continue to finish creating this identity matrix:
Add to get a 0 in row 2, column 3:
to get a 0 in row 1, column 3:
The final step is to multiply row 3 by :
Now we have our identity matrix on the left side. So what this is really saying is:
The solutions for the variables are .
Note that this strategy does not work when solving linear equations for parallel lines or equivalent expressions. This is because there are either infinite solutions or no solutions at all.
Solving Systems of Linear Equations Using Matrices
Linear Algebra Diagnostic Tests
Learning how to use matrix row operations effectively takes some practice. It''s not easy to figure out which operation to use and how to create an identity matrix on the left. Like most math skills, it takes plenty of practice -- and students might not have enough time to hone their skills during class time alone. That''s where tutoring comes in. During 1-on-1 tutoring sessions, a student can practice matrix row operations and many other math skills alongside a patient, encouraging tutor. The moment they get stuck, they can turn to their tutor for guidance. The tutor can also use teaching methods that match their learning style and examples that are geared toward their hobbies. Speak with our Educational Directors today to learn more and rest assured: Varsity Tutors will pair you or your student with a fantastic math tutor.