what is dimension of orthogonal complement of a subspace of a vector space. This is last part of my other question. I don't understand the last part of problem. Feel free to edit the question.

c) Let $V$ be a vector space of real $n \times n $ symmetric matrices, what is $\text{dim } V $? What is the dimension of the subspace of $W$ of $V$ containing matrices $A$ whose trace is $0$? What is the dimension of  the orthogonal complement of $W^{\perp}$ relative to the positive definite scalar product of part $(b)$?

Here is screen shot of the complete question

I think the $\text{dim } V = \frac{n(n+1)}{2}$ and $\text{dim} W = \frac{n(n+1)}{2} - 1$. Since one element of diagonal can be expressed linear combination of other diagonal elements. I don't understand the last part of it. dimension of  the orthogonal complement of $W^{\perp}$. 
Please help!! thanks in advance!!
 A: As Andreas Caranti already wrote in the comments, the orthogonal complement of $W$ is defined via: $W^\perp=\{X\in V | \operatorname{tr}(AX)=0 \text{ for all } A\in W\}$.
For a non-degenerate bilinear from, as David Wheeler wrote in the comments, we have $\operatorname{dim}(W)+\operatorname{dim}(W^\perp)=\operatorname{dim}(V)$. Thus, you can conclude $\dim W^\perp=1$ as you already correctly computed the dimensions of $V$ and $W$. 
Still one question remains, namely, what is $W^\perp$. If you know it is one-dimensional, this is easy to see, $\operatorname{tr}(AE_n)=\operatorname{tr}(A)=0$ for $A\in W$ and $E_n$ the identity matrix. But you can also approach the problem differently and try to work just with the definition of $W^\perp$ to solve the exercise. I will sketch this solution for $n=2$ and leave the general solution as an exercise:
An arbitrary element of $W$ looks like $A=\begin{pmatrix}a_{11}&a_{12}\\a_{12}&-a_{11}\end{pmatrix}$. For an arbitrary matrix $B=\begin{pmatrix}b_{11}&b_{12}\\b_{12}&b_{22}\end{pmatrix}\in V$ to lie in $W^\perp$ is then the same as having 
$\operatorname{tr}(AB)=a_{11}(b_{11}-b_{22})+2a_{12}b_{12}=0$ for all $A\in W$. One can conclude that $b_{11}=b_{22}$ and $b_{12}=0$. Hence, $B=\lambda E_n$ for some $\lambda\in \mathbb{R}$. For general $n$, an elementary solution would be similar, but involves a lot of indices.
