Covariant and Contravariant Coordinates
Prerequisites: Linear Algebra, Tensor Calculus. Full path (4 pages)
Why is it interesting?
Covariant and contravariant coordinates are commonly used in special relativity.
Intuitive
Describing an arrow by numbers requires a set of reference directions (axes). When the axes are perpendicular and of unit length there is only one natural way to do it. When the axes are slanted, or stretched, there are two, and they give different numbers.
Picture a flat plane with two axes that meet at an angle of, say, 60 degrees. Draw an arrow from the origin.
- First way: ask how many steps along the first axis and how many along the second axis we need to reach the tip, walking parallel to the axes (the parallelogram rule). These are the contravariant components.
- Second way: drop a perpendicular from the tip onto each axis and read off how far along that axis it lands, or more precisely, take the dot product of the arrow with each axis vector. These are the covariant components.
For perpendicular unit axes both recipes give the same numbers, which is why the distinction never appears in elementary physics. For slanted axes they differ.
The names describe what happens when the axes change. If we make the axis vectors twice as long, we need half as many steps to reach the same tip, so the contravariant components shrink: they vary "contrary" to the axes. The dot products with the longer axis vectors double: they vary "with" the axes, covariantly.
Both sets of numbers describe the same arrow. The rule that converts one into the other is the metric, which encodes the lengths of the axis vectors and the angles between them. In special relativity the metric has a minus sign in it, so even for the standard axes the two kinds of components differ by signs.
Concrete
Let be a basis, not necessarily orthonormal, of a vector space with a scalar product. A vector is expanded as
and the numbers (upper index) are its contravariant components. The scalar products of the basis vectors define the metric
and the covariant components (lower index) are the projections
With the inverse matrix () we go back: . The scalar product of two vectors takes the form .
It is useful to introduce the dual basis , which satisfies . Then and .
Example. In the plane take and . Then
For the metric is the unit matrix and .
Change of basis. Let . From we read off , so
The covariant components transform with the same matrix as the basis vectors, the contravariant ones with the inverse.
Coordinates. On a manifold with coordinates , the components of a velocity are contravariant, and under a change of coordinates
The gradient of a scalar function transforms like , so it is naturally covariant. The contraction is the same in all coordinate systems.
Special relativity. With the Minkowski metric in the signature , , the position four-vector has covariant components . For the four-momentum the invariant contraction is , the combination that appears in the phase of a plane wave, and .
- The best explanation can be found in Chapter 4 in "A Student's Guide to Vectors and Tensors" by Daniel A. Fleisch
- See also http://www.project-tartarus.com/2017/05/what-are-covariant-and-contravariant-coordinates/
Abstract
Let be a finite-dimensional real vector space and its dual. A basis of determines a dual basis of by . Under a change of basis with , the dual basis changes by . Components of vectors therefore transform with and components of covectors with . In the physics terminology, elements of are contravariant vectors and elements of are covariant vectors. A tensor of type is an element of , with upper and lower indices.
Without further structure there is no basis-independent isomorphism . A non-degenerate symmetric bilinear form provides one, the musical isomorphisms
which in components are lowering and raising of indices, and . The covariant components of a vector in the Concrete layer are the components of in the dual basis. The identification depends on . In general relativity the metric is a dynamical field, so raising or lowering an index brings in the field itself, and , and differ, for example, in how they vary when is varied.
On a smooth manifold the same structure exists pointwise: tangent vectors live in , covectors (1-forms) in , and a coordinate chart provides the bases and . The transformation laws under coordinate changes in the Concrete layer are the special case .
A clash of names. Under a smooth map , tangent vectors are pushed forward, , while covectors are pulled back, . In the language of category theory, is a covariant functor and (on forms) a contravariant one. So the objects that physicists call contravariant vectors are covariant in the categorical sense and vice versa. The physics names refer to how components behave under a change of basis, the categorical names to the direction of maps.