Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 71 5 b Solution Created 2026-10-03 Updated 2026-10-14
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 satisfyingTesting against each basis function givesThe 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 giveThereforeWith , 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.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 80 5 b Solution Created 2026-10-03 Updated 2026-10-14
Let and , the closure of smooth compactly supported functions in the Sobolev space . Its elements have zero boundary trace. SetThe form is symmetric and continuous by Cauchy-Schwarz. For a smooth function with zero boundary values, gives after integration. Density extends this Poincaré inequality to . Therefore the gradient norm makes complete and equivalent to its usual norm, withAll the hypotheses of part (a) hold. Green's identity identifies the weak solution of the Dirichlet problem asFor smooth this is with zero boundary values; in general it defines the unique weak solution without requiring pointwise second derivatives.
For the Ritz method, choose a finite-dimensional conforming space with basis and put . Minimize in the coefficients. Its derivative in each basis direction gives the finite element method equationsThe stiffness matrix is symmetric positive definite: for a nonzero coefficient vector , the corresponding basis combination is nonzero and . Hence the Ritz system has a unique solution.
For example, triangulate the square and use continuous piecewise-affine nodal basis functions at the interior vertices, with boundary vertex values fixed to zero. On a triangle of area , let be its barycentric basis functions. If its counterclockwise vertices are , define and cyclically. Then , giving the directly assemblable element matrices and loadsIf is constant on , ; otherwise integrate or quadrature the load. Assemble by adding element contributions with the same global vertex labels and eliminate prescribed boundary coefficients. Only overlapping basis supports interact, making sparse. This gives the Ritz-Galerkin equivalence for a symmetric coercive form in a practical finite element form.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 69 1 1 2 Solution Created 2026-10-03 Updated 2026-10-14
By the extreme value theorem, is strictly positive, and are bounded. The Cauchy-Schwarz inequality therefore givesFor completeness, the clamped interval derivative norm bound follows from and the one-dimensional Sobolev representative: integrate to recover , and then to recover . Applying Cauchy-Schwarz and integrating over an interval of length two givesConsequently . Nonnegativity of yields the precise coercive bilinear form boundThe Lax-Milgram theorem states that a bounded bilinear form on a real Hilbert space satisfying with represents every bounded linear functional uniquely: there is exactly one with for all . All of its hypotheses have now been verified on .
This weak solution is the unique global minimum, rather than merely a stationary point. The Ritz-Galerkin equivalence for a symmetric coercive form here is the exact identityIt is strictly positive for every nonzero . Conversely, a minimum has zero first variation in every direction, so it satisfies the same weak equation. Density of compactly supported test functions and boundedness of extend the distributional equation back to all test vectors. There is exactly one minimum, and it is exactly the clamped weak solution. No additional coefficient smoothness or classical fourth derivative is needed.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 66 7 Solution Created 2026-10-03 Updated 2026-10-14
The finite element method replaces an infinite-dimensional variational problem by a finite-dimensional one, usually using functions that are polynomial on small mesh elements. Ritz method and Galerkin method describe how the discrete equations are selected; neither intrinsically requires piecewise polynomials, though those spaces make assembly local and sparse.
For a concrete realization of the two-point problem, choose homogeneous Dirichlet boundary conditions at both endpoints of . The differential expression alone is not a complete boundary value problem, so this boundary choice is an explicit assumption. Let with , with , and . Use the zero-boundary Sobolev space with norm . By the Poincaré inequality this is equivalent to its full first-order Sobolev norm. Multiplying by a test function and applying integration by parts givesThe endpoint terms vanish by the essential boundary condition. The form is a symmetric bilinear form, bounded byand it is a coercive bilinear form:The load is a bounded linear functional. The Lax-Milgram theorem gives a unique weak solution and a bound . Under the stated coefficient regularity it solves the differential equation in the usual weak sense.
The Ritz method minimizes the energyover , or over a conforming finite-dimensional subspace . Its first variation is ; symmetry and coercivity make the functional strictly convex. In fact, if is the weak solution,Thus the energy minimizer is exactly the weak solution. The Galerkin method instead directly asks for with for all . For this symmetric coercive problem, Ritz-Galerkin equivalence for a symmetric coercive form shows that the discrete minimizer and Galerkin solution coincide. For a nonsymmetric problem, a Galerkin formulation can still apply but the same quadratic minimization generally cannot represent its full bilinear form; appropriate coercivity or inf-sup conditions must then justify the chosen spaces.
Subtract the continuous and discrete weak equations to obtain Galerkin orthogonality . Since defines the energy norm , the Pythagorean identity givesIn a general reference norm, the Céa lemma yieldsThe proof uses together with coercivity and continuity. Dense approximation spaces therefore imply convergence; the estimate reduces a numerical error problem to an approximation problem.
For implementation, partition the interval by nodes . Choose continuous piecewise-linear functions and the interior piecewise-linear hat functions as a basis, with the two boundary coefficients prescribed. Write . The coefficients satisfyThe stiffness matrix is symmetric positive definite: for nonzero interior coefficients. The local supports make it tridiagonal in this one-dimensional linear-element case.
On an element of length , for constant element coefficients , the two-node matrix and constant-load vector areFor variable coefficients, integrate against the same shape functions rather than silently replacing them by constants. Element contributions are added at shared nodes, and boundary values are eliminated or lifted into the right side. A sparse direct solve or a suitable iterative method gives the nodal coefficients. Numerical quadrature should preserve the required accuracy and, with positive coefficients and weights, the positive energy structure.
A finite element interpolation estimate gives for these elements, where is the largest element size and the solution has the stated regularity. The Céa lemma then gives first-order energy error. If the dual elliptic problem has regularity, the Aubin–Nitsche duality argument gives second-order error: for , solve , then use to gain one further factor of . Higher-order elements improve rates when the solution is sufficiently smooth.
Nonzero Dirichlet data are handled by a boundary lifting and an affine trial space. Neumann boundary conditions enter naturally through the integrated boundary term; Robin terms modify both the form and the load. With pure Neumann conditions and , constants lie in the kernel: existence needs the load/flux compatibility condition, uniqueness needs a mean constraint, and the preceding Dirichlet coercivity argument cannot simply be reused. Conforming approximation, boundary conditions and coercivity are the ingredients connecting the finite-element construction to a justified Ritz or Galerkin solution.