Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 4 39C a Solution Created 2026-09-24 Updated 2026-10-03
Expand the unknown in Fourier modes:By Termwise differentiation of a Fourier series,Also,Therefore the coefficient of on the left-hand side isThe right-hand side has coefficientsbecause the coefficient of each of is and the constant coefficient is one. Hence the Fourier spectral system for a cosine-modulated second derivative isIts coefficient array is an infinite tridiagonal matrix.
For a spectral truncation, retain the modes , setand impose the displayed coefficient equation for every . This gives an explicit -dimensional tridiagonal system. The resulting finite Fourier series automatically satisfies the periodic boundary conditions.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 40E b Solution Created 2026-09-24 Updated 2026-09-29
Expand in the two-dimensional Fourier basis. Applying the derivative and product rules from part (a), the coefficient of the equation isThe normalization and compatibility conditions areThus, on , the infinite Fourier spectral method system isFor a square spectral truncation, chooseretain equations and unknowns indexed by , and set omitted coefficients to zero. This is the Fourier–Galerkin method: it projects the residual onto the retained Fourier modes. Other finite mode sets may be used in the same way.