19

Given two square matrices $A,B$ with same dimension, what conditions will lead to this result? Or what result will this condition lead to? I thought this is a quite simple question, but I can find little information about it. Thanks.

JSCB
  • 13,456
  • 15
  • 59
  • 123
  • 5
    http://en.wikipedia.org/wiki/Commuting_matrices – B0rk4 Aug 29 '13 at 07:30
  • 7
    Since everybody (except Hauke) is just listing their favorite sufficient conditions let me add mine: If there exists a polynomial $P\in R[X]$ ($R$ a commutative ring containing the entries of $A$ and $B$) such that $B=P(A)$, then we have $AB=BA$. Furthermore, in the case that $R$ is (contained in) an algebraically closed field and the eigenvalues of $A$ are distinct, then this sufficient criterion is also necessary. For more read the Wikiarticle linked to by Hauke. – Jyrki Lahtonen Aug 29 '13 at 08:17

4 Answers4

11

If $A,B$ are diagonalizable, they commute if and only if they are simultaneously diagonalizable. For a proof, see here. This, of course, means that they have a common set of eigenvectors.

If $A,B$ are normal (i.e., unitarily diagonalizable), they commute if and only if they are simultaneously unitarily diagonalizable. A proof can be done by using the Schur decomposition of a commuting family. This, of course, means that they have a common set of orthonormal eigenvectors.

Vedran Šego
  • 11,372
10

Here are some different cases I can think of:

  1. $A=B$.
  2. Either $A=cI$ or $B=cI$, as already stated by Paul.
  3. $A$ and $B$ are both diagonal matrices.
  4. There exists an invertible matrix $P$ such that $P^{-1}AP$ and $P^{-1}BP$ are both diagonal.
Ryan
  • 1,389