The Physics Travel Guide

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.

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 e⃗1,…,e⃗n\vec e_1, \dots, \vec e_n be a basis, not necessarily orthonormal, of a vector space with a scalar product. A vector is expanded as

v⃗=vie⃗i(sum over i),\vec v = v^i \vec e_i \qquad \text{(sum over } i\text{)} ,

and the numbers viv^i (upper index) are its contravariant components. The scalar products of the basis vectors define the metric

gij=e⃗i⋅e⃗j,g_{ij} = \vec e_i \cdot \vec e_j ,

and the covariant components (lower index) are the projections

vi=v⃗⋅e⃗i=gijvj.v_i = \vec v \cdot \vec e_i = g_{ij} v^j .

With the inverse matrix gijg^{ij} (gijgjk=δkig^{ij} g_{jk} = \delta^i_k) we go back: vi=gijvjv^i = g^{ij} v_j. The scalar product of two vectors takes the form v⃗⋅w⃗=gijviwj=viwi\vec v \cdot \vec w = g_{ij} v^i w^j = v_i w^i.

It is useful to introduce the dual basis e⃗ i=gije⃗j\vec e^{\,i} = g^{ij} \vec e_j, which satisfies e⃗ i⋅e⃗j=δji\vec e^{\,i} \cdot \vec e_j = \delta^i_j. Then v⃗=vi e⃗ i\vec v = v_i\, \vec e^{\,i} and vi=v⃗⋅e⃗ iv^i = \vec v \cdot \vec e^{\,i}.

Example. In the plane take e⃗1=(1,0)\vec e_1 = (1, 0) and e⃗2=(cos⁡α,sin⁡α)\vec e_2 = (\cos\alpha, \sin\alpha). Then

gij=(1cos⁡αcos⁡α1),v1=v1+v2cos⁡α,v2=v1cos⁡α+v2.g_{ij} = \begin{pmatrix} 1 & \cos\alpha \\ \cos\alpha & 1 \end{pmatrix}, \qquad v_1 = v^1 + v^2 \cos\alpha, \qquad v_2 = v^1 \cos\alpha + v^2 .

For α=90∘\alpha = 90^\circ the metric is the unit matrix and vi=viv_i = v^i.

Change of basis. Let e⃗j ′=Aij e⃗i\vec{e}^{\,\prime}_j = A^i{}_j\, \vec e_i. From v⃗=v′je⃗j ′=v′jAije⃗i\vec v = v'^j \vec{e}^{\,\prime}_j = v'^j A^i{}_j \vec e_i we read off vi=Aijv′jv^i = A^i{}_j v'^j, so

v′j=(A−1)ji vi,vj′=v⃗⋅e⃗j ′=Aij vi.v'^j = (A^{-1})^j{}_i\, v^i, \qquad v'_j = \vec v \cdot \vec{e}^{\,\prime}_j = A^i{}_j\, v_i .

The covariant components transform with the same matrix as the basis vectors, the contravariant ones with the inverse.

Coordinates. On a manifold with coordinates xμx^\mu, the components of a velocity dxμ/dtdx^\mu/dt are contravariant, and under a change of coordinates x→x′x \to x'

V′μ=∂x′μ∂xνVν,Wμ′=∂xν∂x′μWν.V'^\mu = \frac{\partial x'^\mu}{\partial x^\nu} V^\nu , \qquad W'_\mu = \frac{\partial x^\nu}{\partial x'^\mu} W_\nu .

The gradient ∂μϕ\partial_\mu \phi of a scalar function transforms like WμW_\mu, so it is naturally covariant. The contraction WμVμW_\mu V^\mu is the same in all coordinate systems.

Special relativity. With the Minkowski metric in the signature (+,−,−,−)(+,-,-,-), ημν=diag(1,−1,−1,−1)\eta_{\mu\nu} = \mathrm{diag}(1, -1, -1, -1), the position four-vector xμ=(ct,x⃗)x^\mu = (ct, \vec x) has covariant components xμ=ημνxν=(ct,−x⃗)x_\mu = \eta_{\mu\nu} x^\nu = (ct, -\vec x). For the four-momentum pμ=(E/c,p⃗)p^\mu = (E/c, \vec p) the invariant contraction is pμxμ=Et−p⃗⋅x⃗p_\mu x^\mu = Et - \vec p \cdot \vec x, the combination that appears in the phase of a plane wave, and pμpμ=E2/c2−p⃗ 2=m2c2p_\mu p^\mu = E^2/c^2 - \vec p^{\,2} = m^2 c^2.

Abstract

Let VV be a finite-dimensional real vector space and V∗=Hom(V,R)V^* = \mathrm{Hom}(V, \mathbb{R}) its dual. A basis eie_i of VV determines a dual basis θi\theta^i of V∗V^* by θi(ej)=δji\theta^i(e_j) = \delta^i_j. Under a change of basis ej′=Aijeie'_j = A^i{}_j e_i with A∈GL(n,R)A \in GL(n, \mathbb{R}), the dual basis changes by θ′j=(A−1)ji θi\theta'^j = (A^{-1})^j{}_i\, \theta^i. Components of vectors v=vieiv = v^i e_i therefore transform with A−1A^{-1} and components of covectors α=αiθi\alpha = \alpha_i \theta^i with AA. In the physics terminology, elements of VV are contravariant vectors and elements of V∗V^* are covariant vectors. A tensor of type (r,s)(r, s) is an element of V⊗r⊗(V∗)⊗sV^{\otimes r} \otimes (V^*)^{\otimes s}, with rr upper and ss lower indices.

Without further structure there is no basis-independent isomorphism V≅V∗V \cong V^*. A non-degenerate symmetric bilinear form gg provides one, the musical isomorphisms

♭:V→V∗,v↦g(v,⋅),♯=♭−1,\flat : V \to V^*, \quad v \mapsto g(v, \cdot), \qquad \sharp = \flat^{-1} ,

which in components are lowering and raising of indices, vi=gijvjv_i = g_{ij} v^j and αi=gijαj\alpha^i = g^{ij} \alpha_j. The covariant components of a vector in the Concrete layer are the components of v♭v^\flat in the dual basis. The identification depends on gg. In general relativity the metric is a dynamical field, so raising or lowering an index brings in the field itself, and TμνT^{\mu\nu}, TμνT^\mu{}_\nu and TμνT_{\mu\nu} differ, for example, in how they vary when gg is varied.

On a smooth manifold MM the same structure exists pointwise: tangent vectors live in TpMT_pM, covectors (1-forms) in Tp∗MT^*_pM, and a coordinate chart provides the bases ∂μ\partial_\mu and dxμdx^\mu. The transformation laws under coordinate changes in the Concrete layer are the special case Aμν=∂xμ/∂x′νA^\mu{}_\nu = \partial x^\mu / \partial x'^\nu.

A clash of names. Under a smooth map f:M→Nf : M \to N, tangent vectors are pushed forward, f∗:TpM→Tf(p)Nf_* : T_pM \to T_{f(p)}N, while covectors are pulled back, f∗:Tf(p)∗N→Tp∗Mf^* : T^*_{f(p)}N \to T^*_pM. In the language of category theory, TT is a covariant functor and T∗T^* (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.

Path to this page

  1. Calculus
  2. Linear Algebra
  3. Vector Calculus
  4. Tensor Calculus