I want to prove the following statement:
Let $H$ be a self-adjoint operator in a Hilbert space $\mathcal{H}$. Suppose that $H^2 = H^3$. Prove that $H = H^2$.
I tried to prove that proposition and I couldn't.
It seems to be very easy but I think that I need some trick to prove that proposition that I haven't noticed.
I need help.
Since $H$ is self adjoint, note that $$\left<H^2x-Hx,H^2x-Hx\right>=\left<H^2x,H^2x\right>-\left<Hx,H^2x\right>-\left<H^2x,Hx\right>+\left<Hx,Hx\right>\\=\left<H^4x,x\right>-\left<2H^3x,x\right>+\left<H^2x,x\right>=\left<(H^4-2H^3+H^2)x,x\right>.$$ But, $H^3=H^2$, so $H^4=H^3$, therefore $H^4-2H^3+H^2=0$, showing that $$\left<H^2x-Hx,H^2x-Hx\right>=0$$ for all $x$. So, $H^2x=Hx$ for all $x$, therefore $H^2=H$.