Book 4A

© 2026 NeckPinch · www.neckpinch.com · All rights reserved.

Course 4Book 4A: Function Spaces and Sobolev SpacesChapter 4

Hilbert Spaces and Lax–Milgram

Projection, Riesz representation, orthonormal bases, and the existence theorem for weak solutions.

24 min read · Updated Oct 2, 2026

Read with Brezis, chapter 5, "Hilbert Spaces" (projection onto closed convex sets, the dual of a Hilbert space, Stampacchia and Lax–Milgram, Hilbert sums and orthonormal bases), or Kreyszig chapter 3 (§3.1–3.10), which is gentler and has more examples, including Legendre polynomials. Pick one, not both.

In this chapter · 8 sections
  1. 4.1Least squares and the orbit of Ceres
  2. 4.2Inner product spaces
  3. 4.3Projection
  4. 4.4Riesz representation
  5. 4.5Orthonormal bases
  6. 4.6Lax–Milgram
  7. 4.7History
  8. 4.8Exercises

A Hilbert space is a Banach space whose norm comes from an inner product, so that angles, orthogonality and projections make sense. That one extra structure makes Hilbert spaces the most tractable infinite-dimensional spaces by far. Every closed convex set has a nearest point to any given point. Every bounded linear functional is an inner product with a fixed vector (Riesz representation), so the space is its own dual. Every separable Hilbert space has an orthonormal basis and is, after a choice of basis, the sequence space ℓ2\ell^2. The Fourier series of 2B.7 Fourier Series and the First Heat Equation and 3A.7 Lᵖ Spaces and Jensen’s Inequality are one instance.

The chapter's last theorem, Lax–Milgram, is where Hilbert spaces meet PDE. It says that a "coercive" bilinear form represents every functional, and that is precisely the statement that weak solutions of elliptic equations exist (6A.5 Weak Solutions and Elliptic Regularity). The finite element method, the main tool of computational engineering, is Lax–Milgram restricted to a finite-dimensional subspace, and its error estimate is a projection theorem.

By the end of this chapter you will be able to:

  • use the parallelogram law to recognise inner product norms, and prove the projection theorem onto closed convex sets;
  • decompose a Hilbert space into a closed subspace and its orthogonal complement, and solve least-squares problems as projections;
  • prove the Riesz representation theorem;
  • work with orthonormal bases: Bessel, Parseval, Gram–Schmidt and Legendre polynomials;
  • prove the Lax–Milgram theorem and write a two-point boundary value problem in weak form.

Least squares and the orbit of Ceres

In the world Data The asteroid that was lost and found

On 1 January 1801 Giuseppe Piazzi discovered a faint moving object, later named Ceres, and followed it for about six weeks, through an arc of only a few degrees of its orbit, before it was lost in the glare of the Sun. To find it again, its orbit had to be computed from a handful of imprecise observations. Carl Friedrich Gauss, then aged 24, devised methods that did this, and using his predicted positions Franz Xaver von Zach found Ceres again on 31 December 1801, with Heinrich Olbers confirming it the next night. Gauss published his methods of orbit determination in Theoria motus corporum coelestium (1809), including the method of least squares, which he said he had used since 1795; Adrien-Marie Legendre had published it first, in 1805. Historians have debated how much least squares in the modern sense entered the 1801 computation itself.

The method is a projection. To fit a model with parameters x∈Rnx \in \mathbb{R}^n to m>nm > n measurements b∈Rmb \in \mathbb{R}^m, where the model predicts AxAx, choose xx to minimise ∥Ax−b∥2\|Ax - b\|^2, the sum of squared residuals. The minimising AxAx is the orthogonal projection of bb onto the column space of AA: the residual b−Axb - Ax is perpendicular to every column, which is the system of normal equations ATAx=ATbA^{\mathsf T}Ax = A^{\mathsf T}b (Figure 4.1). Fitting a straight line to measurements, the commonest calculation in experimental science, is the case n=2n = 2. Gauss also showed that, when the measurement errors are independent and normally distributed, the least-squares estimate is the most probable one, which is why the bell curve is often called Gaussian.

Figure 4.1. Left: least squares as projection. The best approximation to bb from a subspace is its orthogonal projection PbPb, and the residual b−Pbb - Pb is perpendicular to the subspace. Right: a least-squares line through illustrative data, with the residuals whose squares it minimises.

Inner product spaces

Definition 4.1 Inner product, Hilbert space

An inner product on a real (or complex) vector space HH is a map ⟨⋅,⋅⟩:H×H→R\langle\cdot,\cdot\rangle : H \times H \to \mathbb{R} (or C\mathbb{C}) that is linear in the first slot, symmetric (conjugate-symmetric), and positive: ⟨x,x⟩>0\langle x, x\rangle > 0 for x≠0x \neq 0. It defines a norm ∥x∥=⟨x,x⟩1/2\|x\| = \langle x, x\rangle^{1/2}. A Hilbert space is an inner product space that is complete in this norm.

The examples: Rn\mathbb{R}^n and Cn\mathbb{C}^n; ℓ2\ell^2 with ⟨x,y⟩=∑xkyˉk\langle x, y\rangle = \sum x_k\bar y_k; L2(X,μ)L^2(X, \mu) with ⟨f,g⟩=∫fgˉ dμ\langle f, g\rangle = \int f\bar g\,d\mu (3A.7 Lᵖ Spaces and Jensen’s Inequality); and, from 4A.9 Sobolev Spaces, the Sobolev space H1H^1 with ⟨u,v⟩=∫(uv+∇u⋅∇v)\langle u, v\rangle = \int(uv + \nabla u\cdot\nabla v). The Cauchy–Schwarz inequality ∣⟨x,y⟩∣≤∥x∥ ∥y∥|\langle x, y\rangle| \leq \|x\|\,\|y\| holds, with the proof of 2B.1 Metric Spaces, and gives the triangle inequality.

Which norms come from inner products? Exactly those satisfying the parallelogram law

∥x+y∥2+∥x−y∥2=2∥x∥2+2∥y∥2,\|x + y\|^2 + \|x - y\|^2 = 2\|x\|^2 + 2\|y\|^2,

the sum of the squares of the diagonals of a parallelogram equals the sum of the squares of its sides (Jordan and von Neumann, 1935). The inner product is then recovered by polarisation, ⟨x,y⟩=14(∥x+y∥2−∥x−y∥2)\langle x, y\rangle = \tfrac14(\|x + y\|^2 - \|x - y\|^2) in the real case. The LpL^p norms satisfy the law only for p=2p = 2 (Exercise 4.7), which is why L2L^2 is special among them.

Projection

The parallelogram law is what makes nearest points exist.

Theorem 4.2 Projection onto a closed convex set

Let KK be a non-empty closed convex subset of a Hilbert space HH and x∈Hx \in H. There is a unique p∈Kp \in K with ∥x−p∥=inf⁡y∈K∥x−y∥\|x - p\| = \inf_{y\in K}\|x - y\|. It is characterised by

⟨x−p,y−p⟩≤0for all y∈K.\langle x - p, y - p\rangle \leq 0 \quad \text{for all } y \in K.

Proof. Existence. Let dd be the infimum and yn∈Ky_n \in K with ∥x−yn∥→d\|x - y_n\| \to d. The parallelogram law applied to x−ynx - y_n and x−ymx - y_m gives

∥yn−ym∥2=2∥x−yn∥2+2∥x−ym∥2−4∥x−yn+ym2∥2≤2∥x−yn∥2+2∥x−ym∥2−4d2,\|y_n - y_m\|^2 = 2\|x - y_n\|^2 + 2\|x - y_m\|^2 - 4\Big\|x - \frac{y_n + y_m}{2}\Big\|^2 \leq 2\|x - y_n\|^2 + 2\|x - y_m\|^2 - 4d^2,

since yn+ym2∈K\frac{y_n + y_m}2 \in K by convexity. The right side tends to 00, so (yn)(y_n) is Cauchy. By completeness it converges, to some p∈Kp \in K (KK is closed), and ∥x−p∥=d\|x - p\| = d.

Uniqueness is the same computation with two minimisers in place of yny_n and ymy_m.

Characterisation. For y∈Ky \in K and 0<t≤10 < t \leq 1, p+t(y−p)∈Kp + t(y - p) \in K, so ∥x−p−t(y−p)∥2≥∥x−p∥2\|x - p - t(y - p)\|^2 \geq \|x - p\|^2; expanding and letting t→0t \to 0 gives ⟨x−p,y−p⟩≤0\langle x - p, y - p\rangle \leq 0. Conversely, the inequality gives ∥x−y∥2=∥x−p∥2−2⟨x−p,y−p⟩+∥y−p∥2≥∥x−p∥2\|x - y\|^2 = \|x - p\|^2 - 2\langle x - p, y - p\rangle + \|y - p\|^2 \geq \|x - p\|^2.

Compare 2B.3 Compactness: there, a nearest point existed because closed bounded sets in Rn\mathbb{R}^n are compact. Here there is no compactness, and the parallelogram law, through completeness, does the job instead. In a general Banach space nearest points need not exist (Exercise 4.8).

For a closed subspace MM, the characterisation becomes ⟨x−p,m⟩=0\langle x - p, m\rangle = 0 for all m∈Mm \in M: the residual is orthogonal to MM. The map x↦p=PMxx \mapsto p = P_Mx is linear, of norm 11 (if M≠0M \neq 0), and every xx splits uniquely as

x=PMx+(x−PMx)∈M⊕M⊥,x = P_Mx + (x - P_Mx) \in M \oplus M^\perp,

where M⊥={z:⟨z,m⟩=0 for all m∈M}M^\perp = \{z : \langle z, m\rangle = 0 \text{ for all } m \in M\} is the orthogonal complement. Least squares is the case MM = the column space of AA.

Riesz representation

Theorem 4.3 Riesz representation theorem

For every bounded linear functional ϕ\phi on a Hilbert space HH there is a unique y∈Hy \in H with ϕ(x)=⟨x,y⟩\phi(x) = \langle x, y\rangle for all xx, and ∥ϕ∥=∥y∥\|\phi\| = \|y\|.

Proof. If ϕ=0\phi = 0 take y=0y = 0. Otherwise the kernel M=ker⁡ϕM = \ker\phi is a closed proper subspace, so M⊥M^\perp contains a unit vector zz. For any xx, the vector ϕ(x)z−ϕ(z)x\phi(x)z - \phi(z)x lies in MM, hence is orthogonal to zz: ϕ(x)−ϕ(z)⟨x,z⟩=0\phi(x) - \phi(z)\langle x, z\rangle = 0. So ϕ(x)=⟨x,ϕ(z)‾z⟩\phi(x) = \langle x, \overline{\phi(z)}z\rangle, and y=ϕ(z)‾zy = \overline{\phi(z)}z works. Uniqueness: if ⟨x,y−y′⟩=0\langle x, y - y'\rangle = 0 for all xx, take x=y−y′x = y - y'. The norm identity is Cauchy–Schwarz with equality at x=yx = y.

So a Hilbert space is its own dual, and every Hilbert space is reflexive (4A.3 Hahn–Banach and Duality). The theorem turns abstract existence questions into concrete ones: to find a vector, it is enough to exhibit a bounded functional it should represent.

Orthonormal bases

An orthonormal set {eα}\{e_\alpha\} consists of unit vectors that are pairwise orthogonal. For finitely many e1,…,ene_1, \ldots, e_n, the projection onto their span is ∑⟨x,ek⟩ek\sum\langle x, e_k\rangle e_k, and Pythagoras gives Bessel's inequality ∑k∣⟨x,ek⟩∣2≤∥x∥2\sum_k|\langle x, e_k\rangle|^2 \leq \|x\|^2, for any orthonormal sequence.

Theorem 4.4 Orthonormal bases

For an orthonormal sequence (ek)(e_k) in a Hilbert space HH, the following are equivalent:

  1. the span of the eke_k is dense in HH;
  2. x=∑k⟨x,ek⟩ekx = \sum_k\langle x, e_k\rangle e_k for every xx, the series converging in norm;
  3. (Parseval) ∥x∥2=∑k∣⟨x,ek⟩∣2\|x\|^2 = \sum_k|\langle x, e_k\rangle|^2 for every xx;
  4. if ⟨x,ek⟩=0\langle x, e_k\rangle = 0 for every kk, then x=0x = 0.

Such a sequence is an orthonormal basis.

The proof is 2B.7 Fourier Series and the First Heat Equation's argument for Fourier series, done abstractly (Exercise 4.10). Every separable Hilbert space has an orthonormal basis (apply Gram–Schmidt to a dense sequence), and the map x↦(⟨x,ek⟩)kx \mapsto (\langle x, e_k\rangle)_k is an isometry onto ℓ2\ell^2. So all infinite-dimensional separable Hilbert spaces are, abstractly, the same space, ℓ2\ell^2; what differs is the concrete basis, and choosing a good one is half of applied analysis.

Gram–Schmidt turns linearly independent vectors v1,v2,…v_1, v_2, \ldots into an orthonormal sequence with the same nested spans: subtract from vnv_n its projection onto the span of e1,…,en−1e_1, \ldots, e_{n-1}, then normalise. Applied to 1,x,x2,…1, x, x^2, \ldots in L2(−1,1)L^2(-1, 1), it produces (up to scaling) the Legendre polynomials 11, xx, 12(3x2−1)\frac12(3x^2 - 1), 12(5x3−3x)\frac12(5x^3 - 3x), … (Exercise 4.11). Expanding in them instead of in monomials cures the ill-conditioning of 4A.1 Banach Spaces and Bounded Operators's Hilbert matrix, because orthonormal coordinates are perfectly conditioned.

In the world In use Denoising by projection

A noisy measured signal is often modelled as a smooth signal plus rapidly fluctuating noise. Projecting onto the first NN Fourier modes, PNf=∑∣k∣≤Nf^(k)ekP_Nf = \sum_{|k|\leq N}\hat f(k)e_k, keeps the smooth part (whose energy is in low frequencies, 2B.7 Fourier Series and the First Heat Equation) and discards most of the noise (whose energy is spread over all frequencies). Too few modes blur the signal; too many let the noise back in (Figure 4.2). Because PNP_N is an orthogonal projection, the energy removed is exactly ∑∣k∣>N∣f^(k)∣2\sum_{|k|>N}|\hat f(k)|^2, and the trade-off can be chosen by looking at how the coefficients decay. JPEG's discarding of high-frequency coefficients (2B.7 Fourier Series and the First Heat Equation) is the same idea with a different orthonormal basis.

Figure 4.2. A noisy signal (grey; the noise is computer-generated) and its orthogonal projections onto 55, 2020 and 100100 Fourier modes. Five modes oversmooth; twenty capture the signal; a hundred bring the noise back.
In the world Model Quantum states are unit vectors

In quantum mechanics the state of a system is a unit vector ψ\psi in a Hilbert space, for a single particle in space L2(R3)L^2(\mathbb{R}^3). A measurement of a quantity with a discrete set of outcomes corresponds to an orthonormal basis (ek)(e_k), one vector per outcome, and the probability of outcome kk is ∣⟨ψ,ek⟩∣2|\langle\psi, e_k\rangle|^2 (the Born rule). Parseval's identity, ∑k∣⟨ψ,ek⟩∣2=∥ψ∥2=1\sum_k|\langle\psi, e_k\rangle|^2 = \|\psi\|^2 = 1, is the statement that the probabilities add up to 11. Projection onto the subspace spanned by eke_k is what textbook quantum mechanics calls the collapse of the state after the measurement.

Lax–Milgram

Riesz represents a functional through the inner product. Lax–Milgram represents it through any bilinear form that behaves enough like one.

Theorem 4.5 Lax–Milgram

Let HH be a real Hilbert space and a:H×H→Ra : H \times H \to \mathbb{R} a bilinear form that is

  1. bounded: ∣a(u,v)∣≤M∥u∥ ∥v∥|a(u, v)| \leq M\|u\|\,\|v\|, and
  2. coercive: a(u,u)≥α∥u∥2a(u, u) \geq \alpha\|u\|^2 for some α>0\alpha > 0.

Then for every ϕ∈H∗\phi \in H^* there is a unique u∈Hu \in H with a(u,v)=ϕ(v)a(u, v) = \phi(v) for all v∈Hv \in H, and ∥u∥≤∥ϕ∥/α\|u\| \leq \|\phi\|/\alpha.

Proof. For fixed uu, v↦a(u,v)v \mapsto a(u, v) is a bounded functional, so by Riesz there is Au∈HAu \in H with a(u,v)=⟨Au,v⟩a(u, v) = \langle Au, v\rangle; AA is linear with ∥A∥≤M\|A\| \leq M. Similarly ϕ(v)=⟨f,v⟩\phi(v) = \langle f, v\rangle for some ff. We must solve Au=fAu = f. Coercivity gives α∥u∥2≤⟨Au,u⟩≤∥Au∥ ∥u∥\alpha\|u\|^2 \leq \langle Au, u\rangle \leq \|Au\|\,\|u\|, so ∥Au∥≥α∥u∥\|Au\| \geq \alpha\|u\|: AA is injective with closed range. Its range is also dense: if z⊥ran⁡Az \perp \operatorname{ran}A, then 0=⟨Az,z⟩≥α∥z∥20 = \langle Az, z\rangle \geq \alpha\|z\|^2, so z=0z = 0. A closed dense subspace is everything, so AA is onto, and ∥u∥≤∥f∥/α\|u\| \leq \|f\|/\alpha.

When aa is also symmetric, aa is itself an inner product, equivalent to the original by (1) and (2), and Lax–Milgram is just Riesz representation in that inner product. In that case the solution uu is also the unique minimiser of the energy

E(v)=12a(v,v)−ϕ(v),E(v) = \tfrac12a(v, v) - \phi(v),

since E(u+w)=E(u)+12a(w,w)≥E(u)E(u + w) = E(u) + \tfrac12a(w, w) \geq E(u). This is the Dirichlet principle: solving a symmetric elliptic equation is the same as minimising an energy (4A.6 Weak Convergence and the Direct Method, 6A.9 Calculus of Variations and Gradient Flows).

Example 4.6 A boundary value problem in weak form

Consider −u′′+u=f-u'' + u = f on (0,1)(0, 1) with u(0)=u(1)=0u(0) = u(1) = 0. Multiply by a function vv vanishing at the ends and integrate by parts (2A.11 The Riemann Integral): a classical solution satisfies

∫01(u′v′+uv) dx=∫01fv dxfor all such v.\int_0^1(u'v' + uv)\,dx = \int_0^1fv\,dx \qquad\text{for all such } v.

Take H=H01(0,1)H = H^1_0(0, 1), the completion of smooth functions vanishing near 00 and 11 in the norm ∥u∥2=∫(u′2+u2)\|u\|^2 = \int(u'^2 + u^2) (made precise in 4A.9 Sobolev Spaces). The left side is a(u,v)=⟨u,v⟩Ha(u, v) = \langle u, v\rangle_H, bounded and coercive with M=α=1M = \alpha = 1; the right side is a bounded functional for f∈L2f \in L^2. Lax–Milgram gives a unique weak solution u∈Hu \in H, with ∥u∥H≤∥f∥L2\|u\|_H \leq \|f\|_{L^2}, for every f∈L2f \in L^2, including discontinuous ff for which no classical solution exists. Showing that uu is in fact smooth when ff is, is a separate question, regularity (6A.5 Weak Solutions and Elliptic Regularity).

Where this goes From Lax–Milgram to finite elements and Perelman

Weak solutions (6A.5 Weak Solutions and Elliptic Regularity): every second-order elliptic equation −∑∂i(aij∂ju)+cu=f-\sum\partial_i(a_{ij}\partial_ju) + cu = f with uniformly elliptic coefficients (2B.3 Compactness's rehearsal) and suitable cc is solved this way, in H01H^1_0. Finite elements (4A.9 Sobolev Spaces): replacing HH by a finite-dimensional subspace VhV_h of piecewise polynomials gives a finite linear system; the discrete solution is the aa-orthogonal projection of uu onto VhV_h, and Céa's lemma bounds the error by the best approximation from VhV_h (Exercise 4.13). Perelman (12A.2 Ricci Flow as a Gradient Flow): the functional F\mathcal{F}, rewritten as ∫(4∣∇w∣2+Rw2) dV\int(4|\nabla w|^2 + Rw^2)\,dV (3A.4 Measures, Probability and Weights), is a quadratic form on the Hilbert space H1H^1 of the manifold, and its infimum over unit vectors is the bottom of the spectrum of −4Δ+R-4\Delta + R (4A.7 Compact Operators and Spectra).

History

David Hilbert's work on integral equations (1904–1910) introduced the space of square-summable sequences; Erhard Schmidt (1908) gave it its geometric language of orthogonality and projection, and the orthogonalisation process carries his name with Jørgen Gram's (1883). Frigyes Riesz and Maurice Fréchet proved the representation theorem independently in 1907, for L2L^2. John von Neumann gave the abstract definition of a Hilbert space in 1929, for quantum mechanics, and with Pascual Jordan characterised inner product norms by the parallelogram law in 1935. Peter Lax and Arthur Milgram published their theorem in 1954. Legendre's method of least squares appeared in 1805, Gauss's in 1809.

Recall Where we stand

A Hilbert space is complete with an inner product; the parallelogram law characterises its norms. Every closed convex set has a unique nearest point, characterised by an obtuse-angle condition; closed subspaces have orthogonal complements and orthogonal projections, and least squares is a projection. Riesz identifies H∗H^* with HH. Orthonormal bases give Bessel, Parseval and the isometry with ℓ2\ell^2; Gram–Schmidt builds them, and gives the Legendre polynomials. Lax–Milgram solves a(u,v)=ϕ(v)a(u, v) = \phi(v) for bounded coercive forms, which is the existence theorem for weak solutions of elliptic equations. 4A.5 The Fourier Transform turns to the Fourier transform on Rn\mathbb{R}^n, a unitary map of L2L^2 that diagonalises derivatives.

Exercises

Exercise 4.7 Only p=2p = 2

Show that the parallelogram law fails for the ℓ1\ell^1 and ℓ∞\ell^\infty norms on R2\mathbb{R}^2 (try x=(1,0)x = (1, 0), y=(0,1)y = (0, 1)), and for the LpL^p norm on [0,1][0, 1] with p≠2p \neq 2 (try x=1[0,1/2]x = 1_{[0,1/2]}, y=1[1/2,1]y = 1_{[1/2,1]}).

Solution

For ℓ1\ell^1: ∥x±y∥2=4\|x \pm y\|^2 = 4, so the left side is 88, the right side 44. For ℓ∞\ell^\infty: left 22, right 44. For LpL^p: ∥x±y∥p=1\|x \pm y\|_p = 1 and ∥x∥p=∥y∥p=2−1/p\|x\|_p = \|y\|_p = 2^{-1/p}, so 2=4⋅2−2/p2 = 4\cdot2^{-2/p}, which holds only for p=2p = 2.

Exercise 4.8 No nearest point

In C([0,1])C([0, 1]) with the sup norm, let K={f:∫01/2f−∫1/21f=1}K = \{f : \int_0^{1/2}f - \int_{1/2}^1f = 1\}, a closed affine subspace (hence convex). Show that inf⁡f∈K∥f∥=1\inf_{f\in K}\|f\| = 1 but no f∈Kf \in K has ∥f∥=1\|f\| = 1. So the projection theorem needs the Hilbert structure.

Exercise 4.9 Least squares

Fit a line y=c0+c1ty = c_0 + c_1t to the points (0,1),(1,2),(2,2),(3,4)(0, 1), (1, 2), (2, 2), (3, 4) by solving the normal equations, and check that the residual vector is orthogonal to (1,1,1,1)(1, 1, 1, 1) and to (0,1,2,3)(0, 1, 2, 3).

Solution

ATA=(46614)A^{\mathsf T}A = \begin{pmatrix}4 & 6\\6 & 14\end{pmatrix}, ATb=(9,18)A^{\mathsf T}b = (9, 18), so c0=0.9c_0 = 0.9, c1=0.9c_1 = 0.9. Residuals (0.1,0.2,−0.7,0.4)(0.1, 0.2, -0.7, 0.4) sum to 00 and 0⋅0.1+1⋅0.2+2⋅(−0.7)+3⋅0.4=00\cdot0.1 + 1\cdot0.2 + 2\cdot(-0.7) + 3\cdot0.4 = 0.

Exercise 4.10 Orthonormal bases

Prove Theorem 4.4. ((1) ⇒ (2): the partial sums are the best approximations from the first NN vectors' span, as in 2B.7 Fourier Series and the First Heat Equation. (2) ⇒ (3): continuity of the norm. (3) ⇒ (4): immediate. (4) ⇒ (1): if the closure MM of the span were not everything, a non-zero vector of M⊥M^\perp would contradict (4).)

Exercise 4.11 Legendre polynomials

Apply Gram–Schmidt to 1,x,x2,x31, x, x^2, x^3 in L2(−1,1)L^2(-1, 1), and show the results are proportional to 11, xx, 3x2−13x^2 - 1, 5x3−3x5x^3 - 3x.

Exercise 4.12 Weak solutions

For −(p(x)u′)′+q(x)u=f-(p(x)u')' + q(x)u = f on (0,1)(0, 1), u(0)=u(1)=0u(0) = u(1) = 0, with p≥p0>0p \geq p_0 > 0 and q≥0q \geq 0 bounded, write the weak formulation and show the form is bounded and coercive on H01(0,1)H^1_0(0, 1), assuming the Poincaré inequality ∫u2≤1π2∫u′2\int u^2 \leq \frac{1}{\pi^2}\int u'^2 for u∈H01(0,1)u \in H^1_0(0, 1) (proved in 4A.9 Sobolev Spaces).

Solution

a(u,v)=∫(pu′v′+quv)a(u, v) = \int(pu'v' + quv). Bounded: ∣a(u,v)∣≤max⁡(sup⁡p,sup⁡q)∥u∥H∥v∥H|a(u, v)| \leq \max(\sup p, \sup q)\|u\|_H\|v\|_H. Coercive: a(u,u)≥p0∫u′2≥p01+1/π2∫(u′2+u2)a(u, u) \geq p_0\int u'^2 \geq \frac{p_0}{1 + 1/\pi^2}\int(u'^2 + u^2), using Poincaré to absorb ∫u2\int u^2.

Exercise 4.13 Rehearsal: Céa's lemma

In the setting of Lax–Milgram, let Vh⊆HV_h \subseteq H be a closed subspace (for instance, finite-dimensional) and uh∈Vhu_h \in V_h the solution of a(uh,v)=ϕ(v)a(u_h, v) = \phi(v) for all v∈Vhv \in V_h. Show Galerkin orthogonality a(u−uh,v)=0a(u - u_h, v) = 0 for v∈Vhv \in V_h, and deduce

∥u−uh∥≤Mαinf⁡v∈Vh∥u−v∥.\|u - u_h\| \leq \frac{M}{\alpha}\inf_{v\in V_h}\|u - v\|.

The finite element method's accuracy is therefore governed by how well piecewise polynomials can approximate the true solution in the energy norm, which is an approximation question in Sobolev spaces (4A.9 Sobolev Spaces).

Solution

Subtract the two equations for v∈Vhv \in V_h. Then for any v∈Vhv \in V_h: α∥u−uh∥2≤a(u−uh,u−uh)=a(u−uh,u−v)≤M∥u−uh∥ ∥u−v∥\alpha\|u - u_h\|^2 \leq a(u - u_h, u - u_h) = a(u - u_h, u - v) \leq M\|u - u_h\|\,\|u - v\|.

© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.