Even-reflection closure for Neumann diffusion Created 2026-10-20 Updated 2026-10-25
For the heat equation with homogeneous Neumann boundary conditions at both ends of a uniform grid, even reflection supplies ghost values for a centered finite difference method. A fourth-order centered second derivative needs two ghost values at each end, obtained with the displayed rule for . For a sufficiently smooth compatible solution, differentiating the Neumann boundary conditions in time and using the heat equation makes every odd spatial derivative vanish at the endpoints. Its even extension therefore retains the smoothness required by the fourth-order stencil; arbitrary incompatible initial data need care at the initial boundary corners.
The discrete cosine modes diagonalize this reflected spatial operator, with eigenvalues and . Its most negative eigenvalue is , so the forward Euler method is stable in the corresponding trapezoid-weighted norm when . The Crank-Nicolson diffusion scheme is stable for every time step for this closure, but its amplification factor approaches on highly damped spatial modes, allowing sign-alternating numerical transients. The ghost values are defined here as auxiliary samples outside the physical interval, rather than additional unknown initial data.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 69 3 a Solution Created 2026-10-03 Updated 2026-10-14
Expanding the symmetric spatial stencil by the Taylor theorem givesConsistency of a numerical method and cancellation of the term require , , and . Solving this linear system givesThe resulting fourth-order centered second derivative hasThe nonzero next coefficient proves that the highest spatial order of a numerical method is four for this three-parameter stencil.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 69 3 b Solution Created 2026-10-03 Updated 2026-10-14
For the method of lines in part (a), the Fourier symbol of the spatial operator isEach Fourier mode therefore evolves by , whose multiplier has modulus at most one. The discrete Parseval identity givesThus the fourth-order centered second derivative gives an unconditionally stable semidiscrete evolution in the L2 norm. No time integration method has yet been chosen, so no time-step restriction belongs to this conclusion.
An arbitrary L2 function does not have well-defined point samples. For the stated initial data one may use cell-average projection, . The Cauchy-Schwarz inequality gives , providing a bounded initialization for the stability estimate.
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2001 Paper 2 11 Solution Created 2026-10-18 Updated 2026-10-20
Fourth-order spatial formula. For a sufficiently smooth function, pair the Taylor expansions at opposite shifts:Multiply the first sum by sixteen, subtract the second, and subtract . The constant and fourth-derivative terms cancel, leavingHence the fourth-order centered second derivative satisfiesRearranging proves the requested , including its leading error coefficient.
Explicit diffusion scheme. Take , , , and let approximate . Combining the forward Euler method in time with in space givesTo check the error, insert the exact solution. The heat equation gives , while the time Taylor expansion and the spatial formula give the one-step defectThus its unnormalized local truncation error isas requested. Dividing this defect by gives the normalized residual ; these are distinct error conventions.
Boundary implementation. The centered stencil requires two ghost values at each end. An even-reflection closure for Neumann diffusion imposesThe reflected first centered difference at either endpoint is zero. Apply the same evolution formula at the endpoints after substituting these ghost values; for example,The ghost values also close the stencil at and . They are determined auxiliary values, not new physical data. For a smooth solution compatible with the Neumann boundary conditions, differentiating those conditions in time and using the heat equation gives at the endpoints. Thus even reflection preserves the smoothness needed for fourth-order spatial accuracy. If the initial data fail the required higher compatibility conditions, a uniform smooth error expansion through cannot be assumed.
For completeness, the reflected spatial operator has cosine eigenvectors and eigenvaluesThe most negative one is . Requiring gives the forward Euler method stability restriction in the natural trapezoid-weighted discrete norm. A fourth-order spatial stencil does not remove the explicit diffusion time-step restriction.
Implicit alternative. The Crank-Nicolson diffusion scheme using the same spatial operator and boundary closure isIt has second-order time accuracy and fourth-order spatial accuracy for smooth compatible solutions; its one-step defect is . Each spatial eigenvalue has amplification factor of magnitude at most one, so it removes the explicit restriction for this boundary closure.
The price is solving a banded linear system at every step; the same matrix factorization can be reused for fixed and . Large time steps still reduce accuracy. Moreover, the amplification factor tends to as , so short spatial wavelengths can alternate sign with little numerical damping. Thus unconditional linear stability does not guarantee a monotone or well-resolved transient. Boundary accuracy and initial compatibility remain necessary with either time discretization.