Lesson Video: Equal Matrices | Nagwa Lesson Video: Equal Matrices | Nagwa

Lesson Video: Equal Matrices Mathematics

In this video, we will learn how to identify the conditions for two matrices to be equal.

17:48

Video Transcript

In this video, weโ€™ll learn what it means to say that two matrices are equal. Weโ€™ll identify some conditions which must be satisfied for two matrices to be equal. And weโ€™ll use these conditions to solve equations based on equal matrices.

Before we talk about matrices, letโ€™s start by talking about equality because weโ€™ve seen a lot of different types of equality before. For example, we know if ๐‘ฅ is equal to five and ๐‘ฆ is equal to five, then we must have that ๐‘ฅ is equal to ๐‘ฆ because they both represent the same number, in this case, five. So with numbers, itโ€™s very easy to check if theyโ€™re equal. We just need to check if theyโ€™re the same number.

But this is not the only type of equality weโ€™ve seen. For example, consider the vector ๐ฏ equal to two ๐ข plus three ๐ฃ and the vector ๐ฎ equal to two ๐ข plus three ๐ฃ. In this case, to check that our vectors are equal, we need to check that both the coefficients of ๐ข are equal and both the coefficients of ๐ฃ are equal. In this case, both coefficients of ๐ข are equal to two and both coefficients of ๐ฃ are equal to three. So ๐ฏ is equal to ๐ฎ. But this involves more checks the moment weโ€™re just using numbers. For example, if we have the vector ๐ฐ is equal to two ๐ข plus four ๐ฃ, then because the coefficient of ๐ฃ in ๐ฏ and ๐ฐ are different, we must have that the vectors ๐ฐ and ๐ฏ are not equal.

But then we know thereโ€™s also one more problem on top of this with vectors. Imagine if instead we had had the vector ๐ฐ equal to two ๐ข plus three ๐ฃ plus ๐ค. Now we can see the coefficient of ๐ข is equal to two and the coefficient of ๐ฃ is equal to three. But we know our vector ๐ฐ is still not equal to our vector ๐ฏ. This is because we have a third unit directional vector in ๐ฐ. ๐ฏ is a two-dimensional vector and ๐ฐ is a three-dimensional vector, so they canโ€™t be equal. So when weโ€™re talking about equality, it wonโ€™t always be as simple as just checking whether two numbers are equal.

We want to talk about the equality of two matrices. Remember, matrices, just like vectors, have multiple entries. So weโ€™ll have a lot of similarities to defining the equality of two matrices as we did when defining the equality of two vectors.

Letโ€™s now move on to our definition of the equality of two matrices. If we let ๐ด and ๐ต be matrices which are described by the entries as follows, for matrix ๐ด, weโ€™ll call the entry in row ๐‘– and column ๐‘— ๐‘Ž ๐‘–๐‘— and for matrix ๐ต, weโ€™ll call the entry in row ๐‘– and column ๐‘— ๐‘ ๐‘–๐‘—. Then if we have ๐‘Ž ๐‘–๐‘— is equal to ๐‘ ๐‘–๐‘— for all of our values of ๐‘– and ๐‘—, we say that our matrix ๐ด is equal to our matrix ๐ต. In other words, for two matrices to be equal, all of their entries must be identical.

Itโ€™s worth noting if any of the entries are not identical โ€” for example, if the entries in row ๐‘– and column ๐‘— are not equal, so there is an ๐‘– and a ๐‘— such that ๐‘Ž ๐‘–๐‘— is not equal to ๐‘ ๐‘–๐‘— โ€” then we say the matrix ๐ด is not equal to the matrix ๐ต. So just like with vectors, all we need to do is check whether all of our entries are identical. Letโ€™s now move on to some examples.

Given that ๐ด is the matrix with first row three, three, three and second row three, three, three and ๐ต is the matrix with first row three, three and second row three, three, is it true that the matrix ๐ด is equal to the matrix ๐ต?

Letโ€™s start by recalling what we mean when we say that two matrices are equal. If we have the entry in row ๐‘– and column ๐‘— of matrix ๐ด is ๐‘Ž ๐‘–๐‘— and the entry in row ๐‘– and column ๐‘— of matrix ๐ต is ๐‘ ๐‘–๐‘—, then if ๐‘Ž ๐‘–๐‘— is equal to ๐‘ ๐‘–๐‘— for all of our values of ๐‘– and ๐‘—, we say that the matrix ๐ด is equal to the matrix ๐ต. Otherwise, we say that these matrices are not equal. So to check the two matrices are equal, we need to check that all of their entries are identical.

Letโ€™s start with matrix ๐ด. We can see this has two rows and three columns. So in our case, what would our values of ๐‘Ž ๐‘–๐‘— be? First, our matrix ๐ด has two rows and three columns, so our values of ๐‘– range from one to two and our values of ๐‘— range from one to three. We can then do something similar for our matrix ๐ต. If ๐‘ ๐‘˜๐‘™ is the entry in matrix ๐ต in row ๐‘˜ and column ๐‘™, then because our matrix ๐ต only has two rows and two columns, our values of ๐‘˜ range from one to two and our values of ๐‘™ also range from one to two. But now we can start to see our problem from our definition. The entries must be equal for all possible rows and columns. Our matrix ๐ด has three columns. However, our matrix ๐ต only has two columns. So these matrices canโ€™t possibly be equal.

For example, if we highlight the two entries in matrix ๐ด in column three, by our definition of equality, we would have to have a third column in matrix ๐ต which is equal to this column. So in this case, the matrix ๐ด is not equal to the matrix ๐ต.

In fact, we can use exactly the same line of reasoning as we did in this question to deduce that if two matrices have different orders, they canโ€™t be equal. In other words, if they have a different number of rows or columns, they canโ€™t be equal. This means what weโ€™ve shown is for two matrices to be equal, they must have the same number of rows or columns. In other words, they must have the same order.

Of course, just because two matrices do have the same order does not mean theyโ€™re equal, as weโ€™ll show in our next example.

If ๐ด is the matrix negative five, three, negative seven, negative three and ๐ต is the matrix negative five, negative three, negative seven, three, is it true that the matrix ๐ด is equal to the matrix ๐ต?

We recall for two matrices to be equal, they need to have the same number of rows and columns and all of their entries must be identical. We can see that our matrix ๐ด has two rows and two columns and the matrix ๐ต also has two rows and two columns. This means to check whether ๐ด is equal to ๐ต, all we need to do is check whether their entries are identical. Another way of saying this is weโ€™ve shown that the matrix ๐ด and the matrix ๐ต have the same order. So to check that these two matrices are equal, we now need to check that all of their entries are identical. Remember, we only compare entries in the same position in each matrix. And if any of these are not equal, then we know that our matrices are not equal.

Letโ€™s start with the entry in row one and column one for both of our matrices. We see the entry in row one and column one of matrix ๐ด is negative five and the entry in row one and column one of matrix ๐ต is also negative five. So these entries are identical. Remember, we need to check this for all of our entries. Letโ€™s now move on to row two and column one. This time, we see the entry in row two and column one of matrix ๐ด is negative seven and the entry in row two and column one of matrix ๐ต is also negative seven. So again, these are both equal.

But what happens when we move on to row one and column two for both of our matrices? In matrix ๐ด, this value is equal to three. However, in matrix ๐ต, this value is equal to negative three. So the entries in row one and column two are not equal. And remember for two matrices to be equal, we must have all of their entries are identical. Therefore, given ๐ด is equal to negative five, three, negative seven, negative three and ๐ต is equal to negative five, negative three, negative seven, three because they have differing entries in row one column two, we were able to conclude the matrix ๐ด is not equal to matrix ๐ต.

So far, weโ€™ve only seen matrices with at most three rows or three columns. However, the same principle extends to larger matrices. We just need to check all of our entries are identical and that the two matrices have the same order. We can do more with equality of matrices than just check whether two matrices are equal, as weโ€™ll see in our next example.

Given that the matrix negative four, three, ๐‘ฅ, negative seven is equal to the matrix negative four, three, eight, ๐‘ฆ minus six, find the values of ๐‘ฅ and ๐‘ฆ.

The question gives us two matrices which we are told are equal. We need to use this information to find the values of ๐‘ฅ and ๐‘ฆ. Remember, for two matrices to be equal, entries in the same row and column must be identical. So, for example, we must have both entries in the first row and first column equal. In this case, theyโ€™re both equal to negative four. But this doesnโ€™t really help us find the values of ๐‘ฅ or ๐‘ฆ. However, what happens if we look at the values in row two column one? Remember, these must be equal. In our first matrix, the value in row two column one is ๐‘ฅ. And in our second matrix, the value in row two column one is eight. So for our matrices to be equal, these two entries must be equal. In other words, we must have ๐‘ฅ is equal to eight.

Weโ€™ll want to do something similar to help us find the value of ๐‘ฆ. We can see the only place ๐‘ฆ appears is in our second matrix in row two column two. And for these two matrices to be equal, they must have the same value in row two column two. So we can just equate the entries in row two column two for both of these matrices. In other words, we must have negative seven is equal to ๐‘ฆ minus six. And we can then just solve this equation for ๐‘ฆ. Weโ€™ll add six to both sides of the equation. And we see that this gives us that ๐‘ฆ is equal to negative one.

One thing thatโ€™s often worth doing in situations like this is substituting our value of ๐‘ฆ back into our matrix. Remember, when we do this, we should get the entry of negative seven. So weโ€™ll substitute ๐‘ฆ is negative one into the expression in row two column two in our second matrix. This gives us negative one minus six. And we can evaluate this, and we get negative seven just as we expected. This just helps us check that our answer was correct. Therefore, given the matrix negative four, three, ๐‘ฅ, negative seven is equal to the matrix negative four, three, eight, ๐‘ฆ minus six, we were able to show that the value of ๐‘ฅ must be eight and the value of ๐‘ฆ must be negative one.

So now weโ€™ve seen that given the equality of two matrices, we can find out information about unknown entries of these matrices. Letโ€™s now look at another example of this.

Find the values of ๐‘ฅ and ๐‘ฆ, given that the matrix 10๐‘ฅ squared plus 10, two, negative three, nine is equal to the matrix 20, two, two ๐‘ฆ plus nine, nine.

We need to find the values of ๐‘ฅ and ๐‘ฆ that makes these two matrices equal. Remember, for two matrices to be equal, they must have the same number of rows and columns and all of the entries in the same row and column must be equal. We can see that for the matrices given to us in the question, both of them have two rows and two columns. So this doesnโ€™t help us find the values of ๐‘ฅ or ๐‘ฆ. Letโ€™s instead use the fact that all entries in the same row and column must be equal.

Letโ€™s start with the first row and the first column. In our first matrix, this entry is 10๐‘ฅ squared plus 10. In our second matrix, this entry is 20. So for these two matrices to be equal, these two entries must be equal. In other words, by equating the entries in row one and column one of both of our matrices, we get that 10๐‘ฅ squared plus 10 is equal to 20. We can then solve this equation for ๐‘ฅ. Weโ€™ll start by subtracting 10 from both sides of the equation. This gives us that 10๐‘ฅ squared is equal to 10. Next, weโ€™ll divide both sides of the equation through by 10. This gives us that ๐‘ฅ squared is equal to one.

Finally, one way of solving this equation is to take the square root of both sides. Remember, weโ€™ll get a positive and a negative square root. This gives us that ๐‘ฅ is equal to positive or negative one. So it doesnโ€™t matter if ๐‘ฅ is equal to positive or negative one. Then the entries in row one and column one of our matrices will be equal. However, we canโ€™t stop there. We need to check whether ๐‘ฅ appears in the rest of the entries of our matrices because one of these solutions might not be valid if it does. If we quickly check the rest of the entries of our matrices, we can see none of them contain the variable ๐‘ฅ, so their values are independent of ๐‘ฅ. So it doesnโ€™t matter if ๐‘ฅ is equal to one or negative one when weโ€™re checking the equality of these two matrices. The entries will be the same. So in actual fact, ๐‘ฅ can be equal to positive or negative one in this case.

Letโ€™s now check the rest of the entries in our two matrices. We can see in row one column two, both of the entries are equal to two. In fact, we get the same story in row two and column two. Both entries here are equal to nine. In both of these cases, our variables ๐‘ฅ and ๐‘ฆ donโ€™t appear, so these will be equal regardless what we set these values to.

The last entries we need to check is row two column one. Again, remember, since weโ€™re told these two matrices are equal, their entries in row two column one must also be equal. So by equating these two entries, we get that negative three must be equal to two ๐‘ฆ plus nine. And we can then solve this equation for ๐‘ฆ. Weโ€™ll start by subtracting nine from both sides of the equation. This gives us that negative 12 is equal to two ๐‘ฆ. Now, what we need to do is divide both sides of the equation through by two. We see that this gives us that ๐‘ฆ is equal to negative six. Therefore, given that the matrix 10๐‘ฅ squared plus 10, two, negative three, nine is equal to the matrix 20, two, two ๐‘ฆ plus nine, nine, we were able to show that the value of ๐‘ฅ must be equal to positive or negative one and the value of ๐‘ฆ must be equal to negative six.

Letโ€™s now go through one more example on how we can use the equality of matrices to find the value of certain variables.

Consider the matrix ๐ด is equal to negative 10๐‘ฅ, ๐‘ฅ plus three ๐‘ฆ, two ๐‘ฅ minus ๐‘ง and the matrix ๐ต is equal to negative 30, 27, 10. Given that the matrix ๐ด is equal to the matrix ๐ต, determine the values of ๐‘ฅ, ๐‘ฆ, and ๐‘ง.

In this question, weโ€™re given two matrices ๐ด and ๐ต. And we can see that the entries in matrix ๐ด are dependent on the three variables ๐‘ฅ, ๐‘ฆ, and ๐‘ง. In fact, weโ€™re told that these two matrices are equal. We need to use this information to determine the values of ๐‘ฅ, ๐‘ฆ, and ๐‘ง. Remember, we say that a matrix ๐ด is equal to a matrix ๐ต if all of the entries in the same row and same column are equal. In fact, this also tells us that our matrices must have the same number of rows and columns.

In our case, matrix ๐ด is negative 10๐‘ฅ, ๐‘ฅ plus three ๐‘ฆ, two ๐‘ฅ minus ๐‘ง and matrix ๐ต is negative 30, 27, 10. Since weโ€™re told that these two matrices are equal, entries in the same row and same column must be equal. For example, the entry in the first row and first column of matrix ๐ด is negative 10๐‘ฅ, and the entry in the first row and first column of matrix ๐ต is negative 30. So for these two matrices to be equal, these two entries must be equal, so we get negative 10๐‘ฅ must be equal to negative 30. And we can solve this equation for ๐‘ฅ. We just divide both sides by negative 10. And this gives us that our value of ๐‘ฅ must be equal to three.

Letโ€™s now move on to row one and column two of our two matrices. In matrix ๐ด, we can see that the entry in row one column two is equal to ๐‘ฅ plus three ๐‘ฆ. And in matrix ๐ต, the entry in row one column two is equal to 27. So because these two matrices are equal, these two entries must be equal. This gives us that ๐‘ฅ plus three ๐‘ฆ must be equal to 27. Remember, we already showed that our value of ๐‘ฅ must be equal to three, so we can substitute this into our equation. This gives us that three plus three ๐‘ฆ must be equal to 27. We can then solve this equation for ๐‘ฆ. Weโ€™ll start by subtracting three from both sides of the equation. This gives us that three ๐‘ฆ is equal to 24. Now to solve this equation for ๐‘ฆ, weโ€™ll divide both sides of the equation through by three. And so we get that ๐‘ฆ is equal to 24 divided by three, which is, of course, equal to eight.

We can do the same with the final entry in each of our two matrices, the entry in row one column three. In matrix ๐ด, this entry is two ๐‘ฅ minus ๐‘ง. And in matrix ๐ต, this entry is 10. And remember, weโ€™re told matrix ๐ด is equal to matrix ๐ต, so we must have these two entries equal. So we get two ๐‘ฅ minus ๐‘ง is equal to 10. Remember, we already showed earlier that if our two matrices are equal, ๐‘ฅ must be equal to three. So to help us find our value of ๐‘ง, weโ€™ll substitute ๐‘ฅ is equal to three into this equation. Substituting ๐‘ฅ is equal to three, we get two times three minus ๐‘ง is equal to 10. And we can just solve this equation for ๐‘ง. We add ๐‘ง to both sides and then subtract 10 from both sides of the equation. This gives us that ๐‘ง is equal to negative four. So this gives us that ๐‘ฅ is equal to three, ๐‘ฆ is equal to eight, and ๐‘ง is equal to negative four.

But remember, it can be very useful to substitute these values back into our matrix to check that our answer is correct. So letโ€™s substitute ๐‘ฅ is equal to three, ๐‘ฆ is equal to eight, and ๐‘ง is equal to negative four into our matrix ๐ด. Substituting these values in, we get that our matrix ๐ด is equal to negative 10 times three, three plus three times eight, two times three minus negative four. And if we evaluate each of these entries, we see we get negative 30, 27, 10. And each of these entries is exactly the same as we have in matrix ๐ต, so we know we have the right answer.

Therefore, if the matrix ๐ด is equal to negative 10๐‘ฅ, ๐‘ฅ plus three ๐‘ฆ, two ๐‘ฅ minus ๐‘ง and the matrix ๐ต is equal to negative 30, 27, 10, then for ๐ด to be equal to ๐ต, we must have that ๐‘ฅ is equal to three, ๐‘ฆ is equal to eight, and ๐‘ง is equal to negative four.

So letโ€™s now go over the key points of this video. We showed if we have two matrices, first the matrix ๐ด where the entry in row ๐‘– and column ๐‘— is given by ๐‘Ž ๐‘–๐‘— and second the matrix ๐ต, where the entry in row ๐‘– and column ๐‘— of ๐ต is given by ๐‘ ๐‘–๐‘—, then for these two matrices to be equal, we must have that ๐‘Ž ๐‘–๐‘— is equal to ๐‘ ๐‘–๐‘— for all of our values of ๐‘– and ๐‘—. Another way of saying this is all of the entries of our matrices must be identical. And this definition gave us some interesting properties.

For example, if for some ๐‘– and some ๐‘— we have that a ๐‘–๐‘— is not equal to ๐‘ ๐‘–๐‘—, then we can say the matrix ๐ด is not equal to the matrix ๐ต. In other words, we only needed one entry in row ๐‘– and column ๐‘— for both of our matrices to be unequal for our matrices to not be equal. Another consequence of this definition we showed is if our matrices ๐ด and ๐ต have different orders, then matrix ๐ด canโ€™t be equal to matrix ๐ต. And another way of saying this was to say that if our matrices have a different number of rows or a different number of columns, then they canโ€™t be equal.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy