Tensor contraction
= Tensor contraction
{wiki}
A <tensor contraction> pairs one <vector> index with one <covector> index using evaluation, reducing the total tensor order by two. In components,
$$
C^{i_1\cdots i_{p-1}}{}_{j_1\cdots j_{q-1}}=\sum_a T^{i_1\cdots i_{p-1}a}{}_{j_1\cdots j_{q-1}a}.
$$
Because a <basis> change acts inversely on the paired indices, the result is again a <tensor> independent of coordinates.
The <trace> of a <linear operator> is the contraction $T^i{}_i$. A <metric tensor> is needed to contract two indices of the same variance, for example $g^{ij}T_{ij}$. Merely summing equal coordinate labels without the appropriate vector-dual pairing is not generally invariant under a change of <basis>.