(a) Let \(V\) be the vector space of all \(n \times n\) matrices over
\(\mathbf{R}\), and define the scalar product of two matrices \(A, B\) by
$$
\langle A, B\rangle=\operatorname{tr}(A B)
$$
where tr is the trace (sum of the diagonal elements). Show that this is a
scalar product and that it is non-degenerate.
(b) If \(A\) is a real symmetric matrix, show that \(\operatorname{tr}(A A) \geqq
0\), and \(\operatorname{tr}(A A)\) \(>0\) if \(A \neq 0 .\) Thus the trace defines a
positive definite scalar product on the space of real symmetric matrices.
(c) Let \(V\) be the vector space of real \(n \times n\) symmetrie matrices. What
is \(\operatorname{dim} V ?\) What is the dimension of the subspace \(W\)
consisting of those matrices \(A\) such that \(\operatorname{tr}(A)=0 ?\) What is
the dimension of the orthogonal complement \(W^{\perp}\) relative to the
positive definite sealar product of part (b)?