
In
physics
Physics is the scientific study of matter, its Elementary particle, fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge whi ...
, especially in
multilinear algebra
Multilinear algebra is the study of Function (mathematics), functions with multiple vector space, vector-valued Argument of a function, arguments, with the functions being Linear map, linear maps with respect to each argument. It involves concept ...
and
tensor analysis
In mathematics and physics, a tensor field is a function (mathematics), function assigning a tensor to each point of a region (mathematics), region of a mathematical space (typically a Euclidean space or manifold) or of the physical space. Tens ...
, covariance and contravariance describe how the quantitative description of certain geometric or physical entities changes with a
change of basis
In mathematics, an ordered basis of a vector space of finite dimension allows representing uniquely any element of the vector space by a coordinate vector, which is a sequence of scalars called coordinates. If two different bases are conside ...
. Briefly, a contravariant vector is a list of numbers that transforms oppositely to a change of basis, and a covariant vector is a list of numbers that transforms in the same way. Contravariant vectors are often just called ''vectors'' and covariant vectors are called ''covectors'' or ''dual vectors''. The terms ''covariant'' and ''contravariant'' were introduced by
James Joseph Sylvester
James Joseph Sylvester (3 September 1814 – 15 March 1897) was an English mathematician. He made fundamental contributions to matrix theory, invariant theory, number theory, partition theory, and combinatorics. He played a leadership ...
in 1851.
Curvilinear coordinate systems, such as
cylindrical
A cylinder () has traditionally been a Solid geometry, three-dimensional solid, one of the most basic of curvilinear geometric shapes. In elementary geometry, it is considered a Prism (geometry), prism with a circle as its base.
A cylinder may ...
or
spherical coordinates
In mathematics, a spherical coordinate system specifies a given point in three-dimensional space by using a distance and two angles as its three coordinates. These are
* the radial distance along the line connecting the point to a fixed point ...
, 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.
Tensor
In mathematics, a tensor is an algebraic object that describes a multilinear relationship between sets of algebraic objects associated with a vector space. Tensors may map between different objects such as vectors, scalars, and even other ...
s are objects in
multilinear algebra
Multilinear algebra is the study of Function (mathematics), functions with multiple vector space, vector-valued Argument of a function, arguments, with the functions being Linear map, linear maps with respect to each argument. It involves concept ...
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
In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
) of numbers such as
:
The numbers in the list depend on the choice of
coordinate system
In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the position of the points or other geometric elements on a manifold such as Euclidean space. The coordinates are ...
. For instance, if the vector represents position with respect to an observer (
position vector
In geometry, a position or position vector, also known as location vector or radius vector, is a Euclidean vector that represents a point ''P'' in space. Its length represents the distance in relation to an arbitrary reference origin ''O'', and ...
), then the coordinate system may be obtained from a system of rigid rods, or reference axes, along which the components ''v''
1, ''v''
2, and ''v''
3 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
In mathematics, physics, and engineering, a Euclidean vector or simply a vector (sometimes called a geometric vector or spatial vector) is a geometric object that has magnitude (or length) and direction. Euclidean vectors can be added and scal ...
. 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
meters long), the components of the measured
position
Position often refers to:
* Position (geometry), the spatial location (rather than orientation) of an entity
* Position, a job or occupation
Position may also refer to:
Games and recreation
* Position (poker), location relative to the dealer
* ...
vector
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
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
Rotation or rotational/rotary motion is the circular movement of an object around a central line, known as an ''axis of rotation''. A plane figure can rotate in either a clockwise or counterclockwise sense around a perpendicular axis intersect ...
and
dilation
wiktionary:dilation, Dilation (or dilatation) may refer to:
Physiology or medicine
* Cervical dilation, the widening of the cervix in childbirth, miscarriage etc.
* Coronary dilation, or coronary reflex
* Dilation and curettage, the opening of ...
).
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 components of the vector, would reduce in an exactly compensating way. Mathematically, if the coordinate system undergoes a transformation described by an
invertible matrix
In linear algebra, an invertible matrix (''non-singular'', ''non-degenarate'' or ''regular'') is a square matrix that has an inverse. In other words, if some other matrix is multiplied by the invertible matrix, the result can be multiplied by a ...
''M'', so that the basis vectors transform according to
, then the components of a vector v in the original basis (
) must be similarly transformed via
. 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
, where
is a vector. The components of this covector in some arbitrary basis are
, with
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
, with components
). The covariance of these covector components is then seen by noting that if a transformation described by an
invertible matrix
In linear algebra, an invertible matrix (''non-singular'', ''non-degenarate'' or ''regular'') is a square matrix that has an inverse. In other words, if some other matrix is multiplied by the invertible matrix, the result can be multiplied by a ...
''M'' were to be applied to the basis vectors in the corresponding vector space,
, then the components of the covector
will transform with the same matrix
, namely,
. 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
In physics, an observable is a physical property or physical quantity that can be measured. In classical mechanics, an observable is a real-valued "function" on the set of all possible system states, e.g., position and momentum. In quantum ...
that is a scalar is the
mass
Mass is an Intrinsic and extrinsic properties, intrinsic property of a physical body, body. It was traditionally believed to be related to the physical quantity, quantity of matter in a body, until the discovery of the atom and particle physi ...
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
Distance is a numerical or occasionally qualitative measurement of how far apart objects, points, people, or ideas are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two co ...
) is another example of an invariant, because it remains fixed even if geometrical vector components vary. (For example, for a position vector of length
meters, if all
Cartesian basis vectors are changed from
meters in length to
meters in length, the length of the position vector remains unchanged at
meters, although the vector components will all increase by a factor of
). 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
In mathematics, a tangent vector is a vector that is tangent to a curve or surface at a given point. Tangent vectors are described in the differential geometry of curves in the context of curves in R''n''. More generally, tangent vectors are ...
, 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
In mathematics, especially the usage of linear algebra in mathematical physics and differential geometry, Einstein notation (also known as the Einstein summation convention or Einstein summation notation) is a notational convention that implies ...
(implicit summation over repeated index), contravariant components are denoted with ''upper indices'' as in
*:
* A covector or
cotangent vector
In differential geometry, the cotangent space is a vector space associated with a point x on a smooth (or differentiable) manifold \mathcal M; one can define a cotangent space for every point on a smooth manifold. Typically, the cotangent space, T ...
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
In mathematics, especially the usage of linear algebra in mathematical physics and differential geometry, Einstein notation (also known as the Einstein summation convention or Einstein summation notation) is a notational convention that implies ...
, covariant components are denoted with ''lower indices'' as in
*:
* The scalar product of a vector and covector is the scalar
, which is invariant. It is the duality pairing of vectors and covectors.
Definition
The general formulation of covariance and contravariance refers to how the components of a coordinate vector transform under a
change of basis
In mathematics, an ordered basis of a vector space of finite dimension allows representing uniquely any element of the vector space by a coordinate vector, which is a sequence of scalars called coordinates. If two different bases are conside ...
(
passive transformation). Thus let ''V'' be a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
of dimension ''n'' over a
field of
scalars
Scalar may refer to:
*Scalar (mathematics), an element of a field, which is used to define a vector space, usually the field of real numbers
*Scalar (physics), a physical quantity that can be described by a single element of a number field such a ...
''S'', and let each of and be a
basis of ''V''.
[A basis f may here profitably be viewed as a ]linear isomorphism
In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that pr ...
from R''n'' to ''V''. Regarding f as a row vector whose entries are the elements of the basis, the associated linear isomorphism is then Also, let the
change of basis
In mathematics, an ordered basis of a vector space of finite dimension allows representing uniquely any element of the vector space by a coordinate vector, which is a sequence of scalars called coordinates. If two different bases are conside ...
from f to f′ be given by
for some
invertible
In mathematics, the concept of an inverse element generalises the concepts of opposite () and reciprocal () of numbers.
Given an operation denoted here , and an identity element denoted , if , one says that is a left inverse of , and that ...
''n''×''n'' matrix ''A'' with entries
.
Here, each vector ''Y''
''j'' of the f′ basis is a linear combination of the vectors ''X''
''i'' of the f basis, so that
:
which are the columns of the matrix product
.
Contravariant transformation
A vector
in ''V'' is expressed uniquely as a
linear combination
In mathematics, a linear combination or superposition is an Expression (mathematics), expression constructed from a Set (mathematics), set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' a ...
of the elements
of the f basis as
where ''v''
''fare elements of the field ''S'' known as the components of ''v'' in the f basis. Denote the
column vector
In linear algebra, a column vector with elements is an m \times 1 matrix consisting of a single column of entries, for example,
\boldsymbol = \begin x_1 \\ x_2 \\ \vdots \\ x_m \end.
Similarly, a row vector is a 1 \times n matrix for some , c ...
of components of ''v'' by v
''f
:
so that () can be rewritten as a matrix product
:
The vector ''v'' may also be expressed in terms of the f′ basis, so that
:
However, since the vector ''v'' itself is invariant under the choice of basis,
:
The invariance of ''v'' combined with the relationship () between f and f′ implies that
:
giving the transformation rule
:
In terms of components,
: