Quartic Non-Polynomial Spline for Solving the Third-Order Dispersive Partial Differential Equation
Abstract: In the present paper, we introduce a non-polynomial quadratic spline method for solving third-order boundary value problems. Third-order singularly perturbed boundary value problems occur frequently in many areas of applied sciences such as solid mechanics, quantum mechanics, chemical reactor theory, Newtonian fluid mechanics, optimal control, convection-diffusion processes, hydrodynamics, aerodynamics, etc. These problems have various important applications in fluid dynamics. The procedure involves a reduction of a third-order partial differential equation to a first-order ordinary differential equation. Truncation errors are given. The unconditional stability of the method is analysed by the Von-Neumann stability analysis. The developed method is tested with an illustrated example, and the results are compared with other methods from the literature, which shows the applicability and feasibility of the presented method. Furthermore, a graphical comparison between analytical and approximate solutions is also shown for the illustrated example.

1. Introduction

The field of nonlinear dispersive waves has undergone enormous development since the work of Stokes, Boussinesq, and Korteweg and de Vries (KdV)—all of whom studied water wave problems in the nineteenth century. In the 1960s, researchers developed effective asymptotic methods for deriving nonlinear wave equations, such as the KdV equation, which governed a broad class of physical phenomena . Some approaches for solving nonlinear partial differential equations have been addressed in recent literature; the most prominent of these were the non-polynomial spline methods. The non-polynomial spline used for solving nonlinear partial differential equations was employed by many researchers. The most known and well-focused results are those presented by Ramadan et al. (2005), who used a numerical method for approximation of Burger’s equation . Shock waves and blowup arising in third-order nonlinear dispersive equations were studied in 2008 by Galaktionov, V.A. and Pohozaev, S.I. . In  , the criteria for deriving stability conditions of the different methods were considered for the numerical solution of a third-order linear dispersive equation. Research by Tirmizi et al. (2008) used Quartic non-polynomial spline functions to develop a class of numerical methods for solving self-adjoint singularly perturbed problems . In 2011, Taiwo and Ogunlaran developed a numerical technique for solving linear fourth-order boundary-value problems, which were initially reduced to a system of second-order boundary-value problems . In research by Lin (2014), a numerical method based on splines in tension was developed for solving the RLW equation. The method was tested by using single solitary waves, the interaction of two solitary waves, and solitary waves with Maxwellian initial condition . In the same year, Mustafa and Ilhame discussed the method of lines is applied to the boundary-value problem for the third-order partial differential equation . In 2017, El-Danaf et al. considered the Generalised Regularised Long Wave (GRLW) equation. They studied the interaction of solitons, where no analytic solution is known during the interaction. The Maxwellian initial condition for the GRLW equation was used . A year later, Li et al. solved the time-fractional nonlinear Schrödinger equation . In 2018, Sultana et al. presented a new three-level implicit method, which was developed to solve linear and nonlinear third-order dispersive partial differential equations . In 2019, Shahna demonstrated how to solve fourth-order boundary value problems whose highest-order derivative was multiplied by a small perturbation parameter . In this paper, a novel approach, based on using non-polynomial splines to solve a third-order dispersive partial differential equation is proposed. The third-order dispersive partial differential equation we will use is .

$\frac{\partial \eta }{\partial t}+\frac{{\partial }^{3}\eta }{\partial {x}^{3}}=g\left(x,t\right),\text{\hspace{0.17em}}\text{\hspace{0.17em}}a\le x\le b,\text{\hspace{0.17em}}\text{\hspace{0.17em}}t>0$ (1)

where $g\left(x,t\right)$ is a source term. The boundary conditions associated with Equation (1) are assumed to be of the form:

$\eta \left(a,t\right)={\beta }_{1}\left(t\right),\text{\hspace{0.17em}}\text{\hspace{0.17em}}\eta \left(b,t\right)={\beta }_{2}\left(t\right),\text{\hspace{0.17em}}{\eta }_{xx}\left(b,t\right)={\beta }_{3}\left(t\right),\text{\hspace{0.17em}}\text{\hspace{0.17em}}t>0$ (2)

and the initial condition is:

$\eta \left(x,0\right)=f\left(x\right),\text{\hspace{0.17em}}\text{\hspace{0.17em}}a\le x\le b.$ (3)

The spline functions proposed, as defined in , have the form ${T}_{4}=span\left\{1,x,{x}^{2},\mathrm{sin}\omega x,\mathrm{cos}\omega x\right\}$ where $\omega$ is the frequency of the trigonometric part of the spline functions, which will be used to increase the accuracy of our method.

2. Analysis of the Method

The first step in the non-polynomial spline method is to create a grid with two mesh constants h and k. The grid points for this situation are $\left({x}_{i},{t}_{j}\right)$ where ${x}_{i}=a+ih$, $i=0,1,\cdots ,N+1$ and ${t}_{j}=jk$, $j=0,1,\cdots$.

Let ${Z}_{i}^{j}$ be an approximation to $\eta \left({x}_{i},{t}_{j}\right)$, obtained by the segment ${P}_{i}\left(x,{t}_{j}\right)$ of the mixed spline function passing through the points $\left({x}_{i},{Z}_{i}^{j}\right)$ and $\left({x}_{i+1},{Z}_{i+1}^{j}\right)$.

Each segment has the form:

$\begin{array}{c}{P}_{i}\left(x,{t}_{j}\right)={a}_{i}\left({t}_{j}\right)\mathrm{cos}\omega \left(x-{x}_{i}\right)+{b}_{i}\left({t}_{j}\right)\mathrm{sin}\omega \left(x-{x}_{i}\right)+{c}_{i}\left({t}_{j}\right){\left(x-{x}_{i}\right)}^{2}\\ \text{\hspace{0.17em}}\text{ }+{d}_{i}\left({t}_{j}\right)\left(x-{x}_{i}\right)+{e}_{i}\left({t}_{j}\right).\end{array}$ (4)

for each $i=0,1,\cdots ,N$. To obtain expressions for the coefficients of Equation (4) in terms of ${Z}_{i}^{j}$, ${Z}_{i+1}^{j}$, ${M}_{i}^{j}$, ${S}_{i}^{j}$, and ${S}_{i}^{j+1}$, we first define:

$\begin{array}{l}{P}_{i}\left({x}_{i},{t}_{j}\right)={Z}_{i}^{j},\text{\hspace{0.17em}}\text{\hspace{0.17em}}{P}_{i}\left({x}_{i+1},{t}_{j}\right)={Z}_{i+1}^{j},\text{\hspace{0.17em}}\text{\hspace{0.17em}}{P}_{i}^{\left(1\right)}\left({x}_{i}\right)={M}_{i}^{j},\\ {P}_{i}^{\left(3\right)}\left({x}_{i},{t}_{j}\right)={S}_{i}^{j},\text{\hspace{0.17em}}\text{\hspace{0.17em}}{P}_{i}^{\left(3\right)}\left({x}_{i+1},{t}_{j}\right)={S}_{i+1}^{j}.\end{array}$ (5)

Using Equations (4) and (5), we get:

${a}_{i}+{e}_{i}={Z}_{i}^{j}$,

${a}_{i}\mathrm{cos}\theta +{b}_{i}\mathrm{sin}\theta +{h}^{2}{c}_{i}+h{d}_{i}+{e}_{i}={Z}_{i+1}^{j}$,

${b}_{i}\omega +{d}_{i}={M}_{i}^{j}$, (6)

$-{\omega }^{3}{b}_{i}={S}_{i}^{j}$,

${a}_{i}{\omega }^{3}\mathrm{sin}\theta -{b}_{i}{\omega }^{3}\mathrm{cos}\theta ={S}_{i+1}^{j}$.

where ${a}_{i}\equiv {a}_{i}\left({t}_{j}\right),{b}_{i}\equiv {b}_{i}\left({t}_{j}\right),{c}_{i}\equiv {c}_{i}\left({t}_{j}\right),{d}_{i}\equiv {d}_{i}\left({t}_{j}\right),{e}_{i}\equiv {e}_{i}\left({t}_{j}\right)$, and $\theta =\omega h$.

By solving the last five equations in (6), we obtain the following:

${a}_{i}={h}^{3}\frac{{S}_{i+1}^{j}-{S}_{i}^{j}\mathrm{cos}\theta }{{\theta }^{3}\mathrm{sin}\theta }$, ${b}_{i}=-{h}^{3}\frac{{S}_{i}^{j}}{{\theta }^{3}}$,

${c}_{i}=\frac{{Z}_{i+1}^{j}-{Z}_{i}^{j}}{{h}^{2}}+\frac{h\left({S}_{i+1}^{j}+{S}_{i}^{j}\right)\left(1-\mathrm{cos}\theta \right)}{{\theta }^{3}\mathrm{sin}\theta }-\frac{{M}_{i}^{j}}{h}-\frac{h{S}_{i}^{j}}{{\theta }^{2}}$ (7)

${d}_{i}={M}_{i}^{j}+{h}^{2}\frac{{S}_{i}^{j}}{{\theta }^{2}}$, ${e}_{i}={Z}_{i}^{j}-{h}^{3}\frac{{S}_{i+1}^{j}-{S}_{i}^{j}\mathrm{cos}\theta }{{\theta }^{3}\mathrm{sin}\theta }$.

Using the continuity condition of the first and second derivatives at $x={x}_{i}$, that is ${P}_{i}^{\left(n\right)}\left({x}_{i},{t}_{j}\right)={P}_{i-1}^{\left(n\right)}\left({x}_{i},{t}_{j}\right)$ where n = 1 and 2, we get the following relations:

$\omega {b}_{i}+{d}_{i}=-{a}_{i-1}\omega \mathrm{sin}\theta +{b}_{i-1}\omega \mathrm{cos}\theta +2h{c}_{i-1}+{d}_{i-1}$

$-{\omega }^{2}{a}_{i}+2{c}_{i}=-{a}_{i-1}{\omega }^{2}\mathrm{cos}\theta -{b}_{i-1}{\omega }^{2}\mathrm{sin}\theta +2{c}_{i-1}$ (8)

Using expressions in Equation (7), then Equation (8) becomes:

${M}_{i}^{j}+{M}_{i-1}^{j}=\frac{2}{h}\left({Z}_{i}^{j}-{Z}_{i-1}^{j}\right)-\frac{{h}^{2}}{{\theta }^{2}}\left({S}_{i-1}^{j}+{S}_{i}^{j}\right)+\frac{2{h}^{2}}{{\theta }^{3}\mathrm{sin}\theta }\left({S}_{i-1}^{j}+{S}_{i}^{j}\right)\left(1-\mathrm{cos}\theta \right)$ (9)

$\begin{array}{l}{M}_{i}^{j}-{M}_{i-1}^{j}=\frac{{h}^{2}{S}_{i}^{j}\mathrm{cos}\theta }{\theta \mathrm{sin}\theta }-\frac{{h}^{2}}{2\theta \mathrm{sin}\theta }\left({S}_{i-1}^{j}+{S}_{i+1}^{j}\right)+\frac{1}{h}\left({Z}_{i-1}^{j}-2{Z}_{i}^{j}+{Z}_{i+1}^{j}\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}+\frac{{h}^{2}}{{\theta }^{3}\mathrm{sin}\theta }\left(1-\mathrm{cos}\theta \right)\left({S}_{i+1}^{j}-{S}_{i-1}^{j}\right)+\frac{{h}^{2}}{{\theta }^{2}}\left({S}_{i-1}^{j}-{S}_{i}^{j}\right)\end{array}$ (10)

Adding Equations (8) and (10), we get:

$\begin{array}{l}{M}_{i}^{j}=\frac{1}{2h}\left({Z}_{i+1}^{j}-{Z}_{i-1}^{j}\right)-\frac{{h}^{2}}{{\theta }^{2}}{S}_{i}^{j}+\frac{{h}^{2}}{2{\theta }^{3}\mathrm{sin}\theta }\left(1-\mathrm{cos}\theta \right)\left({S}_{i-1}^{j}+2{S}_{i}^{j}+{S}_{i+1}^{j}\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}+\frac{{h}^{2}{S}_{i}^{j}\mathrm{cos}\theta }{2\theta \mathrm{sin}\theta }-\frac{{h}^{2}}{4\theta \mathrm{sin}\theta }\left({S}_{i-1}^{j}+{S}_{i+1}^{j}\right).\end{array}$ (11)

Similarly,

$\begin{array}{l}{M}_{i-1}^{j}=\frac{1}{2h}\left({Z}_{i}^{j}-{Z}_{i-2}^{j}\right)-\frac{{h}^{2}}{{\theta }^{2}}{S}_{i-1}^{j}+\frac{{h}^{2}}{2{\theta }^{3}\mathrm{sin}\theta }\left(1-\mathrm{cos}\theta \right)\left({S}_{i-2}^{j}+2{S}_{i-1}^{j}+{S}_{i}^{j}\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}+\frac{{h}^{2}{S}_{i-1}^{j}\mathrm{cos}\theta }{2\theta \mathrm{sin}\theta }-\frac{{h}^{2}}{4\theta \mathrm{sin}\theta }\left({S}_{i-2}^{j}+{S}_{i}^{j}\right).\end{array}$ (12)

Using ${M}_{i}^{j}$ and ${M}_{i-1}^{j}$ in Equations (10) and (11) gives the following relation:

$\begin{array}{l}\frac{1}{2h}\left({Z}_{i+1}^{j}-{Z}_{i-1}^{j}+{Z}_{i}^{j}-{Z}_{i-2}^{j}\right)-\frac{{h}^{2}}{{\theta }^{2}}\left({S}_{i}^{j}+{S}_{i-1}^{j}\right)\\ +\frac{{h}^{2}\left(1-\mathrm{cos}\theta \right)}{2{\theta }^{3}\mathrm{sin}\theta }\left({S}_{i-2}^{j}+3{S}_{i-1}^{j}+3{S}_{i}^{j}+{S}_{i+1}^{j}\right)\\ +\frac{{h}^{2}\left({S}_{i}^{j}+{S}_{i-1}^{j}\right)\mathrm{cos}\theta }{2\theta \mathrm{sin}\theta }-\frac{{h}^{2}}{4\theta \mathrm{sin}\theta }\left({S}_{i-2}^{j}+{S}_{i-1}^{j}+{S}_{i}^{j}+{S}_{i+1}^{j}\right)\\ =\frac{2}{h}\left({Z}_{i}^{j}-{Z}_{i-1}^{j}\right)-\frac{{h}^{2}}{{\theta }^{2}}\left({S}_{i-1}^{j}+{S}_{i}^{j}\right)+\frac{2{h}^{2}}{{\theta }^{3}\mathrm{sin}\theta }\left({S}_{i-1}^{j}+{S}_{i}^{j}\right)\left(1-\mathrm{cos}\theta \right)\end{array}$

or:

$\begin{array}{l}\text{ }-{Z}_{i-2}^{j}-{h}^{3}{S}_{i-2}^{j}\left(\frac{\mathrm{cos}\theta -1}{{\theta }^{3}\mathrm{sin}\theta }+\frac{1}{2\theta \mathrm{sin}\theta }\right)+3{Z}_{i-1}^{j}\\ \text{ }-{h}^{3}{S}_{i-1}^{j}\left(\frac{1-\mathrm{cos}\theta }{{\theta }^{3}\mathrm{sin}\theta }-\frac{\mathrm{cos}\theta }{\theta \mathrm{sin}\theta }+\frac{1}{2\theta \mathrm{sin}\theta }\right)-3{Z}_{i}^{j}\\ \text{ }-{h}^{3}{S}_{i}^{j}\left(\frac{1-\mathrm{cos}\theta }{{\theta }^{3}\mathrm{sin}\theta }-\frac{\mathrm{cos}\theta }{\theta \mathrm{sin}\theta }+\frac{1}{2\theta \mathrm{sin}\theta }\right)+{Z}_{i+1}^{j}\\ \text{ }-{h}^{3}{S}_{i+1}^{j}\left(\frac{\mathrm{cos}\theta -1}{{\theta }^{3}\mathrm{sin}\theta }+\frac{1}{2\theta \mathrm{sin}\theta }\right)=0,\text{\hspace{0.17em}}\text{\hspace{0.17em}}i=2,\cdots ,N.\end{array}$

This equation can be rewritten in the following simple form:

$-{Z}_{i-2}^{j}+3{Z}_{i-1}^{j}-3{Z}_{i}^{j}+{Z}_{i+1}^{j}=\alpha {S}_{i-2}^{j}+\beta {S}_{i-1}^{j}+\beta {S}_{i}^{j}+\alpha {S}_{i+1}^{j},\text{\hspace{0.17em}}\text{\hspace{0.17em}}i=2,\cdots ,N.$ (13)

where:

$\alpha ={h}^{3}\left(\frac{\mathrm{cos}\theta -1}{{\theta }^{3}\mathrm{sin}\theta }+\frac{1}{2\theta \mathrm{sin}\theta }\right)\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{and}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\beta ={h}^{3}\left(\frac{1-\mathrm{cos}\theta }{{\theta }^{3}\mathrm{sin}\theta }-\frac{\mathrm{cos}\theta }{\theta \mathrm{sin}\theta }+\frac{1}{2\theta \mathrm{sin}\theta }\right)$

Remark 1. As $\omega \to 0$, that is $\theta \to 0$, then $\left(\alpha ,\beta \right)\to \left(\frac{{h}^{3}}{24},\frac{11{h}^{3}}{24}\right)$, and system (13) reduces to ordinary quartic spline:

$-{Z}_{i-2}^{j}+3{Z}_{i-1}^{j}-3{Z}_{i}^{j}+{Z}_{i+1}^{j}=\frac{{h}^{3}}{24}\left({S}_{i-2}^{j}+11{S}_{i-1}^{j}+11{S}_{i}^{j}+{S}_{i+1}^{j}\right),$

Using Equation (1), we can write ${S}_{i-2}^{j}$, ${S}_{i-1}^{j}$, ${S}_{i}^{j}$ and ${S}_{i+1}^{j}$, in the form:

${S}_{i-2}^{j}=\frac{{\partial }^{3}{Z}_{i-2}^{j}}{\partial {x}^{3}}=\left({g}_{i-2}^{j}-\frac{\partial {Z}_{i-2}^{j}}{\partial t}\right)$, ${S}_{i-1}^{j}=\frac{{\partial }^{3}{Z}_{i-1}^{j}}{\partial {x}^{3}}=\left({g}_{i-1}^{j}-\frac{\partial {Z}_{i-1}^{j}}{\partial t}\right)$

${S}_{i}^{j}=\frac{{\partial }^{3}{Z}_{i}^{j}}{\partial {x}^{3}}=\left({g}_{i}^{j}-\frac{\partial {Z}_{i}^{j}}{\partial t}\right)$, ${S}_{i+1}^{j}=\frac{{\partial }^{3}{Z}_{i+1}^{j}}{\partial {x}^{3}}=\left({g}_{i+1}^{j}-\frac{\partial {Z}_{i+1}^{j}}{\partial t}\right)$

These equations can be discretised in the form:

$\begin{array}{l}{S}_{i-2}^{j}\approx \left({g}_{i-2}^{j}-\left(\frac{{Z}_{i-2}^{j}-{Z}_{i-2}^{j-1}}{k}\right)\right),{S}_{i-1}^{j}\approx \left({g}_{i-1}^{j}-\left(\frac{{Z}_{i-1}^{j}-{Z}_{i-1}^{j-1}}{k}\right)\right),\\ {S}_{i}^{j}\approx \left({g}_{i}^{j}-\left(\frac{{Z}_{i}^{j}-{Z}_{i}^{j-1}}{k}\right)\right),{S}_{i+1}^{j}\approx \left({g}_{i+1}^{j}-\left(\frac{{Z}_{i+1}^{j}-{Z}_{i+1}^{j-1}}{k}\right)\right).\end{array}$ (14)

The use of Equation (13) in Equation (14) gives us the following system:

$\begin{array}{l}-{Z}_{i-2}^{j}+3{Z}_{i-1}^{j}-3{Z}_{i}^{j}+{Z}_{i+1}^{j}\\ =\alpha \left({g}_{i-2}^{j}-\frac{{Z}_{i-2}^{j}-{Z}_{i-2}^{j-1}}{k}\right)+\beta \left({g}_{i-1}^{j}-\frac{{Z}_{i-1}^{j}-{Z}_{i-1}^{j-1}}{k}\right)\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{ }+\beta \left({g}_{i}^{j}-\frac{{Z}_{i}^{j}-{Z}_{i}^{j-1}}{k}\right)+\alpha \left({g}_{i+1}^{j}-\frac{{Z}_{i+1}^{j}-{Z}_{i+1}^{j-1}}{k}\right),\end{array}$

or:

$\begin{array}{l}{A}_{i}{Z}_{i-2}^{j}+{B}_{i}{Z}_{i-1}^{j}+{C}_{i}{Z}_{i}^{j}+{D}_{i}{Z}_{i+1}^{j}\\ =\alpha {Z}_{i-2}^{j-1}+\beta {Z}_{i-1}^{j-1}+\beta {Z}_{i}^{j-1}+\alpha {Z}_{i+1}^{j-1}+{\delta }_{i}^{j},\text{\hspace{0.17em}}\text{\hspace{0.17em}}i=2,\cdots ,N.\end{array}$ (15)

where:

${A}_{i}=-k+\alpha$, ${B}_{i}=3k+\beta$, ${C}_{i}=-3k+\beta$, ${D}_{i}=k+\alpha$

and:

${\delta }_{i}^{j}=k\left(\alpha {g}_{i-2}^{j}+\beta {g}_{i-1}^{j}+\beta {g}_{i}^{j}+\alpha {g}_{i+1}^{j}\right)$

System (15) consists of N-1 equations in unknowns ${Z}_{i}^{j},i=0,\cdots ,N+1$. To get a solution to this system, we need three additional equations. Two equations are obtained from the first two parts in Equation (2).

${Z}_{0}^{j}=\eta \left(a,t\right)={\beta }_{1}\left(t\right),\text{\hspace{0.17em}}\text{\hspace{0.17em}}{Z}_{N+1}^{j}=\eta \left(b,t\right)={\beta }_{2}\left(t\right)$ (16)

The third equation can be obtained from the third part of Equation (2), that is $\frac{{\partial }^{2}{Z}_{N+1}^{j}}{\partial {x}^{2}}={\eta }_{xx}\left(b,t\right)={\beta }_{3}\left(t\right)$, which can be discretised:

$\begin{array}{l}-10{Z}_{N-4}^{j}+61{Z}_{N-3}^{j}-156{Z}_{N-2}^{j}+214{Z}_{N-1}^{j}-154{Z}_{N}^{j}+45{Z}_{N+1}^{j}\\ \approx 12{h}^{2}\frac{{\partial }^{2}{Z}_{N+1}^{j}}{\partial {x}^{2}}=12{h}^{2}{\beta }_{3},\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}j\ge 0\end{array}$ (17)

Writing Equations (15) - (17) in matrix form gives:

$Q{Z}^{j}={Q}^{*}{Z}^{j-1}+{r}^{j}$ (18)

where:

${Z}^{j}={\left(\begin{array}{ccccccc}{Z}_{0}^{j}& {Z}_{1}^{j}& {Z}_{2}^{j}& \cdots & {Z}_{N-1}^{j}& {Z}_{N}^{j}& {Z}_{N+1}^{j}\end{array}\right)}^{t},$

$Q=\left[\begin{array}{ccccccccc}1& 0& 0& 0& 0& 0& 0& \cdots & 0\\ {A}_{2}& {B}_{2}& {C}_{2}& {D}_{2}& 0& 0& 0& \cdots & 0\\ 0& {A}_{3}& {B}_{3}& {C}_{3}& {D}_{3}& 0& 0& \cdots & 0\\ 0& \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & & ⋮\\ ⋮& \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & ⋮\\ ⋮& & 0& 0& {A}_{N-1}& {B}_{N-1}& {C}_{N-1}& {D}_{N-1}& 0\\ 0& \cdots & 0& 0& 0& {A}_{N}& {B}_{N}& {C}_{N}& {D}_{N}\\ 0& \cdots & 0& -10& 61& -156& 214& -154& 45\\ 0& \cdots & 0& 0& 0& 0& 0& 0& 1\end{array}\right],$

${Q}^{*}=\left[\begin{array}{ccccccccc}0& 0& 0& 0& 0& 0& 0& \cdots & 0\\ \alpha & \beta & \beta & \alpha & 0& 0& 0& \cdots & 0\\ 0& \alpha & \beta & \beta & \alpha & 0& 0& \cdots & 0\\ 0& \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & & ⋮\\ ⋮& \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & \ddots & ⋮\\ ⋮& & 0& 0& \alpha & \beta & \beta & \alpha & 0\\ 0& \cdots & 0& 0& 0& \alpha & \beta & \beta & \alpha \\ 0& \cdots & 0& 0& 0& 0& 0& 0& 0\\ 0& \cdots & 0& 0& 0& 0& 0& 0& 0\end{array}\right],$

and ${r}^{j}={\left({\beta }_{1}\left({t}_{j}\right),{\delta }_{2}^{j},\cdots ,{\delta }_{N}^{j},12{h}^{2}{\beta }_{3}\left({t}_{j}\right),{\beta }_{2}\left({t}_{j}\right)\right)}^{t}$. The initial condition $\eta \left(x,{t}_{0}\right)=f\left(x\right)$, for each $a\le x\le b$, implies that ${Z}_{i}^{0}=f\left({x}_{i}\right)$, for each $i=0,1,\cdots ,N+1$. These values can be used in Equation (2.15) to find the value of ${Z}_{i}^{1}$, for each $i=0,1,\cdots ,N+1$. If the procedure is reapplied once all the approximations ${Z}_{i}^{1}$ are known, the values of ${Z}_{i}^{2},{Z}_{i}^{3},\cdots$ can be obtained in a similar manner.

3. Error Analysis

Using Equation (14), we obtain the truncation error:

${T}_{i}^{j}={A}_{i}{\eta }_{i-2}^{j}+{B}_{i}{\eta }_{i-1}^{j}+{C}_{i}{\eta }_{i}^{j}+{D}_{i}{\eta }_{i+1}^{j}-\alpha {\eta }_{i-2}^{j-1}-\beta {\eta }_{i-1}^{j-1}-\beta {\eta }_{i}^{j-1}-\alpha {\eta }_{i+1}^{j-1}-{\delta }_{i}^{j}$ (19)

where:

${A}_{i}=-k+\alpha$, ${B}_{i}=3k+\beta$, ${C}_{i}=-3k+\beta$, ${D}_{i}=-k+\alpha$

and:

${\delta }_{i}^{j}=k\left(\alpha {g}_{i-2}^{j}+\beta {g}_{i-1}^{j}+\beta {g}_{i}^{j}+\alpha {g}_{i+1}^{j}\right)$

Expanding Equation (19) in Taylor series, in terms of $\eta \left({x}_{i},{t}_{j}\right)$ and its derivatives, we obtain the following expression:

$\begin{array}{c}{T}_{i}^{j}={A}_{i}\left(1-\frac{2h}{1!}{D}_{x}+\frac{{\left(2h\right)}^{2}}{2!}{D}_{x}^{2}-\cdots \right){\eta }_{i}^{j}+{B}_{i}\left(1-h{D}_{x}+\frac{{h}^{2}}{2!}{D}_{x}^{2}-\cdots \right){\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }+{C}_{i}{\eta }_{i}^{j}+{D}_{i}\left(1+h{D}_{x}+\frac{{h}^{2}}{2!}{D}_{x}^{2}+\frac{{h}^{3}}{3!}{D}_{x}^{3}+\cdots \right){\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }-\alpha \left(1+\left(-k{D}_{t}-2h{D}_{x}\right)+\frac{1}{2!}{\left(-k{D}_{t}-2h{D}_{x}\right)}^{2}+\cdots \right){\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }-\beta \left(1+\left(-k{D}_{t}-h{D}_{x}\right)+\frac{1}{2!}{\left(-k{D}_{t}-h{D}_{x}\right)}^{2}+\cdots \right){\eta }_{i}^{j}\end{array}$

$\begin{array}{l}\text{ }-\beta \left(1-k{D}_{t}+\frac{{k}^{2}}{2!}{D}_{t}^{2}-\frac{{k}^{3}}{3!}{D}_{t}^{3}+\cdots \right){\eta }_{i}^{j}\\ \text{ }-\alpha \left(1+\left(-k{D}_{t}+h{D}_{x}\right)+\frac{1}{2!}{\left(-k{D}_{t}+h{D}_{x}\right)}^{2}+\cdots \right){\eta }_{i}^{j}\\ \text{ }-k\alpha \left(1-2h{D}_{x}+\frac{{\left(2h\right)}^{2}}{2!}{D}_{x}^{2}-\cdots \right){g}_{i}^{j}-k\beta \left(1-h{D}_{x}+\frac{{h}^{2}}{2!}{D}_{x}^{2}-\cdots \right){g}_{i}^{j}\\ \text{ }-k\beta {g}_{i}^{j}-k\alpha \left(1+h{D}_{x}+\frac{{h}^{2}}{2!}{D}_{x}^{2}+\cdots \right){g}_{i}^{j}\end{array}$

where ${g}_{i}^{j}={D}_{t}{\eta }_{i}^{j}+{D}_{x}^{3}{\eta }_{i}^{j}$. After simple calculations, we get:

$\begin{array}{c}{T}_{i}^{j}=-k\left(-\frac{2h}{1!}{D}_{x}+\frac{{\left(2h\right)}^{2}}{2!}{D}_{x}^{2}-\cdots \right){\eta }_{i}^{j}+3k\left(-h{D}_{x}+\frac{{h}^{2}}{2!}{D}_{x}^{2}-\cdots \right){\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }+k\left(h{D}_{x}+\frac{{h}^{2}}{2!}{D}_{x}^{2}+\frac{{h}^{3}}{3!}{D}_{x}^{3}+\cdots \right){\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }-2\left(\beta +\alpha \right)\left(-k{D}_{t}+\frac{{k}^{2}}{2!}{D}_{t}^{2}-\frac{{k}^{3}}{3!}{D}_{t}^{3}+\cdots \right){\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }+\left(\beta +\alpha \right)h\left(\frac{-1}{2!}\left(\begin{array}{l}2\\ 1\end{array}\right)k{D}_{t}+\frac{1}{3!}\left(\begin{array}{l}3\\ 1\end{array}\right){k}^{2}{D}_{t}^{2}-\cdots \right){D}_{x}{\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }+\left(\beta +5\alpha \right){h}^{2}\left(\frac{1}{3!}\left(\begin{array}{l}3\\ 2\end{array}\right)k{D}_{t}-\frac{1}{4!}\left(\begin{array}{l}4\\ 2\end{array}\right){k}^{2}{D}_{t}^{2}+\cdots \right){D}_{x}^{2}{\eta }_{i}^{j}\end{array}$

$\begin{array}{l}\text{ }+\left(\beta +7\alpha \right){h}^{3}\left(\frac{-1}{4!}\left(\begin{array}{l}4\\ 3\end{array}\right)k{D}_{t}+\frac{1}{5!}\left(\begin{array}{l}5\\ 3\end{array}\right){k}^{2}{D}_{t}^{2}-\cdots \right){D}_{x}^{3}{\eta }_{i}^{j}+\cdots \\ \text{ }-k\alpha \left(-2h{D}_{x}+\frac{{\left(2h\right)}^{2}}{2!}{D}_{x}^{2}-\cdots \right)\left({D}_{t}+{D}_{x}^{3}\right){\eta }_{i}^{j}\\ \text{ }-k\beta \left(-h{D}_{x}+\frac{{h}^{2}}{2!}{D}_{x}^{2}-\cdots \right)\left({D}_{t}+{D}_{x}^{3}\right){\eta }_{i}^{j}\\ \text{ }-k\alpha \left(h{D}_{x}+\frac{{h}^{2}}{2!}{D}_{x}^{2}+\cdots \right)\left({D}_{t}+{D}_{x}^{3}\right){\eta }_{i}^{j}-2k\left(\beta +\alpha \right)\left({D}_{t}+{D}_{x}^{3}\right){\eta }_{i}^{j}\end{array}$

$\begin{array}{c}{T}_{i}^{j}=k\left({h}^{3}-2\left(\beta +\alpha \right)\right){D}_{x}^{3}{\eta }_{i}^{j}+kh\left(\frac{-{h}^{3}}{2}+\left(\beta +\alpha \right)\right){D}_{x}^{4}{\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }+k{h}^{2}\left(\frac{{h}^{3}}{4}-\frac{1}{2}\left(\beta +5\alpha \right)\right){D}_{x}^{5}{\eta }_{i}^{j}+k{h}^{3}\left(\frac{-{h}^{3}}{12}+\frac{1}{6}\left(\beta +7\alpha \right)\right){D}_{x}^{6}{\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }+k{h}^{4}\left(\frac{{h}^{3}}{40}-\frac{1}{24}\left(\beta +17\alpha \right)\right){D}_{x}^{7}{\eta }_{i}^{j}+\cdots \\ \text{\hspace{0.17em}}\text{ }+2\left(\beta +\alpha \right)\left(-\frac{{k}^{2}}{2!}{D}_{t}^{2}+\frac{{k}^{3}}{3!}{D}_{t}^{3}-\cdots \right){\eta }_{i}^{j}\end{array}$

$\begin{array}{c}\text{ }+\left(\beta +\alpha \right)h\left(\frac{1}{3!}\left(\begin{array}{l}3\\ 1\end{array}\right){k}^{2}{D}_{t}^{2}-\frac{1}{4!}\left(\begin{array}{l}4\\ 1\end{array}\right){k}^{3}{D}_{t}^{3}+\cdots \right){D}_{x}{\eta }_{i}^{j}\\ \text{ }+\left(\beta +5\alpha \right){h}^{2}\left(-\frac{1}{4!}\left(\begin{array}{l}4\\ 2\end{array}\right){k}^{2}{D}_{t}^{2}+\frac{1}{5!}\left(\begin{array}{l}5\\ 2\end{array}\right){k}^{3}{D}_{t}^{3}-\cdots \right){D}_{x}^{2}{\eta }_{i}^{j}\\ \text{ }+\left(\beta +7\alpha \right){h}^{3}\left(\frac{1}{5!}\left(\begin{array}{l}5\\ 3\end{array}\right){k}^{2}{D}_{t}^{2}-\frac{1}{6!}\left(\begin{array}{l}6\\ 3\end{array}\right){k}^{3}{D}_{t}^{3}+\cdots \right){D}_{x}^{3}{\eta }_{i}^{j}+\cdots .\end{array}$ (20)

For $\beta +\alpha =\frac{{h}^{3}}{2}$, the local truncation error is of order $o\left(k{h}^{2}+{k}^{2}{h}^{3}\right)$ but for $\beta +\alpha =\frac{{h}^{3}}{2}$ and $\alpha =0$ it is of $o\left(k{h}^{4}+{k}^{2}{h}^{3}\right)$.

Remark 2. The previous relations, which enable us to choose $\alpha$ and $\beta$, can be obtained using simple calculations by expanding Equation (19) in terms of ${u}_{i}^{j}$ and its derivatives, which is the local truncation error of Equation (19), as follows:

${T}^{*}{}_{i}^{j}=-{\eta }_{i-2}^{j}+3{\eta }_{i-1}^{j}-3{\eta }_{i}^{j}+{\eta }_{i+1}^{j}-\alpha {D}_{x}^{3}{\eta }_{i-2}^{j}-\beta {D}_{x}^{3}{\eta }_{i-1}^{j}-\beta {D}_{x}^{3}{\eta }_{i}^{j}-\alpha {D}_{x}^{3}{\eta }_{i+1}^{j},$

$\begin{array}{c}{T}_{i}^{j}=\left({h}^{3}-2\left(\beta +\alpha \right)\right){D}_{x}^{3}{\eta }_{i}^{j}+h\left(\frac{-{h}^{3}}{2}+\left(\beta +\alpha \right)\right){D}_{x}^{4}{\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }+{h}^{2}\left(\frac{{h}^{3}}{4}-\frac{1}{2}\left(\beta +5\alpha \right)\right){D}_{x}^{5}{\eta }_{i}^{j}+{h}^{3}\left(\frac{-{h}^{3}}{12}+\frac{1}{6}\left(\beta +7\alpha \right)\right){D}_{x}^{6}{\eta }_{i}^{j}\\ \text{\hspace{0.17em}}\text{ }\text{ }+{h}^{4}\left(\frac{{h}^{3}}{40}-\frac{1}{24}\left(\beta +17\alpha \right)\right){D}_{x}^{7}{\eta }_{i}^{j}+\cdots .\end{array}$

4. Stability

Using the Von Neumann method, the stability of the method can be investigated. According to this method, the solution of the difference Equation (14) can be written in the form:

${Z}_{i}^{j}={\zeta }^{j}\mathrm{exp}\left(q\varphi ih\right)$ (21)

where $\varphi$ is the wave number, $q=\sqrt{-1}$, h is the element size, and ${\zeta }^{j}$ is the amplification factor at time level j. Inserting the latter expression for ${Z}_{i}^{j}$ in scheme (14), we obtain the characteristic equation in the form:

$\begin{array}{l}{\zeta }^{j}\left\{{A}_{i}\mathrm{exp}\left(\left(i-2\right)q\varphi h\right)+{B}_{i}\mathrm{exp}\left(\left(i-1\right)q\varphi h\right)+{C}_{i}\mathrm{exp}\left(iq\varphi h\right)+{D}_{i}\mathrm{exp}\left(\left(i+1\right)q\varphi h\right)\right\}\\ ={\zeta }^{j-1}\left\{\alpha \mathrm{exp}\left(\left(i-2\right)q\varphi h\right)+\beta \mathrm{exp}\left(\left(i-1\right)q\varphi h\right)+\beta \mathrm{exp}\left(iq\varphi h\right)+\alpha \mathrm{exp}\left(\left(i+1\right)q\varphi h\right)\right\}\end{array}$

${A}_{i}=-k+\alpha$, ${B}_{i}=3k+\beta$, ${C}_{i}=-3k+\beta$, ${D}_{i}=-k+\alpha$

After simple calculations, we obtain:

$\zeta =\frac{\alpha \mathrm{exp}\left(-2q\varphi h\right)+\beta \mathrm{exp}\left(-q\varphi h\right)+\beta +\alpha \mathrm{exp}\left(q\varphi h\right)}{{A}_{i}\mathrm{exp}\left(-2q\varphi h\right)+{B}_{i}\mathrm{exp}\left(-q\varphi h\right)+{C}_{i}+{D}_{i}\mathrm{exp}\left(q\varphi h\right)}$ (22)

Using Euler’s formula, that is:

$\mathrm{exp}\left[q\phi \right]=\mathrm{cos}\phi +q\mathrm{sin}\phi ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}\phi =\varphi h$,

Equation (22) becomes:

$\zeta =\frac{{X}^{*}+q{Y}^{*}}{X+qY}$ (23)

where:

$\begin{array}{l}{X}^{*}=\alpha \mathrm{cos}2\phi +\left(\beta +\alpha \right)\mathrm{cos}\phi +\beta \\ {Y}^{*}=-\alpha \mathrm{sin}2\phi +\left(\alpha -\beta \right)\mathrm{sin}\phi \\ X=\left(\alpha -k\right)\mathrm{cos}2\phi +\left(\beta +\alpha +4k\right)\mathrm{cos}\phi +\left(\beta -3k\right)\\ Y=\left(k-\alpha \right)\mathrm{sin}2\phi +\left(-2k+\alpha -\beta \right)\mathrm{sin}\phi \end{array}$ (24)

Using $\mathrm{cos}2\phi =1-2{\mathrm{sin}}^{2}\phi$, and $\mathrm{cos}\phi =1-2{\mathrm{sin}}^{2}\frac{\phi }{2}$, we can write the equations in (24) as:

$\begin{array}{l}{X}^{*}=2\left({\mathrm{cos}}^{2}\frac{\phi }{2}\right)\left(\beta +\alpha -4\alpha {\mathrm{sin}}^{2}\frac{\phi }{2}\right)\\ {Y}^{*}=-2\left(\mathrm{sin}\frac{\phi }{2}\mathrm{cos}\frac{\phi }{2}\right)\left(\beta +\alpha -4\alpha {\mathrm{sin}}^{2}\frac{\phi }{2}\right)\\ X=\left[2\left({\mathrm{cos}}^{2}\frac{\phi }{2}\right)\left(\beta +\alpha -4\alpha {\mathrm{sin}}^{2}\frac{\phi }{2}\right)-8k{\mathrm{sin}}^{4}\frac{\phi }{2}\right]={X}^{*}+T\\ Y=-2\left(\mathrm{sin}\frac{\phi }{2}\mathrm{cos}\frac{\phi }{2}\right)\left(\beta +\alpha -4\alpha {\mathrm{sin}}^{2}\frac{\phi }{2}\right)-8k\mathrm{cos}\frac{\phi }{2}{\mathrm{sin}}^{3}\frac{\phi }{2}={Y}^{*}+G\end{array}$ (25)

where $T=-8k{\mathrm{sin}}^{4}\frac{\phi }{2}$, $G=-8\mathrm{cos}\frac{\phi }{2}{\mathrm{sin}}^{3}\frac{\phi }{2}$,

Using (24), we obtain:

$|\zeta |=\sqrt{\frac{{X}^{*}{}^{2}+{Y}^{*}{}^{2}}{{X}^{2}+{Y}^{2}}}$ (26)

The equations in (26) enable us to rewrite the last equation in the form:

$|\zeta |=\sqrt{\frac{{X}^{*}{}^{2}+{Y}^{*}{}^{2}}{{\left({X}^{*}+T\right)}^{2}+{\left({Y}^{*}+G\right)}^{2}}}$.

or:

$|\zeta |=\sqrt{\frac{{X}^{*}{}^{2}+{Y}^{*}{}^{2}}{{X}^{*}{}^{2}+{T}^{2}+{Y}^{*}{}^{2}+{G}^{2}+\delta }}$. (27)

where $\delta =2{X}^{*}T+2{Y}^{*}G$. Using Equation (27), $\delta$ becomes:

$\begin{array}{l}\delta =-32k{\mathrm{cos}}^{2}\frac{\phi }{2}{\mathrm{sin}}^{4}\frac{\phi }{2}\left(\beta +\alpha -4\alpha {\mathrm{sin}}^{2}\frac{\phi }{2}\right)\\ \text{\hspace{0.17em}}\text{ }\text{ }\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}+32k{\mathrm{cos}}^{2}\frac{\phi }{2}{\mathrm{sin}}^{4}\frac{\phi }{2}\left(\beta +\alpha -4\alpha {\mathrm{sin}}^{2}\frac{\phi }{2}\right)=0\end{array}$

This result enables us to write Equation (27) as:

$|\zeta |=\sqrt{\frac{{X}^{*}{}^{2}+{Y}^{*}{}^{2}}{{X}^{*}{}^{2}+{Y}^{*}{}^{2}+{T}^{2}+{G}^{2}}}$. (28)

For stability, we must have $|\zeta |\le 1$ (otherwise ${\zeta }^{j}$ in Equation (21) would grow in an unbounded manner). Using Equation (28), we can say that the stability condition, that is $|\zeta |\le 1$, is satisfied.

5. Numerical Example

In this section, we obtain numerical solutions of Equation (1) for a numerical example.

Consider the non-homogeneous third-order dispersive partial differential equation :

$\frac{\partial \eta }{\partial t}+\frac{{\partial }^{3}\eta }{\partial {x}^{3}}=-\mathrm{sin}\left(\pi x\right)\mathrm{sin}t-{\pi }^{3}\mathrm{cos}\left(\pi x\right)\mathrm{cos}t,\text{\hspace{0.17em}}\text{\hspace{0.17em}}0\le x\le 1,\text{\hspace{0.17em}}\text{\hspace{0.17em}}t>0$

with boundary conditions:

$\eta \left(0,t\right)=\eta \left(1,t\right)=0,\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}{\eta }_{xx}\left(0,t\right)={\eta }_{xx}\left(1,t\right)=0,\text{\hspace{0.17em}}\text{\hspace{0.17em}}t>0$

and the initial condition:

$\eta \left(x,0\right)=\mathrm{sin}\pi x,\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}0\le x\le 1$

The exact solution of this problem is:

$\eta \left(x,t\right)=\mathrm{sin}\pi x\mathrm{cos}t$

The obtained numerical results are listed in the Tables 1-7, where all calculations are carried out using Mathematica. The accuracy of method is measured by computing L-error norm, Max. Absolute error, as shown in Tables 1-3 and Table 5 illustrates numerical and exact solutions for: $h=0.025,k=0.0005,\beta =-\alpha +\frac{{h}^{3}}{2}$.

The reason that the accuracy in Table 1 is the best is because: $\alpha =0,\beta =-\alpha +\frac{{h}^{3}}{2}$.

Table 1. The ${L}_{\infty }$ -error between the numerical and exact solutions when $h=0.025$, $k=0.0005$, $\alpha =0$, $\beta =-\alpha +\frac{{h}^{3}}{2}$.

Table 2. The ${L}_{\infty }$ -error between the numerical and exact solutions when $h=0.025$, $k=0.0005$, $\alpha =\frac{{h}^{3}}{160}$, $\beta =-\alpha +\frac{{h}^{3}}{2}$.

Table 3. The ${L}_{\infty }$ -error between the numerical and exact solutions when $h=0.025$, $k=0.0005$, $\alpha =\frac{{h}^{3}}{24}$, $\beta =-\alpha +\frac{{h}^{3}}{2}$.

Table 4. The comperasion between the numerical and exact solutions when $h=0.025$, $k=0.0005$, $t=2$, $\alpha =0$, $\beta =-\alpha +\frac{{h}^{3}}{2}$.

Table 5. The ${L}_{\infty }$ -error between the numerical and exact solutions when $h=\frac{\pi }{20}$, $k=0.002$, $\alpha =\frac{{h}^{3}}{160}$, $\beta =-\alpha +\frac{{h}^{3}}{2}$.

Table 6. The comperasion between the numerical and exact solutions when $h=\frac{\pi }{20}$, $k=0.002$, $\alpha =\frac{{h}^{3}}{160}$, $\beta =-\alpha +\frac{{h}^{3}}{2}$, $t=2$.

For, the local truncation error is of order $o\left(k{h}^{4}+{k}^{2}{h}^{3}\right)$ but for: $\beta +\alpha =\frac{{h}^{3}}{2},\alpha \ne 0$ it is of order $o\left(k{h}^{2}+{k}^{2}{h}^{3}\right)$.

The following figures from Figures 1-11 show the relation between the numerical and exact solutions of the dispersive equation for virus time and discretization’s (h).

The following figures from Figures 12-15 show the 3D of the numerical solutions of the dispersive equation for virus time and the same discretization’s (h).

Table 7. The ${L}_{\infty }$ -error between the numerical and exact solutions when $h=\frac{\pi }{20}$, $k=0.002$, $\alpha =\frac{{h}^{3}}{160}$, $\text{\hspace{0.17em}}\beta =-\alpha +\frac{{h}^{3}}{2}$.

Figure 1. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=0.0005$.

Figure 2. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=0.5$.

Figure 3. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=1.0$.

Figure 4. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=1.5$.

Figure 5. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=2.0$.

Figure 6. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=2.5$.

Figure 7. The relation between the numerical and exact solutions of the dispersive eation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=3.0$.

Figure 8. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=3.5$.

Figure 9. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=4.0$.

Figure 10. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=4.5$.

Figure 11. The relation between the numerical and exact solutions of the dispersive equation at $h=0.025,k=0.0005,\alpha =\frac{{h}^{3}}{160},\beta =-\alpha +\frac{{h}^{3}}{2},t=5.00$.

Figure 12. 3D for the numerical solutions of the dispersive equation fromt = 0 to t= 10.

Figure 13. 3D for the numerical solutions of the dispersive equation from t = 10 to t = 20.

Figure 14. The 3D for the numerical solutions of the dispersive equation from t = 20 tot = 30.

Figure 15. The 3D for the numerical solutions of the dispersive equation from t = 30 to t= 40.

6. Concluding Remarks

This paper is devoted to the quartic non-polynomial spline functions for solving the third-order dispersive partial differential equation. Recent trends in computational mathematics, mathematical physics and mechanics have widely used numerical methods to solve such problems. The results obtained using the quartic non-polynomial spline functions are very encouraging. It has been shown that the L-∞ errors norm confirm the theoretical convergence. The convergence analysis of the method proved that our scheme is third-order convergent $o\left(k{h}^{2}+{k}^{2}{h}^{3}\right)$. Also, the method is shown to be unconditionally stable. The numerical example illustrates that the non-polynomial spline functions are more adaptable in approximating functions. The graphs between exact and approximate solutions for the numerical examples show the superiority of our method compared with .

Cite this paper: Alaofi, Z. , Ali, T. , Alaal, F. and Dragomir, S. (2021) Quartic Non-Polynomial Spline for Solving the Third-Order Dispersive Partial Differential Equation. American Journal of Computational Mathematics, 11, 189-206. doi: 10.4236/ajcm.2021.113013.
References

   Ablowitz, M.J. (2011) Nonlinear Dispersive Waves: Asymptotic Analysis and Solitons. Cambridge University Press, Cambridge.
https://doi.org/10.1017/CBO9780511998324

   Ramadan, M.A., El-Danaf, T.S. and. Alaal, F.E.I.A. (2007) Application of the Non-Polynomial Spline Approach to the Solution of the Burgers Equation. The Open Applied Mathematics Journal, 1, 15-20.
https://doi.org/10.2174/1874114200701010015

   Galaktionov, V.A. and Pohozaev, S.I. (2008) Third-Order Nonlinear Dispersive Equations: Shocks, Rarefaction, and Blowup Waves. Computational Mathematics and Mathematical Physics, 48, 1784-1810.
https://doi.org/10.1134/S0965542508100060

   Comerford, R. (2000) Computing. IEEE Spectrum, 37, 45-50.
https://doi.org/10.1109/6.815438

   Miller, J.H. (1971) On the Location of Zeros of Certain Classes of Polynomials with Application to Numerical Analysis. IMA Journal of Applied Mathematics, 8, 397-406.
https://doi.org/10.1093/imamat/8.3.397

   Tirmizi, I.A., Fazal-i-Haq, and Siraj-ul-Islam (2008) Non-Polynomial Spline Solution of Singularly Perturbed Boundary-Value Problems. Applied Mathematics and Computation, 196, 6-16.
https://doi.org/10.1016/j.amc.2007.05.029

   Taiwo, O.A. and Ogunlaran, O.M. (2011) A Non-Polynomial Spline Method for Solving Linear Fourth-Order Boundary-Value Problems. International Journal of Physical Sciences, 6, 3246-3254.

   Lin, B. (2015) Non-Polynomial Splines Method for Numerical Solutions of the Regularized Long Wave Equation. International Journal of Computer Mathematics, 92, 1591-1607.
https://doi.org/10.1080/00207160.2014.950254

   Kudu, M. and Amirali, I. (2014) Method of Lines for Third Order Partial Differential Equations. Journal of Applied Mathematics and Physics, 2, 33-36.
https://doi.org/10.4236/jamp.2014.22005

   El-Danaf, T.S., Raslan, K.R. and Ali, K.K. (2017) Non-Polynomial Spline Method for Solving the Generalized Regularized Long Wave Equation. Communication in Mathematical Modeling and Applications, 2, 1-17.

   Li, M., Ding, X. and Xu, Q. (2018) Non-Polynomial Spline Method for the Time-Fractional Nonlinear Schrödinger Equation. Advances in Difference Equations, 2018, Article No. 318.
https://doi.org/10.1186/s13662-018-1743-3

   Sultana, T., Khan, A. and Khandelwal, P. (2018) A New Non-Polynomial Spline Method for Solution of Linear and Non-Linear Third Order Dispersive Equations. Advances in Difference Equations, 2018, Article No. 316.
https://doi.org/10.1186/s13662-018-1763-z

   Khan, A. and Shahna (2019) Non-Polynomial Quadratic Spline Method for Solving Fourth Order Singularly Perturbed Boundary Value Problems. Journal of King Saud University—Science, 31, 479-484.
https://doi.org/10.1016/j.jksus.2017.08.006

   Wazwaz, A.M. (2003) An Analytic Study on the Third-Order Dispersive Partial Differential Equations. Applied Mathematics and Computation, 142, 511-520.
https://doi.org/10.1016/S0096-3003(02)00336-3

   Siraj-Ul-Islam, Khan, M.A., Tirmizi, I.A. and Twizell, E.H. (2005) Non-Polynomial Spline Approach to the Solution of a System of Third-Order Boundary-Value Problems. Applied Mathematics and Computation, 168, 152-163.
https://doi.org/10.1016/j.amc.2004.08.044

Top