Theory contents

Tensor products and contractions

On this page

Which products keep directions, and which reduce them to a scalar?

Use a fixed Cartesian basis and the shared index convention: repeated spatial indices are summed. The small arrays below are dimensionless unless units are shown. Their sizes describe the input and output shapes; units follow the individual physical quantities.

Dot product: a scalar

The dot product takes two 3-vectors to one scalar. It measures their alignment, weighted by length:

a·b=∑i=13aibi.

For a=​(1,2,0)T and b=​(3,−1,4)T, a·b=​1×3+2×(−1)+0×4=​1. The result has no direction. Orthogonal vectors have zero dot product.

In virtual work, a force dotted with a test displacement has units N·mm. A force (10,0,0) N and displacement (0,2,0) mm give zero work; only displacement along the force contributes. Distributed loads use the same product inside a volume or surface integral.

Outer product: a tensor

The outer (tensor) product keeps both component directions. Two 3-vectors produce a 3 × 3 tensor:

(a⊗b)ij=aibj.
a⊗b=[3−146−28000]

The xy entry is 1×(−1)=​−1, whereas the yx entry is 2×3=​6. The product is generally not symmetric. Units multiply, just as for a dot product, but the output retains two indices.

In displacement interpolation, ∇uh=​∑ada⊗∇Na: the nodal displacement da (a 3-vector, mm) and shape-function gradient (a 3-vector, 1/mm) form a dimensionless tensor. This agrees with the row-component gradient convention.

Transpose: swap indices

A transpose exchanges rows and columns: (AT)ij=​Aji. An m×n input becomes n×m; units stay the same. For a rectangular example:

A=[123456]
AT=[142536]

Thus (AT)21=​A12=​2. A symmetric tensor equals its transpose. Averaging ∇u and (∇u)T gives small strain. In stiffness assembly, BTCB has compatible shapes: if B maps n element DOFs to six engineering strain components, then B is 6×n, C is 6 × 6 and BTCB is n×n.

Trace: add the diagonal

The trace maps a square tensor to a scalar by adding its diagonal. It preserves units:

tr(A)=∑i=13Aii.
A=[120340005]

Here trA=​1+4+5=​10; the off-diagonal entries do not enter. For infinitesimal strain, trε is first-order relative volume change. In the isotropic law σ=​λtr(ε)I+2με, the identity I is a 3 × 3 tensor with ones on the diagonal. The trace term therefore adds equal normal stress in all three directions. See Lamé parameters.

Double contraction and shear

The double contraction takes two tensors of the same shape to a scalar, multiplying and summing every matching component. For 3 × 3 tensors:

A:B=∑i=13∑j=13AijBij=tr(ATB).

This is not ordinary matrix multiplication. For symmetric stress and strain, both xy and yx entries contribute the same product:

σ:ε=σxxεxx+σyyεyy+σzzεzz+2σyzεyz+2σxzεxz+2σxyεxy.

Take pure shear εxy=​εyx=​0.001, all other strains zero, and σxy=​σyx=​160 MPa, all other stresses zero. Then σ:ε=​160×0.001+160×0.001=​0.32 MPa. The six-component engineering strain vector has γxy=​0.002, so its pairing with the undoubled shear stress gives the same 160×0.002.

The shared order is xx,yy,zz,yz,xz,xy: double the strain shear entries, not the stresses. In proportional linear elasticity from zero stress, stored energy density is 12σ:ε=​0.16 N/mm2, equivalently 0.16 N·mm/mm³. A virtual-work integrand instead uses σ:ε(w) without that half. Using tensor shear in a six-component engineering pairing would miss half the shear contribution.

Sources and further reading

  1. MIT OpenCourseWare: Multivariable Calculus, vector products and their geometric meaning.
  2. MIT OpenCourseWare: Structural Mechanics, tensor components, strain and elastic energy.
  3. Bathe, Finite Element Procedures (1996), displacement-based elasticity and engineering-strain matrices.