[Math] Proving two matrices are equal

linear algebramatrices

A friend and I are having some trouble with a linear algebra problem:

Let $A$ and $B$ be square matrices with dimensions $n\times n$

Prove or disprove:

If $A^2=B^2$ then $A=B$ or $A=-B$

It seems to be true but the rest of my class insists it's false – I can't find an example where this isn't the case – can someone shed some light on this?

Thanks!

Best Answer

$\begin{pmatrix} 0&1\\0&0\end{pmatrix}^2=\begin{pmatrix} 0&2\\0&0\end{pmatrix}^2=\begin{pmatrix} 0&0\\0&0\end{pmatrix}$

Related Question