Research article

A nonstandard compact finite difference method for a truncated Bratu–Picard model

  • Received: 04 May 2024 Revised: 30 July 2024 Accepted: 09 August 2024 Published: 24 September 2024
  • MSC : 34B15, 26E35, 34A34, 65L12

  • In this paper, we used the nonstandard compact finite difference method to numerically solve one-dimensional truncated Bratu-Picard equations and discussed the convergence analysis of the proposed method. Depending on the parameters in the mentioned equation, it may have no solution, one solution, or two solutions; also, it may have infinitely many solutions. The numerical results show that our method covers all mentioned aspects depending on the parameters in the equation.

    Citation: Maryam Arabameri, Raziyeh Gharechahi, Taher A. Nofal, Hijaz Ahmad. A nonstandard compact finite difference method for a truncated Bratu–Picard model[J]. AIMS Mathematics, 2024, 9(10): 27557-27576. doi: 10.3934/math.20241338

    Related Papers:

    [1] Fawaz K. Alalhareth, Seham M. Al-Mekhlafi, Ahmed Boudaoui, Noura Laksaci, Mohammed H. Alharbi . Numerical treatment for a novel crossover mathematical model of the COVID-19 epidemic. AIMS Mathematics, 2024, 9(3): 5376-5393. doi: 10.3934/math.2024259
    [2] Xhevat Z. Krasniqi . Approximation of functions in a certain Banach space by some generalized singular integrals. AIMS Mathematics, 2024, 9(2): 3386-3398. doi: 10.3934/math.2024166
    [3] Ram Kishun Lodhi, Saud Fahad Aldosary, Kottakkaran Sooppy Nisar, Ateq Alsaadi . Numerical solution of non-linear Bratu-type boundary value problems via quintic B-spline collocation method. AIMS Mathematics, 2022, 7(4): 7257-7273. doi: 10.3934/math.2022405
    [4] Mehmet Kocabiyik, Mevlüde Yakit Ongun . Construction a distributed order smoking model and its nonstandard finite difference discretization. AIMS Mathematics, 2022, 7(3): 4636-4654. doi: 10.3934/math.2022258
    [5] Eunjung Lee, Dojin Kim . Stability analysis of the implicit finite difference schemes for nonlinear Schrödinger equation. AIMS Mathematics, 2022, 7(9): 16349-16365. doi: 10.3934/math.2022893
    [6] Rahim ud Din, Kamal Shah, Manar A. Alqudah, Thabet Abdeljawad, Fahd Jarad . Mathematical study of SIR epidemic model under convex incidence rate. AIMS Mathematics, 2020, 5(6): 7548-7561. doi: 10.3934/math.2020483
    [7] Agus Suryanto, Isnani Darti . On the nonstandard numerical discretization of SIR epidemic model with a saturated incidence rate and vaccination. AIMS Mathematics, 2021, 6(1): 141-155. doi: 10.3934/math.2021010
    [8] Shu-Xin Miao, Xiang-Tuan Xiong, Jin Wen . On Picard-SHSS iteration method for absolute value equation. AIMS Mathematics, 2021, 6(2): 1743-1753. doi: 10.3934/math.2021104
    [9] Peter Romeo Nyarko, Martin Anokye . Mathematical modeling and numerical simulation of a multiscale cancer invasion of host tissue. AIMS Mathematics, 2020, 5(4): 3111-3124. doi: 10.3934/math.2020200
    [10] Jianping Lv, Chunguang Li, Jianqiang Dong . A high accuracy compact difference scheme and numerical simulation for a type of diffusive plant-water model in an arid flat environment. AIMS Mathematics, 2024, 9(2): 3836-3849. doi: 10.3934/math.2024189
  • In this paper, we used the nonstandard compact finite difference method to numerically solve one-dimensional truncated Bratu-Picard equations and discussed the convergence analysis of the proposed method. Depending on the parameters in the mentioned equation, it may have no solution, one solution, or two solutions; also, it may have infinitely many solutions. The numerical results show that our method covers all mentioned aspects depending on the parameters in the equation.



    This paper considers the truncated BratuPicard (tBP) model in a one-dimensional case as follows:

    {u(x)+λMi=0(u(x))nn!=0,x[0,1],MN{0}u(0)=u(1)=0. (1.1)

    In Model (1.1), if we consider M= and λ>0, then, the classical Bratu model will be obtained where its exact solution is known. This case has many applications in science and engineering. The Bratu type equation is also used in a large variety of applied fields, such as modeling thermal reaction processes in combustible non-deformable materials, including the solid fuel ignition model, the electrospinning process for the production of ultra-fine polymer fibers, modeling some chemical reaction-diffusion, questions in geometry and relativity about the Chandrasekhar model, radiative heat transfer, and nanotechnology [1,2,3,4,5,6,7,8,9]. Several numerical methods have been developed to approximate the solution of the Bratu equation [10,11,12,13,14]. Most existing methods yield one of the two solutions to the equation (the lower solution), for example, a Laplace transform decomposition algorithm [15], the direct shooting and Lie-group shooting methods [16], the perturbation iterations, parameter perturbations, splines methods [17], finite difference methods, and multigrid methods [18]. The lower and upper solutions in the case of multiple solutions are obtained using Boyd's approach [19]. In [1], Mickens' nonstandard finite difference method (NSFD) has been used to solve the BratuGelfand equation, and a comparison with the standard finite difference method has shown that the results of the NSFD method are more accurate. Also, the NSFD scheme converges to both lower and upper solutions. Buckmire [1] applied Mickens' nonstandard finite difference method (NSFD) and compared the performances of the Adomian decomposition method, Boyd's pseudospectral method, the nonlinear shooting method, standard finite difference (SFD), and NSFD methods. Buckmire reported that the NSFD method may converge to both solutions (the lower and the upper one) and is more accurate than SFD. A smart NSFD scheme for the second-order nonlinear boundary value problem has been discussed in Erdogan [20]. A more general compact exponentially fitted method is used in [21] and SFD and NSFD approaches are considered as special cases. Recently, a numerical method has been presented to solve the Bratu-type equation based on the compact finite difference method (CFD) [22]; this method converges to lower and upper solutions and is more accurate than the finite difference approach.

    In this paper, we intend to present the nonstandard compact finite difference method (NSCFD) to study the tBP model. Most previous articles considered only positive solutions but we obtained all smooth solutions using our proposed method, where some of them are periodic and others are semi-periodic. We also show theoretically and numerically that there exists a unique solution for λ0. We observe that NSFD has a similar simplicity as an SFD approximation but it is slightly more accurate, in most cases. In addition, the NSFD method preserves some qualitative features of the continuous-time model such as boundedness and positivity. The most important weakness of the used method is that there is no specific method to find the best denominator function in the nonstandard finite difference method.

    We organize the rest of the article as follows: In Section 2, we describe the solutions in different cases of the tBP model. In Section 3, the NSCFD method is presented for solving the tBP model. In Section 4, the convergence analysis of the NSCFD method is investigated. In Section 5, the numerical results obtained by the methods of this study are presented. Finally, the conclusion is drawn in Section 6.

    As we know, in Eq (1.1), MN{0}. We treat the cases of M=0, M=1, and M= separately.

    For the other values of M, we consider the following two subsets of N.

    {N2:={2,4,6,8,...}N3:={3,5,7,9,...}.

    In the following section, we describe the behaviors of five different states separately.

    In this case, we have the following model [23]:

    u(x)+λ=0. (2.1)

    The exact solution of this case can be obtained directly,

    u0λ(x)=λ2x(1x). (2.2)

    Also, the maximum value of the solution is:

    u0λ=|λ|8.

    For this case, Eq (1.1) is converted to [24]:

    u(x)+λ(1+u(x))=0. (2.3)

    Based on the value of λ, the solution of Model (1.1) is as follows:

    (1) If λ=0, the equation has only trivial solution uxλ=0.

    (2) If λ<0, we have the following solution:

    u(x)=u0λ(x)=1+1eλeλ[(1eλ)eλx+(eλ1)eλx]. (2.4)

    As λ, the solution has a horizontal asymptote, u1λ1.\\ (3) For λ>0, λ(mπ)2, the following solution is obtained:

    u(x)=u1λ(x)=1+cos(λx)+1cos(λ)sin(λ)sin(λx). (2.5)

    But for λ=(mπ)2, (m{2,4,6,...}), two cases are distinguished. For λ=(mπ)2, (m{2,4,6,...}), Eq (1.1) has many solutions in the following form:

    u1λ(x)=sin(mπx), (2.6)

    and for λ=(mπ)2, (m{3,5,7,...}), there is no continuous solution for Eq (1.1).

    In this case, Eq (1.1) is converted to the GelfandBratu equation in standard form [23]:

    {u(x)+λeu(x)=0,x[0,1],λR,u(0)=u(1)=0. (2.7)

    We have the following two cases based on the value of λ:

    (1) The exact solution for λ>0 has the following form:

    {u(x)=uλ(x)=2ln[cosh((x12)θ2)cosh(θ4)],θ=2λcosh(θ4). (2.8)

    Equation (2.7) has two solutions for 0<λ<λc, one solution for λ=λc, and no solutions for λ>λc. From the relation 1=142λcsinh(θ4), the critical value of λc is obtained as λc3.513830719.

    Also, the exact solution of (2.8) is symmetric around x=12.

    (2) The exact solution for λ<0 is unique and has the following form:

    {u(x)=uλ(x)=2ln[cos((x12)θ2)cos(θ4)],θ=2λcos(θ4). (2.9)

    For example, we consider the case of M=2 and we have the following equation [23]:

    u(x)+λ(1+u(x)+12u(x)2)=0. (2.10)

    Model (2.10) has two solutions for 0<λ<λc, one solution for λ=λc, and no solution for λ>λc, which λc3.96. For λ<0, there is a unique solution. Also, a similar result can be obtained for the other values in N2.

    For example, we consider the case of M=3 and M=5, and we obtain the following equations [23]:

    u(x)+λ(1+u(x)+12u(x)2+16u(x)3)=0, (2.11)
    u(x)+λ(1+u(x)+12u(x)2+16u(x)3+124u(x)4+1120u(x)5)=0. (2.12)

    Equations (2.11) and (2.12) have infinitely many solutions for λ>0 and a unique solution for λ<0.

    In this section, we use the CFD and NSCFD methods to approximate the solutions of the truncated BratuPicard Problem (1.1). To compute the numerical solution, we first subdivide the range of [0,1] into N subintervals of width h=1N, thus node points xj=jh, j=0,1,...,N, are obtained. Consider the following notations:

    uiu(xi),uiu(xi),uiu(xi).

    For the second derivative, we have the following compact finite difference scheme [24]:

    {14u15u2+4u3u4=12h2(u02u1+u2),ui1+10ui+ui+1=12h2(ui12ui+ui+1),i=1,...,N1,uN4+4uN35uN2+14uN1=12h2(uN22uN1+uN). (3.1)

    The truncation error for System (3.1) is O(h4) and the matrix form of (3.1) is as follows:

    A2U=1h2B2U,

    where

    A2=(1454100110100001101000001101000110100014514)(N1)×(N1),
    B2=(2412000122412000001224120001224)(N1)×(N1), (3.2)
    U=[u1,u2,...,uN1]T and U=[u1,u2,...,uN1]T.

    From Eq (1.1), we have ui=λMn=0(ui)nn!, i=1,...,N1. By inserting this relation into System (3.1), the following nonlinear system is obtained:

    {λ(14Mn=0(u1)nn!5Mn=0(u2)nn!+4Mn=0(u3)nn!Mn=0(u4)nn!)=12h2(u02u1+u2),λ(Mn=0(ui1)nn!+10Mn=0(ui)nn!+Mn=0(ui+1)nn!)=12h2(ui12ui+ui+1),i=1,...,N1,λ(Mn=0(uN4)nn!+4Mn=0(uN3)nn!5Mn=0(uN2)nn!+14Mn=0(uN1)nn!)=12h2(uN22uN1+uN). (3.3)

    The nonstandard finite-difference scheme (NSFD) is well-developed by Mickens [25,26]. It has many advantages that have been shown by many researchers [20,21,27]. One of the critical points in NSFD schemes is that the second derivative can be approximated by the following general form:

    u(xj)uj12uj+uj+1ϕ(h),j=1,...,N1, (3.4)

    instead of the following standard form approximation:

    u(xj)uj12uj+uj+1h2,j=1,...,N1,

    where the function ϕ(h) satisfies:

    ϕ(h)=h2+O(h4). (3.5)

    In fact, as h0, the standard finite difference and nonstandard finite difference schemes are identical.

    For obtaining the nonstandard compact finite difference method, we replace the function h2 in System (3.1) with the nonlinear function ϕ(h)=2ln(cosh(h)) such that it satisfies Property (3.5).

    Therefore, we have the following relations:

    {14u15u2+4u3u4=122ln(cosh(h))(u02u1+u2),ui1+10ui+ui+1=122ln(cosh(h))(ui12ui+ui+1),i=1,...,N1,uN4+4uN35uN2+14uN1=122ln(cosh(h))(uN22uN1+uN). (3.6)

    The matrix form of (3.6) is as follows:

    A2U=12ln(cosh(h))B2U,

    where matrices A and B have been defined in Relation (3.2).

    By inserting the Relation ui=λMn=0(ui)nn!, i=1,...,N1, in System (3.6), the following nonlinear system is obtained:

    {λ(14Mn=0(u1)nn!5Mn=0(u2)nn!+4Mn=0(u3)nn!Mn=0(u4)nn!)=122ln(cosh(h))(u02u1+u2),λ(Mn=0(ui1)nn!+10Mn=0(ui)nn!+Mn=0(ui+1)nn!)=122ln(cosh(h))(ui12ui+ui+1),i=1,...,N1,λ(Mn=0(uN4)nn!+4Mn=0(uN3)nn!5Mn=0(uN2)nn!+14Mn=0(uN1)nn!)=122ln(cosh(h))(uN22uN1+uN). (3.7)

    By solving the nonlinear System (3.7), the numerical solution of Model (1.1) is obtained.

    Algorithm 1 shows the steps of solving Eq (1.1) using the NSCFD method.

    Algorithm 1. NSCFD algorithm for solving Model (1.1).
    Step 1: Input λ and NN.
    Step 2: Calculate h=1N.
    Step 3: Insert u(0)=0 and u(N)=0.
    Step 4: Construct A2 and B2 matrices using Eq (3.2).
    Step 5: Construct U2 matrices using equation ({(U2)i}N1i=1=2λln(cosh(h))eui).
    Step 6: Construct U1 matrices using equation ({(U1)i}N1i=1=ui).
    Step 7: Insert L=A2U2 and R=B2U1.
    Step 8: Use step 7 for solving system ({eqi=LiRi}N1i=1).

    In this section, we discuss the issue of convergence. For this purpose, let ˉU=[u(x1),...,u(xN1)]T be the vector of the exact solution. Also, consider, U=[u1,...,uN1]T as the vector of the numerical solution. Moreover, consider . as . and E=ˉUU.

    Lemma 4.1. Let T=[t1,...,tN1]T be the vector of the local truncation error to (3.6). Then, we have

    T=O(h4). (4.1)

    Proof. For i=2,...,N2, the local truncation error is obtained as:

    ti=(2ln(cosh(h)))(u(xi1)+10u(xi)+u(xi+1))12(u(xi1)2u(xi)+u(xi+1)). (4.2)

    By using the Taylor expansion, it can be written as

    {u(xi+1)=u(xi)+h1!u(xi)+h22!u(xi)+...+h66!u(6)(xi)+O(h7),u(xi1)=u(xi)h1!u(xi)+h22!u(xi)...+h66!u(6)(xi)+O(h7),u(xi+1)=u(xi)+h1!u(xi)+h22!u(4)(xi)+...+h44!u(6)(xi)+O(h5),u(xi1)=u(xi)h1!u(xi)+h22!u(4)(xi)...+h44!u(6)(xi)+O(h5),2ln(cosh(h))=h216h4+245h6+O(h8). (4.3)

    By replacing Relation (4.3) in Eq (4.2), we have

    ti=2h4u(xi)+O(h6),i=2,...,N2. (4.4)

    Similarly, for i=1 and i=N1, we have

    {t1=2h4u(x1)+O(h6),tN1=2h4u(xN1)+O(h6). (4.5)

    Therefore, we have

    T=O(h4).

    Theorem 4.2. Let ˉU=[u(x1),...,u(xN1)]T be the vectors to the exact solution of the boundary-value Problem (1.1), U=[u1,...,uN1]T be the obtained numerical solution by solving the nonlinear System (3.7), and E=ˉUU. Then, provided M=, and\\

    λh2(116h2+245h4)B12A2J1,

    we have

    EO(h2). (4.6)

    Proof. By replacing Taylor expansion 2ln(cosh(h))=h216h4+245h6+O(h8) with the matrix form of Eq (3.6), we can write

    B2Uh2(116h2+245h4)A2U=0. (4.7)

    By replacing Relation U=λeU in Eq (4.7), we have

    B2U+λh2(116h2+245h4)A2eU=0. (4.8)

    For the exact solution, we have

    B2ˉU+λh2(116h2+245h4)A2eˉU=T, (4.9)

    where T=O(h4) is the local truncation error of (3.6). By using Relations (4.8) and (4.9), we have

    B2(ˉUU)+λh2(116h2+245h4)A2(eˉUeU)=T,
    (B2+λh2(116h2+245h4)A2J)E=T, (4.10)

    where E=ˉUU, eˉUeU=JE+O(h2), J=diag{eu(x)x:x=xi,i=1,...,N1} is a diagonal matrix of order N1, and T=O(h4). Because the matrix B2 is invertible, Relation (4.10) can be written as follows:

    (I+λh2(116h2+245h4)B12A2J)E=B12T.

    Now if λh2(116h2+245h4)B12A2J1, then

    (I+λh2(116h2+245h4)B12A2J)

    is invertible and we have

    E=(I+λh2(116h2+245h4)B12A2J)1B12T.

    Thus,

    E(I+λh2(116h2+245h4)B12A2J)1B12T. (4.11)

    By using the geometric series theorem, it follows that

    EB12T1λh2(116h2+245h4)B12A2J,
    EB12T1λh2B12A2JO(h4)O(h2)O(h2). (4.12)

    Therefore, we have

    EO(h2).

    In this section, we apply the presented numerical method for the numerical solution of Model (1.1) and obtain the solutions for different values of λ and M. To solve the nonlinear System (3.7), we use a simple approach similar to that used by Boyd [19]. We consider u0(x)=Asin(kπx) as an initial guess because it satisfies the boundary conditions.

    The values of parameters A and k depend on M and λ. Specially, in the case of λ>0, we need the condition A<umax to obtain the lower solutions, and also, we need A>umax to obtain the upper solutions, where umax is an approximation for the maximum value of the solution.

    For M=3, we consider A=9 and k=2 for the first periodic solution. Also, for the case of M=5, we consider A=13 and k=3 for the first semi-periodic solution.

    We use Maple 17 for obtaining numerical results and the fsolve command to solve the nonlinear system of equations. We test three cases, obtain the numerical results in each case, and show the problem behavior in all cases with a diagram. Also, the convergence order of the proposed method is calculated using the following formula:

    Order=log(Enew)log(Eold)log(ϕ(hnew))log(ϕ(hold)), (5.1)

    where Enew and Eold are the maximum absolute errors corresponding to the new mesh size (hnew) and old mesh size (hold), respectively. Also, we report the central processing unit (CPU) time for our numerical results.

    In this section, the upper and lower numerical solutions of the nonlinear System (3.7) for λ=1,0.0001, 0.001,0.01,0.1,1,2,3,3.51 and N=5,11,21,41,81,161,321 are compared with the exact solution of the problem and the maximum error is obtained. The results are shown in Tables 19. The bifurcated nature of the computed solution for different values of λ has been plotted in Figure 1. In Table 10, we compare the upper solutions of the CFD method with the NSCFD method for λ=1 and N=11,21,41,81,161. Also, in Table 11, we compare the lower solutions of the CFD method with the NSCFD method for λ=2 and N=11,21,41,81,161.

    Table 1.  CPU time, maximum error, and computational convergence order of upper and lower solutions for λ=1 and M=.
    N Lower solution CPU time (s) Order Upper solution CPU time (s) Order
    5 5.362×104 2.031250 - 1.257×101 2.109375 -
    11 1.086×104 2.0468750 0.9933 2.491×103 2.093750 2.4949
    21 2.999×105 2.031250 0.9944 6.504×104 2.093750 1.0391
    41 7.886×106 2.500000 0.9984 1.600×104 2.562500 1.0482
    81 2.021×106 5.656250 0.9995 4.043×105 5.484375 1.0102
    161 5.117×107 29.203125 0.9913 1.019×105 29.109375 0.9941
    321 1.287×107 216.203125 1.0086 2.563×106 214.906250 1.0091

     | Show Table
    DownLoad: CSV
    Table 2.  CPU time, maximum error, and computational convergence order of upper and lower solutions for λ=2 and M=.
    N Lower solution CPU time (s) Order Upper solution CPU time (s) Order
    5 3.283×103 2.140625 - 1.091×101 1.953125 -
    11 6.155×104 1.906250 1.0651 1.776×103 2.031250 2.6200
    21 1.706×104 2.062500 0.9929 7.389×104 2.093750 0.6786
    41 4.492×105 2.531250 0.9974 1.924×104 2.640625 1.0058
    81 1.151×105 5.437500 0.9999 4.922×105 7.093750 1.0011
    161 2.916×106 29.531250 0.9904 1.245×105 41.968750 0.9915
    321 7.336×107 209.484375 1.0089 3.133×106 314.890625 1.0087

     | Show Table
    DownLoad: CSV
    Table 3.  CPU time, maximum error, and computational convergence order of upper and lower solutions for λ=3 and M=.
    N Lower solution CPU time (s) Order Upper solution CPU time (s) Order
    5 1.319×102 1.953125 - 1.029×101 1.968750 -
    11 1.831×103 1.968750 1.2563 2.780×103 1.875000 2.2977
    21 5.170×104 2.093750 0.9785 1.077×103 2.093750 0.7338
    41 1.365×104 2.453125 0.9954 2.868×104 2.625000 0.9890
    81 3.504×105 5.890625 0.9986 7.366×105 7.765625 0.9982
    161 8.874×106 32.640625 0.9906 1.865×105 45.921875 0.9908
    321 2.232×106 245.281250 1.0001 4.693×106 347.578125 1.0087

     | Show Table
    DownLoad: CSV
    Table 4.  CPU time, maximum error, and computational convergence order of upper and lower solutions for λ=3.51 and M=.
    N Lower solution CPU time (s) Order Upper solution CPU time (s) Order
    5 1.393×101 1.984375 - 2.206×101 1.937500 -
    11 2.422×102 1.968750 1.1131 2.523×102 2.031250 1.3796
    21 8.419×103 2.171875 0.8177 8.978×103 2.171875 0.7995
    41 2.365×103 2.796875 0.9490 2.516×103 3.171875 0.9508
    81 6.175×104 8.046875 0.9861 6.565×104 9.875000 0.9866
    161 1.570×104 49.937500 0.9967 1.669×104 63.640625 0.9968
    321 3.956×105 387.000000 0.9988 4.205×105 491.171875 0.9988

     | Show Table
    DownLoad: CSV
    Table 5.  CPU time, maximum error, and computational convergence order of upper and lower solutions for λ=0.1 and M=.
    N Lower solution CPU time (s) Order Upper solution CPU time (s) Order
    5 8.084×105 1.984375 - 2.297×101 1.984375 -
    11 1.740×105 1.937500 0.9773 8.254×103 1.984375 2.1162
    21 4.810×106 2.000000 0.9949 8.191×104 1.984375 1.7877
    41 1.264×106 2.515625 0.9989 1.543×104 2.390625 1.2477
    81 3.242×107 4.750000 0.9992 3.471×105 5.453125 1.0956
    161 8.208×108 24.062500 0.9998 8.459×106 28.250000 1.0275
    321 2.064×108 176.406250 1.0002 2.106×106 211.125000 1.0074

     | Show Table
    DownLoad: CSV
    Table 6.  CPU time, maximum error, and computational convergence of upper and lower solutions for λ=0.01 and M=.
    N Lower solution CPU time (s) Order Upper solution CPU time (s) Order
    5 7.932×106 2.015625 - 4.404×101 2.000000 -
    11 1.707×106 2.046875 0.9774 1.118×102 1.906250 2.3369
    21 4.720×107 2.125000 0.9947 1.341×103 2.062500 1.6410
    41 1.240×107 2.218750 0.9991 2.033×104 2.484375 1.4101
    81 3.181×108 4.281250 0.9991 3.655×105 5.421875 1.2602
    161 8.053×109 19.796875 0.9998 8.152×106 28.484375 1.0920
    321 2.026×109 142.578125 0.9998 1.979×106 211.328125 1.0257

     | Show Table
    DownLoad: CSV
    Table 7.  CPU time, maximum error, and computational convergence order of upper and lower solutions for λ=0.001 and M=.
    N Lower solution CPU time (s) Order Upper solution CPU time (s) Order
    5 7.917×107 1.968750 - 7.264×101 1.937500 -
    11 1.704×107 2.015625 0.9773 2.963×102 1.984375 2.0356
    21 4.71×108 2.031250 0.9950 2.619×103 2.031250 1.8773
    41 1.238×108 2.328125 0.9987 3.083×104 2.281250 1.5992
    81 3.175×109 4.375000 0.9993 4.352×105 4.687500 1.4378
    161 8.038×1010 21.484375 0.9998 8.392×106 23.718750 1.1979
    321 2.022×1010 143.531250 0.9999 1.938×106 175.093750 1.0619

     | Show Table
    DownLoad: CSV
    Table 8.  CPU time, maximum error, and computational convergence order of upper and lower solutions for λ=0.0001 and M=.
    N Lower solution CPU time (s) Order Upper solution CPU time (s) Order
    5 7.915×108 1.875000 - 1.059 1.968750 -
    11 1.703×108 1.968750 0.9775 8.924×102 1.921875 1.5739
    21 4.710×109 1.968750 0.9946 4.568×103 2.031250 2.3000
    41 1.238×109 2.296875 0.9987 4.799×104 2.312500 1.6842
    81 3.174×1010 4.093750 0.9995 5.663×105 4.703125 1.5694
    161 8.037×1011 19.281250 0.9997 9.132×106 23.640625 1.3281
    321 2.021×1011 139.953125 1.0002 1.951×106 174.062500 1.1183

     | Show Table
    DownLoad: CSV
    Table 9.  CPU time, maximum error, and computational convergence order of solutions for λ=1 and M=.
    N Max Error CPU time (s) Order
    5 6.713×104 2.000000 -
    11 1.417×104 1.984375 0.9897
    21 3.914×105 1.968750 0.9955
    41 1.029×105 2.046875 0.9986
    81 2.638×106 2.046875 0.9996
    161 6.678×107 2.359375 0.9999
    321 1.680×107 2.812500 0.9999

     | Show Table
    DownLoad: CSV
    Figure 1.  The bifurcated nature of the computed solution to Bratu's problem for λ(0,4) and M=.
    Table 10.  Comparison between upper solutions of SFD and NSFD for λ=1 and M=.
    N CFD (3.3) SFD [23] N NSCFD (4.5) NSFD [23]
    11 2.342×102 2.798×102 11 2.491×103 2.623×102
    21 6.175×103 6.840×103 21 6.504×104 6.470×103
    41 1.622×103 1.700×103 41 1.600×104 1.600×103
    81 4.144×104 4.251×104 81 4.043×105 4.009×104
    161 1.049×104 1.062×104 161 1.019×105 1.001×104

     | Show Table
    DownLoad: CSV
    Table 11.  Comparison between lower solutions of SFD and NSFD for λ=1 and M=.
    N CFD (3.3) SFD [23] N NSCFD (3.7) NSFD [23]
    11 1.168×104 1.427×104 11 1.086×104 1.223×104
    21 3.221×105 3.560×105 21 2.999×105 3.071×105
    41 8.461×106 8.898×106 41 7.886×106 7.683×106
    81 2.168×106 2.226×106 81 2.0216×106 1.919×106
    161 5.489×107 5.591×107 161 5.117×107 4.773×107

     | Show Table
    DownLoad: CSV

    In this part, we consider Example (2.3) in Section 2 and obtain numerical results using System (3.7). Figure 2 shows the numerical solutions for λ=1, λ=1, and λ=4π2 in this case.

    Figure 2.  The numerical solutions for λ=1 and M=1 (upper left frame), the numerical solutions for λ=1 and M=1 (upper right frame), and the numerical solutions for λ=4π2 and M=1 (lower frame).

    In this part, we consider Example (2.10) in Section 2 and obtain numerical results using System (3.7). Figure 3 shows the upper and lower solutions for λ=1 in this case. The bifurcation behavior of the upper and lower solutions for the positive λ is shown in Figure 4.

    Figure 3.  The upper and lower solutions for λ=1 and M=2.
    Figure 4.  The bifurcation behavior solutions for λ(0,4) and M=2.

    In this section, we consider Examples (2.11) and (2.12) in Section 2 and obtain numerical results using System (3.7). In this case, there are an infinite number of solutions. Figure 5 shows five semi-periodic solutions for M=3 and λ=1. Figure 6 shows numerical solutions for M=3 and λ=1. Figure 7 shows the convergence behavior of the solutions using the NSCFD method for M=3 and M=5. Figure 8 shows seven periodic solutions for M=5 and λ=1. Finally, Figure 9 shows numerical solutions for M=5 and λ=1.

    Figure 5.  Five semi-periodic solutions for M=3 and λ=1.
    Figure 6.  The numerical solutions for M=3 and λ=1.
    Figure 7.  (a): Convergence behavior of the solutions using the NSCFD method for the first periodic solution for M=3, (b): a close-up view near the maximum for M=3, (c): convergence behavior for the first semi-periodic solution for M=5, and (d): a close-up view near the minimum for M=5.
    Figure 8.  Seven periodic solutions for M=5 and λ=1.
    Figure 9.  The numerical solutions for M=5 and λ=1.

    In this paper, we obtained numerical solutions for the truncated BratuPicard model using the nonstandard compact finite difference method. The solutions are presented for different values of λ and M, and the graph of each case is plotted. Numerical results showed the existence of two, one, and zero solutions for λ>0 and MN2, which is similar to the M= case. In Figures 4 and 6, we showed that there are infinite numbers of solutions for the M=3 and M=5 cases. These solutions are either periodic or semi-periodic. Finally, we presented the bifurcating nature of Model (1.1) for each case. Previous articles considered only positive solutions but we obtained all smooth solutions using our proposed method, where some of them are periodic and others are semi-periodic. We also show theoretically and numerically that there exists a unique solution for λ0. We observe that NSFD has a similar simplicity as an SFD approximation but it is slightly more accurate, in most cases. In addition, the NSFD method preserves some qualitative features of the continuous-time model such as boundedness and positivity.

    The most important weakness of the used method is that there is no specific method to find the best denominator function in the nonstandard finite difference method. Also, the most important disadvantage of the compact finite difference formulation is that compact schemes are implicit and require solving a matrix system for the evaluation of solutions or derivatives at the grid points. But, we accept this limitation of the compact finite difference approach due to its excellent stability properties. We intend to use the proposed method for solving the fractional order version of Model (1.1) in the future.

    All authors of this article have been contributed equally. All authors have read and approved the final version of the manuscript for publication.

    The authors extend their appreciation to Taif University, Saudi Arabia, for supporting this work through project number (TU-DSPP-2024-46).

    The authors declare no conflicts of interest.



    [1] R. Buckmire, Application of a Mickens finite-difference scheme to the cylindrical Bratu-Gelfand problem, Numer. Methods Partial Differ. Equ., 20 (2004), 327–337. https://doi.org/10.1002/num.10093 doi: 10.1002/num.10093
    [2] J. S. McGough, Numerical continuation and the Gelfand problem, Appl. Math. Comput., 89 (1998), 225–239. https://doi.org/10.1016/S0096-3003(97)81660-8 doi: 10.1016/S0096-3003(97)81660-8
    [3] H. Ahmad, R. Nawaz, F. Zia, M. Farooq, B. Almohsen, Application of novel method to withdrawal of thin film flow of a magnetohydrodynamic third grade fluid, Ain Shams Eng. J., 14 (2024), 102885. https://doi.org/10.1016/j.asej.2024.102885 doi: 10.1016/j.asej.2024.102885
    [4] M. I. Syam, A. Hamdan, An efficient method for solving Bratu equations, Appl. Math. Comput., 176 (2006), 704–713. https://doi.org/10.1016/j.amc.2005.10.021 doi: 10.1016/j.amc.2005.10.021
    [5] A. Akgul, H. Ahmad, Reproducing kernel method for Fangzhu's oscillator for water collection from air, Math. Methods Appl. Sci., 2020. https://doi.org/10.1002/mma.6853
    [6] A. M. Wazwaz, Adomian decomposition method for a reliable treatment of the Bratu-type equations, Appl. Math. Comput., 166 (2005), 652–663. https://doi.org/10.1016/j.amc.2004.06.059 doi: 10.1016/j.amc.2004.06.059
    [7] J. H. He, Some asymptotic methods for strongly nonlinear equations, Int. J. Mod. Phys. B, 20 (2006), 1141–1199. https://doi.org/10.1142/S0217979206033796 doi: 10.1142/S0217979206033796
    [8] J. H. He, Variational approach to the Bratu's problem, J. Phys. Conf. Ser., 96 (2008), 012087. https://doi.org/10.1088/1742-6596/96/1/012087 doi: 10.1088/1742-6596/96/1/012087
    [9] S. Liao, Y. Tan, A general approach to obtain series solutions of nonlinear differential equations, Stud. Appl. Math., 119 (2007), 297–354. https://doi.org/10.1111/j.1467-9590.2007.00387.x doi: 10.1111/j.1467-9590.2007.00387.x
    [10] M. Abdelhakem, H. Moussa, Pseudo-spectral matrices as a numerical tool for dealing BVPs, based on Legendre polynomials' derivatives, Alex. Eng. J., 66 (2023), 301–313. https://doi.org/10.1016/j.aej.2022.11.006 doi: 10.1016/j.aej.2022.11.006
    [11] M. Abdelhakem, D. Baleanu, P. Agarwal, H. Moussa, Approximating system of ordinary differential-algebraic equations via derivative of Legendre polynomials operational matrices, Int. J. Mod. Phys. C, 34 (2023), 2350036. https://doi.org/10.1142/S0129183123500365 doi: 10.1142/S0129183123500365
    [12] M. Abdelhakem, M. Fawzy, M. El-Kady, H. Moussa, An efficient technique for approximated BVPs via the second derivative Legendre polynomials pseudo-Galerkin method: certain types of applications, Results Phys., 43 (2022), 106067. https://doi.org/10.1016/j.rinp.2022.106067 doi: 10.1016/j.rinp.2022.106067
    [13] A. J. Ali, A. F. Abbas, M. A. Abdelhakem, Comparative analysis of Adams-Bashforth-Moulton and Runge-Kutta methods for solving ordinary differential equations using MATLAB, Math. Model. Eng. Probl., 11 (2024), 641–647. http://doi.org/10.18280/mmep.110307 doi: 10.18280/mmep.110307
    [14] M. Abdelhakem, Y. H. Youssri, Two spectral legendre's derivative algorithms for Lane-Emden, Bratu equations, and singular perturbed problems, Appl. Numer. Math., 169 (2021), 243–255. https://doi.org/10.1016/j.apnum.2021.07.006 doi: 10.1016/j.apnum.2021.07.006
    [15] S. A. Khuri, A new approach to Bratu's problem, Appl. Math. Comput., 147 (2004), 131–136. https://doi.org/10.1016/S0096-3003(02)00656-2 doi: 10.1016/S0096-3003(02)00656-2
    [16] S. Abbasbandy, M. S. Hashemi, C. S. Liu, The Lie-group shooting method for solving the Bratu equation, Commun. nonlinear Sci. Numer. Simul., 16 (2011), 4238–4249. https://doi.org/10.1016/j.cnsns.2011.03.033 doi: 10.1016/j.cnsns.2011.03.033
    [17] P. Korman, Y. Li, T. Ouyang, Exact multiplicity results for boundary value problems with nonlinearities generalizing cubic, Proc. Roy. Soc. Edinb.: Sec. A Math., 126 (1996), 599–616. https://doi.org/10.1017/S0308210500022927 doi: 10.1017/S0308210500022927
    [18] A. Mohsen, L. F. Sedeck, S. A. Mohamed, New smoother to enhanced multigrid-based methods for the Bratu problem, Appl. Math. Comput., 204 (2008), 325–339. https://doi.org/10.1016/j.amc.2008.06.058 doi: 10.1016/j.amc.2008.06.058
    [19] J. P. Boyd, One-point pseudo spectral collocation for the one dimensional Bratu equation, Appl. Math. Comput., 217 (2011), 5553–5565. https://doi.org/10.1016/j.amc.2010.12.029 doi: 10.1016/j.amc.2010.12.029
    [20] U. Erdogan, T. Ozis, A smart nonstandard finite difference scheme for second order nonlinear boundary value problems, J. Comput. Phys., 230 (2011), 6464–6574. https://doi.org/10.1016/j.jcp.2011.04.033 doi: 10.1016/j.jcp.2011.04.033
    [21] A. S. Mounim, B. M. de Dormale, From the fitting technique to accurate schemes for the Liouville-Bratu-Gelfand problem, Numer. Methods Partial Differ. Equ., 22 (2006), 761–775. https://doi.org/10.1002/num.20116 doi: 10.1002/num.20116
    [22] R. Gharechahi, M. Arab Ameri, M. Bisheh-Niasar, High order compact finite difference schemes for solving Bratu-type equations, J. Comput. Appl. Mech., 5 (2019), 91–102. https://doi.org/10.22055/JACM.2018.25696.1288 doi: 10.22055/JACM.2018.25696.1288
    [23] P. A. Zegeling, S. Iqbal, Nonstandard finite differences for a truncated Bratu–Picard model, Appl. Math. Comput., 324 (2018), 266–284. https://doi.org/10.1016/j.amc.2017.12.005 doi: 10.1016/j.amc.2017.12.005
    [24] P. G. Zhang, J. P. Wang, A predictor-corrector compact finite difference scheme for Burgers' equation, Appl. Math. Comput., 219 (2012), 892–898. https://doi.org/10.1016/j.amc.2012.06.064 doi: 10.1016/j.amc.2012.06.064
    [25] R. Mickens, Difference equation models of differential equations having zero local truncation errors, North-Holland Math. Stud., 92 (1984), 445–449. https://doi.org/10.1016/S0304-0208(08)73728-9 doi: 10.1016/S0304-0208(08)73728-9
    [26] R. Mickens, Nonstandard finite difference models of differential equations, World Scientific, 1993. https://doi.org/10.1142/2081
    [27] A. Mohsen, A simple solution of the Bratu problem, Comput. Math. Appl., 67 (2014), 26–33. https://doi.org/10.1016/j.camwa.2013.10.003 doi: 10.1016/j.camwa.2013.10.003
  • Reader Comments
  • © 2024 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0)
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Metrics

Article views(833) PDF downloads(39) Cited by(0)

Figures and Tables

Figures(9)  /  Tables(11)

/

DownLoad:  Full-Size Img  PowerPoint
Return
Return

Catalog