<?xml version="1.0" encoding="UTF-8"?>

<record version="4" id="216">
 <title>covariance and contravariance</title>
 <name>CovarianceAndContravariance</name>
 <created>2006-08-01 23:35:10</created>
 <modified>2026-09-09 03:55:14</modified>
 <type>Topic</type>
 <creator id="1" name="bloftin"/>
 <modifier id="1" name="bloftin"/>
 <comment>repalced figure with png</comment>
 <author id="1" name="bloftin"/>
 <classification>
	<category scheme="pacs" code="02."/>
	<category scheme="pacs" code="04.20.Cv"/>
 </classification>
 <synonyms>
	<synonym concept="covariance and contravariance" alias="covariance"/>
	<synonym concept="covariance and contravariance" alias="contravariance"/>
 </synonyms>
 <preamble>% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>\section{Introduction}

In mathematics and theoretical physics, covariance and contravariance are
concepts used in many areas, generalizing in a sense invariance, i.e., the
property of being unchanged under some transformation. In mathematical
terms, they occur in a foundational way in linear algebra and multilinear
algebra, differential geometry and other branches of geometry, category
theory and algebraic topology. In physics they are important to the
treatment of vectors and other quantities, such as tensors, that have
physical meaning but are not scalars. Both special relativity (Lorentz
covariance) and general relativity (general covariance) use covariant basis
vectors.

In very general terms, duality interchanges covariance and contravariance,
which is why these concepts occur together. For purposes of practical
computation using matrices, the transpose relates two aspects (for example,
two sets of simultaneous equations). The case of a square matrix for which
the transpose is also the inverse matrix, that is, an orthogonal matrix, is
one in which covariance and contravariance can typically be treated on the
same footing. This is of basic importance in the practical application of
tensors.

A major potential cause of confusion is that this duality of
covariance/contravariance intervenes every time discussion of a vector or
tensor quantity is represented by its components. This causes discussion in
the mathematics and physics literature often apparently to be using opposite
conventions. It is not the convention that differs, but whether an intrinsic
or component-wise description is the primary way of thinking of quantities.
This depends on whether one is using a fixed background---a fact that
switches the point of view.

\section{Contravariant}

\emph{Contravariant} is a mathematical term with a precise definition in
tensor analysis. It specifies the method used to derive the components by
projecting the tensor quantity onto the coordinate system being used as the
basis of the tensor.

Another method is used to derive covariant tensor components. When
performing tensor transformations it is critical that the method used to map
to the coordinate systems in use be tracked so that operations may be
applied correctly for accurate, meaningful results.

In two dimensions, for an oblique rectilinear coordinate system,
contravariant coordinates of a directed line segment can be established by
placing the origin of the coordinate axes at the tail of the vector. Parallel
lines are placed through the head of the vector. The intersection of the line
parallel to the $x^1$ axis with the $x^2$ axis provides the $x^2$ coordinate.
Similarly, the intersection of the line parallel to the $x^2$ axis with the
$x^1$ axis provides the $x^1$ coordinate.

\begin{center}
\includegraphics{Contravariant_Coordinates}
\end{center}

By definition, the oblique, rectilinear, contravariant coordinates of the
point $P$ above are summarized as
\[
x^i=(x^1,x^2).
\]

Notice the superscript; this is a standard nomenclature convention for
contravariant tensor components and should not be confused with the
subscript, which is used to designate covariant tensor components.

Is there a fundamental difference in the way contravariant and covariant
components can be used, or could one simply interchange them everywhere?
The answer is that in curved spaces, or in curved coordinate systems in flat
space (e.g. cylindrical coordinates in Euclidean space), the quantity
$dx^i$ is a coordinate differential, whereas the corresponding covariant
components $dx_i$ are obtained by lowering the index with the metric and
need not themselves be coordinate differentials. In cylindrical
coordinates, for example, the angular terms acquire metric factors involving
$r$.

Using the definition above, the contravariant components of a position
vector $v^i$, where $i=1,2$, can be defined as the differences between the
coordinates of the head and tail on the same coordinate axis. Since we have
placed the origin at the tail of the vector,
\[
v^i=\bigl(x^1-0,\;x^2-0\bigr),
\]
and hence
\[
v^i=(x^1,x^2).
\]

This result is generalized to $n$ dimensions. Contravariance is a
fundamental concept within tensor theory and applies to tensors of all ranks
over manifolds. Since whether tensor components are contravariant or
covariant, how they are mixed, and the order of operations all affect the
results, it is important to track the index positions carefully.

In modern differential-geometric language, contravariant components are
associated with tangent vectors and covariant components with covectors.

\section{Use in tensor analysis}

In tensor analysis, a covariant vector varies reciprocally, in the
appropriate transformation-law sense, to a corresponding contravariant
vector. Expressions for lengths, areas and volumes of objects in the vector
space can then be given in terms of tensors with covariant and contravariant
indices.

On a manifold, a tensor field will typically have multiple indices, of two
sorts. By a widely followed convention, covariant indices are written as
lower indices, whereas contravariant indices are upper indices. When the
manifold is equipped with a metric, covariant and contravariant indices
become closely related. Contravariant indices can be turned into covariant
indices by contraction with the metric tensor, and covariant indices can be
raised using the inverse metric tensor. In general, no such identification
exists without additional structure such as a metric.

The explanation in geometric terms is that a general tensor may have
contravariant as well as covariant indices because it is built from tangent
vectors and cotangent vectors.

\section{Algebra and geometry}

In category theory, there are covariant functors and contravariant functors.
The dual-space construction is a standard example of a contravariant
construction. Some constructions of multilinear algebra are of mixed
variance. In algebraic topology, homology is covariant while cohomology is
contravariant.

In differential geometry, tangent vectors transform by the differential
(pushforward) of a smooth map, while covectors and differential forms
transform naturally by pullback. This distinction is crucial in applications:
for example, a differential form can be pulled back to a submanifold, whereas
a tangent-vector field does not admit an analogous unrestricted pullback.

Under a coordinate transformation, contravariant tensor components transform
with the Jacobian of the new coordinates with respect to the old, while
covariant tensor components transform with the inverse Jacobian.

\section{References}

This entry is a derivative of the covariance and contravariance article
\PMlinkexternal{from Wikipedia, the Free Encyclopedia}{http://en.wikipedia.org/wiki/Covariance_and_contravariance}.
Authors of the original article include Kevin Baas, AugPi, Charles Matthews,
Maximus Rex, and Michael Hardy. The history page of the original is
\PMlinkexternal{here}{http://en.wikipedia.org/w/index.php?title=Covariance_and_contravariance\&amp;action=history}.</content>
</record>
