Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 341 1 a Solution Created 2026-10-03 Updated 2026-10-05
For a fixed-step linear multistep method with a nonzero leading coefficient, applied to an ordinary differential equation with a locally Lipschitz continuous vector field, the Dahlquist equivalence theorem states thatHere convergence is uniform on each fixed finite time interval as the step size tends to zero, for every set of starting values tending to the corresponding exact values. Consistency of a numerical method means that the normalized local defect tends to zero; for the characteristic polynomials of a linear multistep method it gives and . Zero-stability is equivalent to the root condition for a multistep method: every root of a polynomial of satisfies , and roots with are simple. Order , together with zero-stability and starting errors , gives global error under the usual smoothness assumptions.
To prove the necessity of the root condition for multistep convergence, use the test problem , . Its discrete error satisfies , where . Set . If , the exact recurrence solutionhas starting errors tending to zero at every fixed starting index, but . Thus convergence fails.
If a unit-modulus root has multiplicity , the recurrence instead admitsAgain every fixed starting error tends to zero while . These polynomial-times-exponential solutions follow from the repeated factor . Complex modes can be interpreted as a real two-component system, or their real and imaginary parts can be used. Therefore convergence requires precisely the root condition for a multistep method. Repeated roots strictly inside the unit disk are allowed, since their polynomial factors are dominated by exponential decay.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 341 6 Solution Created 2026-10-03 Updated 2026-10-05
A Runge-Kutta method with stage matrix , weights and step size isIts order measures accuracy as , while stability concerns how errors or stiff components propagate. Linear A-stability, strong stiff damping through L-stability, and nonlinear B-stability address different questions.
For the Dahlquist test equation , elimination of the stages gives the stability functionThe linear stability domain is . The method is A-stable when it contains the closed left half-plane, and L-stable when it is also true that as there. These conditions describe, respectively, stability for every non-growing scalar linear mode and damping of very rapidly decaying modes.
The Forward Euler method has , so it fails A-stability, for example at . In fact no nontrivial explicit Runge-Kutta method is A-stable: its stability function is a nonconstant polynomial, which is unbounded along the negative real axis. The Backward Euler method has . For , , and the function tends to zero at infinity, proving both A-stability and L-stability. The implicit midpoint rule has . The identity proves A-stability, but its limit rules out L-stability.
For nonlinear equations, a dissipative vector field satisfies . The corresponding exact solutions contract because the time derivative of their squared distance is twice that inner product. A B-stable method preserves this contraction for every , whenever its stages are well defined.
Let , , and . Expanding the update's squared norm, substituting , and symmetrizing the double sum proves the Runge-Kutta contractivity identityIf and the matrix is a positive semidefinite matrix, the first sum is nonpositive by dissipativity. The second double sum is nonnegative: sum the quadratic form of over each coordinate of the . Thus algebraic stability implies B-stability. Applied to complex scalar linear equations with the real part of the Hermitian inner product, the same argument also implies A-stability, where the stages are defined.
The Backward Euler method has , hence , and is algebraically stable. One can prove its nonlinear contraction directly: gives . The implicit midpoint rule has , and , so it is B-stable even though it is not L-stable.
Linear A-stability does not by itself imply nonlinear B-stability. The ODE trapezoidal rule has the same stability function as the implicit midpoint rule, but take the dissipative scalar field and . For any positive starting value, its trapezoidal update is . Thus two positive starting values have their distance doubled, violating B-stability. Its algebraic stability matrix also has a negative first diagonal entry. The field is globally Lipschitz continuous, so this is a well-defined nonlinear counterexample.
These examples distinguish accuracy, scalar stiff-mode stability, nonlinear contraction, and rapid stiff-mode damping. For implicit methods, solvability of the stage equations remains an additional requirement; a formal stability function alone does not establish it for arbitrary nonlinear problems.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 339 1 b Solution 2026-09-28
The subgradient method chooses and a step size , then setsAssume, as the question's use of requires, that a minimizer exists, and write . Since every subgradient here has Euclidean norm at most , the standard best-iterate estimate isTaking a suitable constant step when the target accuracy is known, or a standard diminishing sequence, gives error at most initerations, so the requested exponent is .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 339 1 a Solution 2026-09-28
The Euclidean projection onto a convex set is nonexpansive, and because the optimum is feasible. Therefore the projected subgradient method satisfiesThe subgradient inequality gives , while Lipschitz continuity of the finite convex function gives . HenceSumming this telescoping inequality for , and then bounding the smallest term by the average, yieldsWriting , the right-hand side is minimized by the constant step sizeSubstitution givesIf , the initial point is already optimal and the result is immediate.
Preconditioned steepest descent 2026-10-18
For fixed symmetric positive-definite matrices and , preconditioned steepest descent minimizes along the direction supplied by the auxiliary solve. Given , form the linear-system residual . If , stop: . Otherwise solve and useThis is exact line search for a positive-definite quadratic along . Indeed,whose derivative vanishes at the displayed positive step size. Unlike the Preconditioned conjugate gradient method, it uses the fresh directly rather than combining it with a previous conjugate direction.
For diagonal scaling for a two-dimensional linear system, start at . Without matrix preconditioning, take : , , andWith the Jacobi preconditioner , , , andThe original linear-system residual becomes much smaller after this correction. Quantify progress in the same energy norm in both cases: and . Exact substitution givesIn this particular example the entire histories are and . To check that this is exact, the next step sizes are and , respectively, and their residual updates give and . Multiplying a linear-system residual by a nonzero scalar leaves the next step size unchanged; every pair of steps repeats the same directions at a smaller scale. The two first-step energy ratios then establish these formulas for all .
The curves come from exact rational updates of the specified linear system, converted to decimal values for plotting. The left panel counts iterations. The right panel declares one unit for applying and one unit for the auxiliary diagonal solve, charging one unit per unpreconditioned step and two per preconditioned step. It excludes setup and vector operations, so it compares a declared cost model rather than measured runtime. Scaling is advantageous even with that extra charge.
These curves compare steepest descent method iterations. On this two-dimensional linear system, both the Conjugate gradient method and the Preconditioned conjugate gradient method terminate within two steps in exact arithmetic. The plot therefore establishes no CG iteration-count advantage for this example; the benefit of scaling for larger problems depends on their eigenvalues and auxiliary-solve costs.
Subgradient method 2026-09-28
The subgradient method minimizes a possibly nonsmooth convex function by choosing and iteratingIf the subgradients are bounded by and a minimizer is within distance of , a suitable constant or diminishing step size finds objective error at most in iterations.
