For periodic , the conforming Galerkin method has , with mass matrix and . Integration by parts and periodicity give . ThereforeThe conserved quantity is the squared L2 norm of the finite element function. On a uniform one-dimensional mesh of spacing , the piecewise-linear hat functions give , , and .
Finite element mesh 2026-10-05
A finite element mesh partitions the domain into simple elements, such as intervals, triangles or tetrahedra. Piecewise-polynomial trial functions and local integration assemble the stiffness matrix and mass matrix.
L2 inner product 2026-10-05
The L2 inner product is the inner product on L2 space. Its induced norm is the L2 norm, and the mass matrix represents it in a finite element basis.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 341 5 b Solution Created 2026-10-03 Updated 2026-10-05
The trial space must be a subspace of , not merely of . The printed assumptions on the basis do not ensure square-integrable weak derivatives, and boundary traces are not defined for arbitrary L2 space functions. For example, is continuous, vanishes at both endpoints and belongs to , but is not integrable at zero. Assume the basis belongs to the zero-boundary Sobolev space, as it does for the hat functions in part (c).
Write . Differentiating the restricted energy with respect to , or imposing the Galerkin method with test function , givesThe derivative term is the usual diffusion stiffness matrix and the second is the mass matrix. The full matrix is real symmetric, and for every nonzero coefficient vector ,because a basis is linearly independent. Thus it is a positive-definite matrix, so the restricted Ritz method has a unique solution and minimum.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 341 5 c Solution Created 2026-10-03 Updated 2026-10-05
The piecewise-linear hat functions have disjoint supports unless their nodes coincide or are neighbours. Direct integration on the two adjacent intervals givesSince and the hat is symmetric about , its load is . Thus the reaction-diffusion finite element matrix gives the explicit equationsThe coefficient matrix is a tridiagonal matrix and a positive-definite matrix by the energy identity in part (b), hence nonsingular. A separate spectral verification uses the sine basis with and givesBoth terms are positive for the Dirichlet modes. This also identifies precisely how the diffusion stiffness matrix and reaction mass matrix combine.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 341 6 Solution Created 2026-10-03 Updated 2026-10-05
The starting point of a conforming finite element method is a weak formulation in a Hilbert space . For example, a homogeneous Dirichlet boundary condition on a bounded Lipschitz domain gives . One seekswhere is a bounded bilinear form, , and is a bounded linear functional. A conforming finite element space is finite dimensional and is typically built from functions that are polynomial on each element of a finite element mesh. With a basis , the Galerkin method imposes the same identity only for , givingThe stiffness matrix is sparse when basis supports overlap only locally. Local element integrals assemble its entries; the mass matrix represents an term. This separates the choice of trial functions from the variational principle determining their coefficients.
The fundamental well-posedness theorem is the Lax-Milgram theorem: if for some , there is a unique solution for each , with . The same theorem on gives a unique discrete solution. The constants must be independent of the mesh for uniform stability of a numerical method. Boundary conditions are built into the trial space when they are essential constraints; flux conditions arise through boundary terms in integration by parts and are natural constraints in the weak formulation.
When is symmetric and a coercive bilinear form, the Ritz method minimizesover . Its first variation is exactly the Galerkin method, so Ritz minimization and Galerkin testing coincide for symmetric coercive problems. The energy norm turns the approximation into an orthogonal projection. Indeed, subtracting the exact and discrete weak equations gives Galerkin orthogonality, . For every the Pythagorean identity becomessoThis exact best-approximation property is the central advantage of the Ritz method.
Symmetry is unnecessary for the Galerkin method. For any bounded, coercive form, the Céa lemma givesTo prove it, put . Galerkin orthogonality yields , so coercivity and boundedness give . Divide when and take the infimum. Thus approximation capability plus uniform coercivity gives convergence. In contrast, minimizing for a nonsymmetric form differentiates its symmetric part and generally does not solve the original weak equation.
A concrete symmetric example is the one-dimensional reaction-diffusion problem from Question 5. Continuous piecewise-linear hat functions give the diffusion stiffness matrix with diagonal and neighbouring entries , and the mass matrix with diagonal and neighbouring entries . Therefore and . Its positive-definite matrix is the coordinate form of the continuous energy. The exact smooth solution makes this an explicit test of the method, not just an abstract existence result.
For a nonsymmetric example, take positive , constant real , andIts form is . Since , it has coercivity constant in the full norm, although it is not symmetric when . The Galerkin method remains well posed. On the uniform hat basis, , where , and . The skew-symmetric matrix cancels from , proving nonsingularity. A Ritz energy would omit precisely this advection contribution. Small may nevertheless make the approximation constant large and produce poorly resolved layers; algebraic solvability is not an accuracy guarantee.
Quantitative convergence uses a finite element interpolation estimate. On a shape-regular mesh, for piecewise-linear conforming elements and in the usual low-dimensional setting,The Céa lemma therefore gives an energy error. The Aubin–Nitsche duality argument improves the L2 norm error when the dual elliptic problem has regularity: solve and useConsequentlywith constants depending on the solution and regularity bounds. The second estimate is conditional on dual regularity; corners or insufficient data regularity can reduce the rate.
The same Galerkin method handles evolution equations. For the homogeneous heat equation, the semidiscrete finite element heat equation is . Because is a positive-definite matrix and is a positive semidefinite matrix,The decreasing quadratic form is exactly the L2 norm squared of the finite-element function. This separates spatial stability of a numerical method from the subsequent time integrator, just as in the Schrodinger equation example. Conformity, coercivity and approximation estimates together explain convergence.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 341 5 a Solution Created 2026-10-03 Updated 2026-10-05
Let be a uniform periodic mesh, with indices interpreted modulo the number of nodes. Write the finite element approximation as using the chapeau functions. The Galerkin method requiresThe mass matrix has and . The spatial matrix has and , with zero diagonal. Therefore the semidiscrete equations areor equivalently . The coefficients come from integrating the products of the two overlapping piecewise-linear hat functions on each interval; periodicity supplies the wraparound entries.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 341 5 b Solution Created 2026-10-03 Updated 2026-10-05
The mass matrix is a positive-definite matrix, and integration by parts with periodic boundary conditions gives . HenceThis is energy conservation for semidiscrete Galerkin advection: . Thus the semidiscretization is stable and conserves its finite element L2 norm.
For a mesh-independent comparison with the grid norm, the Fourier symbol of is , between and . ConsequentlyThe conserved energy therefore gives a uniform bound in as well. Equivalently, each Fourier mode evolves with the purely imaginary exponent . This concerns the semidiscrete method; a chosen time integrator must separately control those imaginary eigenvalues.
Reaction-diffusion finite element matrix 2026-10-05
For with homogeneous Dirichlet boundary conditions, the conforming piecewise-linear hat functions on a uniform grid give a diffusion stiffness matrix and a mass matrix . Their nonzero entries are , , , and , with symmetric counterparts. The sum is a positive-definite matrix because its coefficient quadratic form is . For forcing , the load at is .
Semidiscrete finite element heat equation 2026-10-05
The spatial Galerkin method for the heat equation gives a mass matrix and a diffusion stiffness matrix . With zero forcing, . The quadratic form is the squared L2 norm of the represented finite-element function, proving an energy contraction. For nonzero forcing, the corresponding identity has the additional term , which can be estimated using the Cauchy-Schwarz inequality.