Let $A,B$ be $4 \times 4$ matrices with real elements such that $A \ne B$, $tr(a) \ne 0$, $A^2-2B+I_4=O_4$ and $B^2-2A+I_4=O_4$. Show that $A+B=-2I_4$.
My try: I got an expression of $B$ oin function of $A$, substituded and got $A^4-2A^2-8A+5I_4=O_4$ and I am stuck.