Constructing a covariant basis in one dimension Consider the one-dimensional curve shown in Fig. 3. At point
P, taken as an
origin,
x is one of the Cartesian coordinates, and
q1 is one of the curvilinear coordinates. The local (non-unit) basis vector is
b1 (notated
h1 above, with
b reserved for unit vectors) and it is built on the
q1 axis which is a tangent to that coordinate line at the point
P. The axis
q1 and thus the vector
b1 form an angle \alpha with the Cartesian
x axis and the Cartesian basis vector
e1. It can be seen from triangle
PAB that : \cos \alpha = \cfrac \quad \Rightarrow \quad |\mathbf{e}_1| = |\mathbf{b}_1|\cos \alpha where |
e1|, |
b1| are the magnitudes of the two basis vectors, i.e., the scalar intercepts
PB and
PA.
PA is also the projection of
b1 on the
x axis. However, this method for basis vector transformations using
directional cosines is inapplicable to curvilinear coordinates for the following reasons: • By increasing the distance from
P, the angle between the curved line
q1 and Cartesian axis
x increasingly deviates from \alpha. • At the distance
PB the true angle is that which the tangent
at point C forms with the
x axis and the latter angle is clearly different from \alpha. The angles that the
q1 line and that axis form with the
x axis become closer in value the closer one moves towards point
P and become exactly equal at
P. Let point
E be located very close to
P, so close that the distance
PE is infinitesimally small. Then
PE measured on the
q1 axis almost coincides with
PE measured on the
q1 line. At the same time, the ratio
PD/PE (
PD being the projection of
PE on the
x axis) becomes almost exactly equal to \cos\alpha. Let the infinitesimally small intercepts
PD and
PE be labelled, respectively, as
dx and d
q1. Then :\cos \alpha = \cfrac{dx}{dq^1} = \frac. Thus, the directional cosines can be substituted in transformations with the more exact ratios between infinitesimally small coordinate intercepts. It follows that the component (projection) of
b1 on the
x axis is :p^1 = \mathbf{b}_1\cdot\cfrac{\mathbf{e}_1} = |\mathbf{b}_1|\cfrac\cos\alpha = |\mathbf{b}_1|\cfrac{dx}{dq^1} \quad \Rightarrow \quad \cfrac{p^1} = \cfrac{dx}{dq^1}. If
qi =
qi(
x1,
x2,
x3) and
xi =
xi(
q1,
q2,
q3) are
smooth (continuously differentiable) functions the transformation ratios can be written as \cfrac{\partial q^i}{\partial x_j} and \cfrac{\partial x_i}{\partial q^j}. That is, those ratios are
partial derivatives of coordinates belonging to one system with respect to coordinates belonging to the other system.
Constructing a covariant basis in three dimensions Doing the same for the coordinates in the other 2 dimensions,
b1 can be expressed as: : \mathbf{b}_1 = p^1\mathbf{e}_1 + p^2\mathbf{e}_2 + p^3\mathbf{e}_3 = \cfrac{\partial x_1}{\partial q^1} \mathbf{e}_1 + \cfrac{\partial x_2}{\partial q^1} \mathbf{e}_2 + \cfrac{\partial x_3}{\partial q^1} \mathbf{e}_3 Similar equations hold for
b2 and
b3 so that the standard basis {
e1,
e2,
e3} is transformed to a local (ordered and
normalised) basis {
b1,
b2,
b3} by the following system of equations: :\begin{align} \mathbf{b}_1 & = \cfrac{\partial x_1}{\partial q^1} \mathbf{e}_1 + \cfrac{\partial x_2}{\partial q^1} \mathbf{e}_2 + \cfrac{\partial x_3}{\partial q^1} \mathbf{e}_3 \\ \mathbf{b}_2 & = \cfrac{\partial x_1}{\partial q^2} \mathbf{e}_1 + \cfrac{\partial x_2}{\partial q^2} \mathbf{e}_2 + \cfrac{\partial x_3}{\partial q^2} \mathbf{e}_3 \\ \mathbf{b}_3 & = \cfrac{\partial x_1}{\partial q^3} \mathbf{e}_1 + \cfrac{\partial x_2}{\partial q^3} \mathbf{e}_2 + \cfrac{\partial x_3}{\partial q^3} \mathbf{e}_3 \end{align} By analogous reasoning, one can obtain the inverse transformation from local basis to standard basis: :\begin{align} \mathbf{e}_1 & = \cfrac{\partial q^1}{\partial x_1} \mathbf{b}_1 + \cfrac{\partial q^2}{\partial x_1} \mathbf{b}_2 + \cfrac{\partial q^3}{\partial x_1} \mathbf{b}_3 \\ \mathbf{e}_2 & = \cfrac{\partial q^1}{\partial x_2} \mathbf{b}_1 + \cfrac{\partial q^2}{\partial x_2} \mathbf{b}_2 + \cfrac{\partial q^3}{\partial x_2} \mathbf{b}_3 \\ \mathbf{e}_3 & = \cfrac{\partial q^1}{\partial x_3} \mathbf{b}_1 + \cfrac{\partial q^2}{\partial x_3} \mathbf{b}_2 + \cfrac{\partial q^3}{\partial x_3} \mathbf{b}_3 \end{align}
Jacobian of the transformation The above
systems of linear equations can be written in matrix form using the Einstein summation convention as :\cfrac{\partial x_i}{\partial q^k} \mathbf{e}_i = \mathbf{b}_k, \quad \cfrac{\partial q^i}{\partial x_k} \mathbf{b}_i = \mathbf{e}_k. This
coefficient matrix of the linear system is the
Jacobian matrix (and its inverse) of the transformation. These are the equations that can be used to transform a Cartesian basis into a curvilinear basis, and vice versa. In three dimensions, the expanded forms of these matrices are : \mathbf{J} = \begin{bmatrix} \cfrac{\partial x_1}{\partial q^1} & \cfrac{\partial x_1}{\partial q^2} & \cfrac{\partial x_1}{\partial q^3} \\ \cfrac{\partial x_2}{\partial q^1} & \cfrac{\partial x_2}{\partial q^2} & \cfrac{\partial x_2}{\partial q^3} \\ \cfrac{\partial x_3}{\partial q^1} & \cfrac{\partial x_3}{\partial q^2} & \cfrac{\partial x_3}{\partial q^3} \\ \end{bmatrix},\quad \mathbf{J}^{-1} = \begin{bmatrix} \cfrac{\partial q^1}{\partial x_1} & \cfrac{\partial q^1}{\partial x_2} & \cfrac{\partial q^1}{\partial x_3} \\ \cfrac{\partial q^2}{\partial x_1} & \cfrac{\partial q^2}{\partial x_2} & \cfrac{\partial q^2}{\partial x_3} \\ \cfrac{\partial q^3}{\partial x_1} & \cfrac{\partial q^3}{\partial x_2} & \cfrac{\partial q^3}{\partial x_3} \\ \end{bmatrix} In the inverse transformation (second equation system), the unknowns are the curvilinear basis vectors. For any specific location there can only exist one and only one set of basis vectors (else the basis is not well defined at that point). This condition is satisfied
if and only if the equation system has a single solution. In
linear algebra, a linear equation system has a single solution (non-trivial) only if the determinant of its system matrix is non-zero: : \det(\mathbf{J}^{-1}) \neq 0 which shows the rationale behind the above requirement concerning the inverse Jacobian determinant. ==Generalization to
n dimensions==