# User:Maschen/Cartesian tensor

(This article attempts to be the transition from basic vector algebra to tensor algebra.)

In geometry and linear algebra, a Cartesian tensor is a tensor in Euclidean space which transforms from one rectangular coordinate system to another rectangular coordinate system by means of an orthogonal transformation.

The most familiar rectangular coordinate system is the three dimensional Cartesian coordinate system. Higher dimensional generalizations are easily possible by means of the standard basis in any finite dimensional Euclidean space (a vector space over the field of real numbers).

Dyadic tensors were historically the first approach to formulating second order tensors, similarly triadics for third order tensors, and so on. Cartesian tensors use the powerful tensor index notation and they make the type of a tensor clear, while dyadics could have any type as suggested by the notation.

## Cartesian basis and related terminology

### Basis vectors in 3d

In 3d the standard basis is (ex, ey, ez) = (e1, e2, e3). Each basis vector points along the x, y, and z axes, and the vectors are all unit vectors (or "normalized"), so the basis is orthonormal. The basis vectors point in a direction, while the coordinates are real numbers.

For Cartesian tensors of order order 1, a Cartesian vector a can be written algebraically as a linear combination of the basis vectors ex, ey, ez:

${\displaystyle \mathbf {a} =a_{x}\mathbf {e} _{x}+a_{y}\mathbf {e} _{y}+a_{z}\mathbf {e} _{z}}$

where the coordinates of the vector with respect to the Cartesian basis are denoted ax, ay, az. Representing the basis vectors as column vectors

${\displaystyle \mathbf {e} _{x}={\begin{pmatrix}1\\0\\0\end{pmatrix}}\,,\quad \mathbf {e} _{y}={\begin{pmatrix}0\\1\\0\end{pmatrix}}\,,\quad \mathbf {e} _{z}={\begin{pmatrix}0\\0\\1\end{pmatrix}}}$

we equivalently have a coordinate vector in a column vector representation:

${\displaystyle \mathbf {a} ={\begin{pmatrix}a_{x}\\a_{y}\\a_{z}\end{pmatrix}}}$

A row vector representation is also legitimate, although in the context of general curvilinear coordinate systems the row and column vector representations are used for specific reasons - see Einstein notation and covariance and contravariance of vectors for why.

The term "component" of a vector is ambiguous: it could refer to:

• a specific coordinate of the vector such as az (a scalar), and similarly for x and y, or
• the coordinate scalar-multiplying the corresponding basis vector, in which case the "y-component" of a is ayey (a vector), and similarly for y and z.

### Dot product, Kronecker delta, and metric tensor

The dot product · of the each basis vector with every other basis vector is very simple to calculate, both pictorially and algebraically since the basis is orthonormal. In cyclic permutations of perpendicular directions we have:

${\displaystyle {\begin{array}{cccc}\mathbf {e} _{x}\cdot \mathbf {e} _{y}&=\mathbf {e} _{y}\cdot \mathbf {e} _{z}&=\mathbf {e} _{z}\cdot \mathbf {e} _{x}\\\mathbf {e} _{y}\cdot \mathbf {e} _{x}&=\mathbf {e} _{z}\cdot \mathbf {e} _{y}&=\mathbf {e} _{x}\cdot \mathbf {e} _{z}&=0\end{array}}}$

while for parallel directions:

${\displaystyle \mathbf {e} _{x}\cdot \mathbf {e} _{x}=\mathbf {e} _{y}\cdot \mathbf {e} _{y}=\mathbf {e} _{z}\cdot \mathbf {e} _{z}=1}$

and all results can be summarized by the rule:

${\displaystyle \mathbf {e} _{i}\cdot \mathbf {e} _{j}=\left[{\begin{array}{cc}1&i=j\\0&i\neq j\end{array}}\right.}$

where i and j are placeholders for x, y, z, or rather 1, 2, and 3, the latter system of using numerical labels generalizes to any dimension as shown next. This rule corresponds to the definition of the Kronecker delta. The Cartesian basis can be used to represent δ:

${\displaystyle \delta _{ij}=\mathbf {e} _{i}\cdot \mathbf {e} _{j}}$

In addition, the metric tensor components gij with respect to a coordinate system are simply the dot products of each pair of basis vectors:

${\displaystyle g_{ij}=\mathbf {e} _{i}\cdot \mathbf {e} _{j}}$

and by this definition the metric is always symmetric. For the Cartesian basis the components are very simple, arranging into a matrix:

${\displaystyle \mathbf {g} ={\begin{pmatrix}g_{xx}&g_{xy}&g_{xz}\\g_{yx}&g_{yy}&g_{zz}\\g_{zx}&g_{zy}&g_{zz}\\\end{pmatrix}}={\begin{pmatrix}\mathbf {e} _{x}\cdot \mathbf {e} _{x}&\mathbf {e} _{x}\cdot \mathbf {e} _{y}&\mathbf {e} _{x}\cdot \mathbf {e} _{z}\\\mathbf {e} _{y}\cdot \mathbf {e} _{x}&\mathbf {e} _{y}\cdot \mathbf {e} _{y}&\mathbf {e} _{y}\cdot \mathbf {e} _{z}\\\mathbf {e} _{z}\cdot \mathbf {e} _{x}&\mathbf {e} _{z}\cdot \mathbf {e} _{y}&\mathbf {e} _{z}\cdot \mathbf {e} _{z}\\\end{pmatrix}}={\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\\\end{pmatrix}}}$

so Cartesian coordinates have the simplest possible metric tensor, the δ itself:

${\displaystyle g_{ij}=\delta _{ij}}$

This is not true in general for other curvilinear coordinate systems; orthogonal coordinates have diagonal metrics containing various scale factors, while general coordinates could have any entries.

### Cross and product and the Levi-Civita symbol

For the cross product × of two vectors, the values are (almost) the other way round, cyclic permutations in perpendicular directions yield the next vector in the cyclic collection of vectors:

${\displaystyle {\begin{array}{lllc}\mathbf {e} _{x}\times \mathbf {e} _{y}&=\mathbf {e} _{y}\times \mathbf {e} _{z}&=\mathbf {e} _{z}\times \mathbf {e} _{x}\\-\mathbf {e} _{y}\times \mathbf {e} _{x}&=-\mathbf {e} _{z}\times \mathbf {e} _{y}&=-\mathbf {e} _{x}\times \mathbf {e} _{z}&=1\end{array}}}$

while parallel vectors clearly vanish:

${\displaystyle \mathbf {e} _{x}\times \mathbf {e} _{x}=\mathbf {e} _{y}\times \mathbf {e} _{y}=\mathbf {e} _{z}\times \mathbf {e} _{z}=0}$

and these can be summarized by

${\displaystyle \mathbf {e} _{i}\times \mathbf {e} _{j}=\left[{\begin{array}{cc}+1&{\text{cyclic permutations:}}(i,j)=(x,y),(y,z),(z,x)\\-1&{\text{anticyclic permutations:}}(i,j)=(y,x),(z,y),(x,z)\\\\0&i=j\end{array}}\right.}$

where again i and j are placeholders for x, y, z or 1, 2, 3. Similarly

${\displaystyle \mathbf {e} _{k}\cdot \mathbf {e} _{i}\times \mathbf {e} _{j}=\left[{\begin{array}{cc}+1&{\text{cyclic permutations:}}(i,j,k)=(x,y,z),(y,z,x),(z,x,y)\\-1&{\text{anticyclic permutations:}}(i,j,k)=(y,x,z),(z,y,x),(x,z,y)\\\\0&i=j{\text{ or }}j=k{\text{ or }}k=i\end{array}}\right.}$

These permutation relations and their corresponding values are important, and there is an object coinciding with this property: the Levi-Civita symbol. The Levi-Civita symbol entries can be represented by the Cartesian basis:

${\displaystyle \varepsilon _{ijk}=\mathbf {e} _{i}\cdot \mathbf {e} _{j}\times \mathbf {e} _{k}}$

so we can write the cross product of two vectors as:

${\displaystyle \mathbf {a} \times \mathbf {b} =a^{j}\mathbf {e} _{j}\times b^{k}\mathbf {e} _{k}=\varepsilon _{ijk}a^{j}b^{k}\mathbf {e} _{i}}$

and the scalar triple product as:

${\displaystyle \varepsilon _{ijk}=\mathbf {e} _{i}\cdot \mathbf {e} _{j}\times \mathbf {e} _{k}}$
${\displaystyle \mathbf {c} \cdot \mathbf {a} \times \mathbf {b} =c^{i}\mathbf {e} _{i}\cdot a^{j}\mathbf {e} _{j}\times b^{k}\mathbf {e} _{k}=\varepsilon _{ijk}c^{i}a^{j}b^{k}}$

These forms of the dot and cross products, as well as various other identities, most notably:

${\displaystyle \delta _{ip}\delta _{jq}-\delta _{iq}\delta _{jp}=\varepsilon _{ijk}\varepsilon _{pqk}}$

greatly facilitate the manipulation and derivation of other identities in vector calculus.

Despite it's appearance, the Levi-Civita symbol is not a tensor, but a tensor density. The tensor index notation applies to any object which has entities that form multidimensional arrays - not everything with indices is a tensor by default. Instead, tensors are defined by how their coordinates and basis elements change under a transformation from one coordinate system to another.

### Basis vectors in n dimensions

In n dimensions the standard basis is e1, e2, e3 ... . Each basis vector ei points along the xi axis, and the basis is still orthonormal.

It is standard to use Einstein notation and tensor index notation for writing vectors as linear combinations of basis vectors in the following way:

${\displaystyle \mathbf {a} =\sum _{i}a^{i}\mathbf {e} _{i}\equiv a^{i}\mathbf {e} _{i}}$

where the upper indices on the coordinates refer to the contravariant components of the vector a, and lower indices on the basis vectors refer to the covariance of these vectors. When there are two repeated indices, the summation sign is suppressed for notational efficiency and clarity. We can also write:

${\displaystyle \mathbf {a} =\sum _{i}a_{i}\mathbf {e} ^{i}\equiv a_{i}\mathbf {e} ^{i}}$

where the lower indices on the coordinates refer to the covariant components of the vector a, and upper indices on the basis vectors refer to the contravariance of these vectors.

In the row and column vector representations, the j-th component of ei is the Kronecker delta:

${\displaystyle (\mathbf {e} _{i})_{j}=\delta _{ij}}$

A powerful advantage of the index notation over coordinate-specific notations is the independence of the dimension of the underlying vector space. Previously, the Cartesian labels x, y, z were just labels and not indices.

## Transformations of Cartesian vectors (any number of dimensions)

### Meaning of "invariance" under coordinate transformations

The position vector x should take the same form in any coordinate system. Consider the case of rectangular coordinate systems only.

In one rectangular coordinate system x as a contravector has coordinates xi and bases ei, while as a covector it has coordinates xi and bases ei, and we have:

${\displaystyle \mathbf {x} =x^{i}\mathbf {e} _{i}\,,\quad \mathbf {x} =x_{i}\mathbf {e} ^{i}}$

In another rectangular coordinate system x as a contravector has coordinates xi and bases ei, while as a covector it has coordinates xi and bases ei, and we have:

${\displaystyle \mathbf {x} ={\bar {x}}^{i}{\bar {\mathbf {e} }}_{i}\,,\quad \mathbf {x} ={\bar {x}}_{i}{\bar {\mathbf {e} }}^{i}}$

A vector is invariant under changes in bases and coordinate systems, so if coordinates transform according to the inverse L, the bases transform according to L−1, and the converse also applies; if the coordinates transform according to L−1, the bases transform according to the inverse L. To clarify the difference between each of these transformations, the difference is shown through the indices as superscripts for contravariance and subscripts for covariance, and the components and bases are linearly transformed according to the following rules:

Vector elements Contravariant transformation law Covariant transformation law
Coordinates ${\displaystyle {\bar {x}}^{j}=x^{i}L_{i}{}^{j}}$ ${\displaystyle {\bar {x}}_{j}=x_{k}\left(L_{j}{}^{k}\right)^{-1}}$
Basis ${\displaystyle {\bar {\mathbf {e} }}_{j}=\left(L_{j}{}^{k}\right)^{-1}\mathbf {e} _{k}}$ ${\displaystyle {\bar {\mathbf {e} }}^{j}=L_{i}{}^{j}\mathbf {e} ^{i}}$
Full vector ${\displaystyle {\bar {x}}^{j}{\bar {\mathbf {e} }}_{j}=x^{i}L_{i}{}^{j}\left(L_{j}{}^{k}\right)^{-1}\mathbf {e} _{k}=x^{i}\delta _{i}{}^{k}\mathbf {e} _{k}=x^{i}\mathbf {e} _{i}}$ ${\displaystyle {\bar {x}}_{j}{\bar {\mathbf {e} }}^{j}=x_{i}\left(L_{j}{}^{i}\right)^{-1}L_{k}{}^{j}\mathbf {e} ^{k}=x_{i}\delta ^{i}{}_{k}\mathbf {e} ^{k}=x_{i}\mathbf {e} ^{i}}$
Norm ${\displaystyle |\mathbf {x} |={\bar {x}}^{j}{\bar {x}}_{j}=x^{i}L_{i}{}^{j}x_{k}\left(L_{j}{}^{k}\right)^{-1}=x^{i}\delta _{i}{}^{k}x_{k}=x^{i}x_{i}}$

where Lij represents the entries of the transformation matrix (row number is i and column number is j) and (Lik)−1 denotes the inverse matrix of Lik.

Each new coordinates is a function of all the old ones, and vice versa for the inverse function:

${\displaystyle {\bar {x}}{}^{i}={\bar {x}}{}^{i}\left(x^{1},x^{2},\cdots \right)\quad \rightleftharpoons \quad x{}^{i}=x{}^{i}\left({\bar {x}}^{1},{\bar {x}}^{2},\cdots \right)}$
${\displaystyle {\bar {x}}{}_{i}={\bar {x}}{}_{i}\left(x_{1},x_{2},\cdots \right)\quad \rightleftharpoons \quad x{}_{i}=x{}_{i}\left({\bar {x}}_{1},{\bar {x}}_{2},\cdots \right)}$

and similarly each new basis vector is a function of the old ones, and vice versa for the inverse function:

${\displaystyle {\bar {\mathbf {e} }}{}_{j}={\bar {\mathbf {e} }}{}_{j}\left(\mathbf {e} _{1},\mathbf {e} _{2}\cdots \right)\quad \rightleftharpoons \quad \mathbf {e} {}_{j}=\mathbf {e} {}_{j}\left({\bar {\mathbf {e} }}_{1},{\bar {\mathbf {e} }}_{2}\cdots \right)}$
${\displaystyle {\bar {\mathbf {e} }}{}^{j}={\bar {\mathbf {e} }}{}^{j}\left(\mathbf {e} ^{1},\mathbf {e} ^{2}\cdots \right)\quad \rightleftharpoons \quad \mathbf {e} {}^{j}=\mathbf {e} {}^{j}\left({\bar {\mathbf {e} }}^{1},{\bar {\mathbf {e} }}^{2}\cdots \right)}$

for all i, j.

Exactly the same transformation rules apply to any vector a: if a does not transform according to this rule, it is not a vector.

### Orthogonal transformations: Cartesian vectors

If L is orthogonal, the objects transforming by it are defined as Cartesian tensors. This geometrically has has the interpretation that a rectangular coordinate system is mapped to another rectangular coordinate system, in which the norm of the vector x is preserved (and distances are preserved). If L is an orthogonal transformation (orthogonal matrix) then there are considerable simplifications, the matrix transpose (which is trivial to determine for any matrix) is the inverse (usually not as trivial to calculate) by definition:

${\displaystyle \mathbf {L} ^{\mathrm {T} }=\mathbf {L} ^{-1}\Rightarrow \left(L_{i}{}^{j}\right)^{-1}=\left(L_{i}{}^{j}\right)^{\mathrm {T} }=L^{j}{}_{i}}$

and moreover, the determinant is det(L) = ±1, which corresponds to two types of orthogonal transformation: (+1) for rotations and (−1) for reflections.

Applying the inverse matrix to each side of each equation in the previous table yeilds the inverse transformations of coordinates and bases. One observes from the previous table that orthogonal transformations of covectors and contravectos are identical.

### Derivatives and Jacobian matrix elements

The components of L are partial derivatives of the new or old coordinates with respect to the old or new coordinates, respectively.

Differentiating xi with respect to xk

${\displaystyle {\frac {\partial {\bar {x}}^{i}}{\partial x^{k}}}={\frac {\partial }{\partial x^{k}}}\left(L_{j}{}^{i}x^{j}\right)=L_{j}{}^{i}{\frac {\partial x^{j}}{\partial x^{k}}}=L_{j}{}^{i}\delta _{k}{}^{j}=L_{k}{}^{i}}$

so

${\displaystyle L_{i}{}^{j}={\frac {\partial {\bar {x}}^{j}}{\partial x^{i}}}}$

is an element of the Jacobian matrix.

There is a (partially mnemonical) correspondence between index positions attached to L and in the partial derivative: i at the top and j at the bottom, in each case. Many sources state transformations in terms of contractions with this partial derivative.

Conversely, differentiating xj with respect to xi:

${\displaystyle {\frac {\partial x^{j}}{\partial {\bar {x}}^{k}}}={\frac {\partial }{\partial {\bar {x}}^{k}}}\left(\left(L_{i}{}^{j}\right)^{-1}{\bar {x}}^{i}\right)=\left(L_{i}{}^{j}\right)^{-1}{\frac {\partial {\bar {x}}^{i}}{\partial {\bar {x}}^{k}}}=\left(L_{i}{}^{j}\right)^{-1}\delta _{k}{}^{i}=\left(L_{k}{}^{j}\right)^{-1}}$

so

${\displaystyle \left(L_{i}{}^{j}\right)^{-1}={\frac {\partial x^{j}}{\partial {\bar {x}}^{i}}}}$

is an element of the inverse Jacobian matrix. Again, there is an index correspondence.

Contracting partial derivatives gives the Kronecker delta:

${\displaystyle {\frac {\partial {\bar {x}}^{i}}{\partial {\bar {x}}^{k}}}={\frac {\partial {\bar {x}}^{i}}{\partial x^{j}}}{\frac {\partial x^{j}}{\partial {\bar {x}}^{k}}}=L_{j}{}^{i}\left(L_{k}{}^{j}\right)^{-1}=L_{j}{}^{i}L^{j}{}_{k}=\delta ^{i}{}_{k}}$

also

${\displaystyle {\frac {\partial x^{i}}{\partial x^{k}}}={\frac {\partial x^{i}}{\partial {\bar {x}}^{j}}}{\frac {\partial {\bar {x}}^{j}}{\partial x^{k}}}=\left(L_{j}{}^{i}\right)^{-1}L_{k}{}^{j}=L^{i}{}_{j}L_{k}{}^{j}=\delta ^{i}{}_{k}}$

which parallels the matrix multiplication of the Jacobian and its inverse (in fact, it's the same equation in this case):

${\displaystyle \mathbf {J} \mathbf {J} ^{-1}=\mathbf {J} ^{-1}\mathbf {J} =\mathbf {I} }$

As a special case;

${\displaystyle L_{j}{}^{i}\left(L_{i}{}^{j}\right)^{-1}=L_{j}{}^{i}L^{j}{}_{i}={\frac {\partial {\bar {x}}^{i}}{\partial x^{j}}}{\frac {\partial x^{j}}{\partial {\bar {x}}^{i}}}=1}$

### Projections along coordinate axes

As with all linear transformations, L depends on the basis chosen. Since ${\displaystyle {\bar {\mathbf {x} }}={\bar {x}}^{j}{\bar {\mathbf {e} }}_{j},\mathbf {x} =x^{j}\mathbf {e} _{j}}$, for two orthonormal bases

${\displaystyle {\bar {\mathbf {e} }}_{i}\cdot {\bar {\mathbf {e} }}_{j}=\mathbf {e} _{i}\cdot \mathbf {e} _{j}=\delta _{ij}\,,\quad \left|\mathbf {e} _{i}\right|=\left|{\bar {\mathbf {e} }}_{i}\right|=1\,,}$
• projecting x to the x axes: ${\displaystyle {\bar {x}}^{i}={\bar {\mathbf {e} }}_{i}\cdot \mathbf {x} ={\bar {\mathbf {e} }}_{i}\cdot x^{j}\mathbf {e} _{j}=x^{i}L_{i}\,^{j},}$,
• projecting x to the x axes: ${\displaystyle x^{i}=\mathbf {e} _{i}\cdot \mathbf {x} =\mathbf {e} _{i}\cdot {\bar {x}}^{j}{\bar {\mathbf {e} }}_{j}={\bar {x}}^{j}\left(L_{j}\,^{i}\right)^{-1}}$,

Hence the components reduce to direction cosines between the xi and xj axes:

${\displaystyle L_{i}{}^{j}={\bar {\mathbf {e} }}_{i}\cdot \mathbf {e} _{j}=\cos \theta _{ij}}$
${\displaystyle \left(L_{i}{}^{j}\right)^{-1}=\mathbf {e} _{i}\cdot {\bar {\mathbf {e} }}_{j}=\cos \theta _{ji}}$

where θij, θji are not matrix elements (although they could be organized into an array this is not required) the angles between the xi and xj axes. While the numbers ei · ej arranged into a matrix would form a symmetric matrix (a matrix equal to its own transpose) due to the symmetry in the dot products, by contrast ei · ej or ei · ej are each not symmetric in general. Therefore, while the L matrices are still orthogonal, they are not symmetric.

${\displaystyle \mathbf {e} _{i}\cdot {\bar {\mathbf {e} }}_{j}\neq \delta _{ij}}$

unless the basis vectors are identical (in which case there is only the trivial transformation to begin with, no transformation at all): ei = ei.

### Equivalent forms of the transformation matrix

Accumulating all results obtained:

The transformation components are

 ${\displaystyle {\begin{array}{c}L_{i}{}^{j}={\frac {\partial {\bar {x}}^{j}}{\partial x^{i}}}={\bar {\mathbf {e} }}_{i}\cdot \mathbf {e} _{j}=\cos \theta _{ij}\\\upharpoonleft \downharpoonright \\\left(L_{i}{}^{j}\right)^{-1}=L^{j}{}_{i}={\frac {\partial x^{j}}{\partial {\bar {x}}^{i}}}=\mathbf {e} _{i}\cdot {\bar {\mathbf {e} }}_{j}=\cos \theta _{ji}\end{array}}}$

in matrix form

${\displaystyle \mathbf {L} ={\begin{pmatrix}{\frac {\partial {\bar {x}}^{1}}{\partial x^{1}}}&{\frac {\partial {\bar {x}}^{1}}{\partial x^{2}}}&{\frac {\partial {\bar {x}}^{1}}{\partial x^{3}}}\\{\frac {\partial {\bar {x}}^{2}}{\partial x^{1}}}&{\frac {\partial {\bar {x}}^{2}}{\partial x^{2}}}&{\frac {\partial {\bar {x}}^{2}}{\partial x^{3}}}\\{\frac {\partial {\bar {x}}^{3}}{\partial x^{1}}}&{\frac {\partial {\bar {x}}^{3}}{\partial x^{2}}}&{\frac {\partial {\bar {x}}^{3}}{\partial x^{3}}}\end{pmatrix}}={\begin{pmatrix}{\bar {\mathbf {e} }}_{1}\cdot \mathbf {e} _{1}&{\bar {\mathbf {e} }}_{1}\cdot \mathbf {e} _{2}&{\bar {\mathbf {e} }}_{1}\cdot \mathbf {e} _{3}\\{\bar {\mathbf {e} }}_{2}\cdot \mathbf {e} _{1}&{\bar {\mathbf {e} }}_{2}\cdot \mathbf {e} _{2}&{\bar {\mathbf {e} }}_{2}\cdot \mathbf {e} _{3}\\{\bar {\mathbf {e} }}_{3}\cdot \mathbf {e} _{1}&{\bar {\mathbf {e} }}_{3}\cdot \mathbf {e} _{2}&{\bar {\mathbf {e} }}_{3}\cdot \mathbf {e} _{3}\end{pmatrix}}={\begin{pmatrix}\cos \theta _{11}&\cos \theta _{12}&\cos \theta _{13}\\\cos \theta _{21}&\cos \theta _{22}&\cos \theta _{23}\\\cos \theta _{31}&\cos \theta _{32}&\cos \theta _{33}\end{pmatrix}}}$
${\displaystyle \mathbf {L} ^{-1}=\mathbf {L} ^{\mathrm {T} }}$

The transformation of components can be fully written:

 ${\displaystyle {\begin{array}{c}{\bar {x}}^{j}=x^{i}L_{i}{}^{j}=x^{i}{\frac {\partial {\bar {x}}^{j}}{\partial x^{i}}}=x^{i}{\bar {\mathbf {e} }}_{i}\cdot \mathbf {e} _{j}=x^{i}\cos \theta _{ij}\\\upharpoonleft \downharpoonright \\x^{i}={\bar {x}}^{i}\left(L_{i}{}^{j}\right)^{-1}={\bar {x}}^{i}L^{j}{}_{i}={\bar {x}}^{i}{\frac {\partial x^{j}}{\partial {\bar {x}}^{i}}}={\bar {x}}^{i}\mathbf {e} _{i}\cdot {\bar {\mathbf {e} }}_{j}={\bar {x}}^{i}\cos \theta _{ji}\end{array}}}$

in matrix form

${\displaystyle {\bar {\mathbf {x} }}=\mathbf {L} \mathbf {x} }$
${\displaystyle {\begin{pmatrix}{\bar {x}}^{1}\\{\bar {x}}^{2}\\{\bar {x}}^{3}\end{pmatrix}}={\begin{pmatrix}{\frac {\partial {\bar {x}}^{1}}{\partial x^{1}}}&{\frac {\partial {\bar {x}}^{1}}{\partial x^{2}}}&{\frac {\partial {\bar {x}}^{1}}{\partial x^{3}}}\\{\frac {\partial {\bar {x}}^{2}}{\partial x^{1}}}&{\frac {\partial {\bar {x}}^{2}}{\partial x^{2}}}&{\frac {\partial {\bar {x}}^{2}}{\partial x^{3}}}\\{\frac {\partial {\bar {x}}^{3}}{\partial x^{1}}}&{\frac {\partial {\bar {x}}^{3}}{\partial x^{2}}}&{\frac {\partial {\bar {x}}^{3}}{\partial x^{3}}}\end{pmatrix}}{\begin{pmatrix}x^{1}\\x^{2}\\x^{3}\end{pmatrix}}={\begin{pmatrix}{\bar {\mathbf {e} }}_{1}\cdot \mathbf {e} _{1}&{\bar {\mathbf {e} }}_{1}\cdot \mathbf {e} _{2}&{\bar {\mathbf {e} }}_{1}\cdot \mathbf {e} _{3}\\{\bar {\mathbf {e} }}_{2}\cdot \mathbf {e} _{1}&{\bar {\mathbf {e} }}_{2}\cdot \mathbf {e} _{2}&{\bar {\mathbf {e} }}_{2}\cdot \mathbf {e} _{3}\\{\bar {\mathbf {e} }}_{3}\cdot \mathbf {e} _{1}&{\bar {\mathbf {e} }}_{3}\cdot \mathbf {e} _{2}&{\bar {\mathbf {e} }}_{3}\cdot \mathbf {e} _{3}\end{pmatrix}}{\begin{pmatrix}x^{1}\\x^{2}\\x^{3}\end{pmatrix}}={\begin{pmatrix}\cos \theta _{11}&\cos \theta _{12}&\cos \theta _{13}\\\cos \theta _{21}&\cos \theta _{22}&\cos \theta _{23}\\\cos \theta _{31}&\cos \theta _{32}&\cos \theta _{33}\end{pmatrix}}{\begin{pmatrix}x^{1}\\x^{2}\\x^{3}\end{pmatrix}}}$

similarly for

${\displaystyle \mathbf {x} =\mathbf {L} ^{-1}{\bar {\mathbf {x} }}=\mathbf {L} ^{\mathrm {T} }{\bar {\mathbf {x} }}}$

The geometric interpretation is the xi components equal to the sum of projecting the xj components onto the xj axes.

## Transformations of Cartesian tensors (any number of dimensions)

### Second order

Tensors are defined as quantities which transform in a certain way under linear transformations of coordinates.

Let a = aiei and b = biei be two vectors, so that they transform according to aj = aiLij, bj = biLij.

Taking the tensor product gives:

${\displaystyle \mathbf {a} \otimes \mathbf {b} =a^{i}\mathbf {e} _{i}\otimes b^{j}\mathbf {e} _{j}=a^{i}b^{j}\mathbf {e} _{i}\otimes \mathbf {e} _{j}}$

then applying the transformation to the components

${\displaystyle {\bar {a}}^{p}{\bar {b}}^{q}=a^{i}L_{i}{}^{p}b^{j}L_{j}{}^{q}=L_{i}{}^{p}L_{j}{}^{q}a^{i}b^{j}}$

and to the bases

${\displaystyle {\bar {\mathbf {e} }}_{p}\otimes {\bar {\mathbf {e} }}_{q}=\left(L_{p}{}^{i}\right)^{-1}\mathbf {e} _{i}\otimes \left(L_{q}{}^{j}\right)^{-1}{\bar {\mathbf {e} }}_{j}=\left(L_{p}{}^{i}\right)^{-1}\left(L_{q}{}^{j}\right)^{-1}\mathbf {e} _{i}\otimes {\bar {\mathbf {e} }}_{j}=L^{i}{}_{p}L^{j}{}_{q}\mathbf {e} _{i}\otimes {\bar {\mathbf {e} }}_{j}}$

gives the transformation law of an order-2 tensor. The tensor ab is invariant under this transformation:

${\displaystyle {\begin{array}{cl}{\bar {a}}^{p}{\bar {b}}^{q}{\bar {\mathbf {e} }}_{p}\otimes {\bar {\mathbf {e} }}_{q}&=L_{k}{}^{p}L_{\ell }{}^{q}a^{k}b^{\ell }\,\left(L_{p}{}^{i}\right)^{-1}\left(L_{q}{}^{j}\right)^{-1}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\\&=L_{k}{}^{p}\left(L_{p}{}^{i}\right)^{-1}L_{\ell }{}^{q}\left(L_{q}{}^{j}\right)^{-1}\,a^{k}b^{\ell }\mathbf {e} _{i}\otimes \mathbf {e} _{j}\\&=\delta _{k}{}^{i}\delta _{\ell }{}^{j}\,a^{k}b^{\ell }\mathbf {e} _{i}\otimes \mathbf {e} _{j}\\&=a^{i}b^{j}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\end{array}}}$

More generally, for any order-2 tensor

${\displaystyle \mathbf {R} =R^{ij}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\,,}$

the components transform according to;

${\displaystyle {\bar {R}}^{pq}=L_{i}{}^{p}L_{j}{}^{q}R^{ij}}$,

and the basis transforms by:

${\displaystyle {\bar {\mathbf {e} }}_{p}\otimes {\bar {\mathbf {e} }}_{q}=\left(L_{i}{}^{p}\right)^{-1}\mathbf {e} _{i}\otimes \left(L_{j}{}^{q}\right)^{-1}\mathbf {e} _{j}}$

If R does not transform according to this rule - whatever quantity R may be, it's not an order 2 tensor.

### Third order

Now suppose we have an additional vector c = ciei which transforms according to cj = ciLij.

Taking the tensor product with the other two vectors a and b above gives:

${\displaystyle \mathbf {a} \otimes \mathbf {b} \otimes \mathbf {c} =a^{i}\mathbf {e} _{i}\otimes b^{j}\mathbf {e} _{j}\otimes c^{k}\mathbf {e} _{k}=a^{i}b^{j}c^{k}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\otimes \mathbf {e} _{k}}$

then applying the transformation to the components gives the transformation law of an order-3 tensor:

${\displaystyle {\bar {a}}^{p}{\bar {b}}^{q}{\bar {c}}^{r}=a^{i}L_{i}{}^{p}b^{j}L_{j}{}^{q}c^{k}L_{k}{}^{r}=L_{i}{}^{p}L_{j}{}^{q}L_{k}{}^{r}a^{i}b^{j}c^{k}}$

and to the bases

${\displaystyle {\begin{array}{cl}{\bar {\mathbf {e} }}_{p}\otimes {\bar {\mathbf {e} }}_{q}\otimes {\bar {\mathbf {e} }}_{r}&=\left(L_{p}{}^{i}\right)^{-1}\mathbf {e} _{i}\otimes \left(L_{q}{}^{j}\right)^{-1}{\bar {\mathbf {e} }}_{j}\otimes \left(L_{r}{}^{k}\right)^{-1}{\bar {\mathbf {e} }}_{k}\\&=\left(L_{p}{}^{i}\right)^{-1}\left(L_{q}{}^{j}\right)^{-1}\left(L_{r}{}^{k}\right)^{-1}\,\mathbf {e} _{i}\otimes {\bar {\mathbf {e} }}_{j}\otimes {\bar {\mathbf {e} }}_{k}\\&=L^{i}{}_{p}L^{j}{}_{q}L^{k}{}_{r}\,\mathbf {e} _{i}\otimes {\bar {\mathbf {e} }}_{j}\otimes {\bar {\mathbf {e} }}_{k}\end{array}}}$

gives the transformation law of an order-3 tensor. The tensor abc is invariant under this transformation:

${\displaystyle {\begin{array}{cl}{\bar {a}}^{p}{\bar {b}}^{q}{\bar {c}}^{r}{\bar {\mathbf {e} }}_{p}\otimes {\bar {\mathbf {e} }}_{q}\otimes {\bar {\mathbf {e} }}_{r}&=L_{\ell }{}^{p}L_{m}{}^{q}L_{n}{}^{r}a^{\ell }b^{m}c^{n}\left(L_{p}{}^{i}\right)^{-1}\left(L_{q}{}^{j}\right)^{-1}\left(L_{r}{}^{k}\right)^{-1}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\otimes \mathbf {e} _{k}\\&=L_{\ell }{}^{p}\left(L_{p}{}^{i}\right)^{-1}L_{m}{}^{q}\left(L_{q}{}^{j}\right)^{-1}L_{n}{}^{r}\left(L_{r}{}^{k}\right)^{-1}\,a^{\ell }b^{m}c^{n}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\otimes \mathbf {e} _{k}\\&=\delta _{\ell }{}^{i}\delta _{m}{}^{j}\delta _{n}{}^{k}\,a^{\ell }b^{m}c^{n}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\otimes \mathbf {e} _{k}\\&=a^{i}b^{j}c^{k}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\otimes \mathbf {e} _{k}\end{array}}}$

For any order-3 tensor

${\displaystyle \mathbf {S} =S^{ijk}\mathbf {e} _{i}\otimes \mathbf {e} _{j}\otimes \mathbf {e} _{k}\,,}$

the components transform according to:

${\displaystyle {\bar {S}}^{pqr}=L_{i}{}^{p}L_{j}{}^{q}L_{k}{}^{r}S^{ijk}}$

and the basis transforms by:

${\displaystyle {\bar {\mathbf {e} }}_{p}\otimes {\bar {\mathbf {e} }}_{q}\otimes {\bar {\mathbf {e} }}_{r}=\left(L_{p}{}^{i}\right)^{-1}\mathbf {e} _{i}\otimes \left(L_{q}{}^{j}\right)^{-1}\mathbf {e} _{j}\otimes \left(L_{r}{}^{k}\right)^{-1}\mathbf {e} _{k}}$.

If S does not transform according to this rule - whatever quantity S may be, it's not an order-3 tensor.

### Any order

More generally, for any order p tensor

${\displaystyle \mathbf {T} =T^{i_{1}i_{2}\cdots i_{p}}\mathbf {e} _{i_{1}}\otimes \mathbf {e} _{i_{2}}\otimes \cdots \mathbf {e} _{i_{p}}}$

the components transform according to;

${\displaystyle {\bar {T}}^{j_{1}j_{2}\cdots j_{p}}=L_{i_{1}}{}^{j_{1}}L_{i_{2}}{}^{j_{2}}\cdots L_{i_{p}}{}^{j_{p}}T^{i_{1}i_{2}\cdots i_{p}}}$

and the basis transforms by:

${\displaystyle {\bar {\mathbf {e} }}_{i_{1}}\otimes {\bar {\mathbf {e} }}_{i_{2}}\cdots \otimes {\bar {\mathbf {e} }}_{j_{p}}=\left(L_{j_{1}}{}^{i_{1}}\right)^{-1}\mathbf {e} _{j_{1}}\otimes \left(L_{j_{2}}{}^{i_{2}}\right)^{-1}\mathbf {e} _{j_{2}}\cdots \otimes \left(L_{j_{p}}{}^{i_{p}}\right)^{-1}\mathbf {e} _{j_{p}}}$

If T does not transform according to this rule - whatever quantity T may be it's not an order-3 tensor.

## Invariance, covariance, contravariance, and tensor type

The transformation of generally mixed tensor of type (p, q) is as follows.

Tensor elements Transformation law
Tensor components ${\displaystyle T_{\underbrace {\scriptstyle {\overline {i}}{\overline {j}}{\overline {k}}\cdots } _{q\,\mathrm {indices} }}^{\overbrace {\scriptstyle {\overline {a}}{\overline {b}}{\overline {c}}\cdots } ^{p\,\mathrm {indices} }}=T_{\underbrace {\scriptstyle ijk\cdots } _{q\,\mathrm {indices} }}^{\overbrace {\scriptstyle abc\cdots } ^{p\,\mathrm {indices} }}\underbrace {L_{a}{}^{\overline {a}}L_{b}{}^{\overline {b}}L_{c}{}^{\overline {c}}\cdots } _{p\,\mathrm {factors} }\underbrace {L_{\overline {i}}^{i}L_{\overline {j}}{}^{j}L_{\overline {k}}{}^{k}\cdots } _{q\,\mathrm {factors} }}$
Tensor basis ${\displaystyle \mathbf {e} _{{\overline {a}}{\overline {b}}{\overline {c}}\cdots }^{{\overline {i}}{\overline {j}}{\overline {k}}\cdots }=\mathbf {e} _{abc\cdots }^{ijk\cdots }\underbrace {L_{\overline {a}}{}^{a}L_{\overline {b}}{}^{b}L_{\overline {c}}{}^{c}\cdots } _{p\,\mathrm {factors} }\underbrace {L_{i}{}^{\overline {i}}L_{j}{}^{\overline {j}}L_{k}{}^{\overline {k}}\cdots } _{q\,\mathrm {factors} }}$

where

${\displaystyle {\begin{array}{c}\mathbf {e} _{{\overline {a}}{\overline {b}}{\overline {c}}\cdots }^{{\overline {i}}{\overline {j}}{\overline {k}}\cdots }=\underbrace {\textstyle \mathbf {e} _{\overline {a}}\otimes \mathbf {e} _{\overline {b}}\otimes \mathbf {e} _{\overline {c}}\cdots } _{p\,\mathrm {indices} }\otimes \overbrace {\textstyle \mathbf {e} ^{\overline {i}}\otimes \mathbf {e} ^{\overline {j}}\otimes \mathbf {e} ^{\overline {k}}\cdots } ^{q\,\mathrm {indices} }\\\mathbf {e} _{abc\cdots }^{ijk\cdots }=\underbrace {\textstyle \mathbf {e} _{a}\otimes \mathbf {e} _{b}\otimes \mathbf {e} _{c}\cdots } _{p\,\mathrm {indices} }\otimes \overbrace {\textstyle \mathbf {e} ^{i}\otimes \mathbf {e} ^{j}\otimes \mathbf {e} ^{k}\cdots } ^{q\,\mathrm {indices} }\end{array}}}$

Full tensor (components coupled to basis) ${\displaystyle T_{{\overline {i}}{\overline {j}}{\overline {k}}\cdots }^{{\overline {a}}{\overline {b}}{\overline {c}}\cdots }\mathbf {e} _{{\overline {a}}{\overline {b}}{\overline {c}}\cdots }^{{\overline {i}}{\overline {j}}{\overline {k}}\cdots }=T_{ijk\cdots }^{abc\cdots }\mathbf {e} _{abc\cdots }^{ijk\cdots }}$

since

${\displaystyle L_{a}{}^{\overline {a}}L_{\overline {a}}{}^{a}=1\,,\,L_{b}{}^{\overline {b}}L_{\overline {b}}{}^{b}=1\,,\,\cdots }$

In the special case of Cartesian tensors, covariant and contravariant components and bases are identical. This is not true for general curvilinear coordinate systems.

## Second order Cartesian tensors in 3d

### Tensor product of Cartesian basis in 3d

A dyadic tensor T is an order 2 tensor formed by the tensor product (designated the symbol ⊗) of two Cartesian vectors a and b, again it can be written as a linear combination of the tensor basis exey, exez ... eyez, ezez

${\displaystyle {\begin{array}{ccl}\mathbf {T} &=&\mathbf {a} \otimes \mathbf {b} =\left(a_{x}\mathbf {e} _{x}+a_{y}\mathbf {e} _{y}+a_{z}\mathbf {e} _{z}\right)\otimes \left(b_{x}\mathbf {e} _{x}+b_{y}\mathbf {e} _{y}+b_{z}\mathbf {e} _{z}\right)\\&=&a_{xx}\mathbf {e} _{x}\otimes \mathbf {e} _{x}+a_{xy}\mathbf {e} _{x}\otimes \mathbf {e} _{y}+a_{xz}\mathbf {e} _{x}\otimes \mathbf {e} _{z}\\&&+a_{yx}\mathbf {e} _{y}\otimes \mathbf {e} _{x}+a_{yy}\mathbf {e} _{y}\otimes \mathbf {e} _{y}+a_{yz}\mathbf {e} _{y}\otimes \mathbf {e} _{z}\\&&+a_{zx}\mathbf {e} _{z}\otimes \mathbf {e} _{x}+a_{zy}\mathbf {e} _{z}\otimes \mathbf {e} _{y}+a_{zz}\mathbf {e} _{z}\otimes \mathbf {e} _{z}\end{array}}}$

representing each basis tensor as a matrix:

${\displaystyle \mathbf {e} _{x}\otimes \mathbf {e} _{x}={\begin{pmatrix}1&0&0\\0&0&0\\0&0&0\\\end{pmatrix}}\,,\quad \mathbf {e} _{x}\otimes \mathbf {e} _{y}={\begin{pmatrix}0&1&0\\0&0&0\\0&0&0\\\end{pmatrix}}\,,\quad \mathbf {e} _{x}\otimes \mathbf {e} _{z}={\begin{pmatrix}0&0&1\\0&0&0\\0&0&0\\\end{pmatrix}}}$
${\displaystyle \mathbf {e} _{y}\otimes \mathbf {e} _{x}={\begin{pmatrix}0&0&0\\1&0&0\\0&0&0\\\end{pmatrix}}\,,\quad \mathbf {e} _{y}\otimes \mathbf {e} _{y}={\begin{pmatrix}0&0&0\\0&1&0\\0&0&0\\\end{pmatrix}}\,,\quad \mathbf {e} _{y}\otimes \mathbf {e} _{z}={\begin{pmatrix}0&0&0\\0&0&1\\0&0&0\\\end{pmatrix}}}$
${\displaystyle \mathbf {e} _{z}\otimes \mathbf {e} _{x}={\begin{pmatrix}0&0&0\\0&0&0\\1&0&0\\\end{pmatrix}}\,,\quad \mathbf {e} _{z}\otimes \mathbf {e} _{y}={\begin{pmatrix}0&0&0\\0&0&0\\0&1&0\\\end{pmatrix}}\,,\quad \mathbf {e} _{z}\otimes \mathbf {e} _{z}={\begin{pmatrix}0&0&0\\0&0&0\\0&0&1\\\end{pmatrix}}}$

it can be represented more systematically as a matrix:

${\displaystyle \mathbf {T} ={\begin{pmatrix}a_{x}b_{x}&a_{x}b_{y}&a_{x}b_{z}\\a_{y}b_{x}&a_{y}b_{y}&a_{y}b_{z}\\a_{z}b_{x}&a_{z}b_{y}&a_{z}b_{z}\\\end{pmatrix}}}$

See matrix multiplication for the notational correspondence between matrices and the dot and tensor products.

### Second order reducible tensors in 3d

Cartesian dyadic tensors of second order are reducible, which means they can be re-expressed in terms of the two vectors as follows:

${\displaystyle \mathbf {T} =\mathbf {T} ^{(1)}+\mathbf {T} ^{(2)}+\mathbf {T} ^{(3)}}$
${\displaystyle T_{ij}^{(1)}={\frac {a_{k}b_{k}}{3}}\delta _{ij}}$
${\displaystyle T_{ij}^{(2)}={\frac {1}{2}}[a_{i}b_{j}-a_{j}b_{i}]=a_{[i}b_{j]}}$
${\displaystyle T_{ij}^{(3)}={\frac {1}{2}}(a_{i}b_{j}+a_{j}b_{i})-{\frac {a_{k}b_{k}}{3}}\delta _{ij}=a_{(i}b_{j)}-T_{ij}^{(1)}}$

where δij is the Kronecker delta, the components of the identity matrix. These three terms are irreducible representations, which means they cannot be decomposed further and still be tensors satisfying the defining transformation laws under which they must be invariant. Each of the irreducible representations transform like angular momentum according to the number of independent components.

## References

### Notes

• D.C. Kay (1988). Tensor Calculus. Schaum’s Outlines. McGraw Hill. p. 18-19, 31-32. ISBN 0-07-033484-6.
• M.R. Spiegel, S. Lipcshutz, D. Spellman (2009). Vector analysis. Schaum’s Outlines (2nd ed.). McGraw Hill. p. 227. ISBN 978-0-07-161545-7.