Theory contents

Integration and the weak form

On this page

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 dV (mm³); a surface integral uses dS (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.

F=∫ΓtdS.

For uniform traction t=​(2,0,0) N/mm2 on a 3 mm by 4 mm face, F=​(24,0,0) N. Uniform body force b=​(0,0,−5) N/mm3 on a 2 mm by 3 mm by 4 mm block instead gives (0,0,−120) N. A total force and a force density are different inputs.

For the same face, a uniform test displacement w=​(0.1,0,0) mm gives ∫Γw·tdS=​0.1×2×12=​2.4 N·mm. This scalar is external virtual work. FEM weights a traction by each shape function to distribute it into nodal load contributions, fai=​∫ΓNatidS, which have units N.

Divergence becomes boundary flux

For a 3-vector field v, the divergence theorem equates the scalar sum of local sources inside a body to the outward flux across its boundary:

∫Ω∇·vdV=∫Γv·ndS.

Here n is the outward unit normal. On the dimensionless unit cube 0≤​x,y,z≤​1, choose v=​(x,0,0)T. The divergence is 1, so the volume integral is 1. On x=​1, v·n=​1 over unit area; on x=​0 it is zero; on the other four faces v·n=​0. Boundary flux is therefore also 1.

A body Omega with boundary Gamma in a grey vector field q. Blue arrows show the outward unit normal n at points on the boundary; the net outflow of q through Gamma equals the integral of the divergence of q over Omega.
A vector field q and a body Ω with boundary Γ. The divergence theorem equates the total divergence of q inside Ω with the net outflow q · n through Γ, where n is the outward unit normal.

The outward sign matters. With traction t=​σn, 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 i, apply the theorem to the product wiσij with flux index j. Sum over i and j, using the row-wise stress divergence:

∂(wiσij)∂xj=∂wi∂xjσij+wi∂σij∂xj.
∫Ωw·(∇·σ)dV=∫Γw·(σn)dS−∫Ω∇w:σdV.

Two fields, a 3-vector w and a 3 × 3 tensor σ, enter this identity; each integrated term is a scalar. The derivative moves from stress to w, the new volume term has a minus sign, and the boundary term remains.

A one-dimensional check on 0≤​x≤​1 makes all signs visible. Take w=​x and σ=​x2, both dimensionless. The left side is ∫01x(2x)dx=​2/3. On the right, [wσ]01−∫01w′σdx=​1−1/3=​2/3. Dropping the boundary term would give −1/3.

From equilibrium to virtual work

For a static classical solid, ∇·σ+b=​0, with symmetric stress. Multiply by the test displacement w, integrate, and substitute the identity above. On ΓD, the test displacement is zero; on ΓN, σn equals the prescribed traction t. The result is:

∫Ωε(w):σdV=∫Ωw·bdV+∫ΓNw·tdS.

Stress symmetry allows ∇w:σ=​ε(w):σ: the antisymmetric part of ∇w has zero contraction with a symmetric tensor. All terms have units N·mm. This equation must hold for every admissible w. Prescribed displacements restrict u itself; a zero test field on ΓD does not imply that the prescribed displacement must be zero.

With a small-strain linear-elastic law, σ depends on first derivatives of u. The weak form therefore uses only first derivatives of u and w. 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 w 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

  1. MIT OpenCourseWare: Multivariable Calculus, surface integrals and the divergence theorem.
  2. DOLFINx tutorial: The equations of linear elasticity, equilibrium, integration by parts and the variational problem.
  3. Bathe, Finite Element Procedures (1996), principle of virtual displacements and displacement-based finite elements.