Theory contents

Equilibrium and weak form

On this page

Why does KoFEM solve the weak form instead of pointwise equilibrium?

Linear elasticity links displacement, strain and stress. Two ingredients remain: force balance, and the conditions on the body’s surface. Together they form a boundary-value problem. This page states it, then rewrites it as the weak form that the finite element method discretises. The same static, small-strain, isotropic assumptions apply. Units are N, mm and MPa.

Equilibrium inside the body

Take any piece V of the body, with boundary ∂V and outward normal n. In a static state, the tractions on its surface and the body force b (N/mm³) inside it must add to zero:

∫∂VσndS+∫VbdV=0.

The divergence theorem turns the surface integral into ∫V∇·σdV. Because the balance holds for every piece, however small, the integrand itself must vanish wherever the stress is smooth:

∇·σ+b=0 in Ω,∂σij∂xj+bi=0.

Each of the three equations has units MPa/mm = N/mm³. The stress divergence takes the divergence of each row of σ. Balance of moments adds the symmetry σij=​σji already used on the previous page.

Boundary conditions and signs

Equilibrium alone has infinitely many solutions; the surface fixes which one applies. At every boundary point and in each direction, exactly one of two quantities is prescribed. The boundary Γ splits accordingly:

u=uD on ΓD,σn=t on ΓN.

The sign follows the outward normal. A positive tx on a face whose outward normal is +x pulls the body outward. A pressure pload is positive when it pushes into the surface, so t=​−ploadn. A total face force F becomes the uniform traction F/A over the face area A; Loads and constraints works through that conversion.

A body Omega clamped on its left boundary Gamma D, where the displacement equals a prescribed value. Red traction arrows t act on the right boundary Gamma N. Orange arrows inside show the body force b, and a blue arrow shows the outward normal n.
A body Ω with a prescribed displacement on ΓD, a traction t on ΓN, a body force b and the outward normal n. Every boundary point belongs to ΓD or ΓN for each displacement component.

The complete boundary-value problem

Collecting the pieces gives the strong form: find a displacement u such that

∇·σ(u)+b=0 in Ω,u=uD on ΓD,σ(u)n=t on ΓN,

where σ(u)=​λ(∇·u)I+2με(u) is the isotropic law applied to the strain of u. Substituting it shows the cost: equilibrium contains second derivatives of displacement.

The uniform bar of the previous page satisfies every line. Its stress is constant, so ∇·σ=​0. On the loaded end n=​(1,0,0) and σn=​(100,0,0) MPa, the applied P/A. The sides have σyy=​σzz=​0, so they are traction-free. Only a fully clamped end breaks this: it forbids the lateral contraction the uniform solution needs, so near that end the true 3D field is not uniform.

Why not solve equilibrium pointwise?

The finite element method approximates u with shape functions that are continuous across elements but whose slopes jump at shared faces. Such a field has no second derivative there, so the strong form cannot even be evaluated. Real models have the same difficulty:

The weak form avoids all three. It needs only first derivatives, it handles material interfaces without extra conditions, and traction conditions enter automatically as work terms. When the solution is smooth, it is equivalent to the strong form.

Derive the weak form

Choose a test displacement w (mm): any sufficiently regular field that is zero on ΓD. Think of it as a virtual displacement compatible with the supports. Take the dot product of equilibrium with w and integrate over the body:

∫Ωw·(∇·σ)dV+∫Ωw·bdV=0.

Integration by parts moves the derivative from σ to w and produces a boundary term:

∫Ωw·(∇·σ)dV=∫Γw·(σn)dS−∫Ω∇w:σdV.

Now apply the boundary conditions. On ΓD the test displacement is zero, so that part of the boundary integral drops out. On ΓN replace σn by the prescribed t. Because σ is symmetric, ∇w:σ=​ε(w):σ. The result is the principle of virtual work:

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

Every term is work, in N·mm. The traction condition no longer appears as a separate equation; it is satisfied naturally by any solution, hence the name. The displacement condition is not in the equation at all; it is essential and must be built into the space of trial displacements. A zero test field on ΓD does not make uD zero.

Bilinear and linear forms

Writing the two sides as separate functions gives the standard abstract statement. Define the trial set and the test space

U={u:u=uD on ΓD},W0={w:w=0 on ΓD},

both restricted to fields with finite strain energy (first derivatives that are square-integrable). Then find u∈U with

a(u,w)=ℓ(w)for all w∈W0,
a(u,w)=∫Ω[λ(∇·u)(∇·w)+2με(u):ε(w)]dV,
ℓ(w)=∫Ωw·bdV+∫ΓNw·tdS.

The bilinear form a is the isotropic law inserted into internal virtual work, using trε(u)=​∇·u. It is linear in each argument and symmetric: a(u,w)=​a(w,u). The linear form ℓ collects the loads. Replacing u and w by shape-function expansions turns a into the stiffness matrix K and ℓ into the load vector f. A concentrated force P applied at a node adds P·w at that node. It is admissible only after discretisation: in the continuous problem a point force produces infinite displacement beneath it.

Uniqueness and minimum potential energy

Setting w=​u shows a(u,u)=​2∫ΩWdV, twice the strain energy. It is zero only for rigid-body motions: three translations and three rotations. If the displacement conditions exclude those motions, a(w,w)>​0 for every nonzero admissible w. Korn’s inequality turns this into a lower bound, and the weak form then has exactly one solution. Without enough supports, the discrete matrix is singular; Rigid-body modes shows what happens.

Because a is symmetric and positive, the weak form is also the condition for the minimum of the total potential energy

Π(u)=12a(u,u)−ℓ(u).

Of all displacements that satisfy the supports, the elastic solution has the least stored energy minus load work. This explains why the discrete stiffness matrix is symmetric positive definite and why the conjugate gradient method applies.

Worked check: a two-material bar

A one-dimensional bar shows the weak form at work, including a material interface. It is 1000 mm long with section A=​104 mm²: steel (E1=​210000 MPa) for 0≤​x≤​500 mm, aluminium (E2=​70000 MPa) for 500≤​x≤​1000 mm. The left end is fixed, u(0)=​0; the right end carries P=​106 N. There is no body force. In one dimension the weak form reads:

∫0LEAu′w′dx=Pw(L)for all w with w(0)=0.

Try a displacement with constant force N=​EAu′ in each segment, so u′=​N/(E1A) or N/(E2A). Then the left side is ∫0LNw′dx=​N[w(L)−w(0)]=​Nw(L). The equation holds for every admissible w exactly when N=​P. The weak form imposed the end load without any separate boundary equation. It also needed no interface condition. The displacement is continuous but has a kink at 500 mm, where the strong form has no classical second derivative.

Two-material bar, P=​106 N, A=​104 mm²
SegmentStress σ=​P/AStrain σ/EExtension over 500 mm
Steel100 MPa1/2100≈​4.762×10−40.2381 mm
Aluminium100 MPa1/700≈​1.429×10−30.7143 mm

The stress is continuous; the strain jumps by a factor of three. The tip displacement is 500/2100+500/700=​20/21≈​0.9524 mm. Units check: EA is N, u′w′ is 1, dx is mm, so both sides are N·mm. Order-1 elements whose nodes include x=​500 mm reproduce this solution exactly, because it is piecewise linear. In 3D, a free lateral surface would also contract differently in each material near the interface, which this 1D model ignores.

KoFEM implementation

KoFEM’s Rust finite-element module builds a and ℓ directly.

The shell path solves a different weak form with rotations; see Shell formulation. The axial bar example runs this complete solid path in the browser.

Decision: a displacement formulation

It is the standard formulation for linear-elastic solid FEM and has no separate decision record.

Limitations and practical consequences

Sources and further reading

  1. Hughes, The Finite Element Method: Linear Static and Dynamic Finite Element Analysis (2000), the strong and weak forms of elastostatics and their equivalence.
  2. Bathe, Finite Element Procedures (1996), the principle of virtual displacements.
  3. Brenner and Scott, The Mathematical Theory of Finite Element Methods (3rd ed., 2008), Korn’s inequality and well-posedness of linear elasticity.
  4. Zienkiewicz, Taylor and Zhu, The Finite Element Method: Its Basis and Fundamentals (7th ed., 2013), minimum potential energy and mixed formulations for incompressibility.
  5. MFEM: Bilinear form integrators, the elasticity integrator.

The worked check uses exact rational arithmetic. Related pages: Integration and the weak form, Elements and quadrature and Loads and constraints.