Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2020/ii/paper-4/40e/b/solution

Expand in the two-dimensional Fourier basis. Applying the derivative and product rules from part (a), the coefficient of the equation is
The normalization and compatibility conditions are
Thus, on , the infinite Fourier spectral method system is
For a square spectral truncation, choose
retain 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.

New to topics? Read the docs here!