The Wayback Machine - https://web.archive.org/web/20240823094408/https://www.geeksforgeeks.org/how-to-solve-equality-of-matrices/
Open In App

How to solve Equality of Matrices?

Last Updated : 21 Aug, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Answer: let us consider two matrices, A = [aij] and B = [bij]. Now, the two matrices A and B are said to be equal if and only if the order of both matrices is the same and also their corresponding elements are equal, i.e., aij = bij for all i and j.

The equality of matrices is a mathematical concept where two or more matrices are equal when compared. Before learning the concept of equality of matrices, we need to know what a matrix is. A rectangle or square-shaped array of numbers or symbols organized in rows and columns to represent a mathematical object or one of its attributes is called a matrix in mathematics. The horizontal lines are said to be rows, while the vertical lines are said to be columns.  For example, [Tex]\begin{vmatrix}{a}&b&c\\p&q&r\\s&t&u\end{vmatrix} [/Tex] is a matrix with 3 rows and 3 columns. It can be called a “3 by 3” matrix and is a square matrix. On the other hand, [Tex]\begin{vmatrix}{a}&b&c\\p&q&r\end{vmatrix} [/Tex] is a “2 by 3” matrix and is a rectangular matrix.

What is Equality of Matrices?

When two or more matrices are equal, it is referred to as the equality of matrices. Matrices are considered to be equal if they have the same number of rows and columns, as well as the same number of elements. Equality of matrices does not hold for either of the previously mentioned conditions. The two matrices are said to be unequal if the order of the matrices is not equal or at least one pair of the corresponding elements is not equal. This concept is relevant for both- rectangular and square matrices.

Conditions for Equality Matrices

The equality of matrices is a concept of matrices that are defined by comparing two or more matrices that have the same dimensions and all the same corresponding elements. If “A = [aij]m×n” and “B = [bij]p×q” are two matrices, then the following are three requirements for matrix equality for matrices:

  • The number of rows in matrices A and B is the same, i.e., m = p.
  • The number of columns in matrices A and B is the same, i.e., n = q.
  • For any i and j, the corresponding elements of A and B are equal, i.e., aij = bij.

Example:

Say [Tex]\begin{vmatrix}{3}&2&4\\a&6&z\end{vmatrix}=\begin{vmatrix}{3}&2&4\\69&6&420\end{vmatrix}    [/Tex]. Find the values of a and z.

Because the order of the two matrices is equal, matrices are equal if and only if their corresponding elements are likewise equal.

Thus, comparing a and c to the corresponding elements of the other matrix, we have a = 69 and z = 420.

Solving Equality of Matrices

We have learned what is meant by the equality of matrices and also the conditions that are required for the equality of matrices. Now, let us solve the equality of matrices. For example, let us consider two matrices, A = [aij] and B = [bij]. Now, the two matrices A and B are said to be equal if and only if the order of both matrices is the same and also their corresponding elements are equal, i.e., aij = bij for all i and j.

First, let us consider two equal matrices A and B.

[Tex]A = \left[\begin{array}{cc} 7 & 2a+3b\\ 1 & 8 \end{array}\right] and B = \left[\begin{array}{cc} 7 & 5\\ a+b & 8 \end{array}\right][/Tex]

As the given matrices are equal, so A = B.

[Tex]\left[\begin{array}{cc} 7 & 2a+3b\\ 1 & 8 \end{array}\right] = \left[\begin{array}{cc} 7 & 5\\ a+b & 8 \end{array}\right][/Tex]

We can see that the order of the given matrices is equal, so the equality of matrices holds if and only if the corresponding elements are also equal.

So, 2a + 3b = 5 ⇢ (1)

a + b = 1 ⇢ (2)

a = 1 − b ⇢ (3)

Now, substitute the value of a = 1 − b in equation (1)

⇒ 2 (1 − b) + 3b = 5

⇒ 2 − 2b + 3b = 5

⇒ 2 + b = 5

⇒ b = 5 − 2 = 3

Now, substitute the value of b =3 in equation (3)

⇒ a = 1 − 3 = −2

Thus, the given matrices are said to be equal if a = −2 and b =3.

Sample Problems

Problem 1: Are the matrices [Tex]\left[\begin{array}{ccc} 2 & 3 & 6 \\ 4 & 5 & 7 \\ 1 & -3 & -12 \end{array}\right]    [/Tex] and [Tex]\left[\begin{array}{ccc} -1 & 3 & 6 \\ 4 & 5 & 7 \\ 1 & -3 & -12 \end{array}\right]    [/Tex] equal?

Solution:

The given matrices have the same order, which means they have the same number of rows and columns. As a result, the first criterion for matrix equality has been met. The first condition of equality of matrices is fulfilled. Now the second condition, i.e., the corresponding elements must be equal needs to be examined. As can be seen, the element in the first row and first column of the first matrix is 2 in the first matrix and -1 in the second matrix, indicating that not all the elements are equal. 

Hence the two matrices are not equal.

Problem 2: Find the values of a, b, x if A = [a+b   6   8   2x   3b] and B = [3   6   8   14   9] are equal.

Solution:

Since A and B are given to be equal matrices, therefore their corresponding elements are also equal. We have

a + b = 3, 2x = 14, 3b = 9

⇒ x = 24/2 = 12, b = 9/3 = 3

⇒ a + 3 = 3 [From b = 3]

⇒ a = 0

⇒ a = 0, b = 3, x = 7

Problem 3: If [Tex]\left[\begin{array}{ccc} 3x+4y & x-2y & 6 \\ a+b & -3 & 2a-b \end{array}\right] = \left[\begin{array}{ccc} 2 & 4 & 6 \\ 5 & -3 & -5 \end{array}\right]     [/Tex], find the values of a, b, x and y.

Solution:

3x + 4y = 2, ⇢ (1)

x – 2y = 4, ⇢  (2)

a + b = 5, ⇢  (3)

2a – b = -5 ⇢  (4)

Solving equations (1) and (2), 

x = 2y + 4 [From (2)]

Substituting the above in (1),

3(2y + 4) + 4y = 2

⇒ 6y + 12 + 4y = 2

⇒ 10y = 2 – 12

⇒ 10y = -10

⇒ y = -1

⇒ x = 2(-1) + 4

= -2 + 4

= 2

Similarly, solving equations (3) and (4), we have a = 0 and b = 5.

Problem 4: From the definition of the equality of matrices, determine whether the matrices given below are equal or not.

[Tex]M = \left[\begin{array}{cc} 21 & 15\\ 3 & 5\\ 8 & 16 \end{array}\right] and N = \left[\begin{array}{cc} 21 & 15\\ 3 & 7\\ 8 & 16 \end{array}\right][/Tex]

Solution:

The order of the given matrices M and N is “3 × 2,” i.e., they have 3 rows and 2 columns. So, both matrices have the same number of rows and columns. So, the first two conditions for the equality of matrices are satisfied.

Now, let us check the corresponding elements of the given two matrices. We can see that the element in the second row and second column of the matrix M is 5, whereas the matrix N is 7. As 3 ≠ 7, the given matrices do not follow the third condition, i.e., the corresponding elements of the given matrices must be the same.

Therefore, the given matrices M and N are not equal.

Problem 5: If A and B are equal matrices, and A = [6 -12 18 24], then what is matrix B?

Solution:

Given that, A and B are equal matrices.

The order of matrix A is “1 × 4.”

So, the order of the matrix B must be the same, i.e., “1 × 4.”

We know that the equality of matrices holds for those that have the same dimensions and all the same corresponding elements.

Now, the required matrix B = [6 -12 18 24].

Problem 6: If [Tex]\left[\begin{array}{ccc}3& x+y\\x-y&5\end{array}\right]=\left[\begin{array}{ccc}3&-7\\2&5\end{array}\right]  [/Tex], find the values of x and y.

Since A and B are given to be equal matrices, therefore their corresponding elements are also equal. We have

x + y = -7

x – y = 2

Adding the two equations, we have:

2x = -5

x = -5/2

So -5/2 -2 = 7

y = 9/2

Problem 7: Are the matrices [Tex]\left[\begin{array}{ccc} 1 & 2 & 3 \\ 8 & 4 & 6 \\ 4 & 5 & 7 \end{array}\right]  [/Tex] and [Tex]\left[\begin{array}{ccc} 1 & 2 & 3 \\ 8 & 5 & 6 \\ 4 & 5 & 7 \end{array}\right][/Tex] equal?

Solution:

The given matrices have the same order, which means they have the same number of rows and columns. As a result, the first criterion for matrix equality has been met. The first condition of equality of matrices is fulfilled. Now the second condition, i.e., the corresponding elements must be equal needs to be examined. As can be seen, the element in the second row and second column of the first matrix is 4 in the first matrix and 5 in the second matrix, indicating that not all the elements are equal.

Hence the two matrices are not equal.

FAQs on Equality of Matrices

What is the Equality of Matrices?

The equality of matrices is a concept of matrices that is defined by comparing two or more matrices that have the same dimensions and all the same corresponding elements.

What are the conditions for the Equality of Matrices?

The following are necessary conditions that are required for the equality for matrices A = [aij]m×n and B = [bij]p×q to be true:

Matrices A and B must have the same number of rows, i.e., m = p.
Matrices A and B must have the same number of columns, i.e., n = q.
The corresponding elements of matrices A and B must be equal, i.e., aij = bij for all i and j.

How to prove that two matrices are equal?

To prove that two matrices are equal, we have to prove that the order of the given matrices is equal, i.e., the same number of rows and columns, and also the corresponding elements are also equal.

How can we solve the equality of matrices?

Two equal matrices can be solved by comparing their corresponding elements. If there are any unknown variables, then solve them by equating them with the corresponding elements in the other matrix.

Related Articles:



Similar Reads

How to Solve a System of Equations using Inverse of Matrices?
In mathematics, a matrix is an array of numbers arranged in a rectangular pattern and separated into rows and columns. They're commonly depicted by enclosing all of the integers within square brackets. In this article, we will discuss how to solve a system of equations using the inverse of matrices in detail. Table of Content DeterminantMinors and
13 min read
Recognizing Dignity - On Equality
The right to equality and pride implies that being brought into the world as a human naturally concedes you the right to nobility and rights. Freedom and Equality are the two most important rights of individuals. Equality and Dignity comprise two fundamental mainstays of a majority rules system. At the point when people are dealt with inconsistent,
5 min read
Women's Work and Equality
One's identity is greatly influenced by whether or not one becomes a boy or a girl. The culture in which we are raised teaches us what other types of conduct are appropriate for boys and girls as well as what boys and girls may and cannot do. We have been trained to think that these things apply to all people. In addition, we'll discuss how the div
3 min read
Issues of Equality in Other Democracies
In numerous vote-based nations all over the planet, the issue of equity keeps on being the main point of contention around which networks battle. For instance, in the United States of America, the African-Americans whose precursors were slaves who were brought over from Africa, keep on depicting their lives today as generally inconsistent. They wer
4 min read
Class7 : Chapter 9 Struggles for equality- The Indian constitution as a living document
"Injustice Anywhere is a Threat to Justice Everywhere."This is one of the most famous and historical quotes given by the civil rights leader Martin Luther King. In his iconic speech I Havefor a Dream which he delivered in 1963 he said, "A dream of equality of opportunity, of privilege and property widely distributed; a dream of a land where men wil
5 min read
Equality in Indian Democracy
Democracy is a political framework in which people directly exercise power or elect individuals to represent the people, such as a parliament. It is also known as majority rule, and authority cannot be inherited here. People vote for representatives. Representatives run in elections, and people choose their representatives. India became a democrati
8 min read
What are the different types of Equality?
Equality: Liberty and equality are two of the most fundamental keywords of democracy and the Indian constitution. In the case of India, both liberty and equality are mentioned in the Preamble of the Constitution and equality is one of the four primary keywords of polity in India, followed by other important terms like Justice, Liberty, and Fraterni
7 min read
Class 11 Polity Chapter 1: Right to Equality
Consider two scenarios: one where a tea shop serves different cups to individuals based on their caste, and another where female newsreaders are barred from presenting news due to their age while their male counterparts face no such restriction. These instances highlight clear cases of discrimination based on caste and gender, respectively. Such di
5 min read
NCERT Class-11 Solutions Political Science Chapter-3: Equality
Equality: Class-11 NCERT Solution discusses that the concept of equality implies that all people, as human beings, are entitled to the same rights and opportunities to develop their skills and talents and to pursue their goals and ambitions. This means that in a society people may differ with regard to their choices and preferences. These NCERT Sol
9 min read
Multiplication Property of Equality
Multiplication Property of Equality is when two sides of an equation are multiplied by the same value, and equality will remain true. It is one of the many properties of equality such as Addition, Subtraction, Division, Reflexive, Transitive, etc. In this article, we will discuss the Multiplication Property of Equality in detail including its defin
5 min read
Properties of Equality
Properties of Equality are fundamental rules governing equations in mathematics. We have various types of properties of equality in math to solve algebraic and other mathematical problems. Some of the common properties for equality are addition property, subtraction property, multiplication property, division property, transitive property, etc. In
9 min read
Subtraction Property of Equality
Subtraction Property of Equality is one of the many properties of equality. In this property, if two quantities a and b, are equal and we remove c from each of them, then the difference between a and c equals the difference between b and c. In this article, we will focus on the subtraction property of equality and its various related terms. Table o
6 min read
Inverse of a Matrix by Elementary Operations - Matrices | Class 12 Maths
The Gaussian Elimination method is also known as the row reduction method and it is an algorithm that is used to solve a system of linear equations. It is usually understood as a sequence of operations performed on the corresponding matrix of coefficients. This algorithm is used to find : The rank of a matrix.The determinant of a matrix.The inverse
5 min read
Class 12 NCERT Solutions - Mathematics Part I - Chapter 3 Matrices - Exercise 3.3
Question 1. Find the transpose of each of the following matrices: (i) [Tex]\begin{bmatrix}5 \\\frac{1}{2} \\-1 \end{bmatrix} [/Tex] (ii) [Tex]\begin{bmatrix}1 & -1 \\2 & 3 \\\end{bmatrix}[/Tex] (iii) [Tex]\begin{bmatrix}-1 & 5 & 6\\ \sqrt{3} & 5 & 6\\2 & 3 & -1\end{bmatrix}[/Tex] Solution: (i) Let A =[Tex]\begin{bmat
12 min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 3 Matrices - Exercise 3.2
Question 1. Let [Tex]A =\begin{bmatrix}3 & 4 \\3 & 2 \\\end{bmatrix},B=\begin{bmatrix}1 & 3 \\-2 & 5 \\\end{bmatrix}, C=\begin{bmatrix}-2 & 5 \\3 & 4 \\\end{bmatrix} [/Tex] Find each of the following: (i) A + B (ii) A - B (iii) 3A - C (iv) AB (v) BA Solution: (i) [Tex]A+B=\left[\begin{array}{ll} 2 & 4 \\ 3 & 2 \end{a
15+ min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 3 Matrices - Exercise 3.2 | Set 2
Content of this article has been merged with Chapter 3 Matrices- Exercise 3.2 as per the revised syllabus of NCERT. Question 11. If [Tex]x\left[\begin{array}{l} 2 \\ 3 \end{array}\right]+y\left[\begin{array}{c} -1 \\ 1 \end{array}\right]=\left[\begin{array}{l} 10 \\ 5 \end{array}\right] [/Tex], find the values of x and y. Solution: Given: [Tex]x\le
14 min read
Symmetric and Skew Symmetric Matrices
Symmetric and Skew Symmetric Matrices are the types of square matrices based on the relation between a matrix and its transpose. These matrices are one of the most used matrices out of all the matrices out there. Symmetric matrices have use cases in optimization, physics, and statistics, whereas skew-symmetric matrices are used in subjects such as
10 min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 3 Matrices - Exercise 3.4 | Set 1
Using elementary transformations, find the inverse of each of the matrices, if it exists in Exercises 1 to 6.Question 1.[Tex]\left[\begin{array}{rr} 1 & -1 \\ 2 & 3 \end{array}\right][/Tex] Solution: [Tex]\begin{aligned} &\text { Since we know that, } A= IA \Rightarrow\left[\begin{array}{cc} 1 & -1 \\ 2 & 3 \end{array}\right]=\l
8 min read
NCERT Solutions Class 12 - Mathematics Part I - Chapter 3 Matrices - Exercise 3.4
Question 1. Matrices A and B will be inverse of each other only if:(A) AB = BA (B) AB = BA = 0 (C) AB = 0, BA = I (D) AB = BA = I Solution: According to the definition of inverse of square matrix, Option (D) is correct i.e. AB=BA=I FAQs on MatricesWhat is a matrix?A matrix is a rectangular array of numbers, symbols, or expressions, arranged in rows
2 min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 3 Matrices - Miscellaneous Exercise on Chapter 3
Question 1: Let [Tex]A =\begin{bmatrix} 0 & 1\\ 0 & 0 \end{bmatrix} [/Tex], show that (aI + bA)n = an I + nan – 1 bA, where I is the identity matrix of order 2 and n ∈ N. Solution: Using mathematical induction, Step 1: Let's check for n=1 (aI + bA)n = (aI + bA)1 = (aI + bA) anI + nan – 1 bA = aI + 1a1 – 1 bA = (aI + bA) It is true for P(1)
12 min read
NCERT Solutions Class 12 - Mathematics Part I - Chapter 3 Matrices - Miscellaneous Exercise on Chapter 3
Question 1. If A and B are symmetric matrices, prove that AB – BA is a skew-symmetric matrix.Solution: As, it is mentioned that A and B are symmetric matrices, A' = A and B' = B (AB – BA)' = (AB)' - (BA)' (using, (A-B)' = A' - B') = B'A' - A'B' (using, (AB)' = B'A') = BA - AB (AB – BA)' = - (AB - BA) Hence, AB – BA is a skew symmetric matrix Questi
8 min read
Subtraction of Matrices
Subtraction of matrices is addition of the negative of a matrix to another matrix which means A - B = A + (-B). The subtraction of the matrix is subtracting the corresponding row-column element of one matrix with same row-column element of another matrix. In this article we will explore subtraction of matrices in detail. We will also solve some exa
6 min read
Practice Questions on Subtraction of Matrices
Subtraction of Matrices is one of the operations that are performed between two matrices. It is similar to addition of matrices. This article provides practice questions on subtraction of matrices along with solved examples and concepts related to it. This article serves as a one stop solution for practicing problems related to subtraction of matri
11 min read
Types of Matrices
Types of Matrices classify matrices into different categories based on the number of rows and columns present in them, the position of the elements, and also the special properties exhibited by the Matrix. A matrix is a rectangular array of numbers in which elements are arranged in rows and columns. Each element is identified as aij where i and j i
15+ min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 3 Matrices - Exercise 3.1
In this article, we will be going to solve the entire Miscellaneous Exercise 3.1 of Chapter 3 of the NCERT textbook. A matrix is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns. The numbers, symbols, or expressions in the matrix are called elements or entries. Matrices are used in various fields of mathematics,
11 min read
Applications of Matrices and Determinants
Applications of Matrices and Determinants: One application of matrices and determinants is that they can be used to solve linear equations in two or three variables. Matrices and determinants are also used to check the consistency of any system, whether they are consistent or not. This is the most useful application of matrices and determinants. In
6 min read
Representation of Relation in Graphs and Matrices
Representation of Relations in Graphs and Matrices: Understanding how to represent relations in graphs and matrices is fundamental in engineering mathematics. These representations are not only crucial for theoretical understanding but also have significant practical applications in various fields of engineering, computer science, and data analysis
5 min read
Practice Questions on Matrices
Matrices are rectangular arrays of numbers, symbols, or characters where all of these elements are arranged in each row and column. An array is a collection of items arranged at different locations. Mastering matrices is crucial for anyone studying advanced mathematics, computer science, or engineering. This article provides a comprehensive set of
10 min read
Elementary Operations on Matrices
Elementary Operations on Matrices are the operations performed on the rows and columns of the matrix that do not change the value of the matrix. A matrix is a way of representing numbers in the form of an array, i.e. the numbers are arranged in the form of rows and columns. In a matrix, the rows and columns contain all the values in the cell. We re
9 min read
Addition of Matrices Worksheet : Solved and Unsolved
Addition of Matrices Worksheet will help students grasp the concept of matrix addition, improve their problem-solving skills, and prepare them for more advanced topics in mathematics. Matrices are a fundamental concept in mathematics, particularly in linear algebra. They are rectangular arrays of numbers arranged in rows and columns. One common ope
10 min read