Definitions
Multidimensional arrays
In a fixed basis, a tensor of type is represented as a multidimensional array of components $ T^{i_1 \dots i_k}_{j_1 \dots j_l} $, where the upper indices $ i_1, \dots, i_k $ are contravariant and the lower indices $ j_1, \dots, j_l $ are covariant, each ranging over the dimension of the underlying vector space.[6] This array generalizes lower-rank objects: a rank-0 tensor (scalar) is a single number $ T $ with no indices; a rank-1 contravariant tensor (vector) is a one-dimensional array $ v^i $; and a rank-1 covariant tensor is $ w_j $. For rank-2 tensors, a tensor forms a two-dimensional array like a contravariant matrix, while a tensor is explicitly a two-dimensional array, such as
in two dimensions, representing mixed contravariant and covariant components.[7]
The key property distinguishing such arrays as tensors is their transformation law under a change of basis. If the coordinates transform via $ x' = f(x) $, the components in the new basis are given by
where the partial derivatives account for the Jacobian of the coordinate change.[6] For the scalar case (), the components are invariant: $ T' = T k=1, l=0$) transforms as $ v'^{i} = \frac{\partial x'^{i}}{\partial x^{m}} v^{m} k=0, l=1$) uses $ w'{j} = \frac{\partial x^{n}}{\partial x'^{j}} w{n} $. This law ensures the array encodes a basis-independent object, as the numerical values adjust to preserve the tensor's intrinsic meaning across coordinate systems.[7]
Although the multidimensional array provides a concrete representation, it is inherently basis-dependent without the accompanying transformation rule, which specifies how components must vary to qualify as a tensor rather than an arbitrary collection of numbers.[8] For instance, a matrix array alone might describe a linear map in one basis, but only the transformation law confirms it as a tensor. This array view corresponds to the components of an abstract multilinear map expressed in a specific basis.[6]
Multilinear maps
In multilinear algebra, a tensor can be defined abstractly and in a basis-independent manner as a multilinear map between vector spaces.[9] Specifically, a -tensor over a vector space with dual space and field is a multilinear map , meaning is linear in each of its arguments when the others are fixed.[9] This definition captures the essential structure of tensors as higher-order generalizations of linear functionals, where linearity holds separately in every slot.[10] Multilinearity ensures that tensors behave predictably under scalar multiplication and addition in each input, facilitating their use in algebraic constructions. For instance, a bilinear form, which is a -tensor, maps linearly in both arguments; the standard inner product on exemplifies this, satisfying and similarly for the second argument.[9] Such forms are foundational, as they extend scalar products to more variables while preserving the multilinear property.[11] The space of all -tensors, denoted , forms a vector space itself, isomorphic to the space of -dimensional arrays via a choice of basis for . Given a basis for and dual basis for , the components of are given by
which represent uniquely in coordinates and highlight the array manifestation of the abstract map.[9]
This functional perspective distinguishes pure tensors, which arise from mappings on a single space like (all contravariant) or (all covariant), from mixed tensors that combine inputs from both and . The multilinear map definition emphasizes invariance under basis changes, contrasting with the coordinate-dependent view of multidimensional arrays.[9]
Tensor products of modules
In the context of module theory, the tensor product of two modules and over a commutative ring , denoted , is defined as an -module equipped with a bilinear map given by , such that this map satisfies the universal property for bilinear maps.[2] Specifically, for any -module and any -bilinear map , there exists a unique -linear map such that , or equivalently, .[2] The elements are called pure or elementary tensors, and they generate as an -module, subject to the relations enforcing bilinearity: , , and for .[2] This construction extends naturally to multi-fold tensor products. The -fold tensor power is the iterated tensor product ( times), which serves as the universal module for -linear maps from to another module.[2] For -tensors over a module , the tensor space is given by , where is the dual module and is the -fold tensor power of the dual.[12] Pure -tensors take the form with and , while general elements are finite sums of such pure tensors.[12] The universality of the tensor product ensures that any -linear map from to a module factors uniquely through , and similarly for mixed -linear maps through .[2] Explicitly, the tensor product can be constructed as a quotient module: let be the free -module on the set , generated by symbols ; then , where is the submodule generated by the bilinearity relations , , and (with symmetric relations for the second argument).[2] This quotient construction generalizes to multi-fold products by taking the free module on the Cartesian product and quotienting by the corresponding multilinearity relations.[2]Historical Development
Early concepts in geometry and physics
The concept of tensors emerged intuitively in 19th-century physics and geometry through structures that captured multilinear relationships. In continuum mechanics, Augustin-Louis Cauchy introduced the stress tensor in 1822 to describe internal forces in deformable bodies, formalizing the idea of a second-rank tensor representing traction on surfaces. This provided an early example of a multilinear map relating surface elements to force vectors.[13] In geometry, Bernhard Riemann laid foundational ideas in his 1854 habilitation lecture (published 1867), introducing metric tensors and the curvature tensor to describe intrinsic geometry of manifolds, enabling the study of non-Euclidean spaces through multilinear forms on tangent spaces. These concepts prefigured modern tensor analysis in differential geometry. Elwin Bruno Christoffel contributed further in 1869 with his introduction of symbols—now known as Christoffel symbols—that encoded the curvature of surfaces and higher-dimensional manifolds through third-order quantities derived from metric tensors, enabling the computation of geodesic deviations without explicit coordinate dependence.[14] These symbols facilitated the study of intrinsic geometry on curved spaces, influencing subsequent developments in differential geometry. During the 1880s, Josiah Willard Gibbs developed vector analysis, incorporating dyadics—multilinear products of vectors—that functioned similarly to second-rank tensors, used to express physical laws like stress and strain in a coordinate-independent manner. This work bridged quaternionic methods and modern vector calculus, highlighting multilinear structures in physics. William Rowan Hamilton's quaternions, introduced in 1843, represented rotations in three-dimensional space through bilinear operations and were associated with quadratic forms. Hamilton used the term "tensor" in 1846 to describe such forms in quaternion algebra, marking an early, though distinct, recognition of transformation properties under coordinate changes.[15] In electromagnetism, James Clerk Maxwell employed a similar tensorial construct in the 1870s, developing the stress tensor to describe the mechanical stresses induced by electric and magnetic fields, as detailed in his 1873 Treatise on Electricity and Magnetism, where it quantified momentum flux and forces in electromagnetic media. This second-rank tensor provided a mathematical framework for the interaction between fields and matter, prefiguring broader applications in continuum mechanics. The term "tensor" in its modern sense, referring to multilinear forms transforming in specific ways, was coined by Woldemar Voigt in 1898 to describe the elastic properties of crystals, where symmetric tensors captured anisotropic responses.[16] Gregorio Ricci-Curbastro advanced these notions in the late 1880s and 1890s through his formulation of absolute differential calculus, a coordinate-independent approach to differentiation on manifolds, where he introduced the covariant derivative in 1886 to extend ordinary derivatives to tensor fields while preserving their transformation properties under curvilinear coordinates.[17] Ricci's work emphasized "absolute" quantities free from arbitrary reference frames, laying groundwork for tensor manipulation in non-Euclidean settings. In collaboration with his student Tullio Levi-Civita, Ricci synthesized these ideas in the seminal 1900 memoir Méthodes de calcul différentiel absolu et leurs applications, which systematically outlined rules for tensor operations, including contraction and differentiation, and demonstrated their utility in solving partial differential equations on manifolds.[18] This publication crystallized early tensor concepts, bridging geometry and physics before their abstract algebraic reformulation in the 20th century.Abstract algebraic formulation
The abstract algebraic formulation of tensors marked a significant shift in the early 20th century toward coordinate-free definitions, emphasizing multilinear structures in a rigorous, axiomatic manner applicable across algebra, geometry, and analysis. This approach abstracted tensors from their origins in specific coordinate systems, viewing them instead as universal constructions that preserve multilinearity without reliance on bases. Building briefly on the tensor calculus of Gregorio Ricci-Curbastro, this development prioritized intrinsic properties over explicit components, enabling broader generalizations in pure mathematics.[19] In the 1920s, Oswald Veblen advanced an axiomatic treatment of differential geometry at Princeton, defining tensors as multilinear maps between the tangent spaces of a manifold and their duals, or more generally between finite direct sums of these spaces. This framework, elaborated in collaborative works such as those with J.H.C. Whitehead, established tensors as geometric objects invariant under diffeomorphisms, providing a foundation for modern differential geometry without coordinate dependence. Veblen's postulationist method integrated tensors into a systematic axiomatic system, influencing subsequent geometric theories.[19] The 1940s and 1950s saw Jean Dieudonné and the Bourbaki collective formalize tensor theory within multilinear algebra over arbitrary modules, presenting tensors as elements of iterated tensor products of modules with a ring. Their treatment in the "Éléments de mathématique" series, particularly Algèbre Chapter 3 (developed in seminars from the late 1940s and published in 1958), defined tensor products functorially, incorporating alternatization for exterior powers and symmetrization for symmetric algebras. This axiomatic synthesis unified tensors across commutative and non-commutative settings, prioritizing module-theoretic generality.[20] A pivotal milestone in the 1950s was the identification of tensor categories, where categories equipped with a monoidal structure (tensor product) and compatible natural isomorphisms capture tensorial phenomena abstractly. Exemplified by the category of finite-dimensional representations of finite groups, which forms a semisimple tensor category, this concept arose amid the maturation of category theory and facilitated reconstructions of algebraic structures from representation data.[21][22]Fundamental Examples
Scalar, vector, and matrix as tensors
A scalar is a tensor of rank 0, consisting of a single component that remains invariant under changes of basis or coordinate transformations.[23] For example, a scalar field φ, such as φ = 5, does not change its value regardless of the coordinate system used.[24] Tensors of rank 1 include contravariant vectors and covariant covectors. A contravariant vector $ v^i $ transforms under a coordinate change from $ x $ to $ x' $ according to the law
where the components adjust to maintain the vector's directional properties relative to the new basis.[25] In contrast, a covariant covector $ \omega_i $ follows the transformation
ensuring it pairs correctly with contravariant vectors to yield scalars invariant under basis changes.[25]
A matrix can represent a tensor of rank 2 with type (1,1), such as a linear transformation $ A^i_j $, which mixes contravariant and covariant indices. Its components transform as
reflecting the combined behavior of one contravariant and one covariant index.[25] In Euclidean space, an example is the rotation tensor for a counterclockwise rotation by angle θ around the z-axis, given by the 3×3 matrix
This matrix acts as a (1,1)-tensor, transforming vectors while preserving lengths and angles in the space.[26]
Covariant and contravariant tensors
In tensor analysis, contravariant tensors are defined by their transformation properties under a change of coordinates. For a rank-one contravariant tensor, or vector, with components in coordinates , the components in new coordinates transform according to the law
where is the Jacobian matrix of the coordinate transformation.[27] This transformation ensures that the tensor scales with the basis vectors, preserving the geometric object it represents. A classic example is the displacement vector, whose components satisfy , reflecting how infinitesimal displacements change with the coordinate system.[28] For higher-rank contravariant tensors, each upper index introduces an additional factor of the Jacobian, resulting in a product of such matrices for a (k,0)-tensor.
Covariant tensors, in contrast, transform with the inverse Jacobian to maintain invariance of scalar products and inner operations. A rank-one covariant tensor, or covector, with components transforms as
This law applies because covariant components align with the dual basis, scaling inversely to the coordinate differentials.[27] An illustrative example is the gradient of a scalar field , whose components satisfy the transformation since remains unchanged under coordinate shifts, requiring the partial derivatives to adjust oppositely to .[29] Higher-rank covariant tensors of type (0,l) involve factors of the inverse Jacobian, one per lower index.
Mixed tensors combine both types, with upper indices transforming contravariantly and lower indices covariantly. For a (1,1)-tensor , the transformation is
The velocity gradient tensor , which describes the rate of change of velocity components with respect to position, exemplifies a mixed (1,1)-tensor in continuum mechanics.[30] In general, a (k,l)-tensor has contravariant and covariant indices, with the transformation law multiplying the appropriate Jacobians.
The metric tensor , a covariant (0,2)-tensor, plays a crucial role in interconverting between covariant and contravariant forms by raising and lowering indices. To lower an index on a contravariant vector , one computes ; conversely, the inverse metric raises an index via .[31] In the context of general relativity, the metric often adopts the signature , where the time component is positive and the spatial components are negative, ensuring compatibility with the Lorentzian geometry of spacetime.[32] Covariant and contravariant tensors represent special cases of general (k,l)-tensors where either the number of covariant or contravariant indices is zero.
Algebraic Properties
Rank, order, and components
In multilinear algebra, a tensor is classified by its type as a -tensor, where denotes the number of contravariant indices and the number of covariant indices, with the total order or rank defined as .[33] This order quantifies the tensor's multilinearity, as it acts as a multilinear map from copies of the dual space and copies of the vector space to the base field.[33] Given a basis for of dimension , the components of a -tensor are the scalars , where the upper indices range from 1 to and the lower indices range from 1 to , fully specifying in that basis.[34] The total number of independent components is thus , reflecting the dimension of the tensor space .[33] These components transform covariantly under change of basis, preserving the tensor's intrinsic structure. Any tensor of order admits a decomposition as a finite sum of pure rank- tensors, which are simple tensors of the form for vectors in or .[35] The tensor rank is defined as the minimal number of such rank- terms required in the sum, generalizing the matrix rank for order- tensors, where it coincides with the dimension of the image under the associated linear map.[34] Computing this rank is -hard in general for orders greater than 2, but it provides a measure of the tensor's "complexity" or minimal dimensionality.[35] Certain scalar quantities derived from tensors remain invariant under orthogonal transformations of the basis, serving as structural invariants. For a rank- tensor , the trace (sum over ) is such an invariant, as the trace equals the sum of eigenvalues of the associated linear endomorphism and is preserved under change of basis.[36] This invariance extends to higher-order cases via contractions, but for rank-, the trace captures the tensor's volumetric or isotropic component.[36]Symmetry and skew-symmetry
In multilinear algebra, a symmetric tensor of order over a vector space is a -linear map that remains invariant under any permutation of its arguments, meaning for any permutation in the symmetric group .[37] This property implies that the tensor lies in the symmetric subspace of the full tensor space , which is obtained as the quotient of by the ideal generated by elements of the form .[38] A classic example is the metric tensor , a rank-2 covariant tensor satisfying , which defines an inner product on the tangent space by symmetrizing the bilinear form.[39] In contrast, a skew-symmetric (or antisymmetric) tensor changes sign under the transposition of any two arguments, so for , and it vanishes if any two arguments are identical.[40] The space of such tensors, denoted or , is the quotient of by the relations enforcing this antisymmetry, with dimension for .[41] For rank 2, an antisymmetric tensor has independent components; in 3 dimensions, this yields 3 components, corresponding to the cross product via the identification . The electromagnetic field tensor exemplifies this, with , encoding the antisymmetric structure of the field strengths.[42] For higher-rank tensors, partial symmetries arise when the tensor is symmetric or skew-symmetric only in specific subsets of indices. The Riemann curvature tensor , for instance, is skew-symmetric in the last two indices, satisfying , while also exhibiting other paired symmetries such as for antisymmetry in the first pair of indices (up to sign conventions).[43] These partial symmetries reduce the number of independent components: for the Riemann tensor in dimensions, the skew-symmetry in alone imposes constraints per fixed , contributing to an overall count of independent entries.[44] Such structures often emerge in the alternation or symmetrization projectors applied to the full tensor space, facilitating decomposition into irreducible representations under the action of the general linear group.[41] The quotient construction for symmetric and skew-symmetric subspaces highlights dimension reduction: the full rank- tensor space has dimension , but the symmetric quotient has dimension , while the skew-symmetric one has , reflecting the orbits under index permutations.[38] This algebraic framework underlies efficient computations, such as in contractions where symmetric tensors pair naturally with symmetric test functions to yield scalars.[33]Notational Conventions
Index-based notations
Index-based notations for tensors rely on coordinate systems where tensors are expressed through their components using indices, facilitating algebraic manipulations in specific bases. These notations emphasize the transformation properties of tensors under changes of coordinates, distinguishing between contravariant (upper indices) and covariant (lower indices) components. Such representations are essential in fields like differential geometry and physics, where explicit calculations in local coordinates are required. The Ricci calculus, developed by Gregorio Ricci-Curbastro and Tullio Levi-Civita, forms the foundation of index-based tensor notation. In this system, contravariant tensors are denoted with upper indices, such as $ T^{i_1 i_2 \dots i_k} $, while covariant tensors use lower indices, like $ S_{j_1 j_2 \dots j_m} $. A mixed tensor combines both, for example, $ A^i_j $. The position of indices indicates how the components transform: contravariant indices scale inversely with the coordinate differentials, and covariant indices scale directly. This notation extends to operations like the covariant derivative, denoted $ \nabla_k T^{i \dots}_{j \dots} $, which accounts for the curvature of the space by incorporating Christoffel symbols.[45] A key feature of index-based notations is the Einstein summation convention, introduced by Albert Einstein to streamline expressions involving sums over indices. Under this convention, repeated indices in a term—once upper and once lower—are implicitly summed over their range, eliminating the need for explicit summation symbols. For instance, the scalar product of a contravariant vector $ v^i $ and a covariant vector $ w_i $ is written as $ v^i w_i $, equivalent to $ \sum_i v^i w_i $. This applies only to adjacent repeated indices within the same term, and free indices (appearing once) remain as is. The convention enhances readability in complex tensor equations, particularly in general relativity. Abstract index notation, proposed by Roger Penrose, refines index-based methods by treating indices as abstract labels that specify tensor type rather than concrete component values. In this approach, an expression like $ T^a_b $ denotes a tensor of type (1,1), where $ a $ and $ b $ are placeholders indicating one contravariant and one covariant slot, without reference to a particular basis. Operations follow the same rules as concrete index notation, including Einstein summation for contractions, but the notation remains basis-independent in form. This allows seamless transitions between abstract tensor equations and their component expansions, aiding proofs of tensorial character.[46] Common symbols in index-based notations include the Kronecker delta $ \delta^i_j $, which serves as the identity tensor and is defined as 1 if $ i = j $ and 0 otherwise, enabling index substitutions and projections. It was first employed by Leopold Kronecker in the context of discrete mathematics.[47] Complementing this is the Levi-Civita symbol $ \varepsilon^{i_1 \dots i_n} $, a totally antisymmetric tensor that equals the sign of the permutation of indices from 1 to $ n $, +1 for even permutations, -1 for odd, and 0 for repeats; it facilitates computations of determinants, cross products, and orientations in $ n $-dimensions. This symbol, introduced by Tullio Levi-Civita, is defined in flat space but extends to curved manifolds via the metric determinant.[48]Component-free and diagrammatic notations
Component-free notation expresses tensors as multilinear maps without reference to specific bases or indices, emphasizing their intrinsic properties. A tensor $ T $ of type $ (k, l) $ is denoted as a map $ T: (V^)^{\times k} \times V^{\times l} \to \mathbb{R} $ (or ), where $ V $ is a vector space and $ V^ $ its dual, such that $ T(u_1, \dots, u_k, \phi_1, \dots, \phi_l) $ applies the tensor to vectors $ u_i $ and covectors $ \phi_j $.[10] This formulation highlights the tensor's multilinearity, where scaling any argument scales the output linearly. For instance, a rank-1 contravariant tensor (vector) $ v $ acts as $ v(\phi) = \phi(v) $, akin to an inner product $ \langle v, \phi \rangle $.[10] Diagrammatic notations provide visual representations that abstract away indices, facilitating manipulation of tensor expressions. In Penrose graphical notation, tensors are depicted as boxes with lines (wires) emanating from them, where each line represents an index: upward lines for contravariant indices and downward for covariant. Contractions occur when lines connect between tensors, implicitly summing over the shared index, while unconnected lines denote free indices. For example, the trace of a rank-2 tensor $ T^i_j $, which sums $ T^i_i $, is shown as a box with a loop connecting its upper and lower lines.[49] This notation, introduced by Roger Penrose, simplifies verification of tensor identities through graphical rewritings, such as sliding lines or rotating diagrams without altering connectivity.[49] In quantum mechanics, bra-ket notation serves as a component-free representation for tensors on Hilbert spaces. A rank-2 tensor is expressed as the outer product $ |\psi\rangle\langle\phi| $, which acts multilinearly on a ket $ |\chi\rangle $ to yield $ |\psi\rangle\langle\phi|\chi\rangle = \langle\phi|\chi\rangle |\psi\rangle $, effectively a linear map from $ |\chi\rangle $ to a scaled $ |\psi\rangle $.[50] This Dirac notation treats states as abstract vectors, with the tensor product underlying multi-particle systems, such as $ |\psi\rangle \otimes |\phi\rangle $ for separable states.[50] These notations prove particularly advantageous in tensor networks, where high-rank tensors model complex systems like quantum many-body states. Diagrammatic forms, extending Penrose's approach, visualize network contractions and decompositions, reducing computational complexity by revealing symmetries and enabling efficient algorithms for tasks like ground-state approximation in condensed matter physics. For instance, matrix product states (MPS) and projected entangled pair states (PEPS) leverage such diagrams to manage exponential state spaces with polynomial resources.[51] This visual abstraction minimizes errors in index tracking and fosters intuitive proofs of equivalences, outperforming algebraic manipulations for networks exceeding low ranks.[52]Core Operations
Tensor product construction
The tensor product provides a means to combine two tensors into a higher-rank tensor while preserving multilinearity. For a -tensor , which is a multilinear map from copies of the dual space and copies of the vector space to the scalar field, and an -tensor , similarly defined, their tensor product is a -tensor given by
where the inputs to and are the initial and remaining segments of the full argument list, respectively.[53] This construction extends the bilinear case, where the product of two linear forms (1,0)-tensors acts by separate application followed by scalar multiplication.[2]
In component notation, assuming a basis for , the components of the product tensor are the products of the corresponding components of the factors, with indices concatenated. Specifically,
This form arises naturally from the multilinearity and the choice of basis, ensuring the product tensor's components reflect the direct multiplication without summation.[53]
A concrete example is the outer product of two vectors, which are (1,0)-tensors. For vectors and , their tensor product is a (2,0)-tensor whose matrix representation in a basis is the rank-1 matrix , with components . This operation generalizes matrix multiplication in the sense of forming dyads but avoids contraction by keeping all indices free.[53]
More abstractly, the tensor product construction satisfies a universality property when viewed over a commutative ring , where and are -modules. The product is the universal -module equipped with a bilinear map such that any bilinear map from to another -module factors uniquely through it; this extends to tensors as elements of iterated tensor products, providing a foundation for multilinear algebra over rings.[2]
Contraction and trace
In tensor algebra, contraction is a fundamental operation that reduces the rank of a tensor by summing over a pair of indices, typically one contravariant (upper) and one covariant (lower), according to the Einstein summation convention.[54] For a general (k,l)-tensor $ T^{i_1 \dots i_k}{j_1 \dots j_l} $ with $ k \geq 1 $ and $ l \geq 1 $, the contraction between the r-th upper index and the s-th lower index yields a new tensor $ C^{i_1 \dots \hat{i_r} \dots i_k}{j_1 \dots \hat{j_s} \dots j_l} = \sum_{m=1}^n T^{i_1 \dots m \dots i_k}_{j_1 \dots m \dots j_l} $, where the sum is over the dimension $ n $ of the space, and the hats denote omitted indices; this results in a tensor of rank (k-1, l-1).[54] The operation is associative and can be applied multiple times to further reduce the rank, effectively generalizing the inner product to higher-order tensors.[54] The trace represents a specific instance of contraction for a rank-2 tensor, where all indices are contracted to produce a scalar invariant. For a (1,1)-tensor $ A^i_j $, the trace is defined as $ \operatorname{tr}(A) = A^i_i = \sum_{i=1}^n A^i_i $, which corresponds to the sum of the diagonal elements in a chosen basis.[54] This operation is basis-independent and plays a key role in determining invariants under linear transformations.[54] A practical example of contraction arises in the computation of the divergence of a vector field $ \mathbf{v} = v^i $, expressed as $ \nabla \cdot \mathbf{v} = \partial_i v^i $, which is the trace of the tensor formed by the partial derivative (covariant derivative in flat space) acting on the vector components.[54] Such contractions are essential in deriving conservation laws and are briefly utilized in analyzing tensor symmetries, such as those in representation theory.[54]Index manipulation
Index manipulation refers to the techniques employed in tensor calculus to convert between contravariant and covariant indices using the metric tensor, thereby altering the placement of indices on a tensor while preserving its overall rank and type classification. This process is essential for adapting tensor components to different coordinate systems or for facilitating computations in various geometric settings. The metric tensor $ g_{ij} $ and its inverse $ g^{ij} $, which satisfy $ g^{ik} g_{kj} = \delta^i_j $, serve as the operators for these transformations.[55] For a contravariant vector $ v^j $, the corresponding covariant vector is obtained by lowering the index through contraction with the metric:
Conversely, to raise a covariant index, the inverse metric is used:
These operations define an isomorphism between the contravariant and covariant vector spaces, ensuring that the inner product $ v^i w_i $ remains invariant under the transformation.[55][56]
Tensors of higher rank undergo index manipulation by successive application of these rules to each index. For a rank-two contravariant tensor $ T^{kl} $, the fully covariant version is formed as
where the metrics are contracted over the respective upper indices. This method extends analogously to mixed or higher-order tensors, such as lowering one index of $ T^{ij}m $ to yield $ T^i{k m} = g_{k j} T^{i j}_m $, allowing flexible reconfiguration of tensor components without loss of information.[55][56]
In non-Euclidean manifolds, the efficacy of index manipulation relies on the metric tensor's compatibility with the underlying affine connection, which guarantees that the metric remains covariantly constant, thereby preserving the consistency of raising and lowering operations under parallel transport. This property ensures that tensor manipulations align with the geometry's curvature without introducing inconsistencies.[57]
Applications in Physics and Engineering
Continuum mechanics and relativity
In continuum mechanics, tensors provide a mathematical framework for describing the deformation, stress, and flow of continuous media, capturing how materials respond to forces without regard to microscopic structure. Rank-2 tensors, such as the strain and stress tensors, are particularly central, as they transform appropriately under coordinate changes and encode directional dependencies. In the context of relativity, tensors extend this to curved spacetime, where the stress-energy tensor serves as the source of gravitational curvature, linking matter distribution to the geometry of the universe. The infinitesimal strain tensor, a symmetric rank-2 tensor, quantifies small deformations in elastic solids under the assumption of linear elasticity. It is defined as
where $ \mathbf{u} $ is the displacement vector field and indices $ i, j $ run over spatial coordinates.[58] This symmetrization ensures the tensor represents pure deformation, excluding rigid-body rotations, and its trace gives the volumetric strain. In Hooke's law, the stress tensor relates linearly to $ \varepsilon_{ij} $ via the elasticity tensor, enabling predictions of material behavior under applied loads. For larger deformations, where nonlinear effects dominate, finite strain theory employs the deformation gradient tensor, a rank-2 tensor that maps infinitesimal line elements from the reference (undeformed) configuration to the current (deformed) one:
with $ \mathbf{x} $ the current position and $ \mathbf{X} $ the reference position.[59] This tensor, generally non-symmetric, decomposes into stretch and rotation components via polar decomposition, allowing derivation of strain measures like the Green-Lagrange tensor for constitutive modeling in rubber-like materials or metal plasticity.
In rigid body dynamics, the inertia tensor governs rotational motion by relating angular velocity to angular momentum. Defined as
where $ \mathbf{r} $ is the position vector from the center of mass, $ \rho $ is mass density, and $ V $ is the body volume, it is a symmetric rank-2 tensor.[60] Diagonalization of $ I_{ij} $ yields the principal moments of inertia along the principal axes, simplifying Euler's equations for torque-free motion; for example, in spacecraft attitude control, these axes align with the body's symmetry to minimize energy dissipation.
In general relativity, the stress-energy tensor $ T^{\mu\nu} $, a symmetric rank-2 tensor, encodes the density and flux of energy and momentum, serving as the source term in the Einstein field equations:
where $ G_{\mu\nu} $ is the Einstein tensor derived from the metric, and units are chosen such that $ G = c = 1 $.[61] For a perfect fluid, $ T^{\mu\nu} = (\rho + p) u^\mu u^\nu + p g^{\mu\nu} $, with $ \rho $ energy density, $ p $ pressure, $ u^\mu $ four-velocity, and $ g^{\mu\nu} $ the metric tensor; this form explains phenomena like the expansion of the universe or black hole formation by coupling matter to spacetime curvature. Conservation laws follow from the Bianchi identities, ensuring $ \nabla_\mu T^{\mu\nu} = 0 $.
Electromagnetism and fluid dynamics
In electromagnetism, the Faraday tensor, denoted $ F_{\mu\nu} $, is a fundamental antisymmetric rank-2 tensor that encapsulates the electric and magnetic fields in a covariant manner. It is defined as $ F_{\mu\nu} = \partial_\mu A_\nu - \partial_\nu A_\mu $, where $ A_\mu $ is the four-potential.[62] The antisymmetry $ F_{\mu\nu} = -F_{\nu\mu} $ arises naturally from this curl-like construction, ensuring six independent components that correspond to the three electric field components $ \mathbf{E} $ and three magnetic field components $ \mathbf{B} $. Specifically, in the mostly-plus metric signature, the time-space components are $ F_{0i} = -E_i $, while the spatial components satisfy $ F_{ij} = \epsilon_{ijk} B^k $, where $ \epsilon_{ijk} $ is the Levi-Civita symbol.[63] This tensor formulation unifies Maxwell's equations into a single set of four equations, $ \partial_\mu F^{\mu\nu} = j^\nu $ and $ \partial_{[\lambda} F_{\mu\nu]} = 0 $, highlighting the gauge invariance and Lorentz covariance of electromagnetic phenomena.[64] An analogous structure appears in fluid dynamics through the vorticity tensor $ \omega_{\mu\nu} $, which bears a formal resemblance to the Faraday tensor by representing local rotation in the fluid flow. Defined similarly as $ \omega_{\mu\nu} = \partial_\mu v_\nu - \partial_\nu v_\mu $ (or often scaled by $ 1/2 $ in three dimensions to match the vorticity vector $ \boldsymbol{\omega} = \nabla \times \mathbf{v} $), this antisymmetric tensor captures the rotational component of the velocity field, with $ \omega_{ij} $ corresponding to the curl in spatial indices.[65] The analogy to $ F_{\mu\nu} $ is direct in relativistic hydrodynamics, where both are traceless rank-2 tensors encoding "field strengths" derived from potentials—in this case, the four-velocity $ v^\mu $—and both satisfy similar Bianchi identities or conservation laws in ideal flows.[66] This parallel facilitates cross-insights, such as treating vorticity transport equations like Maxwell's equations in magnetohydrodynamics, emphasizing conserved helicity in inviscid flows.[65] In the Navier-Stokes equations governing viscous incompressible flows, the velocity gradient tensor $ L_{ij} = \partial v_i / \partial x_j $ plays a central role in describing local deformation and rotation of fluid elements. This rank-2 tensor decomposes uniquely into a symmetric part, the strain rate tensor $ D_{ij} = \frac{1}{2} (L_{ij} + L_{ji}) $, which quantifies irreversible stretching and shearing (contributing to viscous dissipation), and an antisymmetric part, the rotation tensor $ W_{ij} = \frac{1}{2} (L_{ij} - L_{ji}) $, which represents rigid-body rotation without energy loss.[67] The trace of $ D_{ij} $ relates to the divergence $ \nabla \cdot \mathbf{v} $, enforcing incompressibility when zero, while $ W_{ij} $ links directly to the vorticity vector via $ \omega_k = -\frac{1}{2} \epsilon_{kij} W_{ij} $.[68] This decomposition is essential for deriving the stress tensor in Newtonian fluids, where viscous stresses are linear in $ D_{ij} $, and it underscores the balance between dissipative and inertial effects in boundary layers and shear flows.[69] For turbulent flows, the Reynolds stress tensor, a symmetric rank-2 tensor defined as $ \tau_{ij} = -\rho \langle u_i' u_j' \rangle $, models the momentum flux due to velocity fluctuations $ u_i' $.[70] Arising in the Reynolds-averaged Navier-Stokes equations, it accounts for enhanced transport beyond molecular viscosity, with diagonal elements representing normal stresses (like turbulent kinetic energy contributions) and off-diagonal elements capturing shear correlations.[71] In turbulence modeling, such as Reynolds stress models (RSM), transport equations for each $ \tau_{ij} $ component are solved, incorporating production, dissipation, and redistribution terms to predict anisotropic effects in complex geometries like jets or wakes, improving accuracy over eddy-viscosity approximations.[71] This tensor's trace relates to the turbulent kinetic energy $ k = \frac{1}{2} \langle u_i' u_i' \rangle $, providing a scale for fluctuation intensity, though full RSM requires careful closure for pressure-strain terms to ensure realizability.[72]Applications in Mathematics and Computing
Differential geometry and topology
In differential geometry, tensors play a central role in describing geometric structures on smooth manifolds, where they generalize the notion of multilinear maps to tangent and cotangent spaces at each point. A tensor field of type (k, l) on a manifold M is a smooth section of the tensor bundle T^k_l M, assigning to each point p ∈ M a multilinear map from l copies of the tangent space T_p M and k copies of the cotangent space T^*_p M to the real numbers. This framework allows for the coordinate-free treatment of geometric invariants, such as metrics and curvatures, essential for studying the intrinsic properties of manifolds. The covariant derivative provides a means to differentiate tensor fields along vector fields while preserving their tensorial nature under coordinate changes. For a vector field X and a tensor field T of type (k, l), the covariant derivative ∇X T is defined such that it satisfies the Leibniz rule and transforms correctly under parallelism. In local coordinates (x^i), the components of ∇X T are given by (∇X T)^{i_1 \dots i_k}{j_1 \dots j_l} = X^m \partial_m T^{i_1 \dots i_k}{j_1 \dots j_l} + \sum{r=1}^k \Gamma^{i_r}{m p} T^{i_1 \dots p \dots i_k}{j_1 \dots j_l} - \sum_{s=1}^l \Gamma^{q}{m j_s} T^{i_1 \dots i_k}{j_1 \dots q \dots j_l}, where Γ^k_{ij} are the Christoffel symbols encoding the connection's action. These symbols are symmetric in the lower indices for torsion-free connections like the Levi-Civita connection on Riemannian manifolds. Curvature arises naturally from the non-commutativity of covariant derivatives, quantifying how parallel transport deviates on manifolds. The Riemann curvature tensor R, a (1,3)-tensor field, measures this through its action on vector fields: R(X, Y)Z = ∇X ∇Y Z - ∇Y ∇X Z - ∇{[X,Y]} Z, where [X,Y] is the Lie bracket. In components, R^i{jkl} = ∂k Γ^i{jl} - ∂l Γ^i{jk} + Γ^i{km} Γ^m{jl} - Γ^i_{lm} Γ^m_{jk}, capturing sectional curvatures that determine the local geometry up to isometry. This tensor vanishes on flat spaces like Euclidean space but is nonzero on spheres, illustrating manifold rigidity. For conformal geometry, the Weyl tensor addresses the conformal invariance of the Riemann tensor under metric scalings g → e^{2φ} g. Defined as the trace-free part of the Riemann tensor, W^i_{jkl} = R^i_{jkl} - (1/(n-2)) (δ^i_k R_{jl} - ... ) + ..., the Weyl tensor in dimensions n ≥ 3 remains unchanged under such transformations, making it a key invariant for conformal classes of metrics. It vanishes in dimensions 2 or 3 but in higher dimensions, as in four-dimensional Lorentzian manifolds, it encodes gravitational degrees of freedom beyond Ricci curvature. In topology, tensors facilitate the study of manifold invariants via differential forms, which are antisymmetric covariant tensors. The de Rham cohomology groups H^k_{dR}(M) classify closed k-forms up to exact ones, where a k-form ω is a section of ∧^k T^* M, alternating under permutations. The cohomology is computed from the complex 0 → Ω^0(M) → Ω^1(M) → ... → Ω^n(M) → 0 with differential d satisfying d^2 = 0, and by de Rham's theorem, these groups are isomorphic to singular cohomology with real coefficients, linking smooth and topological structures. For example, on the torus T^2, H^1_{dR}(T^2) ≅ ℝ^2 reflects the two independent 1-cycles.Machine learning and data processing
In machine learning, tensors serve as multi-way arrays to represent complex, multidimensional data structures beyond simple matrices, enabling efficient analysis of high-dimensional datasets such as images, videos, or relational data.[73] Tensor decomposition techniques factorize these arrays into lower-rank components, uncovering latent patterns and reducing computational complexity in data processing tasks. A key method is the CANDECOMP/PARAFAC (CP) decomposition, which approximates a tensor as a sum of rank-one tensors, expressed for a 3D tensor as , where are vectors along each mode and is the rank.[73] This approach is widely applied in machine learning for tasks like latent factor discovery in multi-way data, such as recommender systems or topic modeling, where it extracts interpretable components from sparse, high-dimensional inputs. For instance, in analyzing 3D arrays from sensor data (e.g., time, frequency, and spatial dimensions), CP decomposition identifies underlying structures while minimizing storage needs.[73] The Tucker decomposition, also known as higher-order singular value decomposition (HOSVD), extends this by factoring a tensor into a core tensor and orthogonal factor matrices , given by , where denotes mode-n multiplication.[73] In machine learning, it facilitates dimensionality reduction for multidimensional data like images or videos by truncating the core tensor's singular values, preserving essential features while reducing parameters— for example, compressing hyperspectral video tensors to enable real-time analysis on resource-constrained devices. This method has demonstrated superior performance in unsupervised learning, such as feature extraction in video datasets, where it outperforms matrix-based PCA by capturing multi-linear interactions, leading to improvements in downstream classification accuracy.[74] In deep learning, tensors underpin the architecture of neural networks, particularly in convolutional layers where weights form 4D filter tensors with dimensions (out_channels, in_channels, height, width), enabling the application of learnable kernels to input feature maps.[75] These tensors process spatial hierarchies in data, such as RGB images represented as 3D arrays (channels, height, width), by sliding filters to detect edges or textures, which are then stacked across output channels for hierarchical feature learning.[75] This tensor-based formulation allows efficient parallel computation on GPUs, scaling to models like ResNet that handle millions of parameters while maintaining spatial invariance.[75] Graph neural networks (GNNs) leverage adjacency tensors to model higher-order interactions in non-Euclidean data, extending pairwise edges to multi-node relations via m-order tensors where entries indicate hyperedge presence. In hypergraph settings, this representation captures group dependencies, such as in social networks or molecular structures, through message passing that aggregates features via tensor outer products, approximated efficiently using CP decomposition to linearize complexity. For example, tensorized hypergraph neural networks (THNNs) have achieved state-of-the-art results on benchmarks like ModelNet40, with accuracies exceeding 96% by modeling uniform hyperedges as adjacency tensors, outperforming traditional GNNs on tasks requiring multi-relational reasoning.[76]Extensions and Generalizations
Infinite-dimensional tensors
Infinite-dimensional tensors extend the algebraic and analytic structure of finite-dimensional tensors to infinite-dimensional vector spaces, particularly Hilbert spaces, which arise naturally in functional analysis and quantum mechanics. The tensor product of two Hilbert spaces and is constructed as the completion of the algebraic tensor product with respect to an inner product defined by for simple tensors, ensuring the resulting space is itself a Hilbert space. This completion addresses continuity issues, as the algebraic tensor product of infinite-dimensional spaces may not be complete, allowing for the extension of multilinear maps and operators to bounded functionals on the product space.[77] In this framework, nuclear operators on Hilbert spaces play a role analogous to finite-rank tensors in the finite-dimensional case, as they can be expressed as limits of finite-rank operators and admit a trace defined via singular values. Specifically, a nuclear operator satisfies , where are the singular values, mirroring the nuclear norm on tensor products and enabling decompositions into rank-one components.[78] Trace-class operators, which coincide with nuclear operators on Hilbert spaces, thus generalize the notion of finite-rank approximations, preserving properties like compactness and the existence of a well-defined trace independent of the orthonormal basis.[79] In quantum field theory, infinite tensor products of Hilbert spaces model systems with infinitely many degrees of freedom, such as free Bose fields, where the Hilbert space is constructed as an infinite direct sum of symmetric tensor powers. Field operators are then realized as operator-valued distributions on these spaces, acting on test functions to yield bounded operators, as direct pointwise evaluation would lead to ill-defined products due to the non-separability of the infinite product.[80] This construction, pioneered by von Neumann, ensures the theory accommodates continuous spectra and vacuum states while avoiding divergences in expectation values.[81] A key challenge in infinite-dimensional tensor theory is the absence of a finite orthonormal basis, which complicates spectral decompositions and the definition of unbounded operators like position and momentum. To resolve this, rigged Hilbert spaces—triads where is a dense subspace of test functions and its dual of distributions—are employed, allowing generalized eigenvectors and enabling the Dirac formalism for continuous observables without violating domain invariance.[82] This structure mitigates issues like non-normalizability of states in infinite dimensions, providing a rigorous foundation for tensor operations in unbounded settings.Tensor densities and weighted variants
In differential geometry and tensor analysis, tensor densities generalize the concept of tensor fields by incorporating an additional scaling factor in their transformation laws under coordinate changes, which accounts for variations in volume elements. Specifically, a tensor density of type (p, q) and weight $ w $ is a multilinear map that transforms according to the rule
where the determinant factor distinguishes it from ordinary tensors (for which $ w = 0 $).[83] This weight $ w $, typically an integer, determines the density's behavior: positive values correspond to densities that scale with volume expansion, while negative values yield "contradensities" that scale inversely.[84]
The weight arises naturally in contexts requiring invariant integration over manifolds, such as when defining volume forms. For instance, the Riemannian volume density $ \sqrt{|\det g|} , dx^1 \wedge \cdots \wedge dx^n $, where $ g $ is the metric tensor, is a scalar density of weight 1, ensuring that integrals $ \int f , \sqrt{|\det g|} , d^n x $ remain coordinate-independent for scalar functions $ f $.[85] In general relativity, the Levi-Civita symbol $ \epsilon_{i_1 \dots i_n} $ serves as a tensor density of weight -1, which can be converted to a true tensor by multiplication with $ (\det g)^{1/2} $.[83] These objects are sections of density bundles like $ \Lambda^n T^*M \otimes (\Lambda^n T^*M)^{\otimes w} $, enabling their use on non-orientable manifolds via pseudodensities that incorporate the sign of the determinant.[83]
Variants of tensor densities include even and odd types, distinguished by whether the transformation uses the absolute value $ |\det \partial x / \partial \bar{x}| ^w $ (even, invariant under orientation reversal) or the signed determinant (odd, sensitive to orientation).[84] More broadly, weighted tensors extend this framework in conformal and projective differential geometry, where sections of bundles such as $ E_{a_1 \dots a_p}^{b_1 \dots b_q}[w] $ (tensor bundles tensored with the density line bundle $ E[w] $) transform under conformal rescalings $ \tilde{g} = \Omega^2 g $ as $ \tilde{T} = \Omega^w T $, with $ w $ now allowing finer scaling properties.[86] This conformal weighting is crucial for constructing invariant operators, like the Paneitz operator, and underlies tractor constructions that bundle weighted tensors into higher-rank structures for ambient metrics.[86] In weighted manifolds, such as smooth metric measure spaces, these tensors incorporate a measure factor $ e^{-f} d\mu $ (with $ f $ a potential), leading to Bakry-Émery Ricci curvature as a weighted variant of the standard Ricci tensor.[87]