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 (like the temperature at a location in a space) defined on a set of points
p, identifiable in a given coordinate system x^i,\; i=0,1,\dots (such a collection is called a
manifold). If we adopt a new coordinates system {x'}^j, j=0,1,\dots then for each
i, the original coordinate {x}^i can be expressed as a function of the new coordinates, so x^i \left({x'}^j\right), j=0,1,\dots One can express the derivative of
f in old coordinates in terms of the new coordinates, using the
chain rule of the derivative, as \frac{\partial f}{\partial {x}^i} = \frac{\partial f}{\partial {x'}^j} \; \frac{\partial {x'}^j}{\partial {x}^i} 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 f_{,i} \ \stackrel{\mathrm{def}}{=}\ \frac{\partial f}{\partial x^i} 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 x^i where i = 0, 1, \dots (
manifold). A scalar function
f, that assigns a
real number to every point
p in this space, is a function of the coordinates f\;\left(x^0, x^1, \dots\right). 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 dc/d\lambda 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 \mathbf{v}[f] \ \stackrel{\mathrm{def}}{=}\ \frac{df}{d\lambda} = \frac{d\;\;}{d\lambda} f(c(\lambda)) The parallel between the tangent vector and the operator can also be worked out in coordinates \mathbf{v}[f] = \frac{dx^i}{d\lambda} \frac{\partial f}{\partial x^i} or in terms of operators \partial/\partial x^i \mathbf{v} = \frac{dx^i}{d\lambda} \frac{\partial \;\;}{\partial x^i} = \frac{dx^i}{d\lambda} \mathbf{e}_i where we have written \mathbf{e}_i = \partial/\partial x^i, the tangent vectors to the curves which are simply the coordinate grid itself. If we adopt a new coordinates system {x'}^i, \;i=0,1,\dots then for each
i, the old coordinate {x^i} can be expressed as function of the new system, so x^i\left({x'}^j\right), j=0,1,\dots Let \mathbf{e}'_i = {\partial}/{\partial {x'}^i} be the basis, tangent vectors in this new coordinates system. We can express \mathbf{e}_i in the new system by applying the
chain rule on
x. As a function of coordinates we find the following transformation \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 which indeed is the same as the covariant transformation for the derivative of a function. ==Contravariant transformation==