Weak Formulation of the Poisson Problem
The strong form of the Poisson problem — find satisfying pointwise in together with boundary conditions on — requires to be twice continuously differentiable. This regularity is often unavailable for domains or data that arise in practice, and it is also inconvenient for the finite element method. The weak formulation (also called the variational formulation) relaxes this requirement and provides the correct mathematical framework for approximation.
The idea is to multiply the equation by a smooth test function and integrate over :
The left-hand side involves second derivatives of , which is precisely what we want to avoid. Applying Green's first identity (integration by parts in multiple dimensions),
where is the unit outward normal and is the outward normal derivative. Combining with the right-hand side,
Now the boundary conditions come into play. We choose the test function to vanish on the Dirichlet boundary: on . This makes the Dirichlet part of the boundary integral disappear. On the Neumann boundary the flux is prescribed as , so that part of the boundary integral is known. Moving it to the right-hand side gives
This is the weak form of the Poisson problem. Two things are worth noting. First, the equation now involves only first derivatives of both and , which widens the class of admissible functions in exactly the way the finite element method needs. A continuous, piecewise linear function on a mesh has a bounded, piecewise constant gradient, so it is a perfectly legitimate candidate in the weak form — even though it is nowhere twice differentiable and so cannot be a solution of the strong form. Approximations of this kind are what the rest of the series is built on. Second, the Neumann condition has entered naturally: it was not imposed explicitly but appeared as a boundary integral from the integration-by-parts step. For this reason Neumann conditions are often called natural boundary conditions in the finite element literature.
To state the weak problem precisely we need to specify the function spaces. The natural space is the Sobolev space , consisting of all square-integrable functions whose first-order weak derivatives are also square-integrable. We define the trial set
and the test space
(The boundary values are to be understood in the sense of traces, since functions in need not have pointwise values.)
The weak formulation then reads: find such that
The boundary values are said to be imposed essentially (they restrict the set ), while the Neumann data appear in the right-hand side and are imposed naturally. When (pure Dirichlet problem) and , the two spaces coincide: .
The trial set is not a vector space unless , which is awkward both in theory and in code. The remedy is to write , where is any fixed function attaining the Dirichlet data and is the new unknown, leaving a problem posed entirely on . Concretely, this is nothing but the familiar step of moving the known boundary values to the right-hand side and solving only for the remaining unknowns — which is exactly how Dirichlet conditions are handled in the discrete linear system later in the series.
Nothing is lost in the passage from the strong form to the weak one. Every classical solution satisfies the weak form, as the derivation above shows, and conversely a weak solution that is smooth enough to be differentiated twice satisfies pointwise and on , obtained by reversing the integration by parts.
That leaves the question of whether the weak problem has a solution at all. It does — uniquely, and depending continuously on the data — under the following conditions:
- is bounded and has a Lipschitz boundary, which holds for any polygonal or polyhedral domain, that is, for anything a mesh can represent;
- the data are square-integrable, and , and is the boundary trace of some function in ;
- is non-empty — at least part of the boundary carries a Dirichlet condition.
The first two conditions are so mild that they are met by essentially every problem the finite element method is applied to: meshed domains are polyhedral by construction, and any bounded, piecewise continuous source term or boundary data one would tabulate or evaluate in code is square-integrable. In practice it is only the third condition that is worth checking. The result itself is the Lax–Milgram theorem, which we will meet again when the weak formulation is extended to general elliptic problems, and the ingredient that requires a non-empty is the Poincaré inequality. The details are given in Evans, Partial Differential Equations (AMS, 2010), Chapter 6.
The third condition fails for the pure Neumann problem, . Adding a constant to a solution then changes neither the equation nor the boundary condition, so the solution is determined only up to that constant, and the data must satisfy the compatibility condition for a solution to exist (seen by using as a test function, which is admissible when is empty). The discrete symptom is a singular stiffness matrix, usually cured by prescribing the value at a single point or by imposing a zero-mean constraint.
The same derivation applies to the general elliptic operators introduced earlier in the series, which a later post carries out. First, though, the next post works through a one-dimensional problem whose weak solution exists even though the strong form has none.