Algorithm Search⌘K

Definitionintro

Weak formulation

Also called variational formulation of a boundary value problem.

Restates a boundary value problem as finding u in a function space with a(u, v) = l(v) for all test functions v, which needs fewer derivatives.

A weak formulation of a boundary value problem asks for a function uu in a function space VV such that a(u,v)=l(v)a(u, v) = l(v) for every test function vv in VV. You get it when you multiply the differential equation by vv, integrate over the domain and move one derivative from uu to vv by integration by parts. The weak form needs only first derivatives of uu for a second-order equation, so it has solutions where the classical problem has none, for example at material interfaces. It is the start of the Galerkin method and of the finite element method, which replace VV by a finite-dimensional subspace.

Definition

Model problem. Let Ω⊂Rd\Omega \subset \mathbb{R}^d be a bounded domain with Lipschitz boundary ∂Ω=ΓD‾∪ΓN‾\partial\Omega = \overline{\Gamma_D} \cup \overline{\Gamma_N}, and let nn be the unit outward normal. The strong form is

−∇⋅(κ∇u)=f in Ω,u=gD on ΓD,κ∂u∂n=gN on ΓN,-\nabla \cdot (\kappa \nabla u) = f \ \text{in } \Omega, \qquad u = g_D \ \text{on } \Gamma_D, \qquad \kappa \frac{\partial u}{\partial n} = g_N \ \text{on } \Gamma_N,

with a coefficient κ(x)\kappa(x) that satisfies 0<κ0≤κ(x)≤κ10 < \kappa_0 \le \kappa(x) \le \kappa_1.

Derivation. Multiply the equation by a test function vv with v=0v = 0 on ΓD\Gamma_D and integrate over Ω\Omega. Green's formula ∫Ω−∇⋅(κ∇u) v=∫Ωκ∇u⋅∇v−∫∂Ωκ∂u∂nv\int_\Omega -\nabla\cdot(\kappa\nabla u)\, v = \int_\Omega \kappa \nabla u \cdot \nabla v - \int_{\partial\Omega} \kappa \frac{\partial u}{\partial n} v moves one derivative to vv. The boundary integral is zero on ΓD\Gamma_D because v=0v = 0 there, and it is ∫ΓNgNv\int_{\Gamma_N} g_N v on ΓN\Gamma_N. The result is

a(u,v)=∫Ωκ∇u⋅∇v dx,l(v)=∫Ωfv dx+∫ΓNgNv ds.a(u, v) = \int_\Omega \kappa \nabla u \cdot \nabla v \, dx, \qquad l(v) = \int_\Omega f v \, dx + \int_{\Gamma_N} g_N v \, ds.

Weak formulation. Let V={v∈H1(Ω):v=0 on ΓD}V = \{v \in H^1(\Omega) : v = 0 \text{ on } \Gamma_D\}, a closed subspace of the Sobolev space H1(Ω)H^1(\Omega), and let uD∈H1(Ω)u_D \in H^1(\Omega) be any function with uD=gDu_D = g_D on ΓD\Gamma_D. The weak problem is: find u∈uD+Vu \in u_D + V such that

a(u,v)=l(v)for all v∈V.a(u, v) = l(v) \quad \text{for all } v \in V.

A function uu with this property is a weak solution. In the abstract form, VV is a Hilbert space, a:V×V→Ra : V \times V \to \mathbb{R} is a bounded bilinear form and l:V→Rl : V \to \mathbb{R} is a bounded linear functional. The Lax-Milgram theorem gives existence and uniqueness when aa is also coercive. For the model problem with ∣ΓD∣>0|\Gamma_D| > 0 this holds with M=κ1M = \kappa_1 and α=κ0/(1+CP2)\alpha = \kappa_0 / (1 + C_P^2), where CPC_P is the Poincaré constant.

Two kinds of boundary conditions. A condition that you build into the space, such as u=gDu = g_D, is essential. A condition that comes out of the integration by parts, such as κ ∂u/∂n=gN\kappa\,\partial u/\partial n = g_N, is natural: it appears only in ll, and the weak solution satisfies it automatically.

Strong and weak solutions. Every classical solution u∈C2(Ω‾)u \in C^2(\overline\Omega) is a weak solution: the derivation above is a proof. If a weak solution is in H2(Ω)H^2(\Omega), then integration by parts in the other direction gives ∫Ω(−∇⋅(κ∇u)−f)v=0\int_\Omega (-\nabla\cdot(\kappa\nabla u) - f)v = 0 for all smooth vv with compact support, so the equation holds almost everywhere, and the Neumann condition follows next.

Energy form. If aa is symmetric and a(v,v)≥0a(v, v) \ge 0, then uu solves the weak problem if and only if it minimizes the energy J(v)=12a(v,v)−l(v)J(v) = \tfrac12 a(v, v) - l(v) over the same set. The reason is the identity J(u+w)=J(u)+(a(u,w)−l(w))+12a(w,w)J(u + w) = J(u) + \bigl(a(u, w) - l(w)\bigr) + \tfrac12 a(w, w) for every w∈Vw \in V. The strong equation is the Euler-Lagrange equation of JJ.

Examples and non-examples

A smooth check. Take −u′′=1-u'' = 1 on (0,1)(0, 1) with u(0)=u(1)=0u(0) = u(1) = 0. The weak form is ∫01u′v′ dx=∫01v dx\int_0^1 u'v'\,dx = \int_0^1 v\,dx for all v∈H01(0,1)v \in H^1_0(0, 1), and the solution is u=x(1−x)/2u = x(1-x)/2. For the test function v=x(1−x)v = x(1-x) the left side is ∫01(12−x)(1−2x) dx=12∫01(1−2x)2 dx=16\int_0^1 (\tfrac12 - x)(1 - 2x)\,dx = \tfrac12\int_0^1 (1-2x)^2\,dx = \tfrac16, and the right side is ∫01x(1−x) dx=16\int_0^1 x(1-x)\,dx = \tfrac16.

A material interface. Take −(κu′)′=0-(\kappa u')' = 0 on (0,1)(0, 1) with κ=1\kappa = 1 on (0,12)(0, \tfrac12), κ=2\kappa = 2 on (12,1)(\tfrac12, 1), u(0)=0u(0) = 0 and u(1)=1u(1) = 1. No C2C^2 solution exists. The weak form makes the flux κu′\kappa u' a constant cc, so u′=cu' = c on the left half and u′=c/2u' = c/2 on the right half. Then u(1)=c/2+c/4=1u(1) = c/2 + c/4 = 1 gives c=43c = \tfrac43, and u=43xu = \tfrac43 x for x≤12x \le \tfrac12 and u=23+23(x−12)u = \tfrac23 + \tfrac23(x - \tfrac12) for x≥12x \ge \tfrac12. The slope jumps from 43\tfrac43 to 23\tfrac23, but κu′\kappa u' stays continuous, which is the correct physics.

A natural boundary condition. Take −u′′=0-u'' = 0 on (0,1)(0, 1) with u(0)=0u(0) = 0 and u′(1)=1u'(1) = 1. Here V={v∈H1(0,1):v(0)=0}V = \{v \in H^1(0,1) : v(0) = 0\} and l(v)=v(1)l(v) = v(1). The solution u=xu = x satisfies ∫011⋅v′ dx=v(1)−v(0)=v(1)\int_0^1 1 \cdot v'\,dx = v(1) - v(0) = v(1). The condition u′(1)=1u'(1) = 1 is not in VV. It is only in ll.

A point load in one dimension. Take −u′′=δ1/2-u'' = \delta_{1/2} with u(0)=u(1)=0u(0) = u(1) = 0, so l(v)=v(12)l(v) = v(\tfrac12). The tent u=x/2u = x/2 for x≤12x \le \tfrac12 and u=(1−x)/2u = (1 - x)/2 for x≥12x \ge \tfrac12 is the weak solution: ∫01u′v′=12v(12)+12v(12)=v(12)\int_0^1 u'v' = \tfrac12 v(\tfrac12) + \tfrac12 v(\tfrac12) = v(\tfrac12). This ll is bounded on H01(0,1)H^1_0(0,1) because ∣v(12)∣≤12∣v∣1|v(\tfrac12)| \le \tfrac12 |v|_1 there.

Non-example: a point load in two dimensions. In Ω⊂R2\Omega \subset \mathbb{R}^2 the functional l(v)=v(x0)l(v) = v(x_0) is not bounded on H1(Ω)H^1(\Omega), because H1H^1 functions in 2D need not be continuous. So −Δu=δx0-\Delta u = \delta_{x_0} has no weak solution in H1H^1. Its solution behaves like −12πlog⁡∣x−x0∣-\frac{1}{2\pi}\log|x - x_0|, whose gradient is not square integrable near x0x_0.

Non-example: a pure Neumann problem. If ΓN=∂Ω\Gamma_N = \partial\Omega, the test function v=1v = 1 gives 0=∫Ωf+∫∂ΩgN0 = \int_\Omega f + \int_{\partial\Omega} g_N. Data that fails this condition has no weak solution, and when it holds the solution is unique only up to a constant. A unique solution comes from the space V={v∈H1(Ω):∫Ωv=0}V = \{v \in H^1(\Omega) : \int_\Omega v = 0\}.

Non-example: the wrong space. The form ∫u′v′=∫fv\int u'v' = \int fv posed on C1([0,1])C^1([0,1]) functions with zero boundary values is not a weak formulation in the sense above. That space is not complete in the H1H^1 norm, so the Lax-Milgram argument fails, and for the interface example above it contains no solution.

  • Galerkin method. Pose the same weak form on a finite-dimensional subspace Vh⊂VV_h \subset V. This gives a linear system AU=bAU = b with Aij=a(ϕj,ϕi)A_{ij} = a(\phi_j, \phi_i) and bi=l(ϕi)b_i = l(\phi_i).
  • Sobolev space. The spaces H1(Ω)H^1(\Omega) and H01(Ω)H^1_0(\Omega) where the weak form lives, with traces that give a meaning to boundary values.
  • Petrov-Galerkin formulation. The trial space and the test space differ. Well-posedness then needs an inf-sup condition in place of coercivity. Streamline upwind Petrov-Galerkin is an example.
  • Mixed formulation. The flux σ=κ∇u\sigma = \kappa\nabla u is a second unknown, and the weak form becomes a saddle-point problem. See mixed finite element method.
  • Weakly imposed Dirichlet conditions. Nitsche's method puts u=gDu = g_D into aa and ll instead of into VV.
  • Weak solution of a conservation law. The same idea for first-order hyperbolic equations. There the test functions carry all the derivatives, and shocks are allowed.

References

  1. Susanne C. Brenner and L. Ridgway Scott, The Mathematical Theory of Finite Element Methods, third edition, Springer, 2008, Chapter 0 (the one-dimensional variational formulation) and Chapter 2 (variational formulation of elliptic boundary value problems, natural and essential boundary conditions)
  2. Lawrence C. Evans, Partial Differential Equations, second edition, Graduate Studies in Mathematics 19, American Mathematical Society, 2010, Chapter 6, Section 6.1 (weak solutions of second-order elliptic equations)
  3. Philippe G. Ciarlet, The Finite Element Method for Elliptic Problems, SIAM Classics in Applied Mathematics 40, 2002, Chapter 1 (abstract variational problems and examples of elliptic boundary value problems)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/MNAD6Y/text.yaml