In my general relativity textbook, the following equation is given:
$$ds^2 = g_{\alpha \beta}(x)dx^{\alpha}dx^{\beta}$$
Which describes the line element $ds^2$ for a metric. $g_{\alpha \beta}$ is a matrix that is the metric itself. This equation implies that a given term of the equation for a line element can only have two differential factors. Either two different linear variables (For example: $dtdr$) or one variable squared (For example: $d\theta^2$).
Intuitively, this makes some sense. Our line element is $ds^2$, so that exponent of 2 could explain why, when you multiply things out, you can only get two differential factors per term, just like squaring any polynomial.
But this doesn't really make sense to me from a more formal perspective. I suppose the issue is that I don't really understand what the exponent of 2 is actually doing. So what is it doing? And what is the exact reason that we can only have two differential factors per term?
(Reading back this question, I'm not sure if everything is clear, so let me know if I can clarify anything or otherwise improve this question).