<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2020.114025</article-id><article-id pub-id-type="publisher-id">AM-99788</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Numerical Solution of Kortweg-de Vries Equation
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Fakhirah</surname><given-names>Alotaibi</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>M.</surname><given-names>S. Ismail</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Dept. of Math, King Abdulaziz University, Jeddah, Saudi Arabia</addr-line></aff><pub-date pub-type="epub"><day>08</day><month>04</month><year>2020</year></pub-date><volume>11</volume><issue>04</issue><fpage>344</fpage><lpage>362</lpage><history><date date-type="received"><day>18,</day>	<month>February</month>	<year>2020</year></date><date date-type="rev-recd"><day>23,</day>	<month>April</month>	<year>2020</year>	</date><date date-type="accepted"><day>26,</day>	<month>April</month>	<year>2020</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In this paper, we are going to derive numerical methods for solving the KdV equation using Pade approximation for space direction, trapezoidal and implicit mid-point rule in the time direction. The schemes will be analyzed for accuracy and stability. The exact solution and the conserved quantities will be used to display the efficiency and the robustness of the proposed schemes. Interaction of two and three solitons will be conducted. The numerical results showed, interaction behavior is elastic and the conserved quantities are conserved which is a good indication of the reliability of the schemes under consideration.
 
</p></abstract><kwd-group><kwd>KdV</kwd><kwd> Soliton</kwd><kwd> Pade Approximation</kwd><kwd> Numerical Schemes</kwd><kwd> Interaction of Solitons</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In this work, we consider the well known Kortweg-de Vries (KdV) equation [<xref ref-type="bibr" rid="scirp.99788-ref1">1</xref>]</p><p>u t + 3 ( u 2 ) x + u x x x = 0,     ( x , t ) ∈ D = [ x l , x r ] &#215; ( 0, ≤ T ] (1)</p><p>with initial condition</p><p>u ( x ,0 ) = u 0 ( x ) ,       x ∈ [ x l , x r ] (2)</p><p>and homogenous boundary conditions</p><p>u ( x l , t ) = u ( x l , t ) = 0 ,         u x ( x l , t ) = u x ( x r , t ) = 0 (3)</p><p>where x and t denote the spatial and temporal variables, respectively, and u ( x , t ) is the unknown function. The KdV equation is one of the mostly analyzed nonlinear partial differential equation. It is used to model the propagation of water waves and also arises in other areas such as hydrodynamics waves in cold plasma, and acoustic waves in harmonic crystals. The importance of this equation lies not only in their applications but also in some special properties which are not expected from a nonlinear partial differential equation. In fact, the KdV equation has certain special solution known as solitary wave solution [<xref ref-type="bibr" rid="scirp.99788-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref3">3</xref>] which retains their shape in time and moves to the right. It can also have multi-soliton solutions, where the individual solutions interact nonlinearly at close distance and then move away from each other without changing in their shapes.</p><p>Once these interesting aspects had been discovered, several authors investigated the solution of the KdV equation from both the theoretical and numerical point view. Among the methods available in the literature, Hirota and Adomian methods, these methods are able to provide explicit solution which is useful to check the accuracy of the numerical methods aiming at approximating the solution of the KdV equation. Many researchers have derived efficient numerical methods for investigating the numerical solution of the KdV equation. For instance, in [<xref ref-type="bibr" rid="scirp.99788-ref4">4</xref>] a class of three level finite difference scheme for solving KdV equation is proposed firstly by Zabusky and Kruskal who discovered the concept of soliton, which can be defined as a localized waves with special interaction properties, while studying the results of a numerical computation on the KdV equation. The proposed three-level scheme which requires a starting procedure satisfies momentum and energy conservation laws. In [<xref ref-type="bibr" rid="scirp.99788-ref5">5</xref>], a two-level hopscotch algorithm is derived and the stability and dispersion is analyzed. The Crank-Nicolson extrapolation scheme for the KdV equation is proposed in [<xref ref-type="bibr" rid="scirp.99788-ref6">6</xref>]. A hybrid numerical method for KdV equation is proposed by a combination of finite difference and sinc collocation method is proposed in [<xref ref-type="bibr" rid="scirp.99788-ref7">7</xref>]. In [<xref ref-type="bibr" rid="scirp.99788-ref8">8</xref>], a quadratic B-spline Galerkin finite element method is proposed. The Galerkin method for KdV equation using a new basis of smooth piecewise cubic polynomials is developed for simulating the motions and interaction of solitary waves presented in [<xref ref-type="bibr" rid="scirp.99788-ref9">9</xref>]. Petrov Galerkin method [<xref ref-type="bibr" rid="scirp.99788-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref14">14</xref>] is used to solve KdV and KdV like equations to obtain highly accurate results. Numerical solution of KdV equation by Galerkin B-spline finite element method is presented in [<xref ref-type="bibr" rid="scirp.99788-ref15">15</xref>]. In [<xref ref-type="bibr" rid="scirp.99788-ref16">16</xref>], The conservation and convergence of two finite difference schemes for KdV equations with initial and boundary conditions derived, the first scheme is a two-level nonlinear implicit finite difference scheme which is proved to be unconditional convergent, and the second one is a three-level linearized finite difference scheme and proved to be conditionally convergent.</p><p>In this paper, we will derive numerical schemes for the KdV equation; based on the Pad&#233; approximation, fourth approximation of the space derivatives is used. The second order implicit schemes using, trapezoidal rule, implicit midpoint rule (both are implicit and unconditionally stable), and the explicit Runge-Kutta method of order four are used to approximate the time derivative. A nonlinear penta-diagonal system is obtained. Newton’s method is used to solve this system in case of the implicit schemes. The implicit schemes are unconditionally stable according to the von-Nueumann stability analysis. Several numerical examples are carefully designed to validate the efficiency and robustness of the proposed schemes, single soliton, interaction of two and three solitons.</p><p>The rest of the paper is organized as follow. In Section 2, we present three different schemes using fourth order Pade approximation in space direction and second order in time direction using trapezoidal and implicit mid- point rule. Also we implement the explicit fourth Runge-Kutta method to solve the first order differential system in time. In Section 3, the accuracy of the proposed schemes is given. In Section 4, the stability analysis of scheme 1 and scheme 2 are derived using von-Neumann stability analysis. In Section 5, we present various numerical tests which validate the accuracy and the efficiency of the proposed schemes. Finally, we conclude with a brief discussion in Section 6.</p></sec><sec id="s2"><title>2. Numerical Methods</title><p>In this section, we derive a high order compact finite difference method for the initial boundary value problem (1)-(3). We first describe our solution domain and its grids. The solution domain is defined to be { ( x , t ) | x l ≤ x ≤ x r ,0 ≤ t ≤ T } . Let h = x r − x l M and k = T N be uniform step sizes in the spatial and temporal directions respectively, Denote x m = x l + m h , t n = n k for m = 0 , 1 , 2 , ⋯ , M ; n = 0 , 1 , 2 , ⋯ , N . Let u m n and U m n denote respectively. The exact and the numerical solution at the grid point ( x m , t n ) . Using Pade approximation, the following approximations for space derivatives are used [<xref ref-type="bibr" rid="scirp.99788-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref19">19</xref>]</p><p>u x ≈ B ( E ) A ( E ) + O ( h 4 ) ,     u x x x ≈ C ( E ) A ( E ) + O ( h 4 ) (4)</p><p>A ( E ) = 1 120 [ E 2 + 26 E + 66 + 26 E − 1 + E − 2 ] ,</p><p>B ( E ) = 1 24 h [ E 2 + 10 E − 10 E − 1 − E − 2 ] ,</p><p>C ( E ) = 1 2 h 3 [ E 2 − 2 E + 2 E − 1 − E − 2 ] ,</p><p>and the shift operator E defined by</p><p>E j u m = u m + j</p><p>Now by using these approximations in KdV Equations (1)-(3), we obtain the first order differential system in time</p><p>A ( E ) U ˙ m + 3 B ( E ) U m 2 + C ( E ) U m = 0. (5)</p><p>By using (4), the system in (5) can be written as</p><p>1 120 ( U ˙ m + 2 + 26 U ˙ m + 1 + 66 U ˙ m + 26 U ˙ m − 1 + U ˙ m − 2 ) + 1 8 h ( U m + 2 2 + 10 U m + 1 2 − 10 U m − 1 2 − U m − 2 2 ) + 1 2 h 3 ( U m + 2 − 2 U m + 1 + 2 U m − 1 − U m − 2 ) = 0 ,   m = 1 , 2 , ⋯ , M − 1 (6)</p><p>where U ˙ m denotes the time derivative of U at x m ; and the boundary conditions</p><p>U − 1 = U 0 = 0 ,     U N = U N + 1 = 0</p><p>The system in (6) can be written in a matrix vector form as</p><p>M U ˙ = F ( U ) , (7)</p><p>where M is the penta diagonal matrix</p><p>M = 1 120 ( 66 26 1 0 ⋯ ⋯ ⋯ 0 26 66 26 1 0 ⋯ ⋯ 0 1 26 66 26 1 0 ⋯ 0 0 ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋮ ⋮ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ 0 ⋮ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ 1 ⋮ ⋱ ⋱ ⋱ 1 26 66 26 0 ⋯ ⋯ ⋯ 0 1 26 66 ) ,</p><p>and the elements of F ( U ) are</p><p>F m ( U ) = − 1 8 h ( U m + 2 2 + 10 U m + 1 2 − 10 U m − 1 2 − U m − 2 2 )                           − 1 2 h 3 ( U m + 2 − 2 U m + 1 + 2 U m − 1 − U m − 2 ) ,   m = 1,2, ⋯ , N − 1 (8)</p><p>U = [ U , U , ⋯ , U N − 1 ] t .</p><p>The previous differential system can be solved by</p><p>1) Trapezoidal rule</p><p>M [ U n + 1 − U n k ] = 1 2 [ F ( U n + 1 ) + F ( U n ) ] , (9)</p><p>Trapezoidal method is of second order, implicit scheme, and A-stable method</p><p>2) Implicit mid-point rule</p><p>M [ U n + 1 − U n k ] = F [ U n + 1 + U n 2 ] (10)</p><p>Implicit middle point rule is of second order, implicit scheme, and A-stable method.</p><p>The previous methods (Crank-Nicolson like schemes), are usually produce unconditionally stable method, nonlinear penta diagonal system to be solved at each time step. Explicit Runge-Kutta method of fourth order will be used as well, solution of four linear penta diagonal systems are needed for each time step using Crouts method, and the method is conditionally stable. The details of the proposed schemes will be discussed in the following subsections.</p><sec id="s2_1"><title>2.1. Scheme 1 (Trapezoidal Rule)</title><p>Trapezoidal rule method (9) which is of second order accuracy and A-stable is used to solve the ordinary differential system in (7), we assume U m n to be the fully discrete approximation of the exact solution u m n this will lead to the nonlinear implicit scheme</p><p>( U m + 2 n + 1 + 26 U m + 1 n + 1 + 66 U m n + 1 + 26 U m − 1 n + 1 + U m − 2 n + 1 )   − ( U m + 2 n + 26 U m + 1 n + 66 U m n + 26 U m − 1 n + U m − 2 n )   + p 1 [ ( U 2 ) m + 2 n + 1 + 10 ( U 2 ) m + 1 n + 1 − 10 ( U 2 ) m − 1 n + 1 − ( U 2 ) m − 2 n + 1   + ( U 2 ) m + 2 n + 10 ( U 2 ) m + 1 n − 10 ( U 2 ) m − 1 n − ( U 2 ) m − 2 n ]   + p 2 ( U m + 2 n + 1 − 2 U m + 1 n + 1 + 2 U m − 1 n + 1 − U m − 2 n + 1 + U m + 2 n − 2 U m + 1 n + 2 U m − 1 n − U m − 2 n ) = 0 (11)</p><p>where</p><p>p 1 = 15 k 2 h , p 2 = 30 k h 3 , m = 1 , 2 , ⋯ , M ,   U − 1 = U 0 = 0 ,   U N = U N + 1 = 0 (12)</p><p>The system in (11) is a nonlinear penta-diagonal system in the unknown vector U n + 1 . The solution of this system can be obtained by many methods, like: Newton’s method; the Predictor-Corrector method and linearization techniques. Newton’s method will be adopted in this work.</p></sec><sec id="s2_2"><title>2.2. Scheme 2 (Implicit Mid-Point Rule)</title><p>A second finite difference scheme obtained by using (10) the mid-point rule which is of second order and A-stable, using this will lead us to the nonlinear scheme of the form</p><p>The system in (10) can be given by the finite difference equation.</p><p>( U m + 2 n + 1 + 26 U m + 1 n + 1 + 66 U m n + 1 + 26 U m − 1 n + 1 + U m − 2 n + 1 )   − ( U m + 2 n + 26 U m + 1 n + 66 U m n + 26 U m − 1 n + U m − 2 n )   + p 1 ( [ V m + 2 2 + 10 V m + 1 2 − 10 V m − 1 2 − V m − 2 2 ] )   + p 2 ( ( U m + 2 n + 1 − 2 U m + 1 n + 1 + 2 U m − 1 n + 1 − U m − 2 n + 1 )   + ( U m + 2 n − 2 U m + 1 n + 2 U m − 1 n − U m − 2 n ) ) = 0 ,   m = 1 , 2 , ⋯ , M − 1 (13)</p><p>where</p><p>V i = U i n + 1 + U i n 2 , p 1 = 15 k 4 h , p 2 = 30 k h 3 , U − 1 = U 0 = 0 ,   U N = U N + 1 = 0 (14)</p><p>The system in (13) is a nonlinear penta-diagonal system which can be solved by many iterative methods, Newton’s method is used to do this job in this work.</p></sec><sec id="s2_3"><title>2.3. Scheme 3 (Runge-Kutta of Order 4)</title><p>We can also solve the first order differential system (7) by using the explicit Runge -Kutta method of fourth order</p><p>U n + 1 = U n + 1 6 [ K 1 + 2 K 2 + 2 K 3 + K 4 ] , (15)</p><p>K 1 = k M − 1 F (Un)</p><p>K 2 = k M − 1 F ( U n + 1 2 K 1 )</p><p>K 3 = k M − 1 F ( U n + 1 2 K 2 )</p><p>K 4 = k M − 1 F ( U n + K 3 )</p><p>where</p><p>F m ( U ) = − 1 8 h ( U m + 2 2 + 10 U m + 1 2 − 10 U m − 1 2 − U m − 2 2 )                           − 1 2 h 3 ( U m + 2 − 2 U m + 1 + 2 U m − 1 − U m − 2 ) ,   m = 1,2, ⋯ , N − 1 (16)</p><p>The resulting system is of fourth order accuracy in both directions time and space, it is conditionally stable. In each time step, we need to solve four linear penta diagonal systems to find K 1 , K 2 , K 3 and K 4 . The solution of the linear penta-diagonal system can be obtained by using Crout’s method, only one LU factorization is needed at the beginning of the calculations which can be done easily.</p></sec></sec><sec id="s3"><title>3. Accuracy of the Proposed Schemes</title><p>To study the accuracy of Scheme 1, we replace the numerical solution U i n by the the exact solution u i n in (8) to get</p><p>( u m + 2 n + 1 + 26 u m + 1 n + 1 + 66 u m n + 1 + 26 u m − 1 n + 1 + u m − 2 n + 1 )   − ( u m + 2 n + 26 u m + 1 n + 66 u m n + 26 u m − 1 n + u m − 2 n )   + p 1 [ ( u 2 ) m + 2 n + 1 + 10 ( u 2 ) m + 1 n + 1 − 10 ( u 2 ) m − 1 n + 1 − ( u 2 ) m − 2 n + 1   + ( u 2 ) m + 2 n + 10 ( u 2 ) m + 1 n − 10 ( u 2 ) m − 1 n − ( u 2 ) m − 2 n ] p 2 ( ( u m + 2 n + 1 − 2 u m + 1 n + 1 + 2 u m − 1 n + 1 − u m − 2 n + 1 ) + ( u m + 2 n − 2 u m + 1 n + 2 u m − 1 n − u m − 2 n ) ) = 0 (17)</p><p>Taylor’s expansion for all terms in (17) about grid point ( x m , t n ) , the following expressions are obtained</p><p>u n + 1 − u n k = ∂ u ∂ t + k 2 ∂ 2 u ∂ t 2 + h 2 4 ∂ 3 u ∂ t ∂ x 2 + k 2 6 ∂ 3 u ∂ t 3 + k h 2 8 ∂ 4 u ∂ t 2 ∂ x 2 + ⋯ (18)</p><p>[ ( 3 u 2 ) n + 1 + ( 3 u 2 ) n 2 ] x = 3 ∂ u 2 ∂ x + 3 k 2 ∂ 2 u 2 ∂ t ∂ x + 3 h 2 4 ∂ 3 u 2 ∂ x 3 + 3 k h 2 8 ∂ 4 u ∂ t ∂ x 3 + 7 h 4 240 ∂ 5 u 2 ∂ x 5 + ⋯ (19)</p><p>( u n + 1 + u n 2 ) x x x = ∂ 3 u ∂ x 3 + k 2 ∂ 4 u ∂ t ∂ x 3 + k h 2 8 ∂ 6 u ∂ t ∂ x 5 + h 2 4 ∂ 5 u ∂ x 5 + ⋯ (20)</p><p>By substituting these expressions into (17), and by collecting similar terms, we will get the local truncation error (LTE) as</p><p>L T E = [ ∂ u ∂ t + 3 ∂ u 2 ∂ x + ∂ 3 u ∂ x 3 ] + k 2 ∂ ∂ t [ ∂ u ∂ t + 3 ∂ u 2 ∂ x + ∂ 3 u ∂ x 3 ]     + k h 2 8 ∂ 3 u ∂ t ∂ x 2 [ ∂ u ∂ t + 3 ∂ u 2 ∂ x + ∂ 3 u ∂ x 3 ] + h 2 4 ∂ 2 ∂ x 2 [ ∂ u ∂ t + 3 ∂ u 2 ∂ x + ∂ 3 u ∂ x 3 ]     + [ k 2 6 ∂ 3 u ∂ t 3 + 7 h 4 240 ∂ 5 u 2 ∂ x 5 + ⋯ ] (21)</p><p>The first four brackets are zero by the KdV equation, LTE will be reduced to</p><p>L T E = [ k 2 6 ∂ 3 u ∂ t 3 + 7 h 4 240 ∂ 5 u 2 ∂ x 5 + ⋯ ] (22)</p><p>So, the scheme 1 is of second order in time and fourth order in space O ( k 2 + h 4 ) .</p><p>Similar analysis can be done for Scheme 2. Scheme 2 is also of second order in time and fourth order in space O ( k 2 + h 4 ) . Regarding Scheme 3, the scheme is fourth order in both directions, space and time O ( k 4 + h 4 ) .</p></sec><sec id="s4"><title>4. Stability Analysis</title><p>In this section, we want study the stability of the proposed schemes [<xref ref-type="bibr" rid="scirp.99788-ref20">20</xref>]. Our stability analysis is based on the von -Neumann theory in which the growth factor of atypical Fourier mode defined as</p><p>U i n = e α n k e i β m h (23)</p><p>where i = − 1 , β is real number and α = α ( β ) in general complex. To implement the Fourier stability analysis, the KdV equation needs to be linearized by assuming that u ( x , t ) in the nonlinear term u u<sub>x</sub> is locally constant. The linear version of (11) can be given as</p><p>( U m + 2 n + 1 + 26 U m + 1 n + 1 + 66 U m n + 1 + 26 U m − 1 n + 1 + U m − 2 n + 1 ) − ( U m + 2 n + 26 U m + 1 n + 66 U m n + 26 U m − 1 n + U m − 2 n )   + p 1 ω [ U m + 2 n + 1 + 10 U m + 1 n + 1 − 10 U m − 1 n + 1 − U m − 2 n + 1 + U m + 2 n + 10 U m + 1 n − 10 U m − 1 n − U m − 2 n ]   + p 2 ( U m + 2 n + 1 − 2 U m + 1 n + 1 + 2 U m − 1 n + 1 − U m − 2 n + 1 + U m + 2 n − 2 U m + 1 n + 2 U m − 1 n − U m − 2 n ) = 0 (24)</p><p>where</p><p>p 1 = 15 k h ,   p 2 = 30 k h 3 ,       ω = max | U i n | (25)</p><p>Substituting (23) into (24), we get after some manipulation the following equation</p><p>[ γ 1 + ( p 1 ω γ 2 + p 2 γ 3 ) i ] e α k = [ γ 1 − ( p 1 ω γ 2 + p 2 γ 3 ) i ] (26)</p><p>where</p><p>γ 1 = 66 + 2 cos ( 2 β h ) + 52 cos ( β h ) , γ 2 = 2 sin ( 2 β h ) + 20 sin ( β h ) , γ 3 = 2 sin ( 2 β h ) + 4 sin ( β h ) (27)</p><p>By solving Equation (26) for e α k , we can get</p><p>e α k = γ 1 − ( p 1 ω γ 2 + p 2 γ 3 ) i γ 1 + ( p 1 ω γ 2 + p 2 γ 3 ) i (28)</p><p>It is easy to see from (28) that, | e α k | = 1 , thus we can say that scheme 1 and scheme 2 are unconditionally stable according von- Neumann stability analysis. For scheme 3 the numerical results showed that the scheme is conditionally stable (since it is explicit).</p></sec><sec id="s5"><title>5. Numerical Results</title><p>In this part, several numerical examples are carefully designed to validate the efficiency of the proposed methods. In the physical opinion, the motion and interactions of solitons will be considered. In addition, some conservation laws that KdV equation satisfies will be examined by numerically calculating (using trapezoidal rule) the following three invariants corresponding to conservation of mass, momentum and energy as defined [<xref ref-type="bibr" rid="scirp.99788-ref7">7</xref>]</p><p>I 1 = ∫ − ∞ ∞     u ( x , t ) d x = Val   1 (29)</p><p>I 2 = ∫ − ∞ ∞     u 2 ( x , t ) d x = Val   2 (30)</p><p>I 3 = ∫ − ∞ ∞ [ 2 u 3 ( x , t ) − ( u x ( x , t ) ) 2 ] d x = Val   3 (31)</p><p>To demonstrate the efficiency and accuracy of the presented method for the KdV equation, we use the maximum error norm given by</p><p>L ∞ = ‖ u m n − U m n ‖ = m a x 1 ≤ m ≤ M | U m n − u m n | , (32)</p><sec id="s5_1"><title>5.1. Single Soliton</title><p>To test our numerical methods, we choose the initial condition</p><p>u ( x ,0 ) = 2 λ 2 sech 2 ( λ x − x 0 ) ,   0 ≤ x ≤ 100 (33)</p><p>subject to the homogenous boundary conditions. The exact solution for this test is</p><p>u ( x , t ) = 2 λ 2 sech 2 ( λ ( x − 4 λ 2 t − x 0 ) ) , (34)</p><p>In order to generate the numerical solutions, the following parameters are used</p><p>h = 0.1 , k = 0.001 , x 0 = 30 , λ = 0.5 , T O L = 10 − 10 . (35)</p><p>The exact values of the conserved quantities (29)-(31) using (34) are</p><p>I 1 = 4 λ ,   I 2 = 16 3 λ 3 ,   I 3 = 64 5 λ 5 (36)</p><p>In <xref ref-type="table" rid="table1">Table 1</xref> and <xref ref-type="table" rid="table2">Table 2</xref>, we display the conserved quantities and the error for Scheme 1 and Scheme 2, respectively. The results show that the methods conserve the conserved quantities, with high accuracy. The simulation of the single soliton is given in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>In <xref ref-type="table" rid="table3">Table 3</xref>, we present the results for a single solution using Scheme 3. These results are obtained by using the same previous parameters except k = 0.0001 , x 0 = 20 . From the numerical results, we have noticed that the method is conserves the conserved quantities exactly with high accuracy. The motion of single soliton displayed in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Scheme 1 (Single soliton)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999998</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999998</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Scheme 2 (Single soliton)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999998</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Scheme 3 (Single soliton)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap></sec><sec id="s5_2"><title>5.2. Rate of Convergence</title><p>To calculate the order of the proposed numerical schemes. We define the rate of convergence (RTC) as</p><p>R T C = ln [ E ( h 1 ) E ( h 2 ) ] ln [ h 1 h 2 ] , E ( h ) = max 1 ≤ m ≤ M | U m n − u m n | , (37)</p><p>To calculate the rate convergence in space using (37), we choose k = 0.001 , with different values of h. we calculate the L ∞ error norm and the (RTC) for different values of h, and we displayed these results in <xref ref-type="table" rid="table4">Table 4</xref>, and fourth order convergence in space is observed.</p><p>To calculate the rate convergence in time, we choose h = 0.05 , with different values of k. we calculate the L ∞ error norm and the (RTC for different values of k, and we displayed these results in <xref ref-type="table" rid="table5">Table 5</xref>, and second order convergence in time is observed.</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Rate of convergence in space with k = 0.001, λ = 0.5</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  colspan="3"  >T = 1.0</th></tr></thead><tr><td align="center" valign="middle" >RTC(h)</td><td align="center" valign="middle" >L<sub>∞</sub><sub> </sub></td><td align="center" valign="middle" >h</td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" >0.003370</td><td align="center" valign="middle" >1.0</td></tr><tr><td align="center" valign="middle" >3.911177955</td><td align="center" valign="middle" >0.000224</td><td align="center" valign="middle" >0.5</td></tr><tr><td align="center" valign="middle" >4.106915203</td><td align="center" valign="middle" >0.000013</td><td align="center" valign="middle" >0.25</td></tr><tr><td align="center" valign="middle" >3.700439717</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >0.125</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Rate of convergence in time with h = 0.05, λ = 0.5</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  colspan="3"  >T = 1.0</th></tr></thead><tr><td align="center" valign="middle" >RTC(k)</td><td align="center" valign="middle" >L<sub>∞</sub><sub> </sub></td><td align="center" valign="middle" >k</td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" >0.003996</td><td align="center" valign="middle" >0.5</td></tr><tr><td align="center" valign="middle" >1.971402531</td><td align="center" valign="middle" >0.001019</td><td align="center" valign="middle" >0.25</td></tr><tr><td align="center" valign="middle" >1.937655901</td><td align="center" valign="middle" >0.000266</td><td align="center" valign="middle" >0.125</td></tr></tbody></table></table-wrap></sec><sec id="s5_3"><title>5.3. Two Solitons Interaction</title><p>As a second problem, we have discussed the behavior of the interaction of two solitary waves for Scheme (1) and (2) for different analytical solutions.</p><sec id="s5_3_1"><title>5.3.1. Sum of Two Single Solitons (a)</title><p>We choose initial condition a sum of two well separated single solitons:</p><p>u ( x , 0 ) = ∑ j = 1 2     2 λ j sech 2 ( λ j ( x − x j ) ) , (38)</p><p>λ j and x j are arbitrary constants. To ensure an interaction of two solitary waves, we select the set of parameters h = 0.1 , k = 0.001 , x 1 = 10 , x 2 = 40 , λ 1 = 1 , λ 2 = 0.5 , 0 ≤ x ≤ 100 . From the numerical result we have found that the two solitons recover their shapes after the interaction and the computed conserved quantities are in a very good agreement with the exact ones. See <xref ref-type="table" rid="table6">Table 6</xref> and <xref ref-type="table" rid="table7">Table 7</xref>. For the interaction scenario, see <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p></sec><sec id="s5_3_2"><title>5.3.2. Exact Two Solitons Solution (b)</title><p>In this test we pick our initial condition from the exact two soliton solution [<xref ref-type="bibr" rid="scirp.99788-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.99788-ref21">21</xref>]</p><p>u ( x , t ) = 2 ( l o g f ( x , t ) ) x x</p><p>f ( x , t ) = 1 + e η 1 + e η 2 + ( α 1 − α 2 α 1 + α 2 ) 2 e η 1 + η 2 ,   η i = α i x − α i 3 t ,       i = 1 , 2.</p><p>η i = α i x − α i 3 t ,   i = 1 , 2. (39)</p><p>together with the set of parameters h = 0.1 , k = 0.001 , α 1 = 0.5 , α 2 = 0.8 , − 30 ≤ x ≤ 30 . The error and conserved quantities presented in <xref ref-type="table" rid="table8">Table 8</xref> and <xref ref-type="table" rid="table9">Table 9</xref>. The results are highly accurate and the values of conserved quantities are in good agreement with their analytical values. The simulation of this interaction is given in <xref ref-type="fig" rid="fig4">Figure 4</xref> for − 10 ≤ t ≤ 20 . We have noticed that, the two waves collide each other and leave the interaction region without any disturbance in their identities.</p><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Scheme 1 (Interaction of two solitons (a))</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >13.240654</td><td align="center" valign="middle" >5.999996</td><td align="center" valign="middle" >5.999999</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >13.240660</td><td align="center" valign="middle" >5.999999</td><td align="center" valign="middle" >5.999996</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >13.240663</td><td align="center" valign="middle" >5.999998</td><td align="center" valign="middle" >5.999995</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >13.240669</td><td align="center" valign="middle" >5.999999</td><td align="center" valign="middle" >6.000003</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >13.240674</td><td align="center" valign="middle" >6.000002</td><td align="center" valign="middle" >5.999997</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >13.240672</td><td align="center" valign="middle" >6.000000</td><td align="center" valign="middle" >5.999997</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> Scheme 2 (Interaction of two solitons (a))</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >13.240654</td><td align="center" valign="middle" >5.999996</td><td align="center" valign="middle" >5.999999</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >13.240671</td><td align="center" valign="middle" >6.000002</td><td align="center" valign="middle" >6.000000</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >13.240669</td><td align="center" valign="middle" >6.000001</td><td align="center" valign="middle" >5.999997</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >13.240671</td><td align="center" valign="middle" >6.000001</td><td align="center" valign="middle" >5.999999</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >13.240657</td><td align="center" valign="middle" >5.999998</td><td align="center" valign="middle" >5.999996</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >13.240668</td><td align="center" valign="middle" >5.999998</td><td align="center" valign="middle" >5.999999</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap><table-wrap id="table8" ><label><xref ref-type="table" rid="table8">Table 8</xref></label><caption><title> Scheme 1 (Interaction of two solitons (b))</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >0.143585</td><td align="center" valign="middle" >0.424667</td><td align="center" valign="middle" >2.599985</td><td align="center" valign="middle" >0.000004</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >0.143581</td><td align="center" valign="middle" >0.424667</td><td align="center" valign="middle" >2.599975</td><td align="center" valign="middle" >0.000006</td><td align="center" valign="middle" >4.000000</td></tr><tr><td align="center" valign="middle" >0.143595</td><td align="center" valign="middle" >0.424667</td><td align="center" valign="middle" >2.599960</td><td align="center" valign="middle" >0.000010</td><td align="center" valign="middle" >8.000000</td></tr><tr><td align="center" valign="middle" >0.143614</td><td align="center" valign="middle" >0.424667</td><td align="center" valign="middle" >2.599930</td><td align="center" valign="middle" >0.000017</td><td align="center" valign="middle" >12.000000</td></tr><tr><td align="center" valign="middle" >0.143628</td><td align="center" valign="middle" >0.424667</td><td align="center" valign="middle" >2.599872</td><td align="center" valign="middle" >0.000030</td><td align="center" valign="middle" >16.000000</td></tr><tr><td align="center" valign="middle" >0.143635</td><td align="center" valign="middle" >0.424667</td><td align="center" valign="middle" >2.599723</td><td align="center" valign="middle" >0.000071</td><td align="center" valign="middle" >20.000000</td></tr></tbody></table></table-wrap><table-wrap id="table9" ><label><xref ref-type="table" rid="table9">Table 9</xref></label><caption><title> Scheme 2 (Interaction of two solitons (b))</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >0.143585</td><td align="center" valign="middle" >0.424666</td><td align="center" valign="middle" >2.599985</td><td align="center" valign="middle" >0.000004</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >0.143581</td><td align="center" valign="middle" >0.424666</td><td align="center" valign="middle" >2.599974</td><td align="center" valign="middle" >0.000006</td><td align="center" valign="middle" >4.000000</td></tr><tr><td align="center" valign="middle" >0.143595</td><td align="center" valign="middle" >0.424666</td><td align="center" valign="middle" >2.599957</td><td align="center" valign="middle" >0.000011</td><td align="center" valign="middle" >8.000000</td></tr><tr><td align="center" valign="middle" >0.143614</td><td align="center" valign="middle" >0.424666</td><td align="center" valign="middle" >2.599927</td><td align="center" valign="middle" >0.000017</td><td align="center" valign="middle" >12.000000</td></tr><tr><td align="center" valign="middle" >0.143627</td><td align="center" valign="middle" >0.424666</td><td align="center" valign="middle" >2.599871</td><td align="center" valign="middle" >0.000030</td><td align="center" valign="middle" >16.000000</td></tr><tr><td align="center" valign="middle" >0.143635</td><td align="center" valign="middle" >0.424666</td><td align="center" valign="middle" >2.599720</td><td align="center" valign="middle" >0.000070</td><td align="center" valign="middle" >20.000000</td></tr></tbody></table></table-wrap></sec><sec id="s5_3_3"><title>5.3.3. Two Solitons Solution (c)</title><p>We consider also the interaction of two solitary waves using the initial condition [<xref ref-type="bibr" rid="scirp.99788-ref3">3</xref>]</p><p>u ( x ,0 ) = 12 3 + 4 c o s h ( 2 x ) + c o s h ( 4 x ) [ 3 c o s h ( x ) + c o s h ( 3 x ) ] 2 (40)</p><p>where the exact solution</p><p>u ( x , t ) = 12 3 + 4 cosh ( 2 x − 8 t ) + cosh ( 4 x − 64 t ) [ 3 cosh ( x − 28 t ) + cosh ( 3 x − 36 t ) ] 2 (41)</p><p>By using (40) and the set of parameters h = 0.05 , k = 0.0001 , − 0.1 ≤ t ≤ 0.1 , − 10 ≤ x ≤ 10 . The errors and conserved quantities are displayed in <xref ref-type="table" rid="table1">Table 1</xref>0 and <xref ref-type="table" rid="table1">Table 1</xref>1. The results are highly accurate and the conserved quantities are almost constants. The interaction scenarios are displayed in <xref ref-type="fig" rid="fig5">Figure 5</xref>. We have noticed that the two waves interact and emerge after the interaction without any disturbance in their identities.</p><p>Using Scheme 3 with the initial condition (38) and the set of parameters</p><p>h = 0.1 , k = 0.0001 , x 1 = 10 , x 2 = 30 , λ 1 = 0.8 , λ 2 = 0.4 , 0 ≤ x ≤ 70</p><p>To check the interaction of two solitons, in <xref ref-type="table" rid="table1">Table 1</xref>2, we display the conserved quantities which exactly conserved. The interaction scenario displayed in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><table-wrap id="table10" ><label><xref ref-type="table" rid="table1">Table 1</xref>0</label><caption><title> Scheme 1 (Interaction of two solitons (c))</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >422.491406</td><td align="center" valign="middle" >47.999982</td><td align="center" valign="middle" >11.996321</td><td align="center" valign="middle" >0.002695</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >422.564941</td><td align="center" valign="middle" >47.999976</td><td align="center" valign="middle" >11.995853</td><td align="center" valign="middle" >0.003504</td><td align="center" valign="middle" >0.020000</td></tr><tr><td align="center" valign="middle" >422.754541</td><td align="center" valign="middle" >47.999960</td><td align="center" valign="middle" >11.996291</td><td align="center" valign="middle" >0.002411</td><td align="center" valign="middle" >0.040000</td></tr><tr><td align="center" valign="middle" >422.987451</td><td align="center" valign="middle" >47.999969</td><td align="center" valign="middle" >11.995336</td><td align="center" valign="middle" >0.003610</td><td align="center" valign="middle" >0.060000</td></tr><tr><td align="center" valign="middle" >423.200684</td><td align="center" valign="middle" >47.999957</td><td align="center" valign="middle" >11.994968</td><td align="center" valign="middle" >0.003798</td><td align="center" valign="middle" >0.080000</td></tr><tr><td align="center" valign="middle" >423.367285</td><td align="center" valign="middle" >47.999942</td><td align="center" valign="middle" >11.995294</td><td align="center" valign="middle" >0.004011</td><td align="center" valign="middle" >0.100000</td></tr></tbody></table></table-wrap><table-wrap id="table11" ><label><xref ref-type="table" rid="table1">Table 1</xref>1</label><caption><title> Scheme 2 (Interaction of two solitons (c))</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >422.491455</td><td align="center" valign="middle" >48.000003</td><td align="center" valign="middle" >11.998999</td><td align="center" valign="middle" >0.001454</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >422.565820</td><td align="center" valign="middle" >48.000009</td><td align="center" valign="middle" >11.999003</td><td align="center" valign="middle" >0.002442</td><td align="center" valign="middle" >0.020000</td></tr><tr><td align="center" valign="middle" >422.754541</td><td align="center" valign="middle" >48.000006</td><td align="center" valign="middle" >11.998728</td><td align="center" valign="middle" >0.001779</td><td align="center" valign="middle" >0.040000</td></tr><tr><td align="center" valign="middle" >422.986865</td><td align="center" valign="middle" >48.000018</td><td align="center" valign="middle" >11.998357</td><td align="center" valign="middle" >0.002762</td><td align="center" valign="middle" >0.060000</td></tr><tr><td align="center" valign="middle" >423.202734</td><td align="center" valign="middle" >48.000031</td><td align="center" valign="middle" >11.998341</td><td align="center" valign="middle" >0.002609</td><td align="center" valign="middle" >0.080000</td></tr><tr><td align="center" valign="middle" >423.370752</td><td align="center" valign="middle" >48.000009</td><td align="center" valign="middle" >11.997966</td><td align="center" valign="middle" >0.002560</td><td align="center" valign="middle" >0.100000</td></tr></tbody></table></table-wrap><table-wrap id="table12" ><label><xref ref-type="table" rid="table1">Table 1</xref>2</label><caption><title> Scheme 3 (Runge-Kutta of order 4)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >4.333928</td><td align="center" valign="middle" >3.072002</td><td align="center" valign="middle" >4.800000</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >4.333928</td><td align="center" valign="middle" >3.072002</td><td align="center" valign="middle" >4.799999</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >4.333928</td><td align="center" valign="middle" >3.072002</td><td align="center" valign="middle" >4.800002</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >4.333928</td><td align="center" valign="middle" >3.072002</td><td align="center" valign="middle" >4.799999</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >4.333928</td><td align="center" valign="middle" >3.072002</td><td align="center" valign="middle" >4.799999</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >4.333928</td><td align="center" valign="middle" >3.072002</td><td align="center" valign="middle" >4.800002</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap></sec></sec><sec id="s5_4"><title>5.4. Three Solitons Interaction</title><p>In this test, we want to study the interaction of three solitons having different amplitudes and traveling in the same direction. We choose the initial condition as sum of three well separated solitons of the form</p><p>u ( x , 0 ) = ∑ j = 1 3     2 λ j sech 2 ( λ j ( x − x j ) ) , (42)</p><p>subject to the homogenous boundary conditions. We have considered the Scheme 1 and Scheme 2, with parameters h = 0.1 , k = 0.001 , λ 1 = 2 , λ 2 = 1 , λ 3 = 0.5 , x 1 = 10 , x 2 = 40 and x 3 = 50 over the interval 0 ≤ x ≤ 100 , while we have considered Scheme 3 with the same previous parameters except k = 0.0001 . In Tables 13-15, we presented the conserved quantities for the proposed schemes. All methods showed the conservation of the conserved quantities. In <xref ref-type="fig" rid="fig7">Figure 7</xref> and <xref ref-type="fig" rid="fig8">Figure 8</xref>, we display the interaction scenario of the three solitons. We have noticed that the three solitons recover their shapes after the interaction</p></sec><sec id="s5_5"><title>5.5. Single Soliton Using Periodic Boundary Conditions</title><p>The final test in this work is to study the behavior of single soliton with periodic boundary conditions (for long time simulation) using Scheme 1. We select the set of parameters</p><p>h = 0.1 , k = 0.001 , x 0 = 20 , λ = 0.5 , t o l = 10 − 10 (43)</p><p>In <xref ref-type="table" rid="table1">Table 1</xref>6, we presented the error and conserved quantities. We have noticed a high accuracy and exact conservation of the conserved quantities. In <xref ref-type="fig" rid="fig9">Figure 9</xref>, we display the motion of the single soliton for t = 0, ⋯ , 50 .</p></sec></sec><sec id="s6"><title>6. Conclusion</title><p>The numerical schemes for the KdV equation presented using Pade approximation of fourth order accuracy in space direction and second order accuracy in time using trapezoidal and implicit middle point rule. The resulting system is a nonlinear penta diagonal system, where Newton’s method is used to find the numerical solutions. Scheme 1 and Scheme 2 are unconditionally stable, while the scheme 3 is conditionally stable with fourth order accuracy in both directions.</p><table-wrap id="table13" ><label><xref ref-type="table" rid="table1">Table 1</xref>3</label><caption><title> Scheme 1 (Three solitons)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >427.895508</td><td align="center" valign="middle" >48.667819</td><td align="center" valign="middle" >13.999986</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >427.897021</td><td align="center" valign="middle" >48.667804</td><td align="center" valign="middle" >13.999940</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >427.897119</td><td align="center" valign="middle" >48.667838</td><td align="center" valign="middle" >14.000014</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >427.896875</td><td align="center" valign="middle" >48.667822</td><td align="center" valign="middle" >14.000009</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >427.897363</td><td align="center" valign="middle" >48.667810</td><td align="center" valign="middle" >14.000026</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >427.896875</td><td align="center" valign="middle" >48.667810</td><td align="center" valign="middle" >14.000029</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap><table-wrap id="table14" ><label><xref ref-type="table" rid="table1">Table 1</xref>4</label><caption><title> Scheme 2 (Three solitons)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >427.895508</td><td align="center" valign="middle" >48.667819</td><td align="center" valign="middle" >13.999986</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >427.901660</td><td align="center" valign="middle" >48.667767</td><td align="center" valign="middle" >13.999883</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >427.901025</td><td align="center" valign="middle" >48.667810</td><td align="center" valign="middle" >13.999992</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >427.900732</td><td align="center" valign="middle" >48.667776</td><td align="center" valign="middle" >14.000037</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >427.901465</td><td align="center" valign="middle" >48.667801</td><td align="center" valign="middle" >14.000011</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >427.901709</td><td align="center" valign="middle" >48.667822</td><td align="center" valign="middle" >13.999956</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap><table-wrap id="table15" ><label><xref ref-type="table" rid="table1">Table 1</xref>5</label><caption><title> Scheme 3 (Three solitons)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >427.895508</td><td align="center" valign="middle" >48.667819</td><td align="center" valign="middle" >13.999986</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >427.901207</td><td align="center" valign="middle" >48.667807</td><td align="center" valign="middle" >14.000006</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >427.901237</td><td align="center" valign="middle" >48.667807</td><td align="center" valign="middle" >13.999865</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >427.900962</td><td align="center" valign="middle" >48.667807</td><td align="center" valign="middle" >14.000108</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >427.900719</td><td align="center" valign="middle" >48.667807</td><td align="center" valign="middle" >13.999809</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >427.900354</td><td align="center" valign="middle" >48.667807</td><td align="center" valign="middle" >13.999955</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap><table-wrap id="table16" ><label><xref ref-type="table" rid="table1">Table 1</xref>6</label><caption><title> Scheme 1 (Periodic boundary conditions)</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Val3</th><th align="center" valign="middle" >Val2</th><th align="center" valign="middle" >Val1</th><th align="center" valign="middle" >Error</th><th align="center" valign="middle" >Time</th></tr></thead><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666667</td><td align="center" valign="middle" >1.999998</td><td align="center" valign="middle" >0.000000</td><td align="center" valign="middle" >0.000000</td></tr><tr><td align="center" valign="middle" >60.40031</td><td align="center" valign="middle" >0.666666</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >0.200000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666666</td><td align="center" valign="middle" >2.000000</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >0.400000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666666</td><td align="center" valign="middle" >1.999998</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >0.600000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666666</td><td align="center" valign="middle" >1.999998</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >0.800000</td></tr><tr><td align="center" valign="middle" >0.400317</td><td align="center" valign="middle" >0.666666</td><td align="center" valign="middle" >1.999999</td><td align="center" valign="middle" >0.000001</td><td align="center" valign="middle" >1.000000</td></tr></tbody></table></table-wrap><p>Different tests are used to check the accuracy and efficiency of the proposed schemes. The exact solutions and the conserved quantities are used to check the accuracy and the efficiency of the proposed schemes. The interaction of three solitons is presented. For long time simulation, periodic boundary conditions equipped with scheme 1 are presented. The numerical results keep the agreement with the physical phenomena with the proposed methods. Based on our numerical tests, we can say that the present methods give accurate numerical solutions and are useful for simulation of the conservation properties, motion of solitons, and the interactions of solitons for the KdV equation.</p></sec><sec id="s7"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s8"><title>Cite this paper</title><p>Alotaibi, F. and Ismail, M.S. (2020) Numerical Solution of Kortweg-de Vries Equation. Applied Mathematics, 11, 344-362. https://doi.org/10.4236/am.2020.114025</p></sec></body><back><ref-list><title>References</title><ref id="scirp.99788-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Korteweg, D.J. and de Vried, G. (1895) On the Change of Form of Long Waves Advancing in a Rectangular Canal and on a New Type of Long Stationary Wave. Philosophical Magazine, 39, 422-443. https://doi.org/10.1080/14786449508620739</mixed-citation></ref><ref id="scirp.99788-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Wazwaz, A.-M. (2009) Partial Differential Equations and Solitary Wave Theory. Springer-Verlag, Berlin Heidelberg. https://doi.org/10.1007/978-3-642-00251-9</mixed-citation></ref><ref id="scirp.99788-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Drazian, P.G. and Jhonson, R.S. (1988) Solitons: An Introduction. Cambridge Texts in Applied Mathematics.</mixed-citation></ref><ref id="scirp.99788-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Zabusky, N.J. and Kruskal, M.D. (1965) Interaction of Solitons in a Collisionless Plasma and the Recurrence of Initial States. Physical Review Letters, 15, 240-243. https://doi.org/10.1103/PhysRevLett.15.240</mixed-citation></ref><ref id="scirp.99788-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Greig, I.S. and Morris, J.I. (1976) A Hopscotch Method for Korteweg-de Vries. Journal of Computational Physics, 20, 64-80. https://doi.org/10.1016/0021-9991(76)90102-9</mixed-citation></ref><ref id="scirp.99788-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Wang, P.F. and Huang, P.Z. (2019) Convergence of the Crank-Nicolson Extrapolation Scheme for the Korteweg-de Vries Equation. Applied Numerical Mathematics, 141, 88-96. https://doi.org/10.1016/j.apnum.2019.04.001</mixed-citation></ref><ref id="scirp.99788-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Kong, D.S., Xu, Y.F. and Zheng, Z.S. (2019) A Hybrid Numerical Method for KdV Equation by Finite Difference and Sinc Collocation Method. Applied Mathematics and Computation, 355, 61-72. https://doi.org/10.1016/j.amc.2019.02.031</mixed-citation></ref><ref id="scirp.99788-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Askan, E.N. and Ozdes, A. (2006) Numerical Solution of Korteweg-de Vries Equation by Galerkin B-Spline Finite Element Method. Applied Mathematics and Computation, 175, 1256-1265. https://doi.org/10.1016/j.amc.2005.08.038</mixed-citation></ref><ref id="scirp.99788-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Hao, S.Y. and Xie, S.S. (2012) The Galerkin Method for the KdV Equation Using a New Basis of Smooth Piecewise Cubic Polynomials. Applied Mathematics and Computation, 218, 8659-8671. https://doi.org/10.1016/j.amc.2012.02.027</mixed-citation></ref><ref id="scirp.99788-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Ma, H.P. and Sun, W.W. (2001) Optimal Error Estimates of the Legender-Petrov-Galerkin Method for the Korteweg-de Vries. SIAM Journal on Numerical Analysis, 39, 1380-1394. https://doi.org/10.1137/S0036142900378327</mixed-citation></ref><ref id="scirp.99788-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Shen, J. (2003) A New Dual-Petrov-Galerkin Method for Third and Higher Order Odd Order Differential Equation: Application to the KdV Equation. SIAM Journal on Numerical Analysis, 41, 1595-1619. https://doi.org/10.1137/S0036142902410271</mixed-citation></ref><ref id="scirp.99788-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Ismail, M.S. and Taha, T.R. (1998) A Numerical Study of Compactons. Mathematics and Computers in Simulation, 47, 519-530. https://doi.org/10.1016/S0378-4754(98)00132-3</mixed-citation></ref><ref id="scirp.99788-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Ismail, M.S. (2009) Numerical Solution of Complex Modified Korteweg-de Vries Equation by Collocation Method. Communications in Nonlinear Science and Numerical Simulation, 14, 749-759. https://doi.org/10.1016/j.cnsns.2007.12.005</mixed-citation></ref><ref id="scirp.99788-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Ismail, M.S. (2008) Numerical Solution of Complex Modified Korteweg-de Vries Equation by Petrov-Galerkin Method. Applied Mathematics and Computation, 202, 520-531. https://doi.org/10.1016/j.amc.2008.02.033</mixed-citation></ref><ref id="scirp.99788-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Irk, D., Idris, D. and Bulent, S. (2006) A Small Time Solution for the Korteweg-de Vries Equation Using Spline Approximation. Applied Mathematics and Computation, 173, 834-846. https://doi.org/10.1016/j.amc.2005.04.018</mixed-citation></ref><ref id="scirp.99788-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Shen, J., Wang, X.P. and Sun, Z.-Z. (2020) The Conservation and Convergence of Two Finite Difference Schemes for KdV Equations with Initial and Boundary Conditions. Numerical Mathematics: Theory, Methods and Applications, 13, 253-280. https://doi.org/10.4208/nmtma.OA-2019-0038</mixed-citation></ref><ref id="scirp.99788-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Garralon, J., Rus, F.F. and Villatoro, F.R. (2013) Numerical Interactions between Compactons and Kovatons of the Rosenau-Pikovsky K(cos) Equation. Communications in Nonlinear Science and Numerical Simulation, 18, 1576-1588. https://doi.org/10.1016/j.cnsns.2012.10.016</mixed-citation></ref><ref id="scirp.99788-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Mihaila, B., Cardenas, A., Cooper, F. and Saxena, A. (2010) Stability and Dynamical Properties of Rosenau-Hyman Compactons Using Padé Approximants. Physical Review E, 81, Article ID: 056708. https://doi.org/10.1103/PhysRevE.81.056708</mixed-citation></ref><ref id="scirp.99788-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Cooper, F., Hyman, J.M. and Khare, A. (2001) Compacton Solutions in a Class of Generalized Fifth-Order Korteweg-de Vries Equations. Physical Review E, 64, Article ID: 026608. https://doi.org/10.1103/PhysRevE.64.026608</mixed-citation></ref><ref id="scirp.99788-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Mitchell, A.R. and Griffiths, D.F. (1980) The Finite Difference Method in Partial Differential Equations. John Wiley and Sons, Hoboken.</mixed-citation></ref><ref id="scirp.99788-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Taha, T.R. and Ablowttz, M.J. (1984) Analytical and Numerical Aspects of Certain Nonlinear Evolution Equations III. Numerical Korteweg-de Vries Equation. Journal of Computational Physics, 15, 231-253. https://doi.org/10.1016/0021-9991(84)90004-4</mixed-citation></ref></ref-list></back></article>