<?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.111003</article-id><article-id pub-id-type="publisher-id">AM-97673</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>
 
 
  A Robust and Effective Method for Solving Two-Point BVP in Modelling Viscoelastic Flows
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mohamed</surname><given-names>El-Gamel</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>Ola</surname><given-names>Mohamed</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>Neveen</surname><given-names>El-Shamy</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Mathematical Sciences, Faculty of Engineering, Mansoura University, Mansoura, Egypt</addr-line></aff><pub-date pub-type="epub"><day>30</day><month>12</month><year>2019</year></pub-date><volume>11</volume><issue>01</issue><fpage>23</fpage><lpage>34</lpage><history><date date-type="received"><day>18,</day>	<month>November</month>	<year>2019</year></date><date date-type="rev-recd"><day>4,</day>	<month>January</month>	<year>2020</year>	</date><date date-type="accepted"><day>7,</day>	<month>January</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>
 
 
  Chebyshev collocation method is used to approximate solutions of two-point BVP arising in modelling viscoelastic flow. The scheme is tested on four nonlinear problems. The comparison with other methods is made. The results demonstrate the reliability and efficiency of the algorithm developed.
 
</p></abstract><kwd-group><kwd>Chebyshev</kwd><kwd> Collocation</kwd><kwd> Viscoelastic Flow</kwd><kwd> Fifth-Order</kwd><kwd> Nonlinear</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In modelling viscoelastic flows, differential equations of elliptic-hyperbolic operator types arise. Simulations of such flows have been studied extensively lately. The main characteristics of such elliptic-hyperbolic operators can be captured in a nonlinear fifth order two-point boundary value problem in one dimension [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>]. The elasticity parameter in the problem is of major importance in the investigation; that is, if it is increased, then depending on the formulation of the problem.</p><p>Many researchers have discussed solutions of viscoelastic flow model, like the Galerkin method discussed in [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>], collocation method discussed in [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>], the Rung-Kutta discussed in [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>], the homotopy method discussed in [<xref ref-type="bibr" rid="scirp.97673-ref4">4</xref>]. Hermitian finite elements in [<xref ref-type="bibr" rid="scirp.97673-ref5">5</xref>] and the shooting method in [<xref ref-type="bibr" rid="scirp.97673-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref8">8</xref>]. Some authors have discussed other methods of solution of this model in [<xref ref-type="bibr" rid="scirp.97673-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref11">11</xref>].</p><p>In this paper, we are going to introduce Chebyshev-collocation method for the numerical solution of the fifth-order non-linear two-point boundary value problem in modelling viscoelastic flow:</p><p>[ 1 + ε d y d x d d x ] d 4 y d x 4 = f ( x ) ,   − 1 2 ≤ x ≤ 1 2 (1)</p><p>concerned to the posterior boundary conditions</p><p>y ( &#177; 1 2 ) = d y d x ( &#177; 1 2 ) = 0 d 2 y d x 2 ( − 1 2 ) = c   at     ε &gt; 0. (2)</p><p>with regard to the given positive constants ε and c which act as elasticity parameter and a boundary stress, respectively. Moreover, c is equal unity in this paper.</p><p>In recent years, a lot of attention has been devoted to the study of Chebyshev methods to investigate various scientific models. Using these methods made it possible to solve Troeschs problem [<xref ref-type="bibr" rid="scirp.97673-ref12">12</xref>], twelfth-order boundary-value problems [<xref ref-type="bibr" rid="scirp.97673-ref13">13</xref>], high-order nonlinear ordinary differential equations [<xref ref-type="bibr" rid="scirp.97673-ref14">14</xref>], linear integro-differential equations [<xref ref-type="bibr" rid="scirp.97673-ref15">15</xref>], fourth-order Sturm-Liouville problems [<xref ref-type="bibr" rid="scirp.97673-ref16">16</xref>], Generalized Sturm-Liouville problems [<xref ref-type="bibr" rid="scirp.97673-ref17">17</xref>], the parabolic inverse problem [<xref ref-type="bibr" rid="scirp.97673-ref18">18</xref>], two-dimensional heat equation [<xref ref-type="bibr" rid="scirp.97673-ref19">19</xref>], fractional diffusion equation [<xref ref-type="bibr" rid="scirp.97673-ref20">20</xref>], elliptic partial differential equations [<xref ref-type="bibr" rid="scirp.97673-ref21">21</xref>], integral and integro-differential equations of the third kind [<xref ref-type="bibr" rid="scirp.97673-ref22">22</xref>], the constant mobility Cahn-Hilliard equation in a square domain [<xref ref-type="bibr" rid="scirp.97673-ref23">23</xref>], Lane-Emden problem [<xref ref-type="bibr" rid="scirp.97673-ref24">24</xref>]. Recently, has been made numerical comparison of sinc-collocation and Chebychev-collocation methods for determining the eigenvalues of Sturm-Liouville problems with parameter-dependent boundary conditions by El-Gamel [<xref ref-type="bibr" rid="scirp.97673-ref25">25</xref>].</p><p>Chebyshev methods for ordinary differential equations have many salient features due to the properties of the basis functions and the manner in which the problem is discretized. The approximating discrete system depends only on parameters of the differential equation. There are many advantages of using Chebyshev polynomials as expansion function presented in that are good representations of smooth functions. What we do here is to seek a special Chebyshev solution which also satisfies the given boundary conditions.</p><p>We organize our paper as follows. In Section 2, we present the preliminaries which we used in this paper. Method of the solution is given in Section 3. Some numerical results are presented in Section 4 to show the efficiency of the proposed method. Finally, we draw some conclusions and closing remarks.</p></sec><sec id="s2"><title>2. Essential Relations</title><p>Chebyshev polynomial formula of the first kind of degree m is chiefly defined and bounded in interval [ − 1,1 ] see [<xref ref-type="bibr" rid="scirp.97673-ref26">26</xref>]</p><p>T m ( x ) = cos   ( m cos − 1 ( x ) ) ,   x = cos ϕ ,   ϕ ∈ [ 0 , π ]</p><p>or, in didactic organism,</p><p>T m ( cos ϕ ) = cos ( m ϕ ) ,   m = 0 , 1 , ⋯ ,   x ∈ [ − 1 , 1 ]</p><p>As for the shifted Chebyshev polynomial T ∗ ( x ) of the first kind on interval [ a , b ] .</p><p>T m ∗ ( x ) = T m ( q ) ,   q = 2 b − a ( x − a + b 2 ) .</p><p>With leading coefficient is equal to 2 m − 1 ( 2 b − a ) m , by Compensation in the previous equation</p><p>T m ∗ ( x ) = T m ( 2 b − a ( x − a + b 2 ) ) .</p><p>In addition, the definition of the collocation points is worded as follow</p><p>x i = b − a 2 [ ( a + b b − a ) + cos ( i π N ) ] ,   i = 0 , 1 , ⋯ , N . (3)</p><p>Moreover, the relation between Chebyshev coefficient matrix A and A ∗ ( k ) in the interval [ a , b ] is</p><p>A ∗ ( k ) = ( 4 b − a ) k M k A ∗</p><p>where</p><p>A ∗ = [ a 0 ∗ 2 , a 1 ∗ , ⋯ , a N ∗ ] τ</p><p>T = T ∗ result from the characteristics of Chebyshev polynomial.</p><p>All in all, the use of half interval − 1 2 ≤ x ≤ 1 2 is more favored in modelling viscoelastic flows. The shifted Chebyshev polynomials can also be worded as follows</p><p>T m ∗ ( x ) = T m ( 2 x ) = cos ( m cos − 1 ( 2 x ) ) .</p><p>This is deduced from definition of the collocation points:</p><p>x i = 1 2 [ cos ( i π N ) ] ,   i = 0 , 1 , ⋯ , N . (4)</p><p>Similarly, the relation between Chebyshev coefficient matrix A and A ∗ ( k ) in the interval [ − 1 2 , 1 2 ] is</p><p>A ∗ ( k ) = 4 k M k A ∗ ,   k = 0 , 1 , ⋯ , 5.</p></sec><sec id="s3"><title>3. Method of Solution</title><p>Let is assume the approximate solution y ( x ) of the main problem (1) and its derivatives is</p><p>y ( x ) = ∑ r = 0 N       a r ∗   T r ∗ ( x ) ,   − 0.5 ≤ x ≤ 0.5 (5)</p><p>y ( k ) ( x ) = ∑ r = 0 N ( a r ∗ ) ( k ) T r ∗ ( x ) ,   k = 0 , 1 , 2 , ⋯ , 5. (6)</p><p>where N is chosen as any positive integer such that 0 ≤ r ≤ N . Besides, the anonymous Chebychev coefficients of y ( x ) and its derivatives are a r and a r ( k ) , respectively. The approximate solution and its derivatives in the matrix format are</p><p>[ y ( x ) ] = T ∗ ( x ) A ∗ [ y ( k ) ( x ) ] = T ∗ ( x ) ( A ∗ ) k = 4 k T ∗ ( x ) M k A ∗ . (7)</p><p>whereas the definitions of ultimate matrices are:</p><p>Y = [ y ( x 0 ) y ( x 1 ) ⋮ y ( x N ) ] ,   Y ( k ) = [ y ( k ) ( x 0 ) y ( k ) ( x 1 ) ⋮ y ( k ) ( x N ) ] ,   T = [ T ( x 0 ) T ( x 1 ) ⋮ T ( x N ) ]</p><p>and</p><p>M = [ 0 1 2 0 3 2 ⋯ 0 N / 2 0 0 2 0 ⋯ N − 1 0 0 0 0 3 ⋯ 0 N ⋮ ⋮ ⋮ ⋮ ⋱ ⋮ ⋮ 0 0 0 0 0 ⋯ N 0 0 0 0 0 ⋯ 0 ] ( N + 1 ) &#215; ( N + 1 ) (8)</p><p>for odd N.</p><p>M = [ 0 1 2 0 3 2 ⋯ N − 1 2 0 0 0 2 0 ⋯ 0 N 0 0 0 3 ⋯ N − 1 0 ⋮ ⋮ ⋮ ⋮ ⋱ ⋮ ⋮ 0 0 0 0 ⋯ 0 N 0 0 0 0 ⋯ 0 0 ] ( N + 1 ) &#215; ( N + 1 ) (9)</p><p>for even N. We need the following lemma where l and K are both positive integer.</p><p>Lemma 1. [<xref ref-type="bibr" rid="scirp.97673-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref14">14</xref>] The following relation holds</p><p>[ y ( k ) ( x 0 ) y ( l ) ( x 0 ) y ( k ) ( x 1 ) y ( l ) ( x 1 ) ⋮ y ( k ) ( x N ) y ( l ) ( x N ) ] = [ y ( k ) ( x 0 ) 0 ⋯ 0 0 y ( k ) ( x 1 ) ⋯ 0 ⋮ ⋮ ⋱ ⋮ 0 0 ⋯ y ( k ) ( x N ) ] [ y ( l ) ( x 0 ) y ( l ) ( x 1 ) ⋮ y ( l ) ( x N ) ] = Y &#175; ( k ) Y ( l ) = 4 k + l ( T * &#175; M &#175; k A * &#175; ) T * M l A * (10)</p><p>where</p><p>T * &#175; = [ T ( x 0 ) 0 ⋯ 0 0 T ( x 1 ) ⋯ 0 ⋮ ⋮ ⋱ ⋮ 0 0 ⋯ T ( x N ) ] ,</p><p>A * &#175; = [ A * 0 ⋯ 0 0 A * ⋯ 0 ⋮ ⋮ ⋱ ⋮ 0 0 ⋯ A * ] ,       and       M &#175; = [ M 0 ⋯ 0 0 M ⋯ 0 ⋮ ⋮ ⋱ ⋮ 0 0 ⋯ M ] .</p><p>We need the following the theorem:</p><p>Theorem 2. If the considered approximate solution of the problem (1) is (7), so that the discrete Chebyshev system is availed by</p><p>W A ∗ = F , (11)</p><p>where</p><p>W = 4 4   T ∗ M 4 + ε 4 6 ( T * &#175; M &#175; A * &#175; ) T ∗ M 5</p><p>Proof. Replacing each term of (1) with the approximation defined in (7) and (10), and applying the collocation points (4) to it.</p><p>The matrices for the boundary conditions subjected to Equation (2) are</p><p>T ∗ ( 1 2 ) = 4 T ∗ ( 1 2 ) M = 0 , T ∗ ( − 1 2 ) = 4 T ∗ ( − 1 2 ) M = 0 , 4 2   T ∗ ( − 1 2 ) M 2 = c (12)</p><p>Thus, in the matrix [ W ; F ] we will replace 5<sub>th</sub> rows by the Equation (12), we have the augmented matrix [ W ˜ ; F ˜ ]</p><p>W ˜ A ∗ = F ˜ . (13)</p><p>Now we will solve a linear system (13) of N + 1 equations of the N + 1 unknown coefficients a r , r = 0 , 1 , ⋯ , N . So as to gain the coefficients of the approximate solution A ∗ by the Q-R method.</p><p>Algorithm</p><p>&#183; Input (integer) N.</p><p>&#183; Input (double) tol.</p><p>&#183; Input (array) A o l d = A 0 (Initial approximation, A 0 with N + 1 dimension, can be chosen so that the boundary conditions are satisfied).</p><p>&#183; W ˜ ( A o l d ) A n e w = F ˜ is a linear algebraic equation system. Then solve this system to find A n e w .</p><p>&#183; If | A o l d − A n e w | &lt; t o l then A n e w = A , break (the program is finished).</p><p>&#183; Else then A o l d ← A n e w .</p></sec><sec id="s4"><title>4. Examples and Comparison</title><p>In this section we give an illustrative example to authenticate the obtained results on Equation (1). The performance of Chebyshev method is measured by the root mean square errors E chebyshev which is defined as</p><p>‖ E Chebyshev ‖ = ∑ i = 0 N | y Exact ( x i ) − y Chebyshev ( x i ) | 2</p><p>Example 1: [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>] Consider the following fifth order nonlinear two-point BVP</p><p>[ 1 + ε d y d x d d x ] d 4 y d x 4 = 12 ,   − 1 2 ≤ x ≤ 1 2 ,</p><p>whose exact solution is</p><p>y ( x ) = 1 2 ( x 2 − 1 4 ) 2 .</p><p><xref ref-type="table" rid="table1">Table 1</xref> exhibits a comparison between the root mean square errors obtained by using the present method, Beam function using Galerkin, Beam function using Collocation, Runge-Kutta methods and Chebyfun for Example 1. This comparison shows the strength of the first scheme. <xref ref-type="fig" rid="fig1">Figure 1</xref> demonstrates Chebyshev approximate solution versus the exact solution.</p><p>Example 2: [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>] Consider the following fifth order nonlinear two-point BVP</p><p>[ 1 + ε d y d x d d x ] d 4 y d x 4 = − 120 x + 600 ε ( x 2 − 1 4 ) ( x 2 − 1 20 ) ,   − 1 2 ≤ x ≤ 1 2 ,</p><p>whose exact solution is</p><p>y ( x ) = − x ( x 2 − 1 4 ) 2 .</p><p><xref ref-type="table" rid="table2">Table 2</xref> represents a comparison between the root mean square errors with the methods in [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>]. <xref ref-type="table" rid="table3">Table 3</xref> shows a comparison of between the root mean square errors of Chebyshev and Chebyfun at ε = 10 − 3 and N = 5 for Example 2. The graph of Chebyshev approximate solution and the exact solution of have been plotted 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> Comparison of the root mean square errors at ε = 10 − 1 for Example 1</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Method</th><th align="center" valign="middle" >The root mean square errors</th></tr></thead><tr><td align="center" valign="middle" >Chebyshev, N = 5</td><td align="center" valign="middle" >1.743E-18</td></tr><tr><td align="center" valign="middle" >Chebyfun</td><td align="center" valign="middle" >8.664E-18</td></tr><tr><td align="center" valign="middle" >Runge-Kutta methods, N = 100 [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>]</td><td align="center" valign="middle" >6.899E-03</td></tr><tr><td align="center" valign="middle" >Beam function using Galerkin, N = 4 [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>]</td><td align="center" valign="middle" >0.975E-04</td></tr><tr><td align="center" valign="middle" >Beam function using Collocation, N = 4 [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>]</td><td align="center" valign="middle" >0.855E-03</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Comparison of the root mean square errors for Example 2, for the present method, Galerkin, collocation methods and Runge-Kutta method</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >ε</th><th align="center" valign="middle" >‖ E Chebyshev ‖ , N = 5</th><th align="center" valign="middle" >‖ E Runge-Kutta ‖ , N = 100 [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>]</th><th align="center" valign="middle" >‖ E Galerkin ‖ , N = 5 [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>]</th><th align="center" valign="middle" >‖ E Collocation ‖ , N = 5 [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>]</th></tr></thead><tr><td align="center" valign="middle" >10<sup>−1</sup></td><td align="center" valign="middle" >4.7300E-13</td><td align="center" valign="middle" >3.98537E-03</td><td align="center" valign="middle" >0.25E-03</td><td align="center" valign="middle" >0.24E-02</td></tr><tr><td align="center" valign="middle" >10<sup>−2</sup></td><td align="center" valign="middle" >1.7820E-13</td><td align="center" valign="middle" >3.98585E-03</td><td align="center" valign="middle" >0.16E-03</td><td align="center" valign="middle" >0.22E-02</td></tr><tr><td align="center" valign="middle" >10<sup>−3</sup></td><td align="center" valign="middle" >1.2704E-16</td><td align="center" valign="middle" >3.98599E-03</td><td align="center" valign="middle" >0.16E-03</td><td align="center" valign="middle" >0.22E-02</td></tr><tr><td align="center" valign="middle" >10<sup>−4</sup></td><td align="center" valign="middle" >2.0230E-16</td><td align="center" valign="middle" >3.98586E-03</td><td align="center" valign="middle" >----</td><td align="center" valign="middle" >----</td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Comparison of the root mean square errors at ε = 10 − 3 and N = 5 for Example 2</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Method</th><th align="center" valign="middle" >The root mean square errors</th></tr></thead><tr><td align="center" valign="middle" >Chebyshev</td><td align="center" valign="middle" >1.2704E-16</td></tr><tr><td align="center" valign="middle" >Chebyfun</td><td align="center" valign="middle" >2.7800E-16</td></tr></tbody></table></table-wrap><p>Example 3: [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>] Consider the following fifth order nonlinear two-point BVP</p><p>[ 1 + ε d y d x d d x ] d 4 y d x 4 = f ( x ) ,   − 1 2 ≤ x ≤ 1 2 ,</p><p>whose exact solution is</p><p>y ( x ) = 1 2 π ( x 2 − 1 4 ) sin π ( x − 1 2 ) .</p><p>and</p><p>f ( x ) = π 2 [ π 2 ( x 2 − 1 4 ) − 12 ] sin π ( x − 1 2 ) − 4 π 2 x cos π ( x − 1 2 )     + 1 8 ε π 2 [ π 2 ( x 2 − 1 4 ) 2 − 40 ( x 2 − 1 8 ) ] cos 2 π ( x − 1 2 )     + 1 8 ε π x [ 12 π 2 ( x 2 − 1 4 ) − 40 ] sin 2 π ( x − 1 2 )     + 1 8 ε π 2 [ π 2 ( x 2 − 1 4 ) 2 + 5 ] .</p><p>Tables 4-7 illustrate the comparison between result of Chebyshev polynomial method and result of methods in [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>] and [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>] at ε = 10 − 1 , 10 − 3 , 10 and 10<sup>3</sup> with N from 6 to 16. Besides, <xref ref-type="table" rid="table8">Table 8</xref> depicts ε with values 10<sup>−1</sup>, 10<sup>−2</sup> and 10<sup>−3</sup> that has an impact on the result of Chebyshev polynomial method at N = 18 , Chebfun matlab program and the Runge-Kutta in [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>] at N = 100 . <xref ref-type="fig" rid="fig3">Figure 3</xref> demonstrates Chebyshev approximate solution versus the exact solution.</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Comparison of the root mean square errors at ε = 10 − 1 for Example 3</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >N</th><th align="center" valign="middle" >‖ E Chebyshev ‖</th><th align="center" valign="middle" >‖ E Collocation ‖ [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>]</th><th align="center" valign="middle" >‖ E Galerkin ‖ [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>]</th></tr></thead><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >4.3706E-04</td><td align="center" valign="middle" >0.22E-02</td><td align="center" valign="middle" >----</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >1.0349E-05</td><td align="center" valign="middle" >0.43E-04</td><td align="center" valign="middle" >0.84E-02</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >1.1865E-07</td><td align="center" valign="middle" >0.44E-06</td><td align="center" valign="middle" >0.19E-06</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >3.8885E-12</td><td align="center" valign="middle" >0.12E-10</td><td align="center" valign="middle" >0.20E-09</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >1.2817E-14</td><td align="center" valign="middle" >0.38E-13</td><td align="center" valign="middle" >0.18E-09</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Comparison of the root mean square errors at ε = 10 − 3 for Example 3</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >N</th><th align="center" valign="middle" >‖ E Chebyshev ‖</th><th align="center" valign="middle" >‖ E Collocation ‖ [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>]</th><th align="center" valign="middle" >‖ E Galerkin ‖ [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>]</th></tr></thead><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >4.7455E-04</td><td align="center" valign="middle" >0.24E-02</td><td align="center" valign="middle" >0.60E-02</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >8.7264E-06</td><td align="center" valign="middle" >0.37E-04</td><td align="center" valign="middle" >0.84E-04</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >8.7156E-08</td><td align="center" valign="middle" >0.32E-06</td><td align="center" valign="middle" >0.29E-06</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >2.3566E-12</td><td align="center" valign="middle" >0.73E-11</td><td align="center" valign="middle" >0.31E-09</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >8.2138E-15</td><td align="center" valign="middle" >0.21E-13</td><td align="center" valign="middle" >0.29E-09</td></tr></tbody></table></table-wrap><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Comparison of the root mean square errors at ε = 10 for Example 3</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >N</th><th align="center" valign="middle" >‖ E Chebyshev ‖</th><th align="center" valign="middle" >‖ E Collocation ‖ [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>]</th><th align="center" valign="middle" >‖ E Galerkin ‖ [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>]</th></tr></thead><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.19E-02</td><td align="center" valign="middle" >0.95E-02</td><td align="center" valign="middle" >----</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >1.1786E-04</td><td align="center" valign="middle" >0.11E-02</td><td align="center" valign="middle" >0.27E-04</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >2.3777E-06</td><td align="center" valign="middle" >0.91E-05</td><td align="center" valign="middle" >0.16E-06</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >1.9856E-10</td><td align="center" valign="middle" >0.69E-09</td><td align="center" valign="middle" >0.13E-10</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >1.4004E-12</td><td align="center" valign="middle" >0.41E-11</td><td align="center" valign="middle" >0.13E-10</td></tr></tbody></table></table-wrap><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> Comparison of the root mean square errors at ε = 10 3 for Example 3</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >N</th><th align="center" valign="middle" >‖ E Chebyshev ‖</th><th align="center" valign="middle" >‖ E Collocation ‖ [<xref ref-type="bibr" rid="scirp.97673-ref2">2</xref>]</th><th align="center" valign="middle" >‖ E Galerkin ‖ [<xref ref-type="bibr" rid="scirp.97673-ref1">1</xref>]</th></tr></thead><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >7.9662E-04</td><td align="center" valign="middle" >0.40E-02</td><td align="center" valign="middle" >----</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >1.5049E-05</td><td align="center" valign="middle" >0.20E-03</td><td align="center" valign="middle" >0.14E-03</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >1.8040E-06</td><td align="center" valign="middle" >0.69E-05</td><td align="center" valign="middle" >0.16E-06</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >1.1496E-10</td><td align="center" valign="middle" >0.47E-09</td><td align="center" valign="middle" >0.13E-10</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >4.9300E-13</td><td align="center" valign="middle" >0.20E-10</td><td align="center" valign="middle" >0.13E-10</td></tr></tbody></table></table-wrap><table-wrap id="table8" ><label><xref ref-type="table" rid="table8">Table 8</xref></label><caption><title> Comparison of the root mean square errors for Chebyshev polynomial method and the Runge-Kutta method for Example 3</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >ε</th><th align="center" valign="middle" >‖ E Chebyshev ‖ , N = 18</th><th align="center" valign="middle" >‖ E Chebyfun ‖</th><th align="center" valign="middle" >‖ E Runge-Kutta ‖ , N = 100 [<xref ref-type="bibr" rid="scirp.97673-ref3">3</xref>]</th></tr></thead><tr><td align="center" valign="middle" >10<sup>−1</sup></td><td align="center" valign="middle" >1.9836E-16</td><td align="center" valign="middle" >2.84E-17</td><td align="center" valign="middle" >2.52017E-02</td></tr><tr><td align="center" valign="middle" >10<sup>−2</sup></td><td align="center" valign="middle" >4.1631E-16</td><td align="center" valign="middle" >1.01E-16</td><td align="center" valign="middle" >9.238658E-03</td></tr><tr><td align="center" valign="middle" >10<sup>−3</sup></td><td align="center" valign="middle" >1.0646E-15</td><td align="center" valign="middle" >6.71E-16</td><td align="center" valign="middle" >8.836376E-03</td></tr></tbody></table></table-wrap><p>Example 4: Now we turn to a singular problem</p><p>[ 1 + ε d y d x d d x ] d 4 y d x 4 + 1 x y ′ + 1 x 2 y = f ( x ) ,   − 1 2 ≤ x ≤ 1 2 ,</p><p>and</p><p>f ( x ) = ε 1440 x [ 4 x ( x 2 − 1 4 ) 2 + 8 x 3 ( x 2 − 1 4 ) ] + 6 ( x 2 − 1 4 ) 2     + 8 x 2 ( x 2 − 1 4 ) + 720 x 2 − 24,</p><p>whose exact solution is</p><p>y ( x ) = 2 x 2 ( x 2 − 1 4 ) 2 .</p><p>Applying L’Hospital rule to BVP in order to remove singularity. The latter form is</p><p>[ 1 + ε d y d x d d x ] d 4 y d x 4 + p ( x ) y ″ + d ( x ) y ′ + b ( x ) y = f (x)</p><p>p ( x ) = { 0 , x ≠ 0 ; 1.5 , x = 0.     d ( x ) = { 1 / x , x ≠ 0 ; 0 , x = 0.     b ( x ) = { 1 / x 2 , x ≠ 0 ; 0 , x = 0.</p><p>The computational results are summarized in <xref ref-type="table" rid="table9">Table 9</xref>.</p><p><xref ref-type="table" rid="table1">Table 1</xref>0 exhibits a comparison between the root mean square errors at ε = 10 − 1 and N = 6 for Example 4 obtained by using Chebyshev method and Chebfun. <xref ref-type="fig" rid="fig4">Figure 4</xref> demonstrates Chebyshev approximate solution and the exact which appears to be in good agreement with each other.</p></sec><sec id="s5"><title>5. Conclusion</title><p>In this article, we present a method to approximate the solution of viscoelastic flows. The numerical method is based on the operational matrix of Chebychev polynomials. We present four examples, the first three examples are nonlinear fifth-order differential equation and fourth example is singular nonlinear. We compared the results of this algorithm with others and showed the accuracy and potential applicability of the given method. The proposed method is a powerful tool for obtaining novel numerical solutions of such equations. It is advisable to use it for other nonlinear differential equations.</p><table-wrap id="table9" ><label><xref ref-type="table" rid="table9">Table 9</xref></label><caption><title> Comparison of the root mean square errors at N = 6 for Example 4</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >ε</th><th align="center" valign="middle" >‖ E Chebyshev ‖</th></tr></thead><tr><td align="center" valign="middle" >10<sup>−1</sup></td><td align="center" valign="middle" >8.7184E-12</td></tr><tr><td align="center" valign="middle" >10<sup>−2</sup></td><td align="center" valign="middle" >2.9893E-14</td></tr><tr><td align="center" valign="middle" >10<sup>−3</sup></td><td align="center" valign="middle" >9.3948E-15</td></tr></tbody></table></table-wrap><table-wrap id="table10" ><label><xref ref-type="table" rid="table1">Table 1</xref>0</label><caption><title> Comparison of the root mean square errors at ε = 10 − 1 and N = 6 for Example 4</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Method</th><th align="center" valign="middle" >The root mean square errors</th></tr></thead><tr><td align="center" valign="middle" >Chebyshev</td><td align="center" valign="middle" >8.718E-12</td></tr><tr><td align="center" valign="middle" >Chebfun</td><td align="center" valign="middle" >11.40E-11</td></tr></tbody></table></table-wrap></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>El-Gamel, M., Mohamed, O. and El-Shamy, N. (2020) A Robust and Effective Method for Solving Two-Point BVP in Modelling Viscoelastic Flows. Applied Mathematics, 11, 23-34. https://doi.org/10.4236/am.2020.111003</p></sec></body><back><ref-list><title>References</title><ref id="scirp.97673-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Davies, A., Karageorghis, A. and Phillips, T. (1988) Spectral Galerkin Methods for the Primary Two-Point Boundary Value Problem in Modelling Viscoelastic Flows. International Journal for Numerical Methods in Engineering, 26, 647-662. https://doi.org/10.1002/nme.1620260309</mixed-citation></ref><ref id="scirp.97673-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Davies, A., Karageorghis, A. and Phillips, T. (1988) Spectral Collocation Methods for the Primary Two-Point Boundary Value Problem in Modelling Viscoelastic Flows. International Journal for Numerical Methods in Engineering, 26, 805-813. https://doi.org/10.1002/nme.1620260404</mixed-citation></ref><ref id="scirp.97673-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Attili, B. (2000) Initial Value Methods for the Primary Two Point Boundary Value Problems in Modelling Viscoelastic Flows. International Journal of Computer Mathematics, 74, 379-390. https://doi.org/10.1080/00207160008804949</mixed-citation></ref><ref id="scirp.97673-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Syam, M. and Attili, B. (2005) Numerical Solution of Singularly Perturbed Fifth Order Two Point Boundary Value Problem. Applied Mathematics and Computation, 170, 1085-1094. https://doi.org/10.1016/j.amc.2005.01.003</mixed-citation></ref><ref id="scirp.97673-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Marchal, J. and Crochet, M. (1986) Hermitian Finite Elements for Calculating Viscoelastic Flow. Journal of Non-Newtonian Fluid Mechanics, 20, 187-208. https://doi.org/10.1016/0377-0257(86)80021-0</mixed-citation></ref><ref id="scirp.97673-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Attili, S., Elgindi, M. and El-Gebeily, A. (1997) Initial Value Methods for the Eigenelements of Singular Two Point Boundary Value Problems. AJSE, 22, 67-77.</mixed-citation></ref><ref id="scirp.97673-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Attili, S. (1993) On the Numerical Implementation of the Shooting Methods to the One Dimensional Singular Boundary Value Problems. International Journal of Computer Mathematics, 47, 65-75. https://doi.org/10.1080/00207169308804163</mixed-citation></ref><ref id="scirp.97673-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Elgindi, B. and Langer, W. (1994) On the Shooting Method for a Class of Two Point Singular Nonlinear Boundary Value Problems. International Journal of Computer Mathematics, 51, 107-118. https://doi.org/10.1080/00207169408804270</mixed-citation></ref><ref id="scirp.97673-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">O’Mally, R. (1974) Introduction to Singular Perturbation. Academic Press, New York.</mixed-citation></ref><ref id="scirp.97673-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Kevorkian, J. and Cole, J. (1981) Perturbation Methods in Applied Mathematics. Springer, Berlin. https://doi.org/10.1007/978-1-4757-4213-8</mixed-citation></ref><ref id="scirp.97673-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Phillips, T. (1989) On the Potential of Spectral Methods to Solve Problems in Non-Newtonian Fluid Mechanics. Numerical Methods for Partial Differential Equations, 5, 35-43. https://doi.org/10.1002/num.1690050104</mixed-citation></ref><ref id="scirp.97673-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">El-Gamel, M. and Sameeh, M. (2013) A Chebychev Collocation Method for Solving Troesch’s Problem. International Journal of Mathematics and Computer Applications Research, 3, 23-32.</mixed-citation></ref><ref id="scirp.97673-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">El-Gamel, M. (2015) Chebychev Polynomial Solutions of Twelfth-Order Boundary-Value Problems. British Journal of Mathematics &amp; Computer Science, 6, 13-23. https://doi.org/10.9734/BJMCS/2015/8874</mixed-citation></ref><ref id="scirp.97673-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Akyuz-Dascioglu, A. and Erdik-Yaslan, H. (2011) The Solution of High-Order Nonlinear Ordinary Differential Equations by Chebyshev Series. Applied Mathematics and Computation, 217, 5658-5666. https://doi.org/10.1016/j.amc.2010.12.044</mixed-citation></ref><ref id="scirp.97673-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Akyz, A. and Sezer, M. (1999) A Chebyshev Collocation Method for the Solution of Linear Integro-Differential Equations. International Journal of Computer Mathematics, 72, 491-507. https://doi.org/10.1080/00207169908804871</mixed-citation></ref><ref id="scirp.97673-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">El-Gamel, M. and Sameeh, M. (2012) An Efficient Technique for Finding the Eigenvalues of Fourth-Order Sturm-Liouville Problems. Applied Mathematics, 3, 920-925. https://doi.org/10.4236/am.2012.38137</mixed-citation></ref><ref id="scirp.97673-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">El-Gamel, M. and Sameeh, M. (2014) Generalized Sturm-Liouville Problems and Chebychev Collocation Method. British Journal of Mathematics &amp; Computer Science, 4, 1124-1133. https://doi.org/10.9734/BJMCS/2014/7670</mixed-citation></ref><ref id="scirp.97673-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Ranjbar, M. and Aghazadeh, M. (2018) Collocation Method Based on Shifted Chebyshev and Radial Basis Functions with Symmetric Variable Shape Parameter for Solving the Parabolic Inverse Problem. Inverse Problems in Science and Engineering, 27, 369-387. https://doi.org/10.1080/17415977.2018.1462355</mixed-citation></ref><ref id="scirp.97673-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Gumgum, S., Kurul, E. and Savasaneril, N. (2018) Chebyshev Collocation Method for the Two-Dimensional Heat Equation. CMMA, 3, 1-8.</mixed-citation></ref><ref id="scirp.97673-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Agarwal, P. and El-Sayed, A. (2018) Non-Standard Finite Difference and Chebyshev Collocation Methods for Solving Fractional Diffusion Equation. Physica A, 500, 40-49. https://doi.org/10.1016/j.physa.2018.02.014</mixed-citation></ref><ref id="scirp.97673-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Ghimire, B., Lamichhane, A., et al. (2020) Hybrid Chebyshev Polynomial Scheme for Solving Elliptic Partial Differential Equations. Journal of Computational and Applied Mathematics, 364, 1123. https://doi.org/10.1016/j.cam.2019.06.040</mixed-citation></ref><ref id="scirp.97673-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Sakran, M. (2019) Numerical Solutions of Integral and Integro-Differential Equations Using Chebyshev Polynomials of the Third Kind. Applied Mathematics and Computation, 351, 66-82. https://doi.org/10.1016/j.amc.2019.01.030</mixed-citation></ref><ref id="scirp.97673-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Lee, K. (2020) Chebyshev Collocation Method for the Constant Mobility Cahn-Hilliard Equation in a Square Domain. Applied Mathematics and Computation, 370, Article ID: 124931. https://doi.org/10.1016/j.amc.2019.124931</mixed-citation></ref><ref id="scirp.97673-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Sharma, B., Kumar, S., Paswan, M. and Mahato, D. (2019) Chebyshev Operational Matrix Method for Lane-Emden Problem. Nonlinear Engineering, 8, 1-9. https://doi.org/10.1515/nleng-2017-0157</mixed-citation></ref><ref id="scirp.97673-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">El-Gamel, M. (2014) Numerical Comparison of Sinc-Collocation and Chebychev-Collocation Methods for Determining the Eigenvalues of Sturm-Liouville Problems with Parameter-Dependent Boundary Conditions. SeMA Journal, 66, 29-42. https://doi.org/10.1007/s40324-014-0022-9</mixed-citation></ref><ref id="scirp.97673-ref26"><label>26</label><mixed-citation publication-type="other" xlink:type="simple">Mason, J. and Handscom, D. (2003) Chebyshev Polynomials. CRC Press, Boca Raton. https://doi.org/10.1201/9781420036114</mixed-citation></ref></ref-list></back></article>