Solving the KdV Equation Using the PINN Method
DOI:
https://doi.org/10.54097/s27w9816Keywords:
Physics-Informed Neural Networks, Korteweg-de Vries Equation, Soliton Wave.Abstract
Traditional numerical methods such as the Finite Difference Method (FDM) often exhibit significant numerical dissipation and dispersion errors when solving the Korteweg-de Vries (KdV) equation, particularly in long-term simulations or complex wave interactions like double soliton collisions. To address these limitations, this study proposes an improved approach based on Physics-Informed Neural Networks (PINNs). By embedding the physical constraints of the KdV equation directly into the loss function, and employing a lightweight fully-connected neural network with four hidden layers and automatic differentiation, the method enhances both accuracy and generalization capability. Numerical experiments on single and double soliton cases demonstrate that the PINN method significantly outperforms FDM and conventional Artificial Neural Networks (ANNs). For instance, in the single soliton case, the maximum error of PINN is reduced to 8.36e-03, with an L2 error of 1.33e-02, while FDM results in larger errors due to numerical artifacts. In the double soliton collision scenario, PINN effectively captures the nonlinear interaction process with minimal error accumulation. Although slight discrepancies are observed near the wave crest-especially for the faster wave-the overall waveform and dynamic behavior are accurately preserved. The absolute error distribution further confirms the stability and precision of the PINN solution across the computational domain. These results underscore the critical role of physical constraints in improving the modeling of nonlinear wave phenomena. The proposed PINN framework offers a robust, efficient, and high-fidelity alternative for solving complex PDEs in scientific and engineering applications.
Downloads
References
[1] Qiu Tianwei, Wei Guangmei, Song Yuxin, et al. Research on new solitary wave solutions of KdV-type equations based on the PINN method [J]. Applied Mathematics and Mechanics, 2025, 46 (01): 105 - 113.
[2] Wang Lin, Liu Ziqiang, Ouyang Zigen, et al. Orbital stability of solitary wave solutions for the combined KdV equation [J]. Journal of University of South China (Natural Science Edition), 2023, 37 (05): 87 - 91.
[3] Bi Yanming, Yin Zhe. Finite difference method for the variable-coefficient Cattaneo equation [J]. Journal of Shandong Normal University (Natural Science Edition), 2020, 35 (04): 436 - 439.
[4] Yuan Dongfang, Liu Wenhui, Cui Guimei, et al. Numerical solution of elliptic differential equations based on artificial neural networks [J]. Journal of Ningxia University (Natural Science Edition), 2022, 43 (01): 6 - 11.
[5] Wei Chang, Fan Yuchen, Zhou Yongqing, et al. Physics-informed neural networks with time weights for solving unsteady partial differential equations [J]. Acta Mechanica Sinica, 2025, 57 (03): 755 - 766.
[6] Chen Wankun, Yuan Chunxin. Application of the variable-coefficient KdV equation in ocean internal solitary waves [J]. Periodical of Ocean University of China (Natural Science Edition), 2020, 50 (08): 19 - 24.
[7] Huang Guannan, Wang Jingyue, Wang Meiqing. Neural network solver for nonlinear partial differential equations based on the improved Euler method [J]. Journal of Fuzhou University (Natural Science Edition), 2024, 52 (04): 396 - 403.
[8] Huang Ruilong, Kuang Yuanyuan, ULLAH Arif, et al. Analysis of solving the nonlinear Schrödinger equation by physics-informed neural networks combined with optimization algorithms [J/OL]. Chinese Journal of Quantum Electronics, 1 - 15 [2025 – 09 - 25].
[9] Chen Haolong, Tang Xinyue, Wang Runhua, et al. Research on multi-medium nonlinear transient heat conduction problems based on physics-informed neural networks [J]. Acta Mechanica Sinica, 2025, 57 (01): 89 - 102.
[10] K.A. LUONG, M. A. WAHAB, J. H. LEE. Simultaneous imposition of initial and boundary conditions via decoupled physics-informed neural networks for solving initial-boundary value problems [J]. Applied Mathematics and Mechanics (English Edition), 2025, 46 (04): 763 - 780.
[11] Deng Zhenguo, Ma Heping. Optimal error estimates for Fourier spectral approximations of the generalized KdV equation [J]. Applied Mathematics and Mechanics, 2009, 30 (1): 30 - 39.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Highlights in Science, Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







