Finite element solution of the one-dimensional Poisson equation Created 2026-10-14 Updated 2026-10-31
Consider the Poisson equation on an interval with homogeneous Dirichlet boundary conditions:
Two integrations and the endpoint conditions give the exact solution . To approximate it, multiply by a test function that vanishes at both endpoints. Integration by parts gives
The boundary term is zero. Thus the weak formulation is to find such that
The zero-trace Sobolev space consists of square-integrable functions with square-integrable weak derivatives and zero endpoint values in their continuous representatives; it does not require a classical second derivative. This is why continuous piecewise linear functions are admissible despite corners. The Poincaré inequality makes a coercive bilinear form on . Strang derives this one-dimensional weak formulation, the piecewise-linear hat functions, and their load and derivative-product integrals in the cited lecture; its endpoint example uses a free left endpoint, while both endpoints here are fixed.[ref]
Take the uniform finite element mesh , , with . The continuous trial space is
Here means polynomials of degree at most one on each interval. This is a conforming finite element space in , with interior piecewise-linear hat functions as a basis. Their endpoint values enforce the Dirichlet boundary conditions automatically. Set and test the weak formulation against each :
Each interior hat has two slopes and , each over a length . Its squared derivative therefore integrates to . Adjacent hats have opposite slopes on their one shared interval, giving . All other derivative products vanish. The stiffness matrix is the tridiagonal matrix
The load is the area of a triangle of base and height one, including hats next to the boundary. Boundary hats are omitted because the boundary values are prescribed. The piecewise-linear hat function article explains how the same entries arise by adding local two-node contributions.
With four mesh intervals, , there are three unknowns:
For example, the first row gives and the middle gives . The coefficients are the nodal values . At , linear interpolation gives , whereas : exactness at the nodes still leaves a visible error between them.
In this model the Galerkin method solution equals the nodal approximation obtained by linear interpolation on any finite element mesh. Indeed, on each interval , is the average of and is constant. Therefore . Summing proves Galerkin orthogonality for , and uniqueness gives . This argument relies on the constant diffusion coefficient, conformity and exact integration; nodal exactness is not a general promise for finite element methods with other operators or integration rules.
On a uniform mesh, direct subtraction of the chord from the parabola gives, on every element of length ,
The largest value error is at an element midpoint. Its size and the energy norm error are exactly
Thus gives and . With eight elements, , these become and . Halving the mesh spacing quarters the maximum value error but only halves the energy norm error: values and slopes converge at different rates. The figure shows the small value error at its own scale, where the four-to-one reduction becomes clear.
Figure 1.
Exact Poisson parabola and continuous piecewise-linear finite element solutions on four and eight intervals, with midpoint errors shown separately
. Details.
Flux-domain realization of a one-dimensional elliptic operator Created 2026-10-14 Updated 2026-10-18
For continuous and bounded real , the form on the zero-trace Sobolev space defines the weak operator . Its literal operator domain is the displayed flux domain. If a weak solution has right-hand side , then , so it belongs to that domain. This avoids assuming that a merely differentiable coefficient has bounded derivative. With bounded away from zero, the domain reduces to .
Use the real zero-trace Sobolev space with norm . The Poincaré inequality on the bounded smooth domain gives , making this an equivalent Sobolev norm. The weak formulation is to find with almost everywhere and
The zero Dirichlet boundary condition is encoded in the Sobolev trace. Formally, the identity follows by multiplying the partial differential equation by a test function and using integration by parts; it then extends to all by density.
To check all terms, boundedness of gives finite Lebesgue measure . The Cauchy-Schwarz inequality gives and
Thus the right side is a bounded linear functional of , since its absolute value is at most . The left side is finite by the Cauchy-Schwarz inequality. These estimates work for every stated .
Choose the real zero-trace Sobolev space
The Poincaré inequality makes this an equivalent Sobolev norm. Since the dimension is five, the Sobolev conjugate exponent is . The Sobolev embedding theorem gives continuously. Boundedness of and Lp inclusion on a finite measure space then give continuously, say .
For , the weak formulation is
The zero Dirichlet boundary condition is imposed through the Sobolev trace. Hölder's inequality verifies every term:
Thus , while , and all three pairings are finite bounded linear functionals in . The choice is sufficient; it is not intended to be the largest possible space of data.
The zero Dirichlet boundary condition must be part of the definition. Thus is a weak solution precisely when , equivalently its Sobolev trace vanishes on , and
Here is the indicator function of the measurable set . One may initially require the identity only for test functions : both sides are continuous in the Sobolev norm, and the definition of the zero-trace Sobolev space then extends it to all . This formulation uses first weak derivatives and encodes without assuming classical second derivatives.
For the Volterra integration operator, Cauchy-Schwarz inequality gives
Integrating and reversing the order yields
Thus is bounded, with . Since , is absolutely continuous and almost everywhere. If as an element, its continuous representative is zero everywhere, so its derivative is zero almost everywhere. Hence is one-to-one.
Its range is exactly , and . This contains the smooth compactly supported functions in , so is a densely defined operator. Closedness can also be seen directly: if and in , then , giving and .
For every ,
If , the allowed fact makes invertible. At , is invertible too. Thus the bounded operator
has range in and is a two-sided inverse of . Equivalently, solving the initial-value differential equation gives
This is bounded for every fixed on the finite interval. Therefore Volterra inverse differentiation has empty spectrum:
The familiar nonempty-spectrum theorem for bounded operators does not apply to this unbounded operator.
The subspace is the kernel of the bounded functional , so it is closed. Its image under is
the zero-trace Sobolev space. If , and , then converges to , and . Thus is closed. It is densely defined because it also contains the smooth compactly supported functions.
For , integration by parts and their zero endpoint traces give
Hence is closed and symmetric.
For any , the same formula gives , with no endpoint term because vanishes there. Consequently and , proving the requested inclusion. In fact, testing against compactly supported smooth shows that every element of has weak derivative in ; conversely the integration-by-parts formula applies to every . Thus
with no boundary restrictions.
For any , the nonzero function belongs to this domain and satisfies . Conversely this first-order equation has only scalar multiples of that exponential. Therefore
For any , the adjoint eigenfunction with eigenvalue annihilates , so this range is not all of . Explicitly the resolvent equation with zero initial value has the solution above, and its endpoint value is zero exactly when
Thus the range is a proper closed hyperplane for every . This proves that the two-endpoint symmetric derivative has whole complex spectrum:
There are no eigenvalues of itself: the eigenfunction equation together with forces the exponential coefficient to vanish. The operator is symmetric but not self-adjoint, since its adjoint has a strictly larger domain; symmetry alone does not force a real spectrum.
Work with real functions and . To give the variational problem a definite domain, choose the homogeneous Dirichlet boundary conditions used in the next part. The natural form space is the zero-trace Sobolev space , with norm . The Sobolev trace operator is well defined because one-dimensional functions have absolutely continuous representatives. For example , so its endpoint trace is bounded in the norm; the other endpoint has the analogous estimate. The zero-trace space is closed in the Hilbert space , and the Poincaré inequality makes the chosen derivative norm equivalent to its full norm. Thus is a Hilbert space.
Differentiability of implies continuity on the compact interval. Hence there are finite constants and a positive with and . Define the symmetric bilinear form
The Cauchy-Schwarz inequality and Poincaré inequality give all the estimates required by the Lax-Milgram theorem:
That theorem states that a continuous coercive bilinear form on a Hilbert space and a bounded linear functional determine a unique weak solution. Completeness, continuity, coercivity and boundedness have now all been verified. Therefore there is a unique with for every .
The energy version of the given variational problem is . Its exact variation is
Boundedness of makes the last term quadratic in , so the Fréchet derivative is . Its vanishing for every test function is precisely
Taking compactly supported smooth tests and integrating in the distributional sense shows that this is the Euler-Lagrange equation . Conversely that weak equation gives the displayed stationary condition. The stationary point is actually the unique global minimizer, because
Equality occurs only when . This proves the variational equivalence, including existence and uniqueness rather than only a formal derivative calculation.
For precision about the literal L2 inner product , use the flux-domain realization of a one-dimensional elliptic operator
For such , weak integration by parts and its zero endpoint values give . On the larger form space , the same energy is interpreted by the weak operator pairing. The minimizer belongs to automatically: its weak equation gives , while . Thus its equation also holds as an equality of functions. This domain does not assume bounded , which mere differentiability would not supply. If one may equivalently use , but that stronger coefficient assumption is not needed for the proof here.
Choose linearly independent basis functions in the zero-trace Sobolev space, and put . A concrete conforming Galerkin method uses continuous piecewise-linear hat functions on an interval mesh, with zero endpoint values. Seek satisfying
Testing against each basis function gives
The matrix is symmetric, and for a nonzero coefficient vector , its represented function is nonzero by basis independence. The coercivity estimate gives . Thus is a positive-definite matrix, the finite-dimensional problem has a unique solution, and it minimizes the same energy over . This is Ritz-Galerkin equivalence for a symmetric coercive form.
Subtracting the continuous and discrete equations proves Galerkin orthogonality: for all . Let . For any comparison , orthogonality and the Cauchy-Schwarz inequality in this inner product give
Therefore
With , the same argument in the derivative norm gives the Céa lemma estimate .
Convergence now follows from approximation, not from a bare assertion that the residual is small. The defining density of smooth compactly supported functions in lets one approximate by such a smooth function. Its piecewise-linear interpolant has zero endpoints and derivative error tending to zero as the largest mesh interval tends to zero. For a smooth , the derivative on each element is the average of there, and the interval Poincaré inequality bounds its error by the element length times . Density and the boxed best-approximation estimate consequently give in , and hence in , without assuming a bounded derivative of . If the stronger regularity is available, the same interpolation estimate gives first-order convergence in the derivative norm.