Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 2 38C a Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 63 1 1 Solution Created 2026-10-03 Updated 2026-10-07
Put , and use the diffusion Courant number . To discuss consistency of a numerical method, refine the mesh with a fixed positive . With , the printed update is . A Taylor expansion of a smooth exact solution, about the new time level, gives the residual divided by :Here the heat equation implies and . Since depends only on , the leading term can vanish for every smooth solution only if . Thus the method is the Backward Euler diffusion scheme, with local truncation errorIts highest general accuracy is first order in time and second order in space, or order two in under . The coefficient of is , so it cannot cancel for any positive diffusion Courant number. This is a conclusion about the stencil actually printed: the new-time spatial difference fixes the sign of its temporal error. With sufficiently smooth compatible data, stability of a numerical method below turns the consistency estimate into an global error bound on a fixed time interval.
Past exam of the mathematics course of the University of Cambridge 2014 ib Paper 1 6C i Solution Created 2026-09-24 Updated 2026-10-06
Insert an exact smooth solution into the linear multistep method and define its unscaled local truncation error byIts Taylor expansion has coefficientsThe method has order at least exactly when , since then for every sufficiently smooth . Necessity can be checked by inserting polynomials of successive degrees. This also corresponds to the usual truncation error .
On the other hand, expansion of the characteristic polynomials of a linear multistep method givesThus the exponential-symbol order criterion for a multistep method isIf “order ” is meant to be the exact rather than guaranteed order, one additionally requires . The first two vanishing conditions are the usual consistency of a numerical method relations , .
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 66 5 a Solution Created 2026-10-03 Updated 2026-10-06
For a smooth exact solution of the advection equation, , since the transport velocity in the convention is minus one. Put , and move the scheme's right side to the left. Substitution gives the exact-solution residualIts constant, linear and quadratic Taylor expansion terms cancel. The cubic term isThe un-substituted leading term is , so divide by to use a normalized local truncation error. For a fixed positive Courant ratio,Thus the generic method is second order, provided stability and a compatible second-order starter are supplied.
There are two special ratios rather than an unnoticed higher generic order. At , the scheme is ; both sides lie on the same exact characteristic, and the residual vanishes identically. At the previous-level term cancels the unshifted current term for exact data, again producing zero residual on every exact characteristic solution. The first special case is stable, while the second is not stable for arbitrary two-level perturbations, as part (b) shows. Exact propagation of specially initialized data is not a substitute for stability.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 68 1 b Solution Created 2026-10-03 Updated 2026-10-06
Expand the exact solution about . The unscaled local truncation error isOnly odd powers occur in this centered expansion. Unless , the first nonzero coefficient is the coefficient, giving order of a numerical method two. For , that term vanishes but the next coefficient is , giving order of a numerical method four. ThusThese are exact orders for general smooth ordinary differential equations, since the respective first surviving derivatives need not vanish. With starting errors , the zero-stability established in part (a) makes the global error .
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 68 7 Solution Created 2026-10-03 Updated 2026-10-06
Consider an initial value problem on , with a Lipschitz continuous vector field in the solution variable and enough smoothness for the stated error expansions. Convergence of a numerical method meanswith consistent starting values. An order of a numerical method quantifies this approximation: with sufficiently accurate starting data and the required stability, the global error is . Stability of a numerical method controls the amplification and accumulation of perturbations; it is the link between a small local defect and small global error.
For a one-step formula , define the unscaled local truncation errorThe method has local order if uniformly along sufficiently smooth solutions. If the defect is divided by , its order is instead ; the convention must be specified. Assume also the perturbation estimateThe global error then satisfiesIterating, or applying the discrete Gronwall inequality, givesThere are steps on a fixed interval, so stable propagation turns local defects into accumulated error. Starting error is needed to retain order . This explains why matching an exact Taylor expansion is insufficient unless errors are controlled during repeated steps.
For a fixed-coefficient linear multistep method, writeThe consistency of a numerical method conditions are and . The higher order conditions for a linear multistep method arewith right side zero for ; exact order means first failure at . They come from inserting the exact solution and comparing its Taylor expansion.
Errors at follow the homogeneous recurrence determined by . Zero-stability is equivalent to the root condition for a multistep method: all roots of a polynomial have modulus at most one, and every unit-modulus root is simple. Roots outside the disk give exponential growth in the number of steps; repeated unit roots give polynomial growth in that number. Repeated interior roots are harmless because their polynomial factors are dominated by decay. Under the usual Lipschitz continuity and initialization assumptions, the Dahlquist equivalence theorem givesFor a zero-stable order- linear multistep method, local defects and starting errors of the stated orders yield global error by a recurrence bound and the discrete Gronwall inequality. Every required starting value matters.
A concrete failure of “consistency implies convergence” isHere and , so and : the method is consistent, of order one. But its root violates zero-stability. For with exact solution zero and starting values , , the computed solution is . These starting errors vanish, yet at the error diverges. Local accuracy cannot compensate for an unstable recurrence.
A different meaning of stability concerns a fixed step on decaying equations. The Dahlquist test equation introduces . A one-step method gives and is absolutely stable when . For a linear multistep method, the corresponding amplification polynomial of a multistep method is , and every root must satisfy the bounded root condition, not just the root approximating . Strict asymptotic decay requires the roots to have modulus less than one for . This distinction matters at reducible methods with an undamped parasitic mode, as in question 1(c).
The Forward Euler method has order one and , so its linear stability domain is . For , with , it requires . It converges as , yet an excessively large step can produce growing oscillations on an exactly decaying problem. The Backward Euler method has the same order, but makes it A-stable and L-stable. For a stiff differential equation, fast decay can impose a severe explicit time-step restriction even when accuracy of the slow dynamics would permit a much larger step.
The trapezoidal rule has order two and is A-stable, but is not L-stable, since its stability function tends to along the negative real axis. The Second Dahlquist barrier limits an irreducible A-stable linear multistep method to order at most two. This does not limit implicit Runge-Kutta methods: question 4's Lobatto IIIA method is fourth-order and A-stable. Conversely, question 1's fourth-order member is convergent but not A-stable. These examples show that order of a numerical method, zero-stability and A-stability answer different questions.
For nonlinear dissipative problems, B-stability controls distances between numerical solutions; algebraic stability of a Runge-Kutta method is a sufficient coefficient criterion. Question 4 shows that A-stability alone does not imply that coefficient criterion. Variable time steps require additional analysis of step ratios and error propagation, and stiff problems may require uniform-in-stiffness error estimates beyond the fixed-problem convergence result. The useful chain is local accuracy plus the appropriate perturbation bound, giving global accuracy; absolute and nonlinear stability then determine which practical time steps preserve the intended dynamics.
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 4 8D b Solution Created 2026-09-24 Updated 2026-10-06
Expand the second stage by the Taylor theorem, writing and for the derivative in the state variable:The update therefore agrees with the exact solution's Taylor series:Thus the one-step local truncation error is , and the method has order at least two under the usual smoothness and Lipschitz continuity assumptions.
For , the two-stage Runge-Kutta method givesOn the real axis, , so is equivalent to . HenceThe decay convention gives . Since negative real values such as lie outside the linear stability domain, the method is not A-stable. Its order is exactly two, since lacks the cubic term of .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 341 1 i Solution Created 2026-10-03 Updated 2026-10-06
The Lagrange interpolation polynomials at and areTheir integrals giveThus the coefficients are exactly those of a collocation Runge-Kutta method. More explicitly, with stage slopes , the degree-two polynomialsatisfies , , and . These are the collocation Runge-Kutta method equations, and . For an implicit Runge-Kutta method, the nearby stages exist uniquely for sufficiently small under Lipschitz continuity; see stage solvability of an implicit Runge-Kutta method.
Write , , and interpret powers of componentwise. The Butcher order conditions through degree three are verified directly:For the last equality, . However, the necessary degree-four Butcher order condition fails:Consequently, for sufficiently smooth ordinary differential equations, the local truncation error is and the order of a Runge-Kutta method is exactlyThis is the two-stage Radau IIA method; the conclusion follows from the explicit calculations rather than its name.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 341 2 i Solution Created 2026-10-03 Updated 2026-10-06
Insert an exact smooth solution of a differential equation and expand about . The unscaled local truncation error, with every term moved to the left, isHere the constant, first-derivative, and second-derivative terms all cancel, using the chain rule identity . Hence the formal defect convention givesAt , the coefficient of is , so there is no further cancellation. At any other , the cubic coefficient is nonzero.
There is a degeneracy at : both the first-derivative coefficient and vanish. The raw defect still has the displayed formal order two, but it cannot be normalized by into an ordinary first-order consistency of a numerical method test. Thus a convention requiring this nondegenerate normalization would leave the ODE order undefined at . In either convention, it is not a convergent approximation to arbitrary initial-value data; the next part explains why.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 341 4 i Solution Created 2026-10-03 Updated 2026-10-06
The original PDF has a spatial shift , so the printed scheme is not the usual second-order BDF discretization. The PDF does have on the right; the TeX aid loses that factor two, and that transcription must not be used.
Let , , and expand an exact smooth heat equation solution about . Relative to the standard unshifted backward differentiation formula, the printed newest value addsDividing the raw residual by , its expansion isIn particular, for the usual refinement with fixed , the term generally diverges. A concrete smooth counterexample is , which satisfies the Dirichlet boundary conditions and has at . Thus the printed scheme has no consistent order under fixed- refinement. Its normalized shift error is , so one could only investigate a special coupled limit such as after specifying a valid boundary closure; it has no standard joint second-order accuracy.
For the likely intended correction , the extra shift terms disappear. The normalized local truncation error isWith a stable, suitably accurate starter, the corrected backward differentiation formula combined with the second-order central difference therefore hasThis is a correction to the printed method, not a claim about it.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 341 7 Solution Created 2026-10-03 Updated 2026-10-06
For a fully discrete linear partial differential equation evolution, write in a specified discrete norm. Finite-time stability of a numerical method meanswith independent of the allowed meshes. For a multistep method, augment the state with its time-history values and include a stable starter. Bounds may grow as when the continuous problem has growth; demanding decay for all time would be a stronger assertion. The treatment of initial data, forcing, Dirichlet boundary conditions, and the norm is part of the hypothesis, not a detail supplied by an interior calculation.
For constant coefficients on an infinite or periodic uniform grid, Von Neumann stability analysis substitutes the Fourier mode . The discrete Fourier transform and the Parseval identity turn a uniform multiplier estimate into a discrete L2 norm estimate. In a one-step scalar scheme, proves contractivity, while gives finite-time stability. In a multilevel scheme, every root of a polynomial in its amplification polynomial of a multilevel finite difference scheme matters, as does uniform control of the associated companion matrix.
For the Forward Euler diffusion scheme with ,Thus for all frequencies exactly whenSufficiency follows since ; necessity follows from the highest-frequency mode on even periodic grids. This gives the usual parabolic mesh restriction . For the Backward Euler diffusion scheme,so every is stable. The Crank--Nicolson method hasagain of modulus at most one for all , but stiff modes approach rather than zero. These are PDE manifestations of the A-stability and L-stability distinctions for time integration.
For advection , assume and set . The upwind finite difference scheme is , withIt is contractive when . This also has a direct maximum-norm proof: each newest value is a convex combination of two old values. The resulting Courant–Friedrichs–Lewy condition expresses that the numerical domain of dependence covers the physical one. For negative , the upwind direction must be reversed. By contrast, Forward Euler method time stepping with the centered first finite difference has and for nonzero . Under fixed nonzero refinement it is unstable, since a fixed nontrivial mode grows geometrically over steps. This is not a claim of instability under every imaginable mesh coupling: instead bounds its spurious finite-time growth, since .
The leapfrog advection scheme illustrates a multilevel subtlety. Its amplification polynomial of a multilevel finite difference scheme isFor , both roots of a polynomial have unit modulus and separation at least . A uniformly conditioned eigenbasis of the companion matrix then proves power boundedness of a two-level Fourier scheme for arbitrary history data. At and a grid admitting , the roots coincide on the unit circle, and a Jordan block produces growth. Thus the endpoint fails the ordinary arbitrary-history root condition for a multistep method; checking only that both moduli equal one misses the instability. Restricting the starter or filtering the parasitic mode is an additional hypothesis.
The energy method handles variable coefficients and finite boundaries for which Fourier stability analysis may be unavailable. For the Backward Euler diffusion scheme with homogeneous Dirichlet boundary conditions, define . The discrete summation by parts identity isTake the inner product of with . The elementary identity givesThis proves unconditional contractivity including the actual boundary treatment. More generally, a dissipative operator gives of operator norm at most one: with , dissipativity implies , and the Cauchy-Schwarz inequality gives . In finite dimensions this also proves invertibility. For the second-order backward differentiation formula, the BDF2 discrete energy identity used in question 4 controls both time levels and proves unconditional diffusion stability. A repeated root strictly inside the disk is harmless here; the energy argument supplies the uniform bound without a singular eigenvector formula.
A second technique is eigenvalue stability analysis of a finite difference method. Under the method of lines, a time integrator advances by . If is a normal matrix, the scalar linear stability domain criterion on all controls its powers exactly in the corresponding L2 norm. For the centered Dirichlet discrete Laplacian, its eigenvalues lie between and zero; intersecting this interval with a time integrator's stability interval determines its mesh restriction. A uniform bound on the diagonalization of a matrix is needed for nonnormal diagonalizable systems. Eigenvalues alone can be misleading. For example,has both eigenvalues inside the disk for , but the upper-right entry of is . Taking , , this grows like . Hence stable scalar eigenvalues do not give mesh-uniform stability. Boundary closures can introduce precisely the extra growth that an interior Fourier symbol overlooks, so boundary stability of a finite-difference method must be checked separately.
For nonlinear spatial discretizations, a useful replacement for Fourier stability analysis is a convexity argument. If the Forward Euler method map is nonexpansive in a chosen norm for , the second-order strong stability preserving Runge-Kutta methodis also nonexpansive under the same restriction. Indeed, for two inputs, the triangle inequality gives . Its Taylor expansion is , proving order two. Such strong stability preserving Runge-Kutta methods transfer suitable forward-step bounds without relying on a linear spectral calculation.
Finally, consistency of a numerical method explains what stability buys. For a linear Hadamard well-posed problem, the Lax equivalence theorem equates convergence of a consistent discretization with its stability, under the stated approximation-space and norm hypotheses. Directly, if the error satisfies , iteration gives the discrete Duhamel principleThus vanishing normalized local truncation error and initial error yield convergence. With a nonlinear Lipschitz step estimate, the discrete Gronwall inequality plays the same role. A stable but inconsistent stencil, such as the literal defective formulas in questions 3 and 4 under their usual refinement, is not rescued by any amplification bound. The decisive checks are a mesh-uniform evolution bound, a valid boundary closure, and consistency with the actual PDE.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 38A ii Solution Created 2026-09-24 Updated 2026-10-05
If , then , so the term in the previous expansion vanishes. Therefore the normalized local truncation error is , and the unscaled residual is . This is generally fourth order under the given harmonic-source condition; special solutions can have additional cancellation, but that is not guaranteed by this argument.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 38A i Solution Created 2026-09-24 Updated 2026-10-05
Assume sufficient smoothness up to the boundary for uniform Taylor remainders, for example and . Direct Taylor expansion of the nine-point finite-difference stencil givesThus the normalized local truncation error is . The unscaled residual is . Stating the normalization avoids ambiguity in the meaning of truncation order.
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 1 6D Solution Created 2026-09-24 Updated 2026-10-03
Substituting the exact solution and expanding about gives the local truncation errorThus the method is consistent of order two; as a stable one-step method it has global convergence order .
The order cannot be higher. For , , the exact solution is , and direct substitution makes the local truncation error exactly