Let $A$ be a square $ m \times m $ with eigenvalues $\lambda_{i},...,\lambda_{m}$. Show that: $$ [\text{Tr}(A)]^{2} =\text{Tr}(A^{2}) + \sum_{i \neq j} \lambda_{i}\lambda_{j} $$
Here is my attempt:
LHS $$ [\text{Tr}(A)]^{2} = \sum_{i =1}^{m} \lambda_{i}\sum_{j =1}^{m}\lambda_{j} = \sum_{i =1}^{m}\sum_{j =1}^{m} \lambda_{i}\lambda_{j} $$
RHS
It can be shown that $\lambda_{i}^{2}$ is an eigenvalue of $A^{2}$ so:
$$ \text{Tr}(A^{2}) + \sum_{i \neq j} \lambda_{i}\lambda_{j} = \sum_{i =1}^{m} \lambda_{i}^{2} + \sum_{i \neq j} \lambda_{i}\lambda_{j} $$ $$ = \sum_{i =1}^{m}\sum_{j =1}^{m} \lambda_{i}\lambda_{j} $$
Does this make sense?
This is perfectly correct. $$\\$$ As a plus, you can show the "it can be shown that", in a one-line proof: If $\lambda$ is an eigenvalue of $A$ with eigenvector $v$, $$ A^2 v = A(Av) = A(\lambda v) = \lambda (Av)= \lambda^2 v $$