Why $ (\mathop{tr} B)^2 =\sum_{i,j} b_{ii} b_{jj}$?

45 Views Asked by At

Given a symmetric matrix $B$ how we compute $$(\mathop{tr}B)^2 =\sum_{i,j} b_{ii} b_{jj}.$$ Could you please someone cast some light?

1

There are 1 best solutions below

1
On BEST ANSWER

This is really just the fact that $$(\sum_i a_i)^2 = (\sum_i a_i)(\sum_j a_j) = \sum_{i,j} a_i a_j$$