Lesson Explainer: Equal Matrices | Nagwa Lesson Explainer: Equal Matrices | Nagwa

Lesson Explainer: Equal Matrices Mathematics • First Year of Secondary School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

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

Given that linear algebra is different to conventional algebra, it is no surprise that there are fundamentally different concepts involved. Ideas such as the order, type, and transpose simply do not appear in conventional algebra. In conventional algebra, two quantities are equal if they have the same value. For example, if we have 𝑥=5 and 𝑦=5 then we can say that the two quantities are equal and hence write 𝑥=𝑦.

Alternatively, if we have 𝑎=5 and 𝑏=10 then clearly these quantities are not equal and we would write 𝑎𝑏. However, these quantities are related and one such example is to say that 𝑎=12𝑏 or, equivalently, that 𝑏=2𝑎. This is not the only relationship between 𝑎 and 𝑏 in this case, since we could also say that 𝑎=𝑏+15 or something more convoluted such as 𝑎=120𝑏. We could invent infinitely many such relationships, so long as both sides of the equation have the same value.

In order for linear algebra to be well defined, we need to have a definition of equality, which will allow for us to describe relationships between matrices. The notion of equality in conventional algebra is as we have described above, but for linear algebra we need to consider that matrices have multiple entries and therefore our definition of equality has to respect this.

Definition: Equality of Two Matrices

Consider two matrices, 𝐴 with order 𝑚×𝑛 and 𝐵 with order 𝑝×𝑞, described by their entries as follows: 𝐴=𝑎,𝐵=𝑏.

Then, we say that the two matrices are equal, that is, 𝐴=𝐵, if their dimensions are equal and the corresponding entries are identical. In other words, the following two conditions must be satisfied: 𝑚=𝑝,𝑛=𝑞,𝑎=𝑏,𝑖,𝑗.forall

Conversely, if 𝑚𝑝 or 𝑛𝑞, or there are any 𝑖 and 𝑗 such that 𝑎𝑏, then the two matrices are not equal; that is, 𝐴𝐵.

We note that this definition of equality is clearly more strict than a regular equality of the form 𝑎=𝑏, since we need to check both the dimensions of the matrices and all of the entries in each matrix for equality. In particular, even if all possible pairs of entries are equal, if the dimensions are not also equal, then the matrices cannot be equal. We will demonstrate this in the following example.

Example 1: Conditions for the Equality of Matrices

Given that 𝐴=333333,𝐵=3333, is it true that 𝐴=𝐵?

Answer

The matrices 𝐴 and 𝐵 can be written as 𝐴=𝑎,𝐵=𝑏.

Recall that in order for two matrices to be equal, both their dimensions and their entries must be equal. In this case, we notice that some of the pairs of entries are equal. For instance, we have 𝑎=𝑏=3,𝑎=𝑏=3,𝑎=𝑏=3,𝑎=𝑏=3.

However, the orders of the matrices are not equal. Matrix 𝐴 has two rows and three columns, so it is a 2×3 matrix, while matrix 𝐵 has two rows and two columns, making it a 2×2 matrix. We circle this extra column below:

As the orders of these matrices are not equivalent, it is not true that 𝐴=𝐵.

Note that two matrices having the same order is a necessary condition for equality but it is not a sufficient condition. Just because two matrices share the same order, it does not mean that they are automatically equal. This is very straightforward to demonstrate with the two matrices below:

These matrices both have 3 rows and 4 columns and are therefore both of order 3×4. These are also both very simple matrices, with every entry being zero except for 𝑎, which we have highlighted. However, given that 𝑎𝑏, these matrices are not equal and therefore we write 𝐴𝐵.

Example 2: Identifying Equality of Matrices

If 𝐴=5373,𝐵=5373, is it true that 𝐴=𝐵?

Answer

Recall that to check whether two matrices are equal, we have to confirm that they have the same order and that 𝑎=𝑏 for all 𝑖 and 𝑗.

These two matrices both have order 2×2, so to check for equality we will have to check every entry. In the matrices below, we have highlighted every entry in a different color to provide an easy comparison: 𝐴=5373,𝐵=5373.

Comparing the top left entries, we find that 𝑎=𝑏=5, and comparing the bottom left entries, we get 𝑎=𝑏=7. However, examining the entries in the top right, we find that 𝑎=3, while 𝑏=3; hence 𝑎𝑏. Similarly, in the bottom right, we can see that 𝑎=3, while 𝑏=3, so 𝑎𝑏. As these matrices do not satisfy the condition of 𝑎=𝑏 for all 𝑖,𝑗, they are not equal.

When working with larger matrices, the same principle applies in exactly the same way, only with a larger number of comparisons to be made. In practice, rather than writing down every single comparison, we would inspect the two matrices to find any difference between pairs of entries. For example, consider the two matrices of order 3×3: 𝐴=214320152,𝐵=214310152.

Given that these matrices do have the same order, we then look for pairs of entries which differ: 𝐴=214320152,𝐵=214310152.

We have that 𝑎𝑏 and that 𝑎𝑏, which gives two reasons why 𝐴𝐵.

Example 3: Solving Equations Using Matrix Equality

Given that 3𝑥3310𝑦1=03105𝑦5, find the values of 𝑥 and 𝑦.

Answer

We recall that for two matrices to be equal, given that they have the same order, we must have that 𝑎=𝑏 for all 𝑖 and 𝑗.

We begin by highlighting all of the entries that we must compare: 3𝑥3310𝑦1=03105𝑦5.

There are two pairs of entries that are clearly equal in both matrices, namely, that 𝑎=𝑏=3 and that 𝑎=𝑏=10.

To ensure that these matrices are equal, we set 𝑎=𝑏, which implies that 3𝑥3=0, giving 𝑥=1. We now set 𝑎=𝑏 which gives 𝑦1=5𝑦5 and hence 𝑦=1. Thus, the final matrix is 03100, and 𝑥=1, 𝑦=1.

The question above shows how the condition on matrix equality is very restrictive. The matrices in the previous question were both of order 2×2 and hence had 4 entries each. Immediately, we could observe that two pairs of entries were identical across both matrices. Even though we had found two instances of equality, we still had to check two remaining pairs of entries. Had either of these pairs of entries been unequal, the matrices would not have been equal, by definition.

The following two examples demonstrate how equality between matrices might rely on the correct calculation of multiple variables.

Example 4: Solving Equations Using Matrix Equality

Find the values of 𝑥 and 𝑦, given the following: 10𝑥+10239=2022𝑦+99.

Answer

Let us, first of all, recall that for two matrices to be equal, if we know that they have the same order, then 𝑎=𝑏 for all 𝑖 and 𝑗.

We highlight each pair of entries as shown: 10𝑥+10239=2022𝑦+99.

Clearly we already have 𝑎=𝑏=2 and 𝑎=𝑏=9, so there are no further checks needed for these entries.

By setting 𝑎=𝑏, we obtain the equation 10𝑥+10=20. Solving this for 𝑥, we get 10𝑥=10𝑥=1𝑥=±1.

By setting 𝑎=𝑏, we have 3=2𝑦+9, implying that 𝑦=6. In summary, 𝑥=±1 and 𝑦=6.

Example 5: Solving Equations Using Matrix Equality

Given that 𝑎+𝑏𝑎𝑏𝑎+𝑏+𝑐𝑎7𝑏𝑑=317564, determine the values of 𝑎,𝑏,𝑐, and 𝑑.

Answer

Recall that for two matrices of the same order, they are only equal if all their corresponding entries are equal. Thus, we can make the comparison for each entry: 𝑎+𝑏𝑎𝑏𝑎+𝑏+𝑐𝑎7𝑏𝑑=317564, which gives the system of linear equations 𝑎+𝑏=3,𝑎𝑏=17,𝑎+𝑏+𝑐=5,𝑎7𝑏𝑑=64.

We notice that the first two equations, 𝑎+𝑏=3 and 𝑎𝑏=17, can be added together to eliminate the 𝑏 term. This gives us 2𝑎=20𝑎=10.

Substituting this value of 𝑎 into the first equation (although the second can also be used), we get 10+𝑏=3𝑏=7.

Now that we have found 𝑎 and 𝑏, we notice that we can solve 𝑎+𝑏+𝑐=5 for 𝑐. This gives us 10+7+𝑐=5𝑐=2.

Finally, we can find 𝑑 from the last equation, 𝑎7𝑏𝑑=64: 107×7𝑑=64𝑑=5𝑑=5.

In summary, we get 𝑎=10, 𝑏=7, 𝑐=2, and 𝑑=5.

In a superficial sense, checking for matrix equality is nothing more than checking for multiple separate instances of equality across all of the matrix entries. Ultimately, this bland assessment is a totally accurate one, as the definition of matrix equality does indeed require comparing all entries of the two matrices involved. However, the situation changes when we are working with matrices that have entries which are populated to some extent by variables, as well as numbers. This flexibility, when combined with other operations from linear algebra (such as matrix multiplication, matrix exponentiation, and matrix inversion), allows for more elaborate mathematical problems to be constructed, as we have seen above. For example, once matrix multiplication has been well defined, it is possible to encode entire systems of linear equations in terms of simple matrix equations, providing a powerful and concise language for working with such advanced concepts. Although defining matrix equality might seem unnecessary or trivial, it is of crucial importance for understanding linear algebra and the many indispensable mathematical tools that this area has provided.

Key Points

  • Consider two matrices, 𝐴 with order 𝑚×𝑛 and 𝐵 with order 𝑝×𝑞, described by their entries as follows: 𝐴=𝑎,𝐵=𝑏. Then, 𝐴=𝐵 if and only if 𝑚=𝑝,𝑛=𝑞,𝑎=𝑏,𝑖,𝑗.forall
  • Matrix equality is a strict condition. If there are any 𝑖 and 𝑗 such that 𝑎𝑏, then 𝐴𝐵.
  • Additionally, if 𝐴 and 𝐵 are of different orders, then 𝐴𝐵.
  • We can find missing values that make two matrices equal by forming and solving equations.

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