Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Suppose $AB = BA$ and $A^2+B^2 = I$, where A and B are complex matrices.

My feeling is that this implies that both A and B are diagonal matrices. But I'm having trouble proving it.

Appreciate any help.

share|improve this question
They are matrices; do not trust your feeling. –  Servaes Apr 21 '14 at 20:32
Thanks for the counter example. My bad. –  Ameet Sharma Apr 21 '14 at 20:33
never mind. i've got it. –  Ameet Sharma Apr 21 '14 at 20:58
For your first question; no. Consider the matrices $$A=\binom{1\ 0}{0\ 1}\qquad\text{ and }\qquad B=\binom{0\ 1}{0\ 0}.$$ For your second question; not that I know of. –  Servaes Apr 21 '14 at 21:01

2 Answers 2

up vote 9 down vote accepted

Consider the matrices $A=\binom{0\ 0}{0\ 0}$ and $B=\binom{0\ 1}{1\ 0}$.

share|improve this answer

Let $A=0$ and $B=\left( \begin{matrix} 0 & 1 \\ 1 & 0 \end{matrix}\right)$, this provides a counterexample.

share|improve this answer
How sad. 20 seconds late and you get so many less votes. –  Justin Apr 22 '14 at 4:19
Aamet, you are very unlucky because, between $2$ Servaes's answers, you chose the bad one. Indeed, your question is a non-sense because you can obtain other solutions with a change of basis. The correct question is: are $A,B$ necessarily simultaneously diagonalizable over $\mathbb{C}$ ? The answer is NO and Servaes gave such a couter-example in his comment, comment that obtains zero point ! –  loup blanc Apr 22 '14 at 15:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.