where D is the flux vector. Using the Einstein summation convention,
where subscripts indicate covariant indices and superscripts indicate
contravariant indices. The type of index determines how the components of a tensor transform between different coordinate systems. A non-orthonormal coordinate system has, among other, two sets of basis vectors known as the covariant and contravariant bases. Covariant tensor components refer to the contravariant basis vectors and contravariant tensor components refer to the covariant base vectors. For all orthonormal systems, these two sets of basis vectors, and these two sets of components, are identical. Now assume that
Di is given in a different coordinate system than
ni. To compute
q properly,
Di first has to be transformed as a contravariant (first order) tensor
where xi is the
i:th coordinate in the desired system, and
ui is the
i:th coordinate in the original system. To separate tensor indices in different systems, they also include the coordinate name. If the tensor instead was covariant originally, the transformation would become
This is essentially a multiplication with the contravariant metric tensor, gij. The metric tensor is the identity matrix for all orthonormal systems, where the covariant and contravariant components are identical.