Integration and the weak form
Why can equilibrium be expressed using first derivatives of displacement?
Integration adds contributions over a region. Integration by parts then moves a derivative from one factor to another, producing a boundary term. This is the bridge from pointwise force balance to the elastic weak form. We first use smooth fields on a piecewise smooth boundary; the final weak form needs less regularity.
Integrate over a body or its boundary
The body occupies , with boundary . A volume integral uses (mm³); a surface integral uses (mm²). A scalar field integrates to a scalar and a 3-vector field to a 3-vector, component by component. Units multiply by the measure.
For uniform traction on a 3 mm by 4 mm face, . Uniform body force on a 2 mm by 3 mm by 4 mm block instead gives . A total force and a force density are different inputs.
For the same face, a uniform test displacement gives . This scalar is external virtual work. FEM weights a traction by each shape function to distribute it into nodal load contributions, , which have units N.
Divergence becomes boundary flux
For a 3-vector field , the divergence theorem equates the scalar sum of local sources inside a body to the outward flux across its boundary:
Here is the outward unit normal. On the dimensionless unit cube , choose . The divergence is 1, so the volume integral is 1. On , over unit area; on it is zero; on the other four faces . Boundary flux is therefore also 1.

The outward sign matters. With traction , tensile stress pulls outward on opposite faces in opposite directions. A common constant vector need not represent both face tractions.
Move a derivative
For each force component , apply the theorem to the product with flux index . Sum over and , using the row-wise stress divergence:
Two fields, a 3-vector and a 3 × 3 tensor , enter this identity; each integrated term is a scalar. The derivative moves from stress to , the new volume term has a minus sign, and the boundary term remains.
A one-dimensional check on makes all signs visible. Take and , both dimensionless. The left side is . On the right, . Dropping the boundary term would give .
From equilibrium to virtual work
For a static classical solid, , with symmetric stress. Multiply by the test displacement , integrate, and substitute the identity above. On , the test displacement is zero; on , equals the prescribed traction . The result is:
Stress symmetry allows : the antisymmetric part of has zero contraction with a symmetric tensor. All terms have units N·mm. This equation must hold for every admissible . Prescribed displacements restrict itself; a zero test field on does not imply that the prescribed displacement must be zero.
With a small-strain linear-elastic law, depends on first derivatives of . The weak form therefore uses only first derivatives of and . Continuous displacement shape functions can have different slopes on neighbouring elements. Their stresses need not have a classical derivative at the shared face. Substitution of those shape functions into the weak form produces element stiffness and load integrals.
The boundary term vanishes only where is zero or the relevant traction work is zero. The identity does not justify removing loads, assuming rigid-body stability, or claiming that a computed solution is accurate. Singular loads, nonsmooth fields and interfaces require their appropriate weak interpretation. A full elastic problem and its boundary choices are developed in Equilibrium and weak form.
Sources and further reading
- MIT OpenCourseWare: Multivariable Calculus, surface integrals and the divergence theorem.
- DOLFINx tutorial: The equations of linear elasticity, equilibrium, integration by parts and the variational problem.
- Bathe, Finite Element Procedures (1996), principle of virtual displacements and displacement-based finite elements.