$$[X^{\mu\nu}] = [X] = \begin{pmatrix} 2 & 3 & 1 & 0 \\ 1 & 1 & 2 & 0 \\ 0 & 1 & 1 & 3 \\ 1 & 2 & 3 & 0 \end{pmatrix}$$
How to compute the trace of $X^{\mu \nu}$? I mean, by eye I can see it is $4$, but I don't know how to do it by writing with the metric tensor.
I calculated for example
$$X^{\mu}_{\phantom{a}\nu}= X^{\mu\sigma}\eta_{\sigma\nu} $$
And the result is
$$X^{\mu}_{\phantom{a}\nu}= \left( \begin{array}{cccc} 2 & -3 & -1 & 0 \\ 1 & -1 & -2 & 0 \\ 0 & -1 & -1 & -3 \\ 1 & -2 & -3 & 0 \\ \end{array} \right)$$
Its trace is zero. How can I obtain instead the trace of $X^{\mu\nu}$, which is $4$?
Also I understood that $X_{\mu\nu}$ would be, in terms of matrices, the inverse of $X^{\mu\nu}$. But when I compute it I have
$$X_{\mu\nu} = X^{\mu\nu} g_{\mu\alpha} g_{\nu\beta}$$
But $g_{\mu\alpha} g_{\nu\beta}$ is the identity matrix.
Yet the inverse of $X^{\mu\nu}$ is not itself.