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.