Example of Weak Solution to the Poisson Problem
The weak formulation of the Poisson problem asks less of the solution than the strong form does: only first derivatives appear, and only in integrals. It is worth seeing a case where that difference decides whether a solution exists at all.
Take the interval and the boundary conditions of the first post, with , but let the source act on the left half only:
Think of a bar heated uniformly over its left half, with no heat source in the right half, and both ends held at fixed temperature. The entire boundary is Dirichlet with , so and there is no boundary integral. In one dimension the gradient is just the derivative, and the weak form reads: find such that
On each half of the interval the source is constant, so the solution is a quadratic on the left and a straight line on the right. Matching the value and the slope at the midpoint, and imposing the two boundary conditions, gives
with derivative on the left and the constant on the right, the two agreeing at .
The solution is continuously differentiable, but its second derivative jumps from to at the midpoint — the kink in visible in the bottom panel. There is therefore no twice continuously differentiable function satisfying at every point: the strong form of this problem has no solution at all.
The weak form is untroubled. The source is bounded and hence square-integrable, the domain is an interval, and the whole boundary carries a Dirichlet condition, so the conditions for well-posedness given in the previous post are met and the weak problem has exactly one solution — the plotted above. The kink costs nothing: is bounded, so belongs to like any other admissible function, and the integral does not notice a single point of non-differentiability.
This is not a contrived situation. Sources that switch on and off, and material properties that change abruptly where two materials meet, are the norm rather than the exception in applications, and the solutions they produce routinely have kinks of exactly this kind. It is also a first hint of why piecewise polynomials are a natural choice of approximation: the exact solution here is a quadratic joined to a line, which is precisely the kind of function a finite element space is built from.
The next post carries the weak formulation over to the general elliptic operator, where it takes on the abstract form that the rest of the series builds on.