Let $\text{tr}A$ be the trace of the matrix $A \in M_n(\mathbb{R})$.
- I realize that $\text{tr}A: M_n(\mathbb{R}) \to \mathbb{R}$ is obviously linear (but how can I write down a formal proof?). However, I am confused about how I should calculate $\text{dim}(\text{Im(tr)})$ and $\text{dim}(\text{Ker(tr)})$ and a basis for each of these subspace according to the value of $n$.
- Also, I don’t know how to prove that $\text{tr}(AB)= \text{tr}(BA)$, and I was wondering if it is true that $\text{tr}(AB)= \text{tr}(A)\text{tr}(B)$.
- Finally, I wish to prove that $g(A,B)=\text{tr}(AB)$ is a positive defined scalar product if $A,B$ are symmetric; and also $g(A,B)=-\text{tr}(AB)$ is a scalar product if $A,B$ are antisymmetric. Can you show me how one can proceed to do this?
I would really appreciate some guidance and help in clarifying the doubts and questions above. Thank you.