Tensor indices come in two types with profound geometric meaning.
Contravariant components (superscripts like x^μ) transform OPPOSITELY to basis vectors. They represent vectors like displacement and velocity — quantities you can picture as arrows.
Covariant components (subscripts like p_μ) transform the SAME way as basis vectors. They represent covectors (dual vectors) like gradients and momenta — quantities that naturally pair with vectors to produce scalars. The
metric tensor g_{μν} converts between the two: it lowers indices (contravariant → covariant), and its inverse g^{μν} raises indices. In flat Euclidean space, the metric is the identity matrix. In curved spacetime, the metric encodes the gravitational field.