I am learning about electrodynamics and have recently been introduced to the four vector. I also come fresh to the idea of covariant four vectors and contravariant four vectors.
My question concerns the notation used and I would like to gain some insight into it and intuition, because it currently seems quite random and arbitrary: there doesn’t seem to be a pattern...
I have read:
$x_{\alpha} = g_{\alpha \beta} x^{\beta}$ and $x^{\alpha} = g^{\alpha \beta} x_{\beta}$
These give the transformation between covariant and contravariant four vectors.
Now why do we position the indices on $g$ in the same position (up/down) as the indices on $x$ on the left hand side? Is there a rule about this and if so, what is it? Do you have any more examples that can illustrate this notation (the positioning of the subscripts is what I’m interested in)?
We also have:
$$s^2 = x_{\alpha} g^{\alpha \beta} x_{\beta} = g_{\alpha \beta} x^{\alpha} x^{\beta}.$$
In this case, I’m not really sure about why the position of $g$ changes... can’t we have e.g. $x^{\alpha}x^{\beta} g_{\alpha \beta}$?