Commuting matrices

On this post we explain what commuting matrices are. In addition, you will see examples to perfectly understand the concept and, finally, you will find an exercise solved step by step in which we show how to calculate all matrices that commute with any matrix.

What are commuting matrices?

The meaning of commuting matrices is as follows:

Two matrices commute if the result of their product does not depend on the order of multiplication. That is, commuting matrices meet the following condition:

  \displaystyle A \cdot B = B \cdot A

See: how to do a matrix multiplication

This is the definition of commuting matrices, now let’s see an example:

Example of commuting matrices

The following two 2×2 dimension matrices commute with each other:

\displaystyle A=\begin{pmatrix} 2 & 0\\[1.1ex] 1 & -1 \end{pmatrix} \quad B= \begin{pmatrix} 3& 0\\[1.1ex] 1 & 0\end{pmatrix}

The commutability condition of the two matrices can be proven by calculating their product in both orders:

example of two 2x2 commuting matrices

As you can see, the results of the two multiplications are the same, regardless of the order in which they are multiplied. Therefore, matrices A and B are commutative.

Properties of commuting matrices

All commuting matrices have the following characteristics:

  • Commuting matrices do not have the transitive property. In other words, even if matrix A commutes with matrices B and C, this does not mean that B and C commute with each other.
  • A diagonal matrix commutes with other diagonal matrices.

See properties of diagonal matrix.

  • Similarly, a scalar matrix also commutes with all matrices. For example, the identity matrix commutes with all matrices.
  • Obviously, the zero matrix also commutes with all matrices.

See example of zero matrix.

  • If the product of two symmetric matrices results in another symmetric matrix, then the two matrices have to commute.

See example of symmetric matrix.

  • Two hermitian matrices commute if their eigenvectors are the same.

See how to calculate the eigenvectors of a matrix.

  • If the diagonalization of two matrices can be done simultaneously, it means that both matrices commute. Thus, these two matrices also share the same orthonormal basis of eigenvectors.

Solved exercise of commuting matrices

Next we are going to see step by step how to solve a commuting matrices exercise:

  • Find all matrices that commute with the following square matrix:

\displaystyle A=\begin{pmatrix} 3 & 1\\[1.1ex] 1 & 0 \end{pmatrix}

To solve this problem we will create an unknown matrix:

 \displaystyle B=\begin{pmatrix} a & b\\[1.1ex] c & d \end{pmatrix}

So we must find this unknown matrix.

To do this, we will take advantage of the property that all commuting matrices meet:

 \displaystyle A\cdot B = B \cdot A

 \displaystyle \begin{pmatrix}3 & 1\\[1.1ex] 1 & 0\end{pmatrix}\cdot \begin{pmatrix} a & b\\[1.1ex] c & d \end{pmatrix} = \begin{pmatrix} a & b\\[1.1ex] c & d \end{pmatrix} \cdot \begin{pmatrix} 3 & 1\\[1.1ex] 1 & 0 \end{pmatrix}

We multiply the matrices:

\displaystyle \begin{pmatrix} 3a+c &3b+d\\[1.1ex] a & b \end{pmatrix} = \begin{pmatrix}3a+b & a\\[1.1ex] 3c+d & c \end{pmatrix}

Therefore, for the equality to be fulfilled, the following equations must be satisfied:

 \left.\begin{array}{l} 3a+c=3a+b \\[2ex] 3b+d=a \\[2ex] a=3c+d\\[2ex] b= c \end{array}\right\}

So now we just have to solve the system of equations. From the last equation we can deduce that b has to be equal to c:

b = c

And if these two unknowns are equivalent, the third equation is repeated with the second one, so we can eliminate it:

 \left.\begin{array}{l} 3a+c=3a+b \\[2ex] 3b+d=a \\[2ex] \cancel{a=3c+d}\\[2ex] b= c \end{array}\right\}

Furthermore, we cannot draw any conclusions from the first equation, since:

  3a+c=3a+b \ \xrightarrow{b \ = \ c} \ 3a+b=3a+b  

 3a=3a

 a=a

Therefore, we only have the second and the last equation:

 \left.\begin{array}{l} 3b+d=a \\[2ex] b= c \end{array}\right\}

So matrices that commute with A matrix are all those that check the two previous equations. Thus, substituting the expressions found in the unknown matrix at the beginning, we can find the formula of matrices that commute with matrix A:

 \displaystyle \begin{pmatrix} a & b\\[1.1ex] c & d \end{pmatrix} \ \longrightarrow \ \begin{pmatrix} 3b+d & b \\[1.1ex] b & d \end{pmatrix}

Where b and d are two real numbers.

So an example of a matrix that would commute with matrix A would be the following:

 \displaystyle \begin{pmatrix} 6 & 1 \\[1.1ex] 1 & 3 \end{pmatrix}

Leave a Comment

Your email address will not be published. Required fields are marked *