Nonlinear waves: simulation meets asymptotic analysis

The cubic-quintic nonlinear Schrödinger equation

A local disturbance can remain recognisable while continually changing shape. I wanted to understand that process from two directions: by computing the nonlinear evolution, and by deriving what the linearised equation predicts at long times. This investigation connects a Fourier split-step solver with dispersion relations and the method of stationary phase.

I perturbed the constant state with a small Gaussian bump or depression, varied the nonlinear parameter, and followed the waves travelling away from the centre. The useful comparison was not simply whether the plots looked plausible. It was whether the propagation pattern, numerical diagnostics and asymptotic calculation told a consistent story.

The equation and the experiment

I studied

\[ i\psi_t+\psi_{xx}+(|\psi|^2-1)(2A+1-3|\psi|^2)\psi=0, \qquad 0<A<1. \]

The constant solution is \(\psi=1\). On the computational interval \([-L,L]\), I imposed periodicity on both \(\psi\) and \(\psi_x\) and used

\[\psi(x,0)=1\pm0.3e^{-x^2}.\]

The two signs let me compare an elevation and a depression of the same width and magnitude. My main numerical configuration was \(L=100\), \(N_x=2048\), \(\Delta t=0.01\) and final time \(T=20\). Thus \(h=2L/N_x\), with Fourier wavenumbers in MATLAB ordering

\[k=\frac{\pi}{L}\left[0,1,\ldots,N_x/2-1,-N_x/2,\ldots,-1\right].\]

Splitting the nonlinear and dispersive evolution

I separated the equation into a nonlinear step, which can be integrated pointwise, and a linear dispersive step, which is diagonal in Fourier space. Over one time step the algorithm is

\[ W=\psi\exp\left\{i(|\psi|^2-1)(2A+1-3|\psi|^2)\Delta t\right\}, \]

followed by

\[ \psi^{\mathrm{next}}=\mathcal F^{-1} \left[\mathcal F\{W\}\exp(-ik^2\Delta t)\right]. \]

This is the ordered nonlinear-then-linear splitting used in my report. The Fourier representation also gives the spatial derivative used in the diagnostics: in MATLAB’s transform convention, \(\psi_x=\operatorname{ifft}(ik\operatorname{fft}(\psi))\).

The implementation

The MATLAB extract below shows both stages of the solver and the calculation of the diagnostics.

A = 0.7; L = 100; N = 2048;
h = 2*L/N;
x = (-N/2:N/2-1)*h;
tau = 0.01; T = 20;
nsteps = round(T/tau);
k = (pi/L)*[0:N/2-1 -N/2:-1];
psi_plus = 1 + 0.3*exp(-x.^2);
psi_minus = 1 - 0.3*exp(-x.^2);
psi = psi_minus;
psi_store = zeros(nsteps+1,N);
psi_store(1,:) = abs(psi);
for n = 1:nsteps
    W = psi.*exp(1i*(abs(psi).^2-1).* ...
        (2*A+1-3*abs(psi).^2)*tau);
    psi = ifft(fft(W).*exp(-1i*k.^2*tau));
    psi_store(n+1,:) = abs(psi);
    psi_x = ifft(1i.*k.*fft(psi));
    % Diagnostic expressions used in the original program:
    N_now = sum(abs(psi).^2)*h;
    E_now = sum(abs(psi_x).^2)*h;
    P_now = (1i/2)*sum(psi_x.*conj(psi) ...
        -conj(psi_x).*psi)*h;
end

Norm, kinetic contribution and momentum

I tracked

\[ N=\int|\psi|^2\,dx,\qquad E=\int|\psi_x|^2\,dx,\qquad P=\frac{i}{2}\int\left(\psi_x\overline\psi-\overline{\psi_x}\psi\right)dx. \]

The quantity labelled \(E\) in the report is the gradient, or kinetic, contribution. It is not the full nonlinear Hamiltonian. This distinction matters when interpreting its variation: a change in this diagnostic is not, by itself, evidence of a failure to conserve the total energy of the equation.

For \(N\) and \(E\), I plotted changes relative to their initial values. For \(P\), I used an absolute change because the symmetric initial data have \(P(0)=0\). At \(A=0.5\), the reported \(N\) and \(P\) errors are around \(10^{-14}\), while the relative change in \(E\) reaches roughly \(4\).

Original Figure 1a: relative error in the norm.

Original Figure 1a: relative error in the norm.

Original Figure 1b: relative change in the kinetic contribution.

Original Figure 1b: relative change in the kinetic contribution.

Original Figure 1c: absolute change in momentum.

Original Figure 1c: absolute change in momentum.

The low-\(A\) run exposed a separate numerical issue. With \(A=0.1\) and \(\Delta t=0.01\), the reported momentum error grows sharply after about \(t=16\) and reaches approximately \(250\). Reducing the step to \(0.001\) restores momentum conservation to numerical precision in the reported test. I therefore treated the late-time fine structure in that regime cautiously rather than interpreting every oscillation as resolved physics.

Positive and negative disturbances

For the negative perturbation, the simulations show symmetric waves moving away from a central depression. Increasing \(A\) reduces their propagation speed; at \(A=0.9\), the central depression is more persistent over the displayed interval.

Original Figure 2a: negative Gaussian disturbance, A = 0.3.

Original Figure 2a: negative Gaussian disturbance, A = 0.3.

Original Figure 2b: negative Gaussian disturbance, A = 0.9.

Original Figure 2b: negative Gaussian disturbance, A = 0.9.

The positive disturbance also produces symmetric, outward-moving waves. The report describes a sequence of oscillations behind the dominant waves. At \(A=0.9\), the positive case remains closer to the background magnitude than the negative case.

Original Figure 3a: positive Gaussian disturbance, A = 0.3.

Original Figure 3a: positive Gaussian disturbance, A = 0.3.

Original Figure 3b: positive Gaussian disturbance, A = 0.9.

Original Figure 3b: positive Gaussian disturbance, A = 0.9.

Linearising about the ground state

To explain the propagation pattern, I wrote

\[\psi=1+\delta\psi,\qquad |\delta\psi|\ll1.\]

Keeping only first-order terms gives

\[i(\delta\psi)_t+(\delta\psi)_{xx}+(2A-2)(\delta\psi+\overline{\delta\psi})=0.\]

With \(\delta\psi=u+iv\), the real and imaginary parts become

\[u_{xx}-v_t+4(A-1)u=0,\qquad u_t+v_{xx}=0.\]

Eliminating \(v\) produces

\[u_{xxxx}+u_{tt}+4(A-1)u_{xx}=0.\]

Substitution of the Fourier mode \(u=e^{i(kx-\omega t)}\) then yields

\[\omega^2=k^4+4(1-A)k^2, \qquad \omega(k)=\pm\sqrt{k^4+4(1-A)k^2}.\]

For \(0<A<1\) these linear frequencies are real. The frequency is not a linear function of wavenumber, so different Fourier components propagate differently. That is the analytical counterpart of the spreading oscillations in the heatmaps.

Following a ray with stationary phase

I expressed the linearised solution in the form

\[u(x,t)=\int F(k)e^{i[\omega(k)t-kx]}\,dk.\]

Along a ray \(\nu=x/t\), the phase is \(h(k)=\omega(k)-k\nu\). The stationary point satisfies

\[h'(k_s)=0\quad\Longleftrightarrow\quad \omega'(k_s)=\nu.\]

Writing \(B=1-A>0\), on the positive-frequency, positive-\(k\) branch,

\[\omega'(k)=\frac{2(2B+k^2)}{\sqrt{4B+k^2}},\]

and the algebra in the report gives

\[k_s^2=\frac{\nu^2-16B+\nu\sqrt{\nu^2+32B}}{8}.\]

The second derivative is

\[\omega''(k)=\frac{12Bk+2k^3}{(4B+k^2)^{3/2}}>0\qquad(k>0).\]

The leading stationary-phase contribution is consequently

\[ u(x,t)\approx \left(\frac{2\pi}{t|\omega''(k_s)|}\right)^{1/2} F(k_s)\exp\left\{i\left[\omega(k_s)t-k_sx+ \frac{\pi}{4}\operatorname{sgn}\omega''(k_s)\right]\right\}. \]

The ray parameter is \(\nu=x/t\). This formula predicts an amplitude proportional to \(t^{-1/2}\) along a fixed admissible ray.

Because \(\omega'\) is increasing on this branch, its lower limit is

\[\lim_{k\to0^+}\omega'(k)=2\sqrt{B}=2\sqrt{1-A}.\]

Thus a real stationary point on this branch requires \(\nu>2\sqrt{1-A}\). Extending the calculation to the negative wavenumbers and negative-frequency branch gives stationary-phase contributions in

\[\left|\frac{x}{t}\right|>2\sqrt{1-A}.\]

The phase shift is \(+\pi/4\) on the positive-frequency branch and \(-\pi/4\) on the negative-frequency branch. Increasing \(A\) decreases the limiting ray speed, agreeing with the slower propagation seen in the simulations.

What the comparison establishes

The numerical and analytical parts support the same qualitative picture: a disturbance of the constant state generates dispersive waves, and their propagation changes systematically with \(A\).

Original Figure 4a: negative perturbation at A = 0.9, three-dimensional view.

Original Figure 4a: negative perturbation at A = 0.9, three-dimensional view.

Original Figure 4b: positive perturbation at A = 0.9, three-dimensional view.

Original Figure 4b: positive perturbation at A = 0.9, three-dimensional view.

The stationary-phase calculation describes small perturbations at long times. The nonlinear simulations extend to \(t=20\) and show the same qualitative trends in spreading, outward propagation and the dependence on \(A\).

Originally completed as part of MAM3043S · Methods of Mathematical Physics, University of Cape Town, 2026.