The Wayback Machine - https://web.archive.org/web/20240915163908/https://www.geeksforgeeks.org/similar-matrix/
Open In App

Similar Matrix

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

A “matrix” is referred to as a rectangular array of numbers that are arranged in rows and columns. The horizontal lines are said to be rows, while the vertical lines are said to be columns. We can determine the size of a matrix by the number of rows and columns in it. If a matrix has “m” rows and “n” columns, then it is said to be an “m by n” matrix and is written as an “m × n” matrix.

Similar-Matrixy

Similar Matrix

For example, a matrix with five rows and three columns is a “5 × 3” matrix. We have various types of matrices, like rectangular, square, triangular, symmetric, singular, etc. In this article, we learn about similar matrices, their examples, and their properties.

Similar Matrices

Two square matrices A and B of the same order are said to be similar, if and only if there exists an invertible matrix “P” of the same order as A and B such that:

P-1AP = B

The transformation of the matrix A into “P-1AP” is called similarity transformation or conjugation by “P,” as we are transforming the matrix “A” into the matrix “B.” Here, the matrix “P” is known as the change-of-basis matrix. If two matrices A and B are said to be similar, then they are expressed as A ∼ B.

Examples of Similar Matrices

The matrices given below are similar matrices of order “2 × 2” through the invertible matrix P of the same order.

[Tex]A = \left[\begin{array}{cc} 2 & 4\\ 0 & -2 \end{array}\right]  [/Tex] and

[Tex]B = \left[\begin{array}{cc} 2 & 0\\ -4 & -2 \end{array}\right]  [/Tex] are similar matrices through the invertible matrix P.

[Tex]P = \left[\begin{array}{cc} 2 & -2\\ 2 & 2 \end{array}\right][/Tex]

[Tex]P^{-1} = \frac{1}{4+4}\left[\begin{array}{cc} 2 & 2\\ -2 & 2 \end{array}\right] =\frac{1}{8}\left[\begin{array}{cc} 2 & 2\\ -2 & 2 \end{array}\right][/Tex]

[Tex]P^{-1} AP = \frac{1}{8}\left[\begin{array}{cc} 2 & 2\\ -2 & 2 \end{array}\right] × \left[\begin{array}{cc} 2 & 4\\ 0 & -2 \end{array}\right] × \left[\begin{array}{cc} 2 & -2\\ 2 & 2 \end{array}\right][/Tex]

[Tex]P^{-1} AP = \frac{1}{8}\left[\begin{array}{cc} 2 & 2\\ -2 & 2 \end{array}\right]\times\left[\begin{array}{cc} 12 & 4\\ -4 & -4 \end{array}\right][/Tex]

[Tex]P^{-1} AP = \frac{1}{8}\left[\begin{array}{cc} 16 & 0\\ -32 & -16 \end{array}\right]= \left[\begin{array}{cc} 2 & 0\\ -4 & -2 \end{array}\right] = B[/Tex]

Properties of Similar Matrices

Following are some important properties of similar matrices A and B:

  • Ranks of two similar matrices are the same, i.e., the rank of A = rank of B.
  • Determinants of two similar matrices are the same, i.e., det (A) = det (B).
  • Trace of two similar matrices is the same, i.e., tr(A) = tr(B).
  • Eigenvalues of two similar matrices are the same, but their eigenvectors are normally different.
  • If A and B are two similar matrices, then An and Bn are also similar matrices.
  • A matrix and its transpose matrix are similar, i.e., A ∼ AT.
  • Two similar matrices, A and B, are said to have the same characteristic polynomial.
  • A matrix “A” is similar to itself, i.e., the similarity of matrices is reflexive.

A = I-1AI,

where the identity matrix “I” is the change-of-basis matrix.

  • If matrix A is similar to matrix B, then matrix B is said to be similar to matrix A, i.e., the similarity of matrices is symmetric.

P-1AP = B

A = PBP-1

  • If matrix A is similar to matrix B and matrix B is similar to matrix C, then matrix A is said to be similar to matrix C, i.e., the similarity of matrices is transitive.

Related Articles:

Solved Examples on Similar Matrices

Example 1: Find the matrix B if A and B are similar matrices. If

[Tex]A = \left[\begin{array}{cc} 1 & 2\\ 3 & -1 \end{array}\right][/Tex]

[Tex]P = \left[\begin{array}{cc} 0 & 1\\ 2 & 3 \end{array}\right]  [/Tex].

Solution:

We know that if A and B are similar matrices, then P-1AP = B.

P-1 = Adj P/|P|

|P| = 0 × 3 − (1 × 2) = -2

[Tex]Adj P = \left[\begin{array}{cc} 3 & -1\\ -2 & 0 \end{array}\right][/Tex]

[Tex]P^{-1} = \frac{1}{-2} \left[\begin{array}{cc} 3 & -1\\ -2 & 0 \end{array}\right][/Tex]

[Tex]B = P^{-1} AP[/Tex]

[Tex]B = \frac{1}{-2} \left[\begin{array}{cc} 3 & -1\\ -2 & 0 \end{array}\right]× \left[\begin{array}{cc} 1 & 2\\ 3 & -1 \end{array}\right]×\left[\begin{array}{cc} 0 & 1\\ 2 & 3 \end{array}\right][/Tex]

[Tex]B = \frac{1}{-2} \left[\begin{array}{cc} 3 & -1\\ -2 & 0 \end{array}\right]×\left[\begin{array}{cc} (0+4) & (1+6)\\ (0-2) & (3-3) \end{array}\right][/Tex]

[Tex]B = \frac{1}{-2} \left[\begin{array}{cc} 3 & -1\\ -2 & 0 \end{array}\right]×\left[\begin{array}{cc} 4 & 7\\ -2 & 0 \end{array}\right][/Tex]

[Tex]B = \frac{1}{-2} \left[\begin{array}{cc} 14 & 21\\ -8 & -14 \end{array}\right][/Tex]

[Tex]B = \left[\begin{array}{cc} \frac{14}{-2} & \frac{21}{-2}\\ \frac{-8}{-2} & \frac{-14}{-2} \end{array}\right][/Tex]

[Tex]B = \left[\begin{array}{cc} -7 & \frac{21}{-2}\\ 4 & 7 \end{array}\right][/Tex]

Example 2: Prove that the determinants of two similar matrices are the same.

Solution:

Let us consider two similar matrices A and B, to prove that their determinants are the same.

We know that if A and B are similar matrices, then P-1AP = B, where P is the change-of-basis matrix.

Now, det (B) = det (P-1AP)

⇒ det (B) = det (P-1) det (A) det (P)

We know that det (P-1) = 1/det (P)

So, det (B) = 1/det (P) × det (A) × det (P)

⇒ det (B) = 1 × det (A)

⇒ det (B) = det (A)

Hence, the determinants of two similar matrices A and B are the same.

Example 3: Prove that the matrix given below is similar to itself.

[Tex]A = \left[\begin{array}{ccc} 5 & 0 & 0\\ 0 & 3 & 0\\ 0 & 0 & 8 \end{array}\right][/Tex]

Solution:

To prove that a matrix is similar to itself, we have to prove that A = I-1AI,

where the identity matrix “I” is the change-of-basis matrix.

[Tex]I = \left[\begin{array}{ccc} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{array}\right][/Tex]

I-1 = Adj I/ det (I)

[Tex]I^{-1} =\frac{1}{1} \left[\begin{array}{ccc} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{array}\right]= \left[\begin{array}{ccc} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{array}\right][/Tex]

[Tex]I^{-1} AI = \left[\begin{array}{ccc} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{array}\right]×\left[\begin{array}{ccc} 5 & 0 & 0\\ 0 & 3 & 0\\ 0 & 0 & 8 \end{array}\right]× \left[\begin{array}{ccc} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{array}\right][/Tex]

[Tex]I^{-1} AI =\left[\begin{array}{ccc} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{array}\right]×\left[\begin{array}{ccc} 5 & 0 & 0\\ 0 & 3 & 0\\ 0 & 0 & 8 \end{array}\right][/Tex]

[Tex]I^{-1} AI = \left[\begin{array}{ccc} 5 & 0 & 0\\ 0 & 3 & 0\\ 0 & 0 & 8 \end{array}\right]= A[/Tex]

Hence proved.

Example 4: Verify whether the matrices given below are similar or not.

[Tex]A = \left[\begin{array}{cc} 2 & 3\\ -1 & 4 \end{array}\right] and B = \left[\begin{array}{cc} 4 & -7\\ 8 & 10 \end{array}\right][/Tex]

[Tex]P = \left[\begin{array}{cc} 1 & 2\\ 3 & 4 \end{array}\right]  [/Tex].

Solution:

To prove that two matrices are similar, we have to prove that B = P-1AP.

P-1 = Adj P/|P|

[Tex]P^{-1} = \frac{1}{(8-6)}\left[\begin{array}{cc} 4 & -2\\ -3 & 1 \end{array}\right][/Tex]

[Tex]P^{-1} = \frac{1}{2}\left[\begin{array}{cc} 4 & -2\\ -3 & 1 \end{array}\right][/Tex]

[Tex]P^{-1} AP = \frac{1}{2}\left[\begin{array}{cc} 4 & -2\\ -3 & 1 \end{array}\right]\times\left[\begin{array}{cc} 2 & 3\\ -1 & 4 \end{array}\right]\times\left[\begin{array}{cc} 1 & 2\\ 3 & 4 \end{array}\right][/Tex]

[Tex]P^{-1} AP = \frac{1}{2}\left[\begin{array}{cc} 4 & -2\\ -3 & 1 \end{array}\right]\times\left[\begin{array}{cc} 8 & 16\\ 11 & 14 \end{array}\right][/Tex]

[Tex]P^{-1} AP = \frac{1}{2}\left[\begin{array}{cc} (32-22) & (64-28)\\ (-24+22) & (-48+14) \end{array}\right][/Tex]

[Tex]P^{-1} AP = \frac{1}{2}\left[\begin{array}{cc} 10 & 36\\ -2 & -34 \end{array}\right][/Tex]

[Tex]P^{-1} AP = \left[\begin{array}{cc} 5 & 18\\ -1 & -17 \end{array}\right]≠B[/Tex]

As B ≠ P-1AP, A and B are not similar.

Similar Matrices – FAQs

What is matrix?

A “matrix” is referred to as a rectangular array of numbers that are arranged in rows and columns. The horizontal lines are said to be rows, while the vertical lines are said to be columns.

Define similar matrices.

Two square matrices A and B of the same order are said to be similar, if and only if there exists an invertible matrix “P” of the same order as A and B such that:

P-1AP = B

Are the determinants of two similar matrices the same?

Yes, two similar matrices A and B are said to have the same determinants, i.e., det (A) = det (B).

Conclusion

Similar matrices play a significant role in linear algebra by revealing that different matrices can represent the same linear transformation under different bases. Understanding matrix similarity helps in simplifying complex matrices through diagonalization and provides insight into their eigenvalues and eigenvectors making it easier to analyze and solve systems of linear equations.



Similar Reads

Why do all the Isotopes of an Element have similar Chemical Properties?
The fundamental building units of matter are atoms and molecules. The existence of many types of matter is due to the various atoms that contain them. The atom was no longer seen as a simple, indivisible unit by 1900. It did, however, contain at least one subatomic particle, the electron. J.J. Thomson was the one who discovered it. E Goldstein disc
6 min read
What are Differences between Similar triangles and Congruent Triangles?
Similar triangles and Congruent triangles are both concepts in geometry, but they have distinct differences: Definition: Similar triangles have the same shape but may differ in size. Congruent triangles, on the other hand, are identical in both shape and size.Size: In similar triangles, corresponding angles are equal, and corresponding sides are pr
1 min read
Similar Figures
Similar figures are two figures having the same shape. Similar figures can or can not have the same area. Congruent shapes are the shapes that are the same with the same areas. In this article, we will learn about, similar figures, properties of similar figures, related examples and others in detail. Table of Content What is Similarity in Maths?Wha
7 min read
Similar Triangles
Similar Triangles are triangles with the same shape but can have variable sizes. Similar triangles have corresponding sides in proportion to each other and corresponding angles equal to each other. Similar triangles are different from congruent triangles. Two congruent figures are always similar, but two similar figures need not be congruent. Two t
15+ min read
Areas of Similar Triangles Practice Questions
Similar triangles are triangles that have the same shape but not necessarily the same size and the area of similar triangles are related by the square of the ratio of their corresponding sides. In this article, we will learn about what similar triangles are along with a few solved examples and practice questions for better understanding. What are S
6 min read
Construction of Similar Triangles
The basic construction techniques allow the construction of perpendicular bisectors, angle bisectors, and so on. These basic techniques can be used for more complex constructions. These constructions are very essential for the designers who design buildings, roads, machines .. Etc. So, these techniques are very handy in real life. As the name sugge
8 min read
Are all Isosceles Triangles Similar?
No, not all isosceles triangles are similar. Let's discuss this question in detail. What are Isosceles Triangle?An isosceles triangle is a type of triangle that has two sides of equal length and two equal angles opposite those sides. The third side, called the base, is usually different in length, and the angle between the two equal sides is called
3 min read
How to find the Diagonal of a Matrix?
British Mathematician Arthur Cayley was the first person to develop the algebraic aspect of the matrix. After that, Psychiat Heisenberg used matrices as a tool to explain his famous Quantum principle. The study of matrices originated while solving different types of simple and complex linear problems, which is cumbersome to solve without matrices.
6 min read
Idempotent Matrix
A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. The size of a matrix can be determined by the number of rows and columns in it. A matrix is said to be an "m by n" matrix when it has "m" rows and "n" columns and is written as an "m × n" matrix. For example, a matrix of order "5 × 6" has five rows and six
6 min read
Involutory Matrix
Involutory Matrix is defined as the matrix that follows self inverse function i.e. the inverse of the Involutory matrix is the matrix itself. A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. The size of a matrix can be determined by the number of rows and columns in it. A matrix is said to be an "m by n"
6 min read
Cell-to-Matrix Interaction
The human body might seem like a strange structure. There are a lot of organs & components present in the human body. But those are not the complete background of the human body. There are several tiny elements are present in the body that helps to provide a body structure. There are millions of millions such elements present in each body. All
11 min read
Extracellular Matrix Proteins
The extracellular matrix can be understood as a suspension of macromolecules that aids in the maintenance of a complete organ as well as local tissue growth. All of these chemicals were secreted by nearby cells. The proteins will undergo scaffolding after being secreted. The transitory structures that form between individual proteins to create more
8 min read
Inverse of 2x2 Matrix
Inverse of a 2 × 2 Matrix is a matrix that, when multiplied by the original matrix, results in the identity matrix. It is an important concept in linear algebra and is used to find the solution of a system of linear equations. There are various methods of finding the inverse of the matrix which we will discuss further in the article. This article o
12 min read
Adjoint of a Matrix
Knowledge of matrices is necessary for various branches of mathematics. Matrices are one of the most powerful tools in mathematics. From matrices there come Determinants, Now we see one of the properties of the Determinant in this article. In this article, we see how to find the Adjoint of a Matrix. To know about the Adjoint of a Matrix we have to
13 min read
Determinant of 3×3 Matrix
Determinant is a fundamental concept in linear algebra used to find a single scalar value for the given matrix. This article will explain what is a 3 × 3 Matrix and how to calculate the Determinant of a 3 × 3 Matrix step by step, as well as, its applications. Whether you are a student learning linear algebra or an enthusiast seeking a deeper unders
13 min read
Inverse of 3x3 Matrix
Inverse of a 3 × 3 matrix is a matrix which when multiplied by the original Matrix gives the identity matrix as the product. Inverse of a Matrix is a fundamental aspect of linear algebra. This process plays a crucial role in solving systems of linear equations and various mathematical applications. To calculate the inverse, it is required to calcul
11 min read
Column Matrix
A rectangular array of numbers that are arranged in rows and columns is known as a "matrix." The size of a matrix can be determined by the number of rows and columns in it. If a matrix has "m" rows and "n" columns, then it is said to be an "m by n" matrix and is written as an "m × n" matrix. For example, if a matrix has five rows and three columns,
7 min read
Row Matrix
Row Matrix: A rectangular array of numbers that are arranged in rows and columns is known as a "matrix." The size of a matrix can be determined by the number of rows and columns in it. If a matrix has "m" rows and "n" columns, then it is said to be an "m by n" matrix and is written as an "m × n" matrix. In mathematics, a row matrix is a matrix char
7 min read
Identity Matrix
Identity Matrix is a square matrix whose all diagonal elements are equal to 1 and rest all elements are zero. Identity Matrix is also known as Unit Matrix. In simple terms, all diagonal elements are equal to 1 and rest are zero. The main condition for Identity matrix is that it should be a square matrix i.e. the no of rows should be equal to zero.
6 min read
Transformation Matrix
Transformation matrices are the core notions in linear algebra and these can help make advancements in many areas including computer graphics, image processing, and so on. Zero vectors and the corresponding unit vectors provide a compact and generalized manner of applying transformations to vectors or points in a coordinate system. In this article,
10 min read
Determinant of 4x4 Matrix | Examples and How to Find
Determinant of 4x4 Matrix: Determinant of a Matrix is a fundamental concept in linear algebra, essential for deriving a single scalar value from the matrix. 4x4 is a square matrix with 4 rows and 4 columns whose determinant can be found by a formula which we will discuss. This article will explore the definition of a 4 × 4 matrix and guide through
15+ min read
Methods to Find Inverse of a Matrix
Methods to find the inverse of a matrix involve the inverse of a matrix formula and by elementary operations. The inverse of matrix A is represented as A-1 which when multiplied by matrix A gives an identity matrix. In this article, we will explore different methods to find the inverse of a matrix in detail along with the inverse of matrix definiti
10 min read
Orthogonal Matrix
A Matrix is an Orthogonal Matrix when the product of a matrix and its transpose gives an identity value. An orthogonal matrix is a square matrix where transpose of Square Matrix is also the inverse of Square Matrix. Orthogonal Matrix in Linear Algebra is a type of matrices in which the transpose of matrix is equal to the inverse of that matrix. As
11 min read
Nilpotent Matrix
Nilpotent Matrices are special types of square matrices, they are special because the product of a Nilpotent Matrix with itself is equal to a null matrix. Let's take a square matrix A of order n × n it is considered a nilpotent matrix if Ak = 0. Here k is always less than equal to n.  In this article, we will learn about the Nilpotent Matrix in det
7 min read
Methods to Find Rank of a Matrix
To find the rank of a matrix find the highest order of the non-zero minor within the matrix. Rank of a matrix in the number that represents the number of non-zeros rows or columns in the matrix. If the rank of the matrix is r then the matrix contains at least one minor with order r and the minors with order greater than r is zero. The second method
12 min read
Unitary Matrix
Unitary Matrix: Unitary Matrices are defined as square matrices of complex numbers such that the product of the conjugate transpose of a unitary matrix, with the unitary matrix itself, gives an identity matrix. Matrices are defined as rectangular arrays in which numbers are arranged in rows and columns. Number of rows and columns determined the siz
5 min read
Zero Matrix
A zero matrix, or null matrix, is a matrix whose all elements are zeros. A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. The size of a matrix can be determined by the number of rows and columns in it. A matrix is said to be an "m by n" matrix when it has "m" rows and "n" columns and is written as an "m ×
6 min read
Augmented Matrix
Augmented Matrix is a matrix that is formed when we combine the columns of two matrices and thus, form a new matrix. The new matrix so formed is called the Augmented Matrix. An Augmented Matrix is important to solve various types of problems in mathematics especially those which involve the use of equations. This article deals with the concept of a
10 min read
Matrix Multiplication Practice Questions
A matrix is a set of numbers arranged in rows and columns to form a rectangular array. Multiplying a matrix by another matrix is called "matrix multiplication". In this article, we will learn what matrix multiplication is. And practice some questions related to it. What is Matrix Multiplication?In linear algebra, a matrix is an arrangement of eleme
5 min read
Square Matrix
Square Matrix: A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. A square matrix is characterized by having the same number of rows as columns. It's referred to as an m x m matrix, indicating that it is a square matrix of order ?m. When two square matrices are either multiplied or added, the resultant matr
9 min read