# Covariant transformation

In physics, a **covariant transformation** is a rule that specifies how certain entities, such as vectors or tensors, change under a change of basis. The transformation that describes the new basis vectors as a linear combination of the old basis vectors is *defined* as a **covariant transformation**. Conventionally, indices identifying the basis vectors are placed as **lower indices** and so are all entities that transform in the same way. The inverse of a covariant transformation is a **contravariant transformation**. Whenever a vector should be *invariant* under a change of basis, that is to say it should represent the same geometrical or physical object having the same magnitude and direction as before, its *components* must transform according to the contravariant rule. Conventionally, indices identifying the components of a vector are placed as **upper indices** and so are all indices of entities that transform in the same way. The sum over pairwise matching indices of a product with the same lower and upper indices are invariant under a transformation.

A vector itself is a geometrical quantity, in principle, independent (invariant) of the chosen basis. A vector **v** is given, say, in components *v*^{i} on a chosen basis **e**_{i}. On another basis, say **e**′_{j}, the same vector **v** has different components *v*′^{j} and
[math]\displaystyle{ \mathbf{v} = \sum_i v^i {\mathbf e}_i = \sum_j {v'\,}^j \mathbf{e}'_j. }[/math]
As a vector, **v** should be invariant to the chosen coordinate system and independent of any chosen basis, i.e. its "real world" direction and magnitude should appear the same regardless of the basis vectors. If we perform a change of basis by transforming the vectors **e**_{i} into the basis vectors **e**_{j}, we must also ensure that the components *v*^{i} transform into the new components *v*^{j} to compensate.

The needed transformation of **v** is called the **contravariant transformation** rule.

In the shown example, a vector [math]\displaystyle{ \mathbf{v} = \sum_{i \in \{x,y\} } v^i {\mathbf e}_i = \sum_{j \in \{r,\phi\}} {v'\,}^j \mathbf{e}'_j }[/math] is described by two different coordinate systems: a rectangular coordinate system (the black grid), and a radial coordinate system (the red grid). Basis vectors have been chosen for both coordinate systems: **e**_{x} and **e**_{y} for the rectangular coordinate system, and **e**_{r} and **e**_{φ} for the radial coordinate system. The radial basis vectors **e**_{r} and **e**_{φ} appear rotated anticlockwise with respect to the rectangular basis vectors **e**_{x} and **e**_{y}. The **covariant transformation,** performed to the basis vectors, is thus an anticlockwise rotation, rotating from the first basis vectors to the second basis vectors.

The coordinates of **v** must be transformed into the new coordinate system, but the vector **v** itself, as a mathematical object, remains independent of the basis chosen, appearing to point in the same direction and with the same magnitude, invariant to the change of coordinates. The contravariant transformation ensures this, by compensating for the rotation between the different bases. If we view **v** from the context of the radial coordinate system, it appears to be rotated more clockwise from the basis vectors **e**_{r} and **e**_{φ}. compared to how it appeared relative to the rectangular basis vectors **e**_{x} and **e**_{y}. Thus, the needed contravariant transformation to **v** in this example is a clockwise rotation.

## Examples of covariant transformation

### The derivative of a function transforms covariantly

The explicit form of a covariant transformation is best introduced with the transformation properties of the derivative of a function. Consider a scalar function *f* (like the temperature at a location in a space) defined on a set of points *p*, identifiable in a given coordinate system [math]\displaystyle{ x^i,\; i=0,1,\dots }[/math] (such a collection is called a manifold). If we adopt a new coordinates system [math]\displaystyle{ {x'}^j, j=0,1,\dots }[/math] then for each *i*, the original coordinate [math]\displaystyle{ {x}^i }[/math] can be expressed as a function of the new coordinates, so [math]\displaystyle{ x^i \left({x'}^j\right), j=0,1,\dots }[/math] One can express the derivative of *f* in old coordinates in terms of the new coordinates, using the chain rule of the derivative, as

- [math]\displaystyle{ \frac{\partial f}{\partial {x}^i} = \frac{\partial f}{\partial {x'}^j} \; \frac{\partial {x'}^j}{\partial {x}^i} }[/math]

This is the explicit form of the **covariant transformation** rule. The notation of a normal derivative with respect to the coordinates sometimes uses a comma, as follows

- [math]\displaystyle{ f_{,i} \ \stackrel{\mathrm{def}}{=}\ \frac{\partial f}{\partial x^i} }[/math]

where the index *i* is placed as a lower index, because of the covariant transformation.

### Basis vectors transform covariantly

A vector can be expressed in terms of basis vectors. For a certain coordinate system, we can choose the vectors tangent to the coordinate grid. This basis is called the coordinate basis.

To illustrate the transformation properties, consider again the set of points *p*, identifiable in a given coordinate system [math]\displaystyle{ x^i }[/math] where [math]\displaystyle{ i = 0, 1, \dots }[/math] (manifold). A scalar function *f*, that assigns a real number to every point *p* in this space, is a function of the coordinates [math]\displaystyle{ f\;\left(x^0, x^1, \dots\right) }[/math]. A curve is a one-parameter collection of points *c*, say with curve parameter λ, *c*(λ). A tangent vector **v** to the curve is the derivative [math]\displaystyle{ dc/d\lambda }[/math] along the curve with the derivative taken at the point *p* under consideration. Note that we can see the **tangent vector v** as an **operator** (the **directional derivative**) which can be applied to a function

- [math]\displaystyle{ \mathbf{v}[f] \ \stackrel{\mathrm{def}}{=}\ \frac{df}{d\lambda} = \frac{d\;\;}{d\lambda} f(c(\lambda)) }[/math]

The parallel between the tangent vector and the operator can also be worked out in coordinates

- [math]\displaystyle{ \mathbf{v}[f] = \frac{dx^i}{d\lambda} \frac{\partial f}{\partial x^i} }[/math]

or in terms of operators [math]\displaystyle{ \partial/\partial x^i }[/math]

- [math]\displaystyle{ \mathbf{v} = \frac{dx^i}{d\lambda} \frac{\partial \;\;}{\partial x^i} = \frac{dx^i}{d\lambda} \mathbf{e}_i }[/math]

where we have written [math]\displaystyle{ \mathbf{e}_i = \partial/\partial x^i }[/math], the tangent vectors to the curves which are simply the coordinate grid itself.

If we adopt a new coordinates system [math]\displaystyle{ {x'}^i, \;i=0,1,\dots }[/math] then for each *i*, the old coordinate [math]\displaystyle{ {x^i} }[/math] can be expressed as function of the new system, so [math]\displaystyle{ x^i\left({x'}^j\right), j=0,1,\dots }[/math]
Let [math]\displaystyle{ \mathbf{e}'_i = {\partial}/{\partial {x'}^i} }[/math] be the basis, tangent vectors in this new coordinates system. We can express [math]\displaystyle{ \mathbf{e}_i }[/math] in the new system by applying the chain rule on *x*. As a function of coordinates we find the following transformation

- [math]\displaystyle{ \mathbf{e}'_i = \frac{\partial}{\partial {x'}^i} = \frac{\partial x^j}{\partial {x'}^i} \frac{\partial}{\partial x^j} = \frac{\partial x^j}{\partial {x'}^i} \mathbf{e}_j }[/math]

which indeed is the same as the covariant transformation for the derivative of a function.

## Contravariant transformation

The *components* of a (tangent) vector transform in a different way, called contravariant transformation. Consider a tangent vector **v** and call its components [math]\displaystyle{ v^i }[/math] on a basis [math]\displaystyle{ \mathbf{e}_i }[/math]. On another basis [math]\displaystyle{ \mathbf{e}'_i }[/math] we call the components [math]\displaystyle{ {v'}^i }[/math], so

- [math]\displaystyle{ \mathbf{v} = v^i \mathbf{e}_i = {v'}^i \mathbf{e}'_i }[/math]

in which

- [math]\displaystyle{ v^i = \frac{dx^i}{d\lambda} \;\mbox{ and }\; {v'}^i = \frac{d{x'}^i}{d\lambda} }[/math]

If we express the new components in terms of the old ones, then

- [math]\displaystyle{ {v'}^i = \frac{d{x'}^i}{d\lambda\;\;} = \frac{\partial {x'}^i}{\partial x^j} \frac{dx^j}{d\lambda} = \frac{\partial {x'}^i}{\partial x^j} {v}^j }[/math]

This is the explicit form of a transformation called the **contravariant transformation** and we note that it is different and just the inverse of the covariant rule. In order to distinguish them from the covariant (tangent) vectors, the index is placed on top.

### Differential forms transform contravariantly

An example of a contravariant transformation is given by a differential form *df*. For *f* as a function of coordinates [math]\displaystyle{ x^i }[/math], *df* can be expressed in terms of [math]\displaystyle{ dx^i }[/math]. The differentials *dx* transform according to the contravariant rule since

- [math]\displaystyle{ d{x'}^i = \frac{\partial {x'}^i}{\partial {x}^j} {dx}^j }[/math]

## Dual properties

Entities that transform covariantly (like basis vectors) and the ones that transform contravariantly (like components of a vector and differential forms) are "almost the same" and yet they are different. They have "dual" properties. What is behind this, is mathematically known as the dual space that always goes together with a given linear vector space.

Take any vector space T. A function *f* on T is called linear if, for any vectors **v**, **w** and scalar α:

- [math]\displaystyle{ \begin{align} f(\mathbf{v} + \mathbf{w}) &= f(\mathbf{v}) + f(\mathbf{w}) \\ f(\alpha \mathbf{v}) &= \alpha f(\mathbf{v}) \end{align} }[/math]

A simple example is the function which assigns a vector the value of one of its components (called a *projection function*). It has a vector as argument and assigns a real number, the value of a component.

All such *scalar-valued* linear functions together form a vector space, called the **dual space** of T. The sum *f+g* is again a linear function for linear *f* and *g*, and the same holds for scalar multiplication α*f*.

Given a basis [math]\displaystyle{ \mathbf{e}_i }[/math] for T, we can define a basis, called the **dual basis** for the dual space in a natural way by taking the set of linear functions mentioned above: the projection functions. Each projection function (indexed by ω) produces the number 1 when applied to one of the basis vectors [math]\displaystyle{ \mathbf{e}_i }[/math]. For example, [math]\displaystyle{ \omega^0 }[/math] gives a 1 on [math]\displaystyle{ \mathbf{e}_0 }[/math] and zero elsewhere. Applying this linear function [math]\displaystyle{ {\omega}^0 }[/math] to a vector [math]\displaystyle{ \mathbf{v} =v^i \mathbf{e}_i }[/math], gives (using its linearity)

- [math]\displaystyle{ \omega^0(\mathbf{v}) = \omega^0(v^i \mathbf{e}_i) = v^i \omega^0(\mathbf{e}_i) = v^0 }[/math]

so just the value of the first coordinate. For this reason it is called the **projection function**.

There are as many dual basis vectors [math]\displaystyle{ \omega^i }[/math] as there are basis vectors [math]\displaystyle{ \mathbf{e}_i }[/math], so the dual space has the same dimension as the linear space itself. It is "almost the same space", except that the elements of the dual space (called **dual vectors**) transform covariantly and the elements of the tangent vector space transform contravariantly.

Sometimes an extra notation is introduced where the real value of a linear function σ on a tangent vector **u** is given as

- [math]\displaystyle{ \sigma [\mathbf{u}] := \langle \sigma, \mathbf{u}\rangle }[/math]

where [math]\displaystyle{ \langle\sigma, \mathbf{u}\rangle }[/math] is a real number. This notation emphasizes the bilinear character of the form. It is linear in σ since that is a linear function and it is linear in **u** since that is an element of a vector space.

## Co- and contravariant tensor components

### Without coordinates

A tensor of type (*r*, *s*) may be defined as a real-valued multilinear function of *r* dual vectors and *s* vectors. Since vectors and dual vectors may be defined without dependence on a coordinate system, a tensor defined in this way is independent of the choice of a coordinate system.

The notation of a tensor is

- [math]\displaystyle{ \begin{align} &T\left(\sigma, \ldots ,\rho, \mathbf{u}, \ldots, \mathbf{v}\right) \\ \equiv {} &{T^{\sigma \ldots \rho}}_{\mathbf{u} \ldots \mathbf{v}} \end{align} }[/math]

for dual vectors (differential forms) *ρ*, *σ* and tangent vectors [math]\displaystyle{ \mathbf{u}, \mathbf{v} }[/math]. In the second notation the distinction between vectors and differential forms is more obvious.

### With coordinates

Because a tensor depends linearly on its arguments, it is completely determined if one knows the values on a basis [math]\displaystyle{ \omega^i \ldots \omega^j }[/math] and [math]\displaystyle{ \mathbf{e}_k \ldots \mathbf{e}_l }[/math]

- [math]\displaystyle{ T(\omega^i,\ldots,\omega^j, \mathbf{e}_k \ldots \mathbf{e}_l) = {T^{i\ldots j}}_{k\ldots l} }[/math]

The numbers [math]\displaystyle{ {T^{i\ldots j}}_{k\ldots l} }[/math] are called the **components of the tensor on the chosen basis**.

If we choose another basis (which are a linear combination of the original basis), we can use the linear properties of the tensor and we will find that the tensor components in the upper indices transform as dual vectors (so contravariant), whereas the lower indices will transform as the basis of tangent vectors and are thus covariant. For a tensor of rank 2, we can verify that

- [math]\displaystyle{
{A'}_{i j} = \frac{\partial x^l}{\partial {x'}^i}
\frac{\partial x^m}{\partial {x'}^j} A_{l m}
}[/math]
**covariant tensor** - [math]\displaystyle{
{A'\,}^{i j} = \frac{\partial {x'}^i}{\partial x^l}
\frac{\partial {x'}^j}{\partial x^m} A^{l m}
}[/math]
**contravariant tensor**

For a mixed co- and contravariant tensor of rank 2

- [math]\displaystyle{
{A'\,}^i{}_j= \frac {\partial {x'}^i} {\partial x^l}
\frac {\partial x^m} {\partial {x'}^j} A^l{}_m
}[/math]
**mixed co- and contravariant tensor**

## See also

Original source: https://en.wikipedia.org/wiki/Covariant transformation.
Read more |