Given a matrix $$A=\begin{bmatrix} a & b\\c &d \end{bmatrix}$$ satisfying
$$A^3=O$$ find the sum of all the elements of matrix $A^2$.
My try:
Since $A$ is $2 \times 2$ matrix it can be expressed as
$$A^2=pA+qI$$ where $p$ and $q$ are some scalars. Then we have
$$A^3=pA^2+qA=O$$
So
$$p(pA+qI)+qA=O$$ that is
$$A=\frac{-pq}{p^2+q} I$$
So
$$A^2=\frac{p^2q^2}{(p^2+2q)^2} I$$
so sum of elements of $A^2$ is $\frac{2p^2q^2}{(p^2+2q)^2}$. But the answer is zero. Can I know my mistake?
Your solution is absolutely correct. when $A^3=0$ we have the characteristic equation of $A$ as
$$ A^2=tr(A)A-|A|I$$
But since $A^3=0$ we have$|A|=0$ Hence characteristic equation reduces to
$$A^2=tr(A)A \tag{1}$$ So
$$A^3=tr(A)A^2=\left(tr(A)\right)^2A=0$$ which means either $tr(A)=0$ or $A=0$
if $A=0$ sum of elements of $A^2$ is obviously zero as $A^2$ is also null. Well if $tr(A)=0$ then $A^2$ is again null from $(1)$. So in either way $A^2=0$ so sum of elements of $A^2$ is zero as per your book answer.