Lably
Skip to content

Covariance and contravariance of vectors

Vector behavior under coordinate changes

  • 16 min read
  • 6 chapters

Related on Lably

Through Physics, Spherical coordinate system and Tuple

Curvilinear coordinate systems, such as cylindrical or spherical coordinates, are often used in physical and geometric problems. Associated with any coordinate system is a natural choice of coordinate basis for vectors based at each point of the space, and covariance and contravariance are particularly important for understanding how the coordinate description of a vector changes by passing from one coordinate system to another. Tensors are objects in multilinear algebra that can have aspects of both covariance and contravariance.

Introduction

In physics, a vector typically arises as the outcome of a measurement or series of measurements, and is represented as a list (or tuple) of numbers such as

(v1,v2,v3).

The numbers in the list depend on the choice of coordinate system. For instance, if the vector represents position with respect to an observer (position vector), then the coordinate system may be obtained from a system of rigid rods, or reference axes, along which the components v1, v2, and v3 are measured. For a vector to represent a geometric object, it must be possible to describe how it looks in any other coordinate system. That is to say, the components of the vectors will transform in a certain way in passing from one coordinate system to another.

A simple illustrative case is that of a Euclidean vector. For a vector, once a set of basis vectors has been defined, then the components of that vector will always vary opposite to that of the basis vectors. That vector is therefore defined as a contravariant tensor. Take a standard position vector for example. By changing the scale of the reference axes from meters to centimeters (that is, dividing the scale of the reference axes by 100, so that the basis vectors now are .01 meters long), the components of the measured position vector are multiplied by 100. A vector's components change scale inversely to changes in scale to the reference axes, and consequently a vector is called a contravariant tensor.

A vector, which is an example of a contravariant tensor, has components that transform inversely to the transformation of the reference axes, (with example transformations including rotation and dilation). The vector itself does not change under these operations; instead, the components of the vector change in a way that cancels the change in the spatial axes. In other words, if the reference axes were rotated in one direction, the component representation of the vector would rotate in exactly the opposite way. Similarly, if the reference axes were stretched in one direction, the component of the vector in that direction would be reduced accordingly. Mathematically, if the coordinate system undergoes a transformation described by an n×n invertible matrix M, so that the basis vectors transform according to [e1′e2′...en′]=[e1e2...en]M, then the components of a vector v in the original basis ( vi ) must be similarly transformed via [v1′v2′...vn′]=M−1[v1v2...vn]. The components of a vector are often represented arranged in a column.

By contrast, a covector has components that transform like the reference axes. It lives in the dual vector space, and represents a linear map from vectors to scalars. The dot product operator involving vectors is a good example of a covector. To illustrate, assume we have a covector defined as v⋅ , where v is a vector. The components of this covector in some arbitrary basis are [v⋅e1v⋅e2...v⋅en], with [e1e2...en] being the basis vectors in the corresponding vector space. (This can be derived by noting that we want to get the correct answer for the dot product operation when multiplying by an arbitrary vector w , with components [w1w2...wn]). The covariance of these covector components is then seen by noting that if a transformation described by an n×n invertible matrix M were to be applied to the basis vectors in the corresponding vector space, [e1′e2′...en′]=[e1e2...en]M, then the components of the covector v⋅ will transform with the same matrix M, namely, [v⋅e1′v⋅e2′...v⋅en′]=[v⋅e1v⋅e2...v⋅en]M. The components of a covector are often represented arranged in a row.

A third concept related to covariance and contravariance is invariance. A scalar (also called type-0 or rank-0 tensor) is an object that does not vary with the change in basis. An example of a physical observable that is a scalar is the mass of a particle. The single, scalar value of mass is independent to changes in basis vectors and consequently is called invariant. The magnitude of a vector (such as distance) is another example of an invariant, because it remains fixed even if geometrical vector components vary. (For example, for a position vector of length 3 meters, if all Cartesian basis vectors are changed from 1 meters in length to .01 meters in length, the length of the position vector remains unchanged at 3 meters, although the vector components will all increase by a factor of 100). The scalar product of a vector and a covector is invariant, because one has components that vary with the base change, and the other has components that vary oppositely, and the two effects cancel out. One thus says that covectors are dual to vectors.

Thus, to summarize:

  • A vector or tangent vector, has components that contra-vary with a change of basis to compensate. That is, the matrix that transforms the vector components must be the inverse of the matrix that transforms the basis vectors. The components of vectors (as opposed to those of covectors) are said to be contravariant. In Einstein notation (implicit summation over repeated index), contravariant components are denoted with upper indices as in
    v=viei
  • A covector or cotangent vector has components that co-vary with a change of basis in the corresponding (initial) vector space. That is, the components must be transformed by the same matrix as the change of basis matrix in the corresponding (initial) vector space. The components of covectors (as opposed to those of vectors) are said to be covariant. In Einstein notation, covariant components are denoted with lower indices as in
    w=wiei.
  • The scalar product of a vector and covector is the scalar viwi, which is invariant. It is the duality pairing of vectors and covectors.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Topics in mathematics