Let $V$ be the vector space of $n*n$ symmetric matrices.And let $W$ be the subspace of $V$ consisting of those Matrices $A$ such that $tr(A)=0$. What is the dimension of $W$?
What I have noted is that the dimension of $V$ is $\frac{n^2-n}{2}+n$ (By considering the possible arrangements).
And when it comes to the subspace $W$,
To get a the basis, First we will need all the basis elements that create the non diagonal matrices. Thus the basis should have $\frac{n^2-n}{2}$ elements (Note that the vector space is symmetric).
Then in addition to that we will need a relationship with the diagonal elements.
Say for example the vector space of $3*3$ matrices,
$$B=\begin{pmatrix}
b_1 & & \\
& b_2& \\
& & b_3
\end{pmatrix}$$
if $B\in W$ then $b_1=-b_2-b_3$
So the basis of $W$ should have,
$\begin{pmatrix}
-1 & 0 &0 \\
0 & 1&0 \\
0& 0& 0
\end{pmatrix}$, $\begin{pmatrix}
0 & 0 &0 \\
0 & -1&0 \\
0& 0& 1
\end{pmatrix}$.
And even for a general $n$ dimension set also this seems correct. But I would like a feedback of an explicit proof
Note that $\operatorname{tr}: S_n \to \mathbb{C}$ is linear and non zero. Hence $\dim \ker \operatorname{tr} = \dim S_n -1$.