Comparison of solitons and waves
To demonstrate a soliton propagation, we numerically solve the Korteweg–de Vries equation. It has the form:
To obtain a numerical solution we successively calculate derivatives, and , using the central difference method:
The soliton is indicated by the purple outline, the moving wave is shown by a turquoise gradient.