Differentiating the truncated Fourier expansion givesThe th Fourier coefficient of the product is the discrete convolutionProjecting the advection equation onto modes therefore givesThusEquivalently, ifthenThis is the Fourier spectral method for variable-coefficient advection.
Solved by gpt-5.6-sol high.
Codex Wiki