Skip to content

Multiplying two sampled waves can create a resolved-looking wave that was absent from the continuum product. In KdV the derivative of that product feeds the false mode back into the dynamics. A carefully chosen one-mode initial condition lets us predict the erroneous forcing, then measure it after a short evolution using the same time step in both runs. The Korteweg–de Vries equation is named for the paper that derived it in 1895 for long waves in a shallow canal. Korteweg and de Vries (1895)

Use ut=−uxxx−3∂x(u2)u_t=-u_{xxx}-3\partial_x(u^2) on 0≤x<2π0\le x\lt2\pi with periodic boundaries. On NN equally spaced nodes the normalized Fourier coefficients are

u^k=1N∑j=0N−1u(xj)e−ikxj.\hat u_k=\frac1N\sum_{j=0}^{N-1}u(x_j)e^{-ikx_j}.

The exact Fourier product is an ordinary convolution. The discrete product sums contributions with p+q≡k(modN)p+q\equiv k\pmod N, so frequencies separated by NN become indistinguishable. For N=24N=24 retain both signs through ∣k∣=11|k|=11 and discard the Nyquist bin.

Take u(x,0)=cos⁡9xu(x,0)=\cos9x. The true product is (1+cos⁡18x)/2(1+\cos18x)/2. A Galerkin projection onto the retained band drops mode 18, and the remaining constant has zero derivative. On the 24 nodes, however, cos⁡18x=cos⁡6x\cos18x=\cos6x. Raw pointwise multiplication followed by differentiation gives an erroneous +9sin⁡6x+9\sin6x in −3∂x(u2)-3\partial_x(u^2). Its spatial integral vanishes, so monitoring mass will miss the mistake. The underlying convolution with wave numbers identified modulo NN is the one-dimensional version of Patterson and Orszag’s formula. Patterson and Orszag, p. 2539, equations (1)–(2)

Evaluate the same projected nonlinearity with padding

Section titled “Evaluate the same projected nonlinearity with padding”

Embed the normalized positive and negative coefficients in a 36-point spectrum using their signed indices, fill the added bins with zero, transform to physical space, square, transform back and keep only the original modes. True product modes extend to ∣k∣=22|k|=22. On the padded grid, any wrapped mode then has ∣k∣≥14|k|\ge14 and cannot contaminate ∣k∣≤11|k|\le11. The constant mode is differentiated to zero. If using an FFT convention whose forward transform is unnormalized, restore the appropriate grid factor on each array. A mismatch in normalization can survive a test that only checks which bins are occupied.

A different option is to restrict the initial, intermediate and output spectra to ∣k∣<N/3|k|\lt N/3 on the original grid, reducing the available bandwidth. For N=24N=24 this removes the original ninth harmonic as well. To compare aliasing on the same initial data and the same target modes, use the padded and raw versions above.

The strict cutoff matters if NN is divisible by three. Keeping the endpoint K=N/3K=N/3 lets K+K=2KK+K=2K wrap onto −K-K. On 24 nodes, squaring cos⁡8x\cos8x and differentiating the raw product would therefore inject +12sin⁡8x+12\sin8x into the retained equation. For a band with 3K<N3K\lt N, every retained triple satisfies ∣p+q−k∣≤3K<N|p+q-k|\le3K\lt N. Consequently p+q≡k(modN)p+q\equiv k\pmod N implies p+q=kp+q=k. This proves the retained product is the ordinary projected convolution.

With the padded Galerkin rule the exact finite-system solution for this initial condition is u(x,t)=cos⁡(9x+729t)u(x,t)=\cos(9x+729t). Translation changes its phase but keeps the product’s nonconstant modes outside the band. This is an exact solution of the projected system; an unrestricted KdV field immediately develops its eighteenth harmonic. At time 0.0050.005 after 100 equal exponential Runge–Kutta steps, the raw solver has ∣u^6∣=0.00464726|\hat u_6|=0.00464726 and a maximum nodal error of 0.009883630.00988363. Padding gives ∣u^6∣<4×10−16|\hat u_6|\lt4\times10^{-16} and a maximum error below 8×10−158\times10^{-15}. This experiment isolates the spatial product rule. To assess time error with the rule fixed, follow the periodic traveling-wave convergence test. Reproduce both Fourier evolutions (Python)

Which integrals does the projected flow conserve?

Section titled “Which integrals does the projected flow conserve?”

Let PKP_K be the orthogonal projection onto Fourier modes ∣k∣≤K|k|\le K for a real periodic field u=PKuu=P_Ku. With the product evaluated exactly on the retained band, the continuous-time Galerkin equation is

ut=−∂xFK,FK=PK(3u2+uxx).u_t=-\partial_x F_K,\qquad F_K=P_K(3u^2+u_{xx}).

Mass is constant because a derivative integrates to zero over the period. For E=∫(u3−ux2/2) dxE=\int(u^3-u_x^2/2)\,dx, periodic integration by parts gives

E˙=∫(3u2+uxx)ut dx=−∫FK ∂xFK dx=0.\begin{aligned} \dot E&=\int(3u^2+u_{xx})u_t\,dx\\ &=-\int F_K\,\partial_x F_K\,dx=0 . \end{aligned}

The second line uses ut=PKutu_t=P_Ku_t and self-adjointness of the projection. Likewise ddt∫u2 dx=2∫uxFK dx\frac{d}{dt}\int u^2\,dx=2\int u_x F_K\,dx. Since uxu_x is retained, we can remove PKP_K from this integral. The resulting integrand is ∂x(2u3+ux2)\partial_x(2u^3+u_x^2) and integrates to zero.

On a grid satisfying 3K<N3K\lt N, the trapezoidal sum also integrates u3u^3 exactly: its Fourier modes have ∣k∣≤3K|k|\le3K, so only the true zero mode can contribute to the sample mean. A time stepper can thus show tiny drift in three accurately measured integrals of a coarse projected trajectory. In the one-pulse experiment, the coarsest grid starts with an energy discrepancy of 2.54%2.54\% and finishes with relative field error 0.1620.162. Conservation within a band places no accuracy requirement on the discarded modes.

  • Korteweg, D. J., and G. de Vries. “On the change of form of long waves advancing in a rectangular canal, and on a new type of long stationary waves.” The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science 39 (1895), 422–443. DOI
  • Patterson, G. S., Jr., and S. A. Orszag (1971). “Spectral calculations of isotropic turbulence: efficient removal of aliasing interactions.” Physics of Fluids 14, 2538–2541. DOI.