<?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">JAMP</journal-id><journal-title-group><journal-title>Journal of Applied Mathematics and Physics</journal-title></journal-title-group><issn pub-type="epub">2327-4352</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jamp.2022.104040</article-id><article-id pub-id-type="publisher-id">JAMP-116808</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>
 
 
  Comparing Solutions to the Nonlinear Dissipative Wave Equation
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zaki</surname><given-names>Mrzog Alaofi</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Talaat</surname><given-names>Sayed El-Danaf</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Silvestru</surname><given-names>Sever Dragomir</given-names></name><xref ref-type="aff" rid="aff3"><sup>3</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Mathematics, College of Science and Arts, King Khalid University, Muhayil Asir, KSA</addr-line></aff><aff id="aff2"><addr-line>Department of Mathematics, Faculty of Sciences and Arts, Taibah University, Medina, KSA</addr-line></aff><aff id="aff3"><addr-line>Mathematics, College of Engineering &amp;amp; Science, Victoria University, Melbourne, Australia</addr-line></aff><pub-date pub-type="epub"><day>02</day><month>04</month><year>2022</year></pub-date><volume>10</volume><issue>04</issue><fpage>1281</fpage><lpage>1296</lpage><history><date date-type="received"><day>8,</day>	<month>March</month>	<year>2022</year></date><date date-type="rev-recd"><day>24,</day>	<month>April</month>	<year>2022</year>	</date><date date-type="accepted"><day>27,</day>	<month>April</month>	<year>2022</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 previous decades, many of the practical problems arising in scientific fields such as physics, engineering, and mathematics have been related to nonlinear fractional partial differential equations. One of these nonlinear partial differential equations, the dissipative wave equation, has been found to have a plethora of useful applications in different fields. A special class of solutions has been studied for the dissipative wave equation including exact solutions and approximate solutions. The aim of this article is to compare the non-polynomial spline method and the cubic B-spline method with the solution of a nonlinear dissipative wave equation. We will conduct a comparison of the stability of the two methods using the Von Neumann stability analysis. In addition, a numerical example will be presented to illustrate the accuracy of these methods.
 
</p></abstract><kwd-group><kwd>Dissipative Wave Equation</kwd><kwd> Cubic B-Spline</kwd><kwd> Non-Polynomial Spline</kwd><kwd> Truncation Error</kwd><kwd> Von Neumann Stability</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Nonlinear partial differential equations (NPDEs) are encountered in various fields such as physics, chemistry, biology, mathematics and engineering. Most nonlinear models of real-life problems are still proving difficult to solve either numerically or theoretically. Recently, much attention has been devoted to the search for better and more efficient solution methods for determining a solution, approximate or exact, analytical or numerical, for nonlinear models [<xref ref-type="bibr" rid="scirp.116808-ref1">1</xref>].</p><p>Many methods have been developed to solve a dissipative wave equation, including the non-polynomial spline method and the cubic B-spline method. Researchers who have used the non-polynomial spline method include El-Danaf and Faisal (2009), who used a non-polynomial spline-based method to obtain numerical solutions for a dissipative wave equation. The developed method was shown to be conditionally stable for the given values of specified parameters. Furthermore, the obtained numerical results reveal that their proposed method maintains good accuracy [<xref ref-type="bibr" rid="scirp.116808-ref2">2</xref>]. Zaki Ahmed et al. (2020) used a non-polynomial spline function to obtain numerical solutions for a dissipative wave equation at middle points for lattice in space direction and at the same time. The presented method was shown to be conditionally stable. In addition, the computational results revealed that their proposed technique was suitable for the solution of these equations and agreed with the true solutions [<xref ref-type="bibr" rid="scirp.116808-ref3">3</xref>]. The cubic B-spline has been employed by many researchers to solve nonlinear dissipative wave equations. The most recent relevant results are those presented by Alaofi et al. in 2021. The stability analysis investigation demonstrated that the method is conditionally stable. The developed method is shown to be conditionally stable for given values of specified parameters. The obtained numerical results indicate that the proposed method maintains good accuracy [<xref ref-type="bibr" rid="scirp.116808-ref4">4</xref>]. As the previous two methods, non-polynomial spline and cubic B-spline, have been used many times in recent years, we wanted to present a comparison between them to assist future researchers. Section one outlines some previous studies on the nonlinear dissipative wave equation. Section two offers basic definitions and descriptions of the non-polynomial spline functions, local truncation errors, and the cubic B-spline method. The third section will describe the stability analysis. Using the concept of stability and the von Neumann method, three stability-related cases are provided. Section four addresses numerical illustration. In this section, we offer an example from each author as well as their results. We have also presented additional results that we have obtained during our research. In the final section, we offer some conclusions and highlight some areas for further development.</p><p>The generalised nonlinear dissipative wave equation of the form [<xref ref-type="bibr" rid="scirp.116808-ref5">5</xref>]:</p><p>∂ 2 u ∂ t 2 − ∂ 2 u ∂ x 2 + 2 u t u = g ( x , t ) (1)</p><p>under the boundary conditions:</p><p>u ( a , t ) = η 1 ,     u ( b , t ) = η 2 ,     t ≥ 0 (2)</p><p>and initial conditions:</p><p>u ( x , 0 ) = f 1 ( x ) ,     u t ( x , 0 ) = f 2 ( x ) ,     a ≤ x ≤ b (3)</p></sec><sec id="s2"><title>2. The Methods</title><p>In this section, we will illustrate the non-polynomial spline method and the cubic B-spline method.</p><sec id="s2_1"><title>2.1. Non-Polynomial Spline Method</title><p>The Non-polynomial Spline Functions [<xref ref-type="bibr" rid="scirp.116808-ref6">6</xref>]</p><p>Let a = x 0 &lt; x 1 &lt; ⋯ &lt; x N = b be a subdivision of the interval [ a , b ] . The non-polynomial spline function is defined by</p><p>p ( x , t n ) = { p 0 ( x , t n ) , x ∈ [ x 0 , x 1 ] ​ ​ ​ ​ ​ p 1 ( x , t n ) , x ∈ [ x 1 , x 2 ] ​ ​                         ⋮ p N − 1 ( x , t n ) , x ∈ [ x N − 1 , x N ] ​</p><p>where p j ( x , t n ) is a mixed spline function of the form:</p><p>p j ( x , t n ) = b 1 j ( t n ) cos ω ( x − x j ) + b 2 j ( t n ) sin ω ( x − x j ) + a 1 j ( t n ) ( x − x j ) r                                 + a 2 j ( t n ) ( x − x j ) r − 1 + ⋯ + a r j ( x − x j ) + a ( r + 1 ) j , ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ j = 0 , 1 , ⋯ , N − 1.</p><p>and r represents the degree of the polynomial part.</p><p>Remark</p><p>We can use other functions as ( cosh ω x , sinh ω x ) , ( tanh ω x , sech ω x ) , ( cosh ω x , sech ω x ) and ( e ω x , e − ω x ) instead of ( cos ω x , sin ω x ) in p j ( x , t n ) .</p><p>Local truncation error [<xref ref-type="bibr" rid="scirp.116808-ref6">6</xref>]</p><p>The truncation error is the difference between the differential equation and its approximating difference equation. Let F j n ( u ) = 0 represent the differential equation at the ( j , n ) t h mesh point. If u is replaced by U at the mesh points of the difference equation, then the value of F j n ( U ) is named the local truncation error at the ( j , n ) t h mesh point. We denote it by T j n .</p><p>Zaki Ahmed [<xref ref-type="bibr" rid="scirp.116808-ref3">3</xref>] et al. and El-Danaf [<xref ref-type="bibr" rid="scirp.116808-ref2">2</xref>] et al. used the non-polynomial spline method.</p><p>To set up the non-polynomial spline method, select an integer N &gt; 0 and time-step size k &gt; 0 . With h = b − a N + 1 , the mesh points ( x i , t j ) are:</p><p>x i = a + i h ,     for   each   i = 0 , 1 , ⋯ , N + 1</p><p>and,</p><p>t j = j k ,     for   each   j = 0 , 1 , ⋯</p><p>Let Z i j ≡ Z ( x i , t j ) be an approximation to u ( x i , t j ) , obtained by the segment P i ( x , t j ) of the mixed spline function passing through the points ( x i , Z i j ) and ( x i + 1 , Z i + 1 j ) . Each segment has the forms (4) and (5) as follows:</p><p>Zaki Ahmed et al. used the following form,</p><p>Q i ( x , t j ) = a i ( t j ) cos w ( x − x i ) + b i ( t j ) sin w ( x − x i ) + c i ( t j ) (4)</p><p>El-Danaf et al. used the following form,</p><p>P i ( x , t j ) = a i ( t j ) cos ω ( x − x i ) + b i ( t j ) sin ω ( x − x i ) + c i ( t j ) ( x − x i ) + d i ( t j ) (5)</p><p>where i = 0 , 1 , ⋯ , n − 1 ; j = 0 , 1 , ⋯ ; a i ( t j ) ; b i ( t j ) ; c i ( t j ) and d i ( t j ) are unknowns to be determined and ω is a parameter of the trigonometric functions.</p><p>The truncation error for Equation (4) at i = 1 , n is as follows:</p><p>t i j = [ ( 6 8 − ( w 0 + w 1 + w 2 + w 3 ) ) h 2 D x 2 + ( 1 2 − ( w 0 + 3 w 1 + 5 w 2 + 7 w 3 2 ) ) h 3 D x 3     + ( 39 192 − ( w 0 + 9 w 1 + 25 w 2 + 49 w 3 8 ) ) h 4 D x 4     + ( 1 16 − ( w 0 + 27 w 1 + 125 w 2 + 343 w 3 48 ) ) h 5 D x 5     + ( 726 46080 − ( w 0 + 81 w 1 + 625 w 2 + 2401 w 3 384 ) ) h 6 D x 6 + ⋯ ] u i j</p><p>to make t i j , i = 1 , n of order O ( h 6 ) .</p><p>The approximation with local truncation error of O ( k 2 ) :</p><p>Z i 1 ≈ Z i 0 + k f 2 ( x i ) + k 2 2 ( g i 0 + d 2 f 1 d x 2 ( x i ) − 2 f 2 f 1 ) ,     i = 1 , ⋯ , N .</p></sec><sec id="s2_2"><title>2.2. The Cubic B-Spline Method</title><p>The cubic B-spline functions { φ i ( x ) } are defined by:</p><p>φ i ( x ) = 1 h 3 { ( x − x i − 2 ) 3 x ∈ [ x i − 2 , x i − 1 ] h 3 + 3 h 2 ( x − x i − 1 ) + 3 h ( x − x i − 1 ) 2 − 3 ( x − x i − 1 ) 3 x ∈ [ x i − 1 , x i ] h 3 + 3 h 2 ( x i + 1 − x ) + 3 h ( x i + 1 − x ) 2 − 3 ( x i + 1 − x ) 3 x ∈ [ x i , x i + 1 ] ( x i + 2 − x ) 3 x ∈ [ x i + 1 , x i + 2 ] 0 otherwise</p><p>where h = x i + 1 − x i , i = 0 , 1 , ⋯ , N − 1 . The values of the cubic B-spline φ i ( x ) and its first and second derivatives vanish outside the interval ( x i − 2 , x i + 2 ) . We establish the values of φ i ( x ) and its derivatives at the knots in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>This type of spline is used to obtain an approximate solution to partial differential equations, see [<xref ref-type="bibr" rid="scirp.116808-ref4">4</xref>].</p>The Analysis and the Initial State for the Dissipative Wave Equation<p>1) The approximate solution of the dissipative wave equation is considered to be:</p><disp-formula id="scirp.116808-formula1"><graphic  xlink:href="//html.scirp.org/file/23-1722718x51.png?20220426174435203"  xlink:type="simple"/></disp-formula><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> The values of φ i ( x ) and its derivatives with knots at the shown points</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >x i − 2</th><th align="center" valign="middle" >x i − 1</th><th align="center" valign="middle" >x i</th><th align="center" valign="middle" >x i + 1</th><th align="center" valign="middle" >x i + 2</th></tr></thead><tr><td align="center" valign="middle" >φ i ( x )</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >φ ′ i ( x )</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >3/h</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >−3/h</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >φ ″ i ( x )</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >6/h<sup>2</sup></td><td align="center" valign="middle" >−12/h<sup>2</sup></td><td align="center" valign="middle" >6/h<sup>2</sup></td><td align="center" valign="middle" >0</td></tr></tbody></table></table-wrap><p>where ϕ i ( x j ) represents the spline functions, and w i ( t j ) represents the unknowns to be determined.</p><p>2) The dissipative wave equation reduced to system of ODE.</p><p>They get:</p><p>a i ω i − 1 n + 1 + b i ω i n + 1 + c i ω i + 1 n + 1 = − d i ω i − 1 n − e i ω i n − f i ω i + 1 n − n i ω i − 1 n − 1 − s i ω i n − 1 − l i ω i + 1 n − 1 + k 2 η i n ( x , t )</p><p>3) Using the boundary conditions to get N + 3 equations in N + 3 unknowns.</p><p>6 h 2 ω − 1 − 12 h 2 ω 0 + 6 h 2 ω 1 = 0 ,</p><p>6 h 2 ω N − 1 − 12 h 2 ω N + 6 h 2 ω N + 1 = 0 .</p><p>4) Apply the initial conditions to get the independent variables:</p><p>( ω − 1 0 , ω 0 0 , ⋯ , ω N 0 , ω N + 1 0 ) T</p><p>5) After getting the following system of algebraic equations:</p><p>A ω n + 1 = − B ω n − C ω n − 1 + k 2 η i n ( x , t )</p><p>6) Two initial conditions are applied to get the following system:</p><p>ω i − 1 0 + 4 ω i 0 + ω i + 1 0 = u ( x j , 0 ) ,     j = 0 , 1 , 2 , ⋯ , N</p><p>7) Adding the following two initial conditions to complete the system of equations:</p><p>− 3 ω − 1 0 + 3 ω 1 0 = h u x ( a , 0 ) − 3 ω N − 1 0 + 3 ω N + 1 0 = h u x ( b , 0 )</p></sec></sec><sec id="s3"><title>3. The Stability Analysis</title><p>Stability [<xref ref-type="bibr" rid="scirp.116808-ref7">7</xref>]</p><p>Suppose that, in a computation involving a difference scheme, an error ξ 0 is introduced at a time level t 0 , and suppose that no further errors occur. If ξ n denotes the error resulting from this error at time t n , then the scheme is stable if | ξ n | remains bounded as n → ∞ (i.e., the error must not grow without limit).</p><p>Stability by the Fourier series method (Von Neumann’s Method) [<xref ref-type="bibr" rid="scirp.116808-ref7">7</xref>]</p><p>This method, developed by Von Neumann during World War II, was first discussed in detail by O’Brien, Hyman and Kaplan in a paper published in 1951. It expresses an initial line of errors in terms of a finite Fourier series, and considers the growth of a function that reduces to this series for t = 0 using a “variables separable” method identical to that commonly used for deriving analytical solutions to partial differential equations. If we write N j n = u j n + ξ j n in the difference scheme, and if it is linear, then ξ n will satisfy the same equation as u j n expresses the error as a finite Fourier series of the form ∑ ​     ξ n ( t ) e i k x j . Furthermore, if the equation is linear, then we need consider only the growth of a single form:</p><p>ξ j n = ξ n e i k x j ,</p><p>where i = − 1 , and let:</p><p>g = ξ n + 1 ξ n ,</p><p>where g is called the growth of an amplification factor. For stability, the Von Neumann condition requires:</p><p>| g | ≤ 1 + Ο ( Δ t ) .</p><p>i.e. the error will not increase as t increases.</p><p>It should be noted that this method applies only to linear difference equations with periodic initial data. The criterion | g | ≤ 1 is necessary and sufficient for three or more level equations—though it is always necessary. In practice, the method often gives useful results even when its application is not fully justified.</p><p>According to the Von Neumann technique we have:</p><p>S i j = ξ j e ( q φ h i ) (6)</p><p>where q 2 = − 1 , φ is the mode number, h is the element size, and ξ is the amplification factor.</p><p>For stability, we must have | ξ &#177; | ≤ 1 . Also, from Equation (6) we can observe that the product of the two values of ξ is clearly unity. So, three cases arise.</p><p>Case 1: Both the roots are equal to unity. In this case, the discriminant of the quadratic Equation (6) is zero.</p><p>Case 2: One of the roots is greater than unity. In this case, the discriminant is greater than zero. This means the stability condition, that is | ξ &#177; | ≤ 1 , is not satisfied. In other words, ξ j would grow in an unbounded manner.</p><p>Case 3: The discriminant is less than zero, that is: μ 2 − 1 &lt; 0 . Thus, for stability:</p><p>− 1 ≤ μ ≤ 1 (7)</p><p>[<xref ref-type="bibr" rid="scirp.116808-ref2">2</xref>] and [<xref ref-type="bibr" rid="scirp.116808-ref3">3</xref>] using Equation (6), the above inequality becomes:</p><p>− k 2 d * 2 ≤ 2 k 2 sin 2 ( ϕ / 2 ) ( β + 2 α ) − 4 α sin 2 ( ϕ / 2 ) ≤ 2 − k 2 d * 2 (8)</p><p>Two cases will be discussed:</p><p>Case 1: For β = − 2 α , inequality (8) becomes:</p><p>− k 2 d * 2 ≤ k 2 − 2 α ≤ 2 − k 2 d * 2</p><p>We can say that our system is stable for β = − 2 α , α &lt; 0 , and k 2 ≪ | α | such that | α | , and k 2 are small enough.</p><p>Case For α &gt; 0 , β &gt; 2 α , the quantity ( β + 2 α ) − 4 α sin 2 ( ϕ / 2 ) is positive, so we can say that stability in this case requires α &gt; 0 , β &gt; 0 , and β &gt; 2 α such that α , β and k 2 ≪ β are small enough and sin ( ϕ / 2 ) ≠ 0 .</p><p>On the other hand, [<xref ref-type="bibr" rid="scirp.116808-ref4">4</xref>] using Equation (6), the (7) inequality becomes:</p><p>− 1 ≤ [ ( − 2 − r 1 ) cos ϕ h + ( − 4 + r 1 ) ] [ ( 2 + 2 k 2 m ) cos ϕ h + ( 4 + 4 k 2 m ) ] ≤ 1 . (9)</p><p>After simplifying inequality (9), we get:</p><p>( − m h 2 3 + 1 ) + ( 2 m h 2 3 − 2 ) sin 2 ϕ h 2 ≤ ( 1 + 2 m h 2 3 ) ,</p><p>If h is small enough, the method is conditionally stable.</p></sec><sec id="s4"><title>4. Numerical Illustration</title><p>Example. Consider the dissipative wave equation [<xref ref-type="bibr" rid="scirp.116808-ref8">8</xref>]:</p><p>∂ 2 u ∂ t 2 − ∂ 2 u ∂ x 2 + 2 u t u = − 2 sin 2 x sin t cos t ≤ x ≤ π ,     t ≥ 0 , (10)</p><p>with the initial conditions:</p><p>u ( x , 0 ) = sin x ,     u t ( x , 0 ) = 0 , (11)</p><p>and the boundary conditions:</p><p>u ( 0 , t ) = u ( π , t ) = 0 . (12)</p><sec id="s4_1"><title>4.1. The Results of [<xref ref-type="bibr" rid="scirp.116808-ref2">2</xref>]</title><p><xref ref-type="table" rid="table2">Table 2</xref> shows maximum error occurred at 0.5, 1.5, 2.5, and 3.5 respectively. Numerical values have been computed using the non-polynomial spline method and reported in <xref ref-type="table" rid="table3">Table 3</xref> &amp; <xref ref-type="table" rid="table4">Table 4</xref>. The simulation is done up to x = 0.8π. We</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> The L<sub>∞</sub> error for the numerical and exact solutions when k = 0.01 , h = π 40 , α = − 1.01 ; β = − 2 α </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Time</th><th align="center" valign="middle" >0.5</th><th align="center" valign="middle" >1.5</th><th align="center" valign="middle" >2.5</th><th align="center" valign="middle" >3.5</th></tr></thead><tr><td align="center" valign="middle" >L<sub>∞</sub> error</td><td align="center" valign="middle" >2.55058 &#215; 10<sup>−4</sup></td><td align="center" valign="middle" >1.76001 &#215; 10<sup>−3</sup></td><td align="center" valign="middle" >3.21326 &#215; 10<sup>−3</sup></td><td align="center" valign="middle" >4.25842 &#215; 10<sup>−3</sup></td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Comparison between the numerical and exact solutions at h = π / 40 ; t = 1.5 ; α = 2 &#215; 10 − 7 ; β = 6.18 &#215; 10 − 3 </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >Exact solution</th><th align="center" valign="middle" >Numerical solution</th></tr></thead><tr><td align="center" valign="middle" >0.2π</td><td align="center" valign="middle" >0.04157828392871431</td><td align="center" valign="middle" >0.041764024258423134</td></tr><tr><td align="center" valign="middle" >0.3π</td><td align="center" valign="middle" >0.05722759828369953</td><td align="center" valign="middle" >0.057475017088467340</td></tr><tr><td align="center" valign="middle" >0.4π</td><td align="center" valign="middle" >0.06727507659055325</td><td align="center" valign="middle" >0.067547692975227380</td></tr><tr><td align="center" valign="middle" >0.5π</td><td align="center" valign="middle" >0.07073720166770290</td><td align="center" valign="middle" >0.071012934346015150</td></tr><tr><td align="center" valign="middle" >0.6π</td><td align="center" valign="middle" >0.06727507659055325</td><td align="center" valign="middle" >0.067547692975153300</td></tr><tr><td align="center" valign="middle" >0.7π</td><td align="center" valign="middle" >0.05722759828369953</td><td align="center" valign="middle" >0.057475017088395690</td></tr><tr><td align="center" valign="middle" >0.8π</td><td align="center" valign="middle" >0.04157828392871431</td><td align="center" valign="middle" >0.041764024258327160</td></tr></tbody></table></table-wrap><p>can conclude that applying nonpolynomial splines in the solution of partial differential equations is a promising approach.</p></sec><sec id="s4_2"><title>4.2. The Results of [<xref ref-type="bibr" rid="scirp.116808-ref3">3</xref>]</title><p>L<sub>∞</sub> error norms are reported in <xref ref-type="table" rid="table5">Table 5</xref>. In addition, comparisons of approximate and exact solutions at different nodes x and different time levels are reported in <xref ref-type="table" rid="table6">Table 6</xref> &amp; <xref ref-type="table" rid="table7">Table 7</xref>.</p><p>The relation between time and the maximum error is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> and</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Comparison between the numerical and exact solutions at h = π / 40 ; t = 2.5 ; α = 2 &#215; 10 − 7 ; β = 6.18 &#215; 10 − 3 </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >Exact solution</th><th align="center" valign="middle" >Numerical solution</th></tr></thead><tr><td align="center" valign="middle" >0.2π</td><td align="center" valign="middle" >−0.47090040218675855</td><td align="center" valign="middle" >−0.47064203333751690</td></tr><tr><td align="center" valign="middle" >0.3π</td><td align="center" valign="middle" >−0.64813879991245870</td><td align="center" valign="middle" >−0.64771280914059780</td></tr><tr><td align="center" valign="middle" >0.4π</td><td align="center" valign="middle" >−0.76193285605417060</td><td align="center" valign="middle" >−0.76136720198110770</td></tr><tr><td align="center" valign="middle" >0.5π</td><td align="center" valign="middle" >−0.80114361554693370</td><td align="center" valign="middle" >−0.80052412271783310</td></tr><tr><td align="center" valign="middle" >0.6π</td><td align="center" valign="middle" >−0.76193285605417060</td><td align="center" valign="middle" >−0.76136720198119200</td></tr><tr><td align="center" valign="middle" >0.7π</td><td align="center" valign="middle" >−0.64813879991245870</td><td align="center" valign="middle" >−0.64771280914063270</td></tr><tr><td align="center" valign="middle" >0.8π</td><td align="center" valign="middle" >−0.47090040218675855</td><td align="center" valign="middle" >−0.47064203333747706</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> The maximum absolute errors at h = π 50 , k = 0.01 , α = − 1 and β = − 2 α </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Time</th><th align="center" valign="middle" >0.5</th><th align="center" valign="middle" >1.0</th><th align="center" valign="middle" >1.5</th><th align="center" valign="middle" >2.0</th></tr></thead><tr><td align="center" valign="middle" >L<sub>∞</sub> error</td><td align="center" valign="middle" >8.7356 &#215; 10<sup>−4</sup></td><td align="center" valign="middle" >2.5274 &#215; 10<sup>−3</sup></td><td align="center" valign="middle" >4.4852 &#215; 10<sup>−3</sup></td><td align="center" valign="middle" >7.5875 &#215; 10<sup>−3</sup></td></tr></tbody></table></table-wrap><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> The true and numerical solution at h = π 50 , k = 0.001 , t = 0.25 , α = 10 − 5 and β = 0.005 </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >True solution</th><th align="center" valign="middle" >Numerical solution</th></tr></thead><tr><td align="center" valign="middle" >0.07π</td><td align="center" valign="middle" >0.211415560113106</td><td align="center" valign="middle" >0.212781989904912</td></tr><tr><td align="center" valign="middle" >0.17π</td><td align="center" valign="middle" >0.493342243118144</td><td align="center" valign="middle" >0.496403435602516</td></tr><tr><td align="center" valign="middle" >0.27π</td><td align="center" valign="middle" >0.726977150049252</td><td align="center" valign="middle" >0.731322133816448</td></tr><tr><td align="center" valign="middle" >0.37π</td><td align="center" valign="middle" >0.889450468385897</td><td align="center" valign="middle" >0.894631106006615</td></tr><tr><td align="center" valign="middle" >0.47π</td><td align="center" valign="middle" >0.964858177711116</td><td align="center" valign="middle" >0.970411644544139</td></tr><tr><td align="center" valign="middle" >0.57π</td><td align="center" valign="middle" >0.945818846039751</td><td align="center" valign="middle" >0.951279053551595</td></tr><tr><td align="center" valign="middle" >0.67π</td><td align="center" valign="middle" >0.834196175810620</td><td align="center" valign="middle" >0.839097661902968</td></tr><tr><td align="center" valign="middle" >0.77π</td><td align="center" valign="middle" >0.640916571706624</td><td align="center" valign="middle" >0.644800283101537</td></tr><tr><td align="center" valign="middle" >0.87π</td><td align="center" valign="middle" >0.384899588035650</td><td align="center" valign="middle" >0.387329859409562</td></tr><tr><td align="center" valign="middle" >0.97π</td><td align="center" valign="middle" >0.091205950934626</td><td align="center" valign="middle" >0.091795241347949</td></tr></tbody></table></table-wrap><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> The true and numerical solution at h = π 50 , k = 0.01 , t = 2.5 , α = − 1 and β = − 2 α </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >True solution</th><th align="center" valign="middle" >Numerical solution</th></tr></thead><tr><td align="center" valign="middle" >0.07π</td><td align="center" valign="middle" >−0.173449822213779</td><td align="center" valign="middle" >−0.173880443622743</td></tr><tr><td align="center" valign="middle" >0.17π</td><td align="center" valign="middle" >−0.404748469382337</td><td align="center" valign="middle" >−0.407480685897835</td></tr><tr><td align="center" valign="middle" >0.27π</td><td align="center" valign="middle" >−0.596427516319343</td><td align="center" valign="middle" >−0.603406828812836</td></tr><tr><td align="center" valign="middle" >0.37π</td><td align="center" valign="middle" >−0.729724082404153</td><td align="center" valign="middle" >−0.741447604522964</td></tr><tr><td align="center" valign="middle" >0.47π</td><td align="center" valign="middle" >−0.791590171016600</td><td align="center" valign="middle" >−0.806147786803187</td></tr><tr><td align="center" valign="middle" >0.57π</td><td align="center" valign="middle" >−0.775969898356912</td><td align="center" valign="middle" >−0.789769859046287</td></tr><tr><td align="center" valign="middle" >0.67π</td><td align="center" valign="middle" >−0.684392285545858</td><td align="center" valign="middle" >−0.694307145831281</td></tr><tr><td align="center" valign="middle" >0.77π</td><td align="center" valign="middle" >−0.525821587384132</td><td align="center" valign="middle" >−0.530927685708137</td></tr><tr><td align="center" valign="middle" >0.87π</td><td align="center" valign="middle" >−0.315779808634822</td><td align="center" valign="middle" >−0.317328698954233</td></tr><tr><td align="center" valign="middle" >0.97π</td><td align="center" valign="middle" >−0.074827302049036</td><td align="center" valign="middle" >−0.074921135704477</td></tr></tbody></table></table-wrap><p>the graph of exact and approximate solutions for different time levels are depicted in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p></sec><sec id="s4_3"><title>4.3. The Results of [<xref ref-type="bibr" rid="scirp.116808-ref4">4</xref>]</title><p>To make a comparison quantitatively, they have computed the error norms L<sub>∞</sub> in <xref ref-type="table" rid="table8">Table 8</xref>. Moreover, the comparison of obtained numerical results with the cubic B-spline method is presented in <xref ref-type="table" rid="table9">Table 9</xref> &amp; <xref ref-type="table" rid="table1">Table 1</xref>0 when t = 0.2 and t = 2.</p><p><xref ref-type="fig" rid="fig3">Figure 3</xref> &amp; <xref ref-type="fig" rid="fig4">Figure 4</xref> depict a comparison of exact and approximate solutions when t = 2 and t = 5.</p><p>In the following section, we introduce the numerical results, which have been obtained by [<xref ref-type="bibr" rid="scirp.116808-ref4">4</xref>].</p><table-wrap id="table8" ><label><xref ref-type="table" rid="table8">Table 8</xref></label><caption><title> The L<sub>∞</sub> error for the numerical and exact solutions when k = 0.01, h = π 20 from t = 0.5 to t = 2.0</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Time</th><th align="center" valign="middle" >0.5</th><th align="center" valign="middle" >1.0</th><th align="center" valign="middle" >1.5</th><th align="center" valign="middle" >2.0</th></tr></thead><tr><td align="center" valign="middle" >L<sub>∞</sub> error</td><td align="center" valign="middle" >6.2131 &#215; 10<sup>−4</sup></td><td align="center" valign="middle" >6.2454 &#215; 10<sup>−4</sup></td><td align="center" valign="middle" >1.92996 &#215; 10<sup>−3</sup></td><td align="center" valign="middle" >3.87406 &#215; 10<sup>−3</sup></td></tr></tbody></table></table-wrap><table-wrap id="table9" ><label><xref ref-type="table" rid="table9">Table 9</xref></label><caption><title> Comparison between the numerical and exact solutions at t = 0.2, k = 0.002, h = π 20 </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >Numerical Solution</th><th align="center" valign="middle" >Exact Solution</th></tr></thead><tr><td align="center" valign="middle" >0.1π</td><td align="center" valign="middle" >0.302857</td><td align="center" valign="middle" >0.303116</td></tr><tr><td align="center" valign="middle" >0.2π</td><td align="center" valign="middle" >0.576069</td><td align="center" valign="middle" >0.576509</td></tr><tr><td align="center" valign="middle" >0.3π</td><td align="center" valign="middle" >0.792891</td><td align="center" valign="middle" >0.793442</td></tr><tr><td align="center" valign="middle" >0.4π</td><td align="center" valign="middle" >0.932099</td><td align="center" valign="middle" >0.932707</td></tr><tr><td align="center" valign="middle" >0.5π</td><td align="center" valign="middle" >0.980067</td><td align="center" valign="middle" >0.980692</td></tr><tr><td align="center" valign="middle" >0.6π</td><td align="center" valign="middle" >0.932099</td><td align="center" valign="middle" >0.932707</td></tr><tr><td align="center" valign="middle" >0.7π</td><td align="center" valign="middle" >0.792891</td><td align="center" valign="middle" >0.793442</td></tr><tr><td align="center" valign="middle" >0.8π</td><td align="center" valign="middle" >0.576069</td><td align="center" valign="middle" >0.576509</td></tr><tr><td align="center" valign="middle" >0.9π</td><td align="center" valign="middle" >0.302857</td><td align="center" valign="middle" >0.303116</td></tr></tbody></table></table-wrap></sec><sec id="s4_4"><title>4.4. Our Results</title><p>In <xref ref-type="table" rid="table1">Table 1</xref>1, the computational maximum errors with respect to the exact solution and numerical solution.</p><table-wrap id="table10" ><label><xref ref-type="table" rid="table1">Table 1</xref>0</label><caption><title> Comparison between the numerical and exact solutions at t = 2, k = 0.002, h = π 20 </title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >Numerical Solution</th><th align="center" valign="middle" >Exact Solution</th></tr></thead><tr><td align="center" valign="middle" >0.1π</td><td align="center" valign="middle" >−0.128596</td><td align="center" valign="middle" >−0.129169</td></tr><tr><td align="center" valign="middle" >0.2π</td><td align="center" valign="middle" >−0.244605</td><td align="center" valign="middle" >−0.245756</td></tr><tr><td align="center" valign="middle" >0.3π</td><td align="center" valign="middle" >−0.33667</td><td align="center" valign="middle" >−0.338348</td></tr><tr><td align="center" valign="middle" >0.4π</td><td align="center" valign="middle" >−0.395779</td><td align="center" valign="middle" >−0.397833</td></tr><tr><td align="center" valign="middle" >0.5π</td><td align="center" valign="middle" >−0.416147</td><td align="center" valign="middle" >−0.418337</td></tr><tr><td align="center" valign="middle" >0.6π</td><td align="center" valign="middle" >−0.395779</td><td align="center" valign="middle" >−0.397833</td></tr><tr><td align="center" valign="middle" >0.7π</td><td align="center" valign="middle" >−0.33667</td><td align="center" valign="middle" >−0.338348</td></tr><tr><td align="center" valign="middle" >0.8π</td><td align="center" valign="middle" >−0.244605</td><td align="center" valign="middle" >−0.245756</td></tr><tr><td align="center" valign="middle" >0.9π</td><td align="center" valign="middle" >−0.128596</td><td align="center" valign="middle" >−0.129169</td></tr></tbody></table></table-wrap><table-wrap id="table11" ><label><xref ref-type="table" rid="table1">Table 1</xref>1</label><caption><title> The L<sub>∞</sub> error for the numerical and exact solutions for a big time when k = 0.01, h = π 20 from t = 15.0 to t = 50.0</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Time</th><th align="center" valign="middle" >15.0</th><th align="center" valign="middle" >25.0</th><th align="center" valign="middle" >35.0</th><th align="center" valign="middle" >45.0</th><th align="center" valign="middle" >50.0</th></tr></thead><tr><td align="center" valign="middle" >L<sub>∞</sub> error</td><td align="center" valign="middle" >2.5282 &#215; 10<sup>−2</sup></td><td align="center" valign="middle" >6.1599 &#215; 10<sup>−2</sup></td><td align="center" valign="middle" >4.3337 &#215; 10<sup>−2</sup></td><td align="center" valign="middle" >2.3355 &#215; 10<sup>−2</sup></td><td align="center" valign="middle" >2.2784 &#215; 10<sup>−2</sup></td></tr></tbody></table></table-wrap><p>From Figures 5-9, we observe that the smaller the Δ t = k (than the value of h), the better the accuracy. The numerical approximations are still acceptable within the large time.</p><p>The following figures, Figures 10-13, show the 3D representation of the numerical solutions of the dissipative equation for virus time and the same discretisations (h).</p></sec></sec><sec id="s5"><title>5. Conclusion</title><p>In this article, we discussed the non-polynomial spline method and the cubic</p><p>B-spline method for solving a nonlinear dissipative wave equation and its truncation errors. The stability analysis of these methods was shown to be conditionally stable. Furthermore, the obtained approximate numerical solutions maintain good accuracy compared with the exact solutions, especially for small values.</p><p>The results obtained by [<xref ref-type="bibr" rid="scirp.116808-ref4">4</xref>] demonstrate that solving the nonlinear dissipative wave equation using the cubic B-spline method is more accurate than using the non-polynomial spline method. A large set of values was used to treat the nonlinear dissipative wave equation using the cubic B-spline method, and both 2D and 3D graph representations were provided. Our conclusion was that the non-polynomial spline method is more useful when the researcher wants to obtain the local truncation error, while the B-spline method is more accurate for solving nonlinear partial differential equations.</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Alaofi, Z.M., El-Danaf, T.S. and Dragomir, S.S. (2022) Comparing Solutions to the Nonlinear Dissipative Wave Equation. Journal of Applied Mathematics and Physics, 10, 1281-1296. https://doi.org/10.4236/jamp.2022.104090</p></sec></body><back><ref-list><title>References</title><ref id="scirp.116808-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Hereman, W. and Takaoka, M. (1990) Solitary Wave Solutions of Nonlinear Evolution and Wave Equations Using a Direct Method and MACSYMA. Journal of Physics A: Mathematical and General, 23, 4805-4822. https://doi.org/10.1088/0305-4470/23/21/021</mixed-citation></ref><ref id="scirp.116808-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">El Danaf, T.S. and Abdel Alaal, F.E.I. (2009) Non-Polynomial Spline Method for the Solution of the Dissipative Wave Equation. International Journal of Numerical Methods for Heat &amp; Fluid Flow, 19, 950-959. https://doi.org/10.1108/09615530910994441</mixed-citation></ref><ref id="scirp.116808-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Ahmed, Z., Ahmad, N., Ghonamy, M.I. and Rashid, N. (2020) On the Numerical Solution of the Dissipative Wave Equation at Midpoints. Journal of Critical Reviews, 7, 8623-8632. https://researchgate.net/publication/344467678</mixed-citation></ref><ref id="scirp.116808-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Alaofi, Z., Sayed Ali, T. and Dragomir, S. (2021) A Numerical Solution of the Dissipative Wave Equation by Means of Cubic B-Spline Method. Journal of Physics Communications, 5. https://doi.org/10.1088/2399-6528/ac2940</mixed-citation></ref><ref id="scirp.116808-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Adomian, G. (1994) Solving Frontier Problems of Physics: The Decomposition Method. Kluwer Academic Publisher, Boston, MA. https://doi.org/10.1007/978-94-015-8289-6</mixed-citation></ref><ref id="scirp.116808-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Amin, M., Abbas, M., Iqbal, M.K. and Baleanu, D. (2019) Non-Polynomial Quintic Spline for Numerical Solution of Fourth-Order Time Fractional Partial Differential Equations. Advances in Difference Equations, 2019, 1-22. https://doi.org/10.1186/s13662-019-2125-1</mixed-citation></ref><ref id="scirp.116808-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Li, M., Ding, X. and Xu, Q. (2018) Non-Polynomial Spline Method for the Time-Fractional Nonlinear Schr&amp;#246;dinger Equation. Advances in Difference Equations, 2018, 1-15. https://doi.org/10.1186/s13662-018-1743-3</mixed-citation></ref><ref id="scirp.116808-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Adomian, G. (1994) Nonlinear Dissipative Wave Equations. Applied Mathematics Letters, 11, 125-126. https://doi.org/10.1016/S0893-9659(98)00044-5</mixed-citation></ref></ref-list></back></article>