Show that $A^{2}=P D^{2} P^{-1},$ where $P$ is a matrix whose columns are the eigenvectors of $A,$ and $D$ is a diagonal matrix with the corresponding eigenvalues.$A=\left[ \begin{array}{ll}{a} & {0} \\ {0} & {b}\end{array}\right] \quad$ with $a \neq b$