Discrete L2 norm 2026-10-05
On a uniform -dimensional spatial grid, the discrete L2 norm weights the squared Euclidean norm by the cell volume. It approximates the continuous L2 norm and is induced by the discrete L2 inner product. A contraction bound in this norm with a mesh-independent constant proves stability of a numerical method for the spatially discretized evolution.
The global error is the difference between the computed and exact solutions after accumulated numerical steps, rather than the local truncation error of a single step started from exact data. An estimate for the stability of a numerical method controls how initial errors and local defects accumulate. For a stable order- time integrator with starting errors , local defects accumulated over steps give global error on a fixed time interval.
The original PDF puts both neighbouring values at time . Thus the actual scheme is Backward Euler method in time with a centered three-point approximation to the second spatial derivative. The old-time neighbours in the TeX transcription describe a different method.
Let and . Insert a sufficiently smooth exact solution and divide by . Expanding at gives
The PDE cancels the term. Therefore the normalized local truncation error is and
For compatible smooth data with exact nodal initialization, the stability of a numerical method established below gives global error on fixed time intervals, by summing the one-step defects with the contraction bound. Thus no relation between and is needed for stability; choosing makes both consistency contributions .
Let be the tridiagonal matrix with diagonal two and adjacent entries minus one, incorporating zero Dirichlet boundary conditions. The actual PDF scheme is
An orthonormal basis of eigenvectors of has components , and substitution gives
They form an orthonormal basis by the spectral theorem for real symmetric matrices. Hence is invertible for every , and the amplification eigenvalues are . For the discrete L2 norm ,
This bound has constant one independent of time step and mesh, which is the required stability of a numerical method. Therefore every positive Courant number is stable. If a forcing or local-defect sequence is added, the discrete variation-of-constants formula gives a bound by the initial norm plus the sum of those perturbation norms; this also justifies the global error conclusion in part (a).
Arrange the interior values into a vector . Represent the five-point Dirichlet Laplacian as a Kronecker sum , where is the tridiagonal matrix with diagonal and adjacent entries one. This Kronecker sum is real symmetric; the real sampled potential has a real diagonal matrix . Thus
The generator is a skew-Hermitian matrix. Consequently
The matrix exponential is a unitary matrix, either by differentiating its product with its adjoint or by unitary diagonalization of a normal matrix. For the two-dimensional discrete L2 norm , this gives
Applying the same equation to a difference proves stability of a numerical method with a mesh-independent constant one. This is norm conservation of a semidiscrete Schrödinger equation. It concerns continuous time after spatial discretization; an arbitrary subsequent time integrator need not preserve this stability.
The printed coordinates do not discretize the stated square. For with interior points in each direction, use , , , and sample there. The printed and unshifted coordinates instead describe a grid on . The matrix proof is valid for either geometry with its corresponding boundary values, so this transcription-independent statement flaw does not alter the stability conclusion.
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 seeks
where 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 , giving
The 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 minimizes
over . 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 becomes
so
This 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 gives
To 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 , and
Its 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 use
Consequently
with 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.