220
Views
0
CrossRef citations to date
0
Altmetric
Pure Mathematics

A new iterative computational scheme for solving second order (1 + 1) boundary value problems with non-homogeneous Dirichlet conditions

ORCID Icon & ORCID Icon | (Reviewing editor:)
Article: 2330170 | Received 31 Jan 2024, Accepted 05 Mar 2024, Published online: 22 Mar 2024

ABSTRACT

This paper is a result of an investigation to come up with a new hybrid scheme for solving second order (1+1) boundary value problems of linear as well as nonlinear partial differential equations with non-homogeneous Dirichlet boundary conditions. Such an innovation is significant since there are not many analytical methods for solving partial differential equations with boundary data. The scheme involves the coupling of the ModDTM, a modified form of the Differential Transform Method, and the Adomian Decomposition Method. ModDTM is chosen because the differential transform used in the method is suitable to be applied to boundary value problems. It is the concept of decomposing the initial terms of the series-solution that is borrowed from the Decomposition Method. Solutions are obtained in the form of partial sums of their series representation. These are determined by the application of the mathematical software SageMath. The procedures of application are illustrated by solving linear and nonlinear versions of the classical equations, viz., heat, telegraph, Klein-Gordon and the Fishers equations. To validate the convergence of the solutions obtained with the exact ones two dimensional graphs plotted by SageMath software are used. This is performed in two stages. It is verified that successive partial sums of the series-solutions converge. As well as that, it is shown that the partial sum with the appropriate number of terms converges to the exact and closed form solution. This innovative method is found to be powerful, yet simple and uncomplicated, for solving Dirichlet boundary value problems of second order partial differential equations.

1. Introduction

In this paper, an innovative iterative scheme for solving boundary value problems (BVPs) of partial differential equations (PDEs) is presented. BVPs are typically solved by numerical methods as there are only a few analytical methods that can be applied to them generally. Some examples from literature are the Variational Iteration Method (VIM) (Lu, Citation2007; Nemrat & Zainuddin, Citation2020), the Homotopy Analysis Method (HAM) (Nemrat et al., Citation2019), the Differential Transform Method (DTM) (Al-Ahmad et al., Citation2022; Al-Rozbayani & Qasim, Citation2023; Kharrat & Toma, Citation2020; Mukhtarov et al., Citation2021) and the Adomian Decomposition Method (ADM) (Adomian & Rach, Citation1993; Aly et al., Citation2012; Jang, Citation2008; Lesnic & Elliott, Citation1999; Yun et al., Citation2019), which are seen to be mostly applied for solving such problems of ordinary differential equations (ODEs). For example, in (Lu, Citation2007) when the VIM is applied to BVPs of ODEs the problem reduces to one of solving systems of algebraic equations. The HAM is coupled with the technique of Sumudu Transform to solve two-point BVPs of linear second order ODEs in (Nemrat et al., Citation2019). By choosing the initial approximation suitably, the computational procedures are simplified considerably, as claimed by the authors. The DTM is coupled with Laplace transform (LT) and Pade` approximation for solving ODEs in (Al-Ahmad et al., Citation2022). Solutions obtained are shown to be better approximations than those obtained by the application of the DTM directly, or the ADM. Systems of fourth order ODEs with Dirichlet BCs are solved in (Kharrat & Toma, Citation2020) by combining DTM with Maple. A new version of the method called the α-parameterized DTM, which is a generalized form of the method, is applied in (Mukhtarov et al., Citation2021) for solving ODEs, and in (Al-Rozbayani & Qasim, Citation2023) for the nonlinear Gardner equation. α is a parameter in (0, 1) using which a convex function is constructed. It is the optimal value of α, determined by applying a genetic algorithm (Al-Rozbayani & Qasim, Citation2023), that generates the best possible approximation of the solution-function. The method is felt to be computationally very involved. Adaptations and modifications of ADM for solving BVPs are found in (Adomian & Rach, Citation1993; Aly et al., Citation2012; Jang, Citation2008; Lesnic & Elliott, Citation1999; Yun et al., Citation2019). For example, BVPs of second order PDEs with non-homogeneous Dirichlet BCs on triangular areas are solved by a segmented version of the ADM in (Yun et al., Citation2019). The triangular domain of application is segmented further into more of them by redefining boundaries, and new BCs are defined. Recurrence relations involving double integrals are then used to determine the solutions as applicable to the various triangular segments. The method is innovative, yet very involved.

In this study, a new scheme is devised by combining concepts of two of these methods, namely, the DTM and the ADM, for solving PDEs for which non-homogeneous Dirichlet boundary conditions (BC) have been prescribed. The DTM was first devised in 1986 by Zhou who applied it for solving PDEs in electric circuit analysis, as mentioned in (Chen & Ho, Citation1999). What is being proposed in the present work is a hybridization of a modified form of the DTM, and the Decomposition method of Adomian. The modification identified for the purpose is the ModDTM, which was first devised by the authors of this paper in (Nayar & Phiri, Citation2020). It was devised for solving (1+1) linear and nonlinear PDEs with search direction of the solution along the spatial axis. As such, solutions obtained are in the form of a power series in x. For this reason, the ModDTM is suitable for BVPs as boundary conditions may be applied directly to the solution. The modified differential transform (Mod DT) (Nayar & Phiri, Citation2020) that forms the basis of the ModDTM is the first component in the hybridization, as it is used to determine a recurrence relation as a first step. This relation has two initial terms since the equations solved are of order two. The first one of these terms will be provided by the first boundary condition. But, the second initial term cannot be determined directly as the data available is a BC. This is where the concept of decomposition of the initial terms of the series-solution is applied. In (Adomian & Rach, Citation1993), Adomian outlines a scheme for solving second order BVPs with non-homogeneous two-point boundary conditions (BCs). The highlight of the method is the decomposition of the initial terms. A similar technique is proposed to be used to find the second initial term in the new method. The solutions obtained will be in the form of successive partial sums Sn of their series representation, which are expected to converge to each other after a finitely small number of iterations, and they, to the exact and closed-form solution of the PDE. Comparison of 2d graphs of the obtained solutions with those of the exact ones will be carried out to show such convergence technically. The graphs will be plotted using SageMath. From hereon, the new method will be referred to as the New Modified Differential Transform-Decomposition method (NMDT-D), as it combines concepts of the ModDTM and the ADM. In order to examine the applicability and effectiveness of the method, it is tested on some (1+1) second order PDEs with non-homogeneous Dirichlet BCs for which solutions are available. These include linear, nonlinear, homogeneous and non-homogeneous versions of the classical heat, telegraph, Klein-Gordon (KG) and Fishers equations.

The paper is set as follows. In section 2 detailed description of the new method is presented by discussing its various procedural aspects. Section 3 contains examples of application of the NMDT-D for solving the PDEs. Results and Discussion are included in Section 4. Finally, Section 5 concludes the paper.

2. Description of the method

As the first procedure in the application of NMDT-D method involves the utilization of concepts of ModDTM, it is felt that these should be explained briefly before presenting the particulars of the new method.

2.1. The ModDTM

The ModDTM may be said to be an improvement of the DTM (Al-Ahmad et al., Citation2022; Al-Rozbayani & Qasim, Citation2023; Kharrat & Toma, Citation2020; Mukhtarov et al., Citation2021). The key element of the method is the differential transform used in its application. The k-th transform of a function u(x,t) is defined as (Nayar & Phiri, Citation2020)

(1) Uk(t)=1k![kuxk]x=0,(1)

and the inverse transform as (Nayar & Phiri, Citation2020)

(2) u(x,t)=k=0Uk(t)xk=k=01k![kuxk]x=0xk.(2)

To solve a PDE by the method, the equation is first converted to a recurrence relation by applying the transform and its various properties that may be referenced in (Nayar & Phiri, Citation2020). This relation is then used recursively to determine the coefficients Uk(t) of the corresponding series representation of the solution function u(x,t) as in (EquationEquation 2) (Nayar & Phiri, Citation2020). Below is given a symbolic derivation of the recurrence relation.

Consider the general (1+1) second order PDE represented by

(3) L(u)+R(u)+N(u)=f(x,t),(3)

where L(u) represents the linear second order partial differential operator, N(u) is a nonlinear operator such as u2 or sin(u) or eu, and R(u) represents the remaining operators in the equation. f(x,t) is a forcing term. The terms of (EquationEquation 3) are rearranged to obtain:

L(u)=f(x,t)R(u)N(u).

Inverting L:

(4) u=L1(f(x,t)R(u)N(u))=c0(t)+xc1(t)+(f(x,t)R(u)N(u))dxdx,(4)

where c0(t)=u(0,t) and c1(t)=ux(0,t) are the initial conditions (ICs) with respect to x. The integral therefore represents indefinite integration. Suppose Fk, Rk and Nk represent the kth Mod DT of f(x,t), R(u) and N(u), respectively. Then using (EquationEquation 2),

(5) k=0Uk(t)xk={k=0[Fk(t)xkRk(t)xkNk(t)xk]}dxdx+c0(t)+xc1(t)=k=0[Fk(t)Rk(t)Nk(t)]xk+2(k+1)(k+2)+c0(t)+xc1(t)=k=2[Fk2(t)Rk2(t)Nk2(t)]xk(k1)(k)+c0(t)+xc1(t).(5)

Equating coefficients, c0(t)=u(0,t)=U0(t) and c1(t)=ux(0,t)=U1(t). The coefficients for k2 are given by

(6) Uk(t)=1k(k1)[Fk2(t)Rk2(t)Nk2(t)].(6)
(EquationEquation 6 is the recurrence relation, which determines the coefficients in the power series solution for k2. In (Nayar & Phiri, Citation2020) the ModDTM has been successfully applied to solve several nonlinear PDEs. The reader may refer to the work for a better picture of the application procedure of the method.

2.2. The new modified differential transform-decomposition method

In the application of NMDT-D, c1(t) is not known, since the PDE is prescribed BCs instead of ICs. Hence, a plan different from that of the ModDTM is required for determining the solution of (EquationEquation 3). This is where the ADM comes in. In an approach suggested by Adomian in (Adomian & Rach, Citation1993), the initial terms c0(t) and c1(t) are decomposed. Applying a similar technique (EquationEquation 6) may be rewritten as

(7) k=0Uk(t)xk=k=2[Fk2(t)Rk2(t)Nk2(t)]xk(k1)(k)+k=0c0,k+xk=0c1,k,(7)

by decomposing each one of c0(t) and c1(t) to an infinite sum. Such a decomposition is possible since a double integration is performed to determine Uk(t) for each k, at least symbolically.

The next step in the plan is to set up recurrence relations using (EquationEquation 7). The process is initialized by defining the first term of the series kuk as

u0=c0,0+xc1,0.

Suppose Sn represents the n-th partial sum of the series solution. Then, equating the first partial sum to u0:

S1=c0,0+xc1,0.

As S1 may be considered to be the first approximation of u(x,t), it should satisfy the prescribed BCs. Applying these conditions, one obtains the unknowns c0,0 and c1,0, which determine S1. Next, set

u1=c0,1+xc1,1+(F0R0N0)x22.

u1 is the second term in the series, so that the next partial sum is obtained as

S2=S1+u1=S1+c0,1+xc1,1+(F0R0N0)x22.

In this formula, F0=f(0,t), R0=R(u)|x=0 and N0=N(u)|x=0. Since u is unknown, it is replaced by S1, its first approximation. Thus

R0=R(S1)|x=0,N0=N(S1)|x=0.

Hence

(8) S2=S1+c0,1+xc1,1+(F0R0(S1)N0(S1))x22.(8)

Once again the BCs are applied to (EquationEquation 8) to find c0,1 and c1,1, thereby determining S2. The procedures are repeated to determine the successive partial sums, until satisfactory levels of convergence is reached. Thus, it may well be said that two recurrence relations sum up the procedures of the NMDT-D method. These are

(9) uk=c0,k+xc1,k+(Fk1Rk1(Sk)Nk1(Sk))xk+1(k)(k+1),(9)

for k0, with F1=R1=N1=0, and

(10) Sk+1=Sk+uk,S0=0,(10)

where

Rk1(Sk)=1(k1)!(k1R(Sk)xk1),Nk1(Sk)=1(k1)!(k1N(Sk)xk1)

and

Fk1(Sk)=1(k1)!(k1f(x,t)xk1),

are evaluated at x = 0.

3. Convergence analysis of the NMDT-D method

The Banach Fixed Point Theorem (Kreyszig, Citation1991) is applied to analyze the convergence of the solutions generated by the method. As per the theorem, if T is a contraction mapping defined on a Banach space X, then T has a unique fixed point in X.

3.1. Theorem

Consider the Banach space of continuous functions C in Ω=[a,b]×[c,d] with an appropriate norm. Let Br(u)={Sn ϵ Ω | Snu<r}, where u(x,t) is the solution of the PDE. Sn denotes the partial sum of the infinite series k=0uk, and r > 0 is a constant. Then, the series converges if there exists an αϵ(0,1) such that un+1αun.

Proof.

Starting with u0ϵBr(u), define the mapping T(Sn)=Sn+1,n=1,2,3,. Then,

(11) T(Sn)T(Sn1)=Sn+1Sn=unαun1α2un2α3un3αnu0.(11)

Successive application of (EquationEquation 11) shows that {T(Sn)} is a Cauchy sequence.

T(Sn)T(Sm)=T(Sn)T(Sn1)+T(Sn1)+T(Sm+1)T(Sm)T(Sn)T(Sn1)+T(Sn1)T(Sn2)++T(Sm+1)T(Sm)αnu0+αn1u0+αn2u0++αm+1u0αm+1(1+α+α2++αnm1)u0αm+1(1αnm1α)u0(αm+11α)u0,

since 1αnm<1 as 0<α<1. Since {T(Sn)} is a Cauchy sequence in a complete space, it should converge to a unique fixed point, say, S such that T(S)=S=uk.

4. Numerical examples

In this section, the application of NMDT-D is illustrated by applying the method to cases of homogeneous and non-homogeneous versions of linear and nonlinear classical PDEs, such as the heat, telegraph, Klein-Gordon and Fisher equations. The procedures followed for solving the equations are explained in Section 2.2.

4.1. Linear and homogeneous heat equation

The heat equation is fundamental in modeling several kinds of diffusion processes occurring in physics, chemistry, and the biological sciences. The equation considered is (Citation2012)

(12) ut=uxx,0x1,t0,(12)

and is prescribed the BCs

u(0,t)=et,u(1,t)=etcosh(1).

This being a linear and homogeneous PDE, N(u)=0 and f(x,t)=0. The other operators occurring in the equation are L(u)=uxx are R(u)=ut. Recurrence relations given by (EquationEquation 9) and (EquationEquation 10) will be applied recursively to solve the given equation. Start by setting

u0=c0,0+xc1,0.

The first partial sum is then set as

(13) S1=c0,0+xc1,0.(13)

Setting x = 0 and x = 1 in (EquationEquation 13), and solving the equations so obtained c0,0 and c1,0 are found to be

c0,0=et,c1,0=et(cosh(1)1).

Thus

S1=et[1+x(cosh(1)1)].

Next set

u1=c0,1+xc1,1+(R0(S1))x22.

The second partial sum is

S2=S1+c0,1+xc1,1+(R0(S1))x22.
R0(S1)=[R(S1)]x=0=[S1∂t]x=0=et.

Hence

S2=et[1+x(cosh(1)1)]+c0,1+xc1,1+et(x22)=c0,1+xc1,1+et[1+x(cosh(1)1)+x22].

BCs are applied to S2 to obtain c0,1=0 and c1,1=et2. Thereby

S2=et(1+x(cosh(1)32)+x22).

The processes are repeated to get

S3=et(1+5x6(cosh(1)32)+x22+(cosh(1)32)x36);
S4=et(1+(56cosh(1)3124)x+x22+(cosh(1)32)x36+x424);
S5=et(1+(3340cosh(1)307240)x+x22+(cosh(1)32)x36+x424)+et((cosh(1)32)x5120);
S6=et(1+(3340cosh(1)461360)x+x22+(cosh(1)32)x36+x424)+et((cosh(1)32)x5120+x6720);
S7=et(1+(41575040cosh(1)25812016)x+x22+(cosh(1)32)x36+x424)+et((cosh(1)32)x5120+x6720+(cosh(1)32)x75040).

The graphs in Figures compares S7(x,t) with the exact solution u(x,t)=etcoshx (Citation2012). It is seen that S7 is a good approximation of u. The other graphs in Figures indicate that even S5 is a good approximation, since S7 converges well with both S5 and S6 .

Figure 1. Graphs of heat equation. S7 shows good convergence with the exact solution for (a) t = 0 and (b) t = 0.5.

Figure 1. Graphs of heat equation. S7 shows good convergence with the exact solution for (a) t = 0 and (b) t = 0.5.

Figure 2. Graphs of heat equation. (a) shows S7 converges well with exact solution for t = 1. (b) figure shows convergence of partial sums S5, S6 and S7 for t = 0.

Figure 2. Graphs of heat equation. (a) shows S7 converges well with exact solution for t = 1. (b) figure shows convergence of partial sums S5, S6 and S7 for t = 0.

Figure 3. Graphs of heat equation. Figure shows convergence of partial sums for (a) t=0.5,and(b)t=1.

Figure 3. Graphs of heat equation. Figure shows convergence of partial sums for (a) t=0.5,and(b)t=1.

4.2. Linear and homogeneous telegraph equation

The telegraph equation, which was first designed to deal with electrical circuit problems, has recently been the subject of intense research for its myriad applications in the communication field, as it is specified in (Hussen et al., Citation2022; Lock et al., Citation2007) and in the references therein. The equation considered is another linear and homogeneous PDE defined in [0,1]×[0,], and it takes the form (Soltanalizadeh, Citation2011):

(14) uxx=utt+utu,u(0,t)=0,u(1,t)=sin(1)et,u(x,0)=sinx.(14)

In the equation, L(u)=uxx and R(u)=utt+utu. The exact and closed form solution is u(x,t)=etsinx (Soltanalizadeh, Citation2011). Following the procedures of the method as illustrated in the previous example, the first seven partial sums are determined as given below.

S1=S2=sin(1)etx;
S3=S4=sin(1)et((1+13!)xx33!);
S5=S6=sin(1)et((1+13!15!)xx33!+x55!);
S7=sin(1)et((1+13!15!+17!)xx33!+x55!x77!),

since u1=u3=u5=0. In fact, the pattern seen in the form of the partial sums allows the generalization:

S=sin(1)et((1sin(1))x+sinx).

Table  allows a comparison to be made between the exact solution and S. In the table, the first row gives the exact solution, whereas the second row represents the values of S for each value of x. The good agreement that the latter has with the former is evident, especially as t is increased. Some graphs are also included (Figures ). From the graphs, it is understood that even though S7 approximates the exact solution very well, convergence is reached even as early as S3, since S3, S5 and S7 are in good agreement.

Table 1. Linear and homogeneous telegraph equation

Figure 4. Graphs of Lin and Hom Telegraph Equation. S7 shows a good rate of convergence with the exact solution for (a) t = 0 and (b) t = 0.5.

Figure 4. Graphs of Lin and Hom Telegraph Equation. S7 shows a good rate of convergence with the exact solution for (a) t = 0 and (b) t = 0.5.

Figure 5. Graphs of Lin and Hom Telegraph Equation. (a) S7 shows good convergence with the exact solution for t = 1.0; (b) the partial sums S3, S5 and S7 are in good agreement for t = 0.

Figure 5. Graphs of Lin and Hom Telegraph Equation. (a) S7 shows good convergence with the exact solution for t = 1.0; (b) the partial sums S3, S5 and S7 are in good agreement for t = 0.

Figure 6. Graphs of Lin and Hom Telegraph Equation. The partial sums S3, S5 and S7 are in good agreement for (a) t = 0.5 and (b) t= 1.

Figure 6. Graphs of Lin and Hom Telegraph Equation. The partial sums S3, S5 and S7 are in good agreement for (a) t = 0.5 and (b) t= 1.

4.3. Linear and homogeneous Klein-Gordon equation

A homogeneous version of the linear Klein-Gordon equation (K-G) defined for 0x1 and t0 is given by (Ahmad et al., Citation2015)

(15) uxx=uttu.(15)

The BCs obtained from the exact solution u(x,t)=sinx+cosht (Ahmad et al., Citation2015) of (EquationEquation 15) are

u(0,t)=cosht,u(1,t)=cosht+sin1.

Applying the NMDT-D, partial sums are obtained as given below.

S1=S2=cosht+(sin1)x;
S3=S4=cosht+(sin1)(7x6x33!);
S5=S6=cosht+(sin1)(139x120x33!+x55!);
S7=cosht+(sin1)(5839x5040x33!+x55!x77!),

since u1=u3=u5=0. Figures show the good agreement of the computed solution with the exact one. As in the case of the linear and homogeneous telegraph equation, the solution may be considered to be S3, as S5 and S7 show convergence with it.

Figure 7. Graphs of Lin and Hom KG equation. S7 shows good rate of convergence with the exact solution for (a) t = 0 and (b) t = 0.5.

Figure 7. Graphs of Lin and Hom KG equation. S7 shows good rate of convergence with the exact solution for (a) t = 0 and (b) t = 0.5.

Figure 8. Graphs of Lin and Hom KG equation. (a) S7 shows good convergence with the exact solution for t = 1.0; (b) the partial sums S3, S5 and S7 are in good agreement for t = 0.

Figure 8. Graphs of Lin and Hom KG equation. (a) S7 shows good convergence with the exact solution for t = 1.0; (b) the partial sums S3, S5 and S7 are in good agreement for t = 0.

Figure 9. Graphs of Lin and homogeneous KG equation. The partial sums S3, S5 and S7 are in good agreement for (a) t = 0.5 and (b) t = 1.

Figure 9. Graphs of Lin and homogeneous KG equation. The partial sums S3, S5 and S7 are in good agreement for (a) t = 0.5 and (b) t = 1.

4.4. Linear and non-homogeneous telegraph equation

The method is next applied for solving a non-homogeneous form of the telegraph equation, so that it may be seen how the method works when f(x,t)0. The equation chosen is (Dehghan & Shokri, Citation2008)

(16) uxx=utt+6ut+2u+2etsinx,0x1,t0.(16)

BCs are taken to be u(0,t)=0 and u(1,t)=etsin1 from the solution u(x,t)=etsinx (Dehghan & Shokri, Citation2008). In this equation L(u)=uxx, R(u)=utt+6ut+2u and f(x,t)=2etsinx. The calculations will therefore include Fk(t) as well, which makes the whole processes slightly different from the previous cases. S1 is determined as usual. It is found to be

S1=(etsin1)x.
u1=c0,1+xc1,1+(R0(S1)+F0)x22.
R0(S1)=(2S1t2+6S1∂t+2S1)x=0=0,
F0=f(0,t)=0.

Thus

u1=c0,1+xc1,1.

Thereby

S2=S1+u1=(etsin1)x+c0,1+xc1,1.

Since c0,1=c1,1=0, S2=S1. Proceeding further, set

u2=c0,2+xc1,2+(R1(S2)+F1)x36.
R1(S2)=(∂x(R(S2)))x=0=(∂x(x×3etsin1))x=0=3(sin1)et.
F1=(∂f∂x)x=0=2et.
u2=c0,2+xc1,2+et(23sin1)x36.
S3=S2+u2=c0,2+xc1,2+et(xsin1+(23sin1)x36)

Setting S3(0,t)=0, it is found that c0,2=0. Similarly, by setting S3(1,t)=etsin1,

c1,2=(23sin1)et6.

Figure 10. Graphs of Lin and non-homogeneous telegraph equation. Comparison of S7 with the exact solution for (a) t = 0 and (b) t = 0.5.

Figure 10. Graphs of Lin and non-homogeneous telegraph equation. Comparison of S7 with the exact solution for (a) t = 0 and (b) t = 0.5.

Figure 11. Graphs of Lin and non-homogeneous telegraph equation. S7 shows good convergence with the exact solution for (a) t = 1.0 and (b) t = 2.0.

Figure 11. Graphs of Lin and non-homogeneous telegraph equation. S7 shows good convergence with the exact solution for (a) t = 1.0 and (b) t = 2.0.

Thus

S3=et((32sin113)x(3sin12)x36).

The procedures are repeated in a similar way to obtain u3 = 0, implying that S4=S3. The next set of operations gives

S5=et((5740sin1415)x(3sin12)x36+(9sin18)x55!).

Again, u5 turns out to be zero, from which S6 is seen to be equal to S5. S7 is determined next as

S7=et((801560sin1137504)x(3sin12)x36+(9sin18)x55!)et((27sin126)x77!).

From the graphs, it is found that the convergence behavior of the truncated series solution S7 varies from that of the previous examples. The degree of convergence is not very good for low values of t, but it is seen to be improving as t is increased. This is evident when one examines the variation of scale along the vertical axis in Figures . Figures  show that S3 is as good an approximation as S7.

Figure 12. Graphs of Lin and non-homogeneous telegraph equation. S7 shows good convergence with the exact solution for (a) t = 5.0. (b) The partial sums S3, S5 and S7 converge when t = 0.

Figure 12. Graphs of Lin and non-homogeneous telegraph equation. S7 shows good convergence with the exact solution for (a) t = 5.0. (b) The partial sums S3, S5 and S7 converge when t = 0.

Figure 13. Graphs of Lin and non-homogeneous telegraph equation. The partial sums S3, S5 and S7 converge at (a)t=0.5,(b)t=1.0.

Figure 13. Graphs of Lin and non-homogeneous telegraph equation. The partial sums S3, S5 and S7 converge at (a)t=0.5,(b)t=1.0.

4.5. Linear and non-homogeneous Klein-Gordon equation

An example of the linear and non-homogeneous K-G equation is (Ikram et al., Citation2021)

(17) uxx=uttu+ext,0x1,t0.(17)

The exact solution of (EquationEquation 17) is ext (Ikram et al., Citation2021), from which u(0,t)=et and u(1,t)=e1t. L(u)=uxx, R(u)=(2t21)u and f(x,t)=ext. The successive partial sums are determined by following the procedures as explained in example 4.4. These are:

S1=et(1+(e1)x);
S2=et(1+(e32)x+x22);
S3=et(1+(e11216)x+x22+x33!);
S4=et(1+(e11216124)x+x22+x33!+x44!).

By examining the partial sums obtained so far a clear pattern is seen to be developing in the structure of the solution, from which it may be ascertained that

S=et(1+(e112161241n!)x)+et(x22+x33!+x44!++xnn!+)=et(1+x+x22+x33!+x44!++xnn!+)=ext,

since

e112161241n!=1.

It is to be noted that ext is the closed form solution of (EquationEquation 17).

4.6. Nonlinear and non-homogeneous telegraph equation

This example is that of a non-linear and non-homogeneous version of the telegraph equation with quadratic non-linearity. The PDE is (Ahmed et al., Citation2022)

(18) uxx=utt+2ut+u2+ex2te2x4t,0x1,t0.(18)

BCs are chosen as u(0,t)=e2t and u(1,t)=e12t from the closed form solution u(x,t)=ex2t (Ahmed et al., Citation2022). The linear and other operators are

L(u)=uxx,N(u)=u2,R(u)=utt+2ut,f(x,t)=ex2te2x4t.

The additional feature in this case is the presence of the nonlinear term u2. Still, u0, and thereby S1, can be determined as in the previous examples.

S1=c0,0+xc1,0.

Applying the BCs one obtains c0,0=e2t and c1,0=e2t(e1). Thus

S1=e2t(1+x(e1).
u1=c0,1+xc1,1+(R0(S1)+N0(S1)+F0)x22.
R0(S1)=(2S1t2+2S1∂t)x=0=0
N0(S1)=(S12)x=0=e4t;F0=f(0,t)=e2te4t.
u1=c0,1+xc1,1+e2t(x22).
S2=c0,1+xc1,1+e2t(1+x(e1)+x22).

The unknowns are determined by applying the BCs to get

S2=e2t(1+x(e32)+x22).

Procedures are followed to obtain the next two partial sums S3 and S4:

S3=((2e5)e4t+e2t)x36e4t(2e5+e2t)x6+e2t(1+x(e32)+x22).
S4=1432((3(2e3)e2t(2e5+e2t)e4t)2+18e2t36e4t)x4x432((3(2e3)e2t(2e5+e2t)e4t)2+90e2t+36(4e11)e4t)+16((2e5)e4t+e2t)x3+e2t(1+x(e32)+x22).

S4 is taken to represent the solution since it agrees well with it as seen in the graphs in Figures . S3 would also be a good approximation since it converges quite well with S4 (Figures ).

Figure 14. Graphs of nonlinear and non-homogeneous telegraph equation. S4 converges very well with the exact solution when (a)t=0,(b)0.5.

Figure 14. Graphs of nonlinear and non-homogeneous telegraph equation. S4 converges very well with the exact solution when (a)t=0,(b)0.5.

Figure 15. Graphs of nonlinear and non-homogeneous telegraph equation. (a) S4 converges very well with the exact solution when t = 1.0. (b) shows that partial sums S3 and S4 converge when t = 0.

Figure 15. Graphs of nonlinear and non-homogeneous telegraph equation. (a) S4 converges very well with the exact solution when t = 1.0. (b) shows that partial sums S3 and S4 converge when t = 0.

Figure 16. Graphs of nonlinear and non-homogeneous telegraph equation. Partial sums S3 and S4 converge when (a) t = 0.5 and (b) 1.0.

Figure 16. Graphs of nonlinear and non-homogeneous telegraph equation. Partial sums S3 and S4 converge when (a) t = 0.5 and (b) 1.0.

Figure 17. Graphs of Fisher equation. (a) S3 deviates slightly from the exact solution for t = 0.25.(b) the convergence of S3 to u(x,t) is seen to be improving when t0.5, as found in the subsequent graphs for the equation.

Figure 17. Graphs of Fisher equation. (a) S3 deviates slightly from the exact solution for t = 0.25.(b) the convergence of S3 to u(x,t) is seen to be improving when t≥0.5, as found in the subsequent graphs for the equation.

4.7. Nonlinear and homogeneous Fishers equation

The Fishers equation models various phenomena in chemical kinetics, autocatalytic chemical reactions, Brownian motion processes, and in the propagation of a mutant gene (Wazwaz, Citation2008). The nonlinear equation (Loyinmi & Akinfe, Citation2020) has a term with quadratic non-linearity similar to the one found in the nonlinear telegraph equation solved.

(19) uxx=ut6u+6u2.(19)

The BCs

u(0,t)=1(1+e5t)2,u(1,t)=1(1+e15t)2.

are taken from the exact solution of the PDE (Loyinmi & Akinfe, Citation2020)

u(x,t)=1(1+ex5t)2.

Following similar procedures applied for solving the nonlinear telegraph equation, the first three partial sums are obtained as

S1=1(1+e5t)2x(1(1+e5t)21(1+e15t)2),
S2=x(2(1+e5t)25e5t(1+e5t)33(1+e5t)4+1(1+e15t)2)+1(1+e5t)2x2(3(1+e5t)25e5t(1+e5t)33(1+e5t)4),
S3=1(1+e5t)2x(2(1+e5t)2(1+e15t)220e5t(1+e5t)56(1+e5t)6)+x(4(1+e5t)235e5t2(1+e5t)35(45e10t)2(1+e5t)4+6(1+e15t)5e15t3(1+e15t)3)x2(3(1+e5t)25e5t(1+e5t)33(1+e5t)4)+x3(7(1+e5t)4+2(1+e5t)2(1+e15t)220e5t(1+e5t)56(1+e5t)6)x3(2(1+e5t)225e5t2(1+e5t)3+25e10t2(1+e5t)4+3(1+e15t)5e15t3(1+e15t)3)

S3 is considered a good approximation of u(x,t) as it is found to converge to the next S4 quite well (Figure ). (The expression for S4 is lengthy and hence is not shown.) Even though S3 does not agree very well with the exact solution for small values of t, the situation is seen to be improving as t is increased (Figures ).

Figure 18. Graphs of Fisher equation. S3 converges to u(x,t)at(a)t=0.75,(b)t=1.0.

Figure 18. Graphs of Fisher equation. S3 converges to u(x,t)at(a)t=0.75,(b)t=1.0.

Figure 19. Graphs of Fisher equation. As t gets larger, the convergence of S3 with u(x,t) is seen to improve at (a) t=2, and (b) t=5.

Figure 19. Graphs of Fisher equation. As t gets larger, the convergence of S3 with u(x,t) is seen to improve at (a) t=2, and (b) t=5.

Figure 20. Fishers Eqn.-graphs of Fisher equation showing that S3 converges to S4 at (a) t=0.5, and (b) t=1.

Figure 20. Fishers Eqn.-graphs of Fisher equation showing that S3 converges to S4 at (a) t=0.5, and (b) t=1.

4.8. Nonlinear and homogeneous Klein-Gordon equation

The KG equation is considered to be an important PDE of mathematical physics due to its significance in soliton theory and condensed matter physics (Edeki et al., Citation2019). As mentioned in (Rashidinia et al., Citation2010) the equation finds applications in solid state physics, nonlinear optics and quantum field theory. A non-linear (and homogeneous) version of the KG equation with cubic non-linearity (Rashidinia et al., Citation2010)

(20) utt(52)uxx+u+(32)u3=0,(20)

is considered in the interval 0x1, t0. From the exact solution u(x,t)=23tan(26(t+2x)) (Edeki et al., Citation2019) the following BCs are deduced.

u(0,t)=23tan(26t),u(1,t)=23tan(26(t+2)).

The first three partial sums are determined to be

S1=(23tan(26(t+2))23tan(26t))x+23tan(26t),
S2=23tan(26t)+(23tan(26(t+2))23tan(26t))x+0.2˙23(x2x)sec(26t)2tan(26t),
S3=23tan(26t)+23( tan(26(t+2))tan(26t))x+0.2˙23(x2x)sec2(26t)tan(26t)1623(x3x)(0.0592sec2(26t)+0.113580247)×sec2(26t)tan(26t)0.223(x3x)(0.2˙sec2(2t6)+1)tan3(2t6)+0.223(x3x)tan(26(t+2))tan2(2t6)+1623(x3x)(0.04˙sec2(26(t+2))+0.4)×tan(26(t+2))1623(x3x)(0.4tan(2t6))

There is no need to proceed to S4, since it is seen from the graphs in Figures that a good rate of convergence is reached.

Figure 21. Graphs of nonlinear KG equation. (a) and (b) S3 converges to u(x,t) at (a) t=0 and (b) t=0.5, respectively.

Figure 21. Graphs of nonlinear KG equation. (a) and (b) S3 converges to u(x,t) at (a) t=0 and (b) t=0.5, respectively.

Figure 22. Graphs of nonlinear KG equation. (a) and (b) S3 converges to u(x,t) at t=0.75 and t=1.0, respectively.

Figure 22. Graphs of nonlinear KG equation. (a) and (b) S3 converges to u(x,t) at t=0.75 and t=1.0, respectively.

5. Results and discussion

In this work, a new scheme is devised for solving BVPs of (1+1) second order PDEs with non-homogeneous Dirichlet BCs by combining ModDTM, which is a modification of the DTM in the x-direction, and the ADM. The method has been applied to linear, nonlinear, homogeneous and non-homogeneous versions of the Heat, Telegraph, K-G and Fisher equations to obtain their analytic solutions. Validation of the solutions is done by comparing the graphs of partial sums Sn and the solution functions u(x,t) plotted using the mathematical software SageMath, in Figures 1 to 22. These figures may be categorised into two types. In the first kind, graphs of the exact solutions are compared with the partial sums; the second kind consists of graphs comparing consecutive partial sums.

For the linear cases, the partial sum-solution is determined up to S7, though they are found to converge as early as S5 for the heat equation, and S3 for the others, excluding the linear and non-homogeneous K-G equation. For the latter, it is found that S=u(x,t) is the exact solution. In the case of the linear and non-homogeneous telegraph equation, it is noticed that at t = 0, the max(|S7u(x,t)|)0.03, which occurs in the neighborhood of x = 0.5. This behavior is found to change for the better as t increases. Even though the solution obtained for the Fisher equation exhibits a similar behavior as for the linear, non-homogeneous telegraph equation, it may be said that S3 is a good approximation of the exact solutions for the nonlinear PDEs. The results discussed here are illustrated in the corresponding graphs found in Figures 1-22. Since the rate of convergence is very good, the graphs, which are multicolored (as indicated in their labels), are seen to be merging with each other.

6. Conclusion

In this paper, a new method termed the NMDT-D is formulated by combining the differential transform from ModDTM and the concept of decomposition of the initial terms from ADM for solving non-homogeneous Dirichlet BVPs of partial differential equations. The method has a straight forward approach, and hence it has simple and uncomplicated procedures that are easily applied. In addition, only a few number of iterations is required to obtain appreciable rates of convergence of the partial sums showing the fast convergence of the method. The graphs show that the solutions obtained are good approximations of the exact ones, as well. Having such a method is significant since there are but a few analytical methods for solving BVPs of PDEs.

For future prospects, it might be examined how the method may be extended for applications to PDEs of higher order, or even of higher dimensions. It may be adapted to suit BVPs of fractional and other types of differential equations as well.

Author details

This work was carried out in collaboration between both the authors as part of a study about various analytic methods for solving partial differential equations in general. It forms part of a project undertaken to find simple procedures for solving different types of boundary value problems in particular.

Disclosure statement

No potential conflict of interest was reported by the author(s).

Funding

The authors declare that funding of any kind was not received for this research or for the publication of this paper.

Data availability statement

No data were used to support the study.

References

  • Adomian, G., & Rach, R. (1993). Analytic solution of nonlinear boundary-value problems in several dimensions by decomposition. Journal of Mathematical Analysis and Applications, 174(1), 118–137. https://doi.org/10.1006/jmaa.1993.1105
  • Ahmad, J., Bajwa, S., & Siddique, I. (2015). Solving the Klein-Gordan equations via differential transform method. Journal of Science and Arts, 15(1).
  • Ahmed, S. A., Qazza, A., & Saadeh, R. (2022). Exact solutions of nonlinear partial differential equations via the new double integral transform combined with iterative method. Axioms, 11(6), 247. https://doi.org/10.3390/axioms11060247
  • Al-Ahmad, S., Anakira, N. R., Mamat, M., Jameel, A. F., Alahmad, R., & Alomari, A. K. (2022). Accurate approximate solution of classes of boundary value problems using modified differential transform method. TWMS Journal of Applied and Engineering Mathematics, 12(4), 1228–1238.
  • Al-Rozbayani, A. M., & Qasim, A. F. (2023). Modified α-parameterized differential transform method for solving nonlinear generalized gardner equation. Journal of Applied Mathematics, 2023, 1–9. https://doi.org/10.1155/2023/3339655
  • Aly, E. H., Ebaid, A., & Rach, R. (2012). Advances in the Adomian decomposition method for solving two-point nonlinear boundary value problems with Neumann boundary conditions. Computers and Mathematics with Applications, 63(6), 1056–1065. https://doi.org/10.1016/j.camwa.2011.12.010
  • Chen, C. O. K., & Ho, S. H. (1999). Solving partial differential equations by two-dimensional differential transform method. Applied Mathematics and Computation, 106(2–3), 171–179. https://doi.org/10.1016/S0096-3003(98)10115-7
  • Dehghan, M., & Shokri, A. (2008). A numerical method for solving the hyperbolic telegraph equation. Numerical Methods for Partial Differential Equations: An International Journal, 24(4), 1080–1093. https://doi.org/10.1002/num.20306
  • Edeki, S. O., Anake, T. A., & Ejoh, S. A. (2019, August). Closed form root of a linear Klein–Gordon equation. Journal of Physics Conference Series, 1299(1), 012138. IOP Publishing: https://doi.org/10.1088/1742-6596/1299/1/012138
  • Hussen, S., Uddin, M., & Karim, M. R. (2022). An efficient computational technique for the analysis of telegraph equation. Journal of Engineering Advancements, 3(3), 104–111. https://doi.org/10.38032/jea.2022.03.005
  • Ikram, S., Saleem, S., & Hussain, M. Z. (2021). Approximations to linear Klein–gordon equations using Haar wavelet. Ain Shams Engineering Journal, 12(4), 3987–3995. https://doi.org/10.1016/j.asej.2021.01.029
  • Jang, B. (2008). Two-point boundary value problems by the extended Adomian decomposition method. Journal of Computational and Applied Mathematics, 219(1), 253–262. https://doi.org/10.1016/j.cam.2007.07.036
  • Kharrat, B. N., & Toma, G. (2020). Differential transform method for solving boundary value problems represented by system of ordinary differential equations of 4 order. World Applied Sciences Journal, 38(1), 25–31.
  • Kreyszig, E. (1991). Introductory functional analysis with applications (Vol. 17). John Wiley and Sons.
  • Lesnic, D., & Elliott, L. (1999). The decomposition approach to inverse heat conduction. Journal of Mathematical Analysis and Applications, 232(1), 82–98. https://doi.org/10.1006/jmaa.1998.6243
  • Lock, C. G. J., Greeff, J., & Joubert, S. (2007). Modelling of Telegraph Equations in Transmission Lines [ Doctoral dissertation], Tshwane University of Technology.
  • Loyinmi, A. C., & Akinfe, T. K. (2020). Exact solutions to the family of fisher’s reaction-diffusion equation using Elzaki homotopy transformation perturbation method. Engineering Reports, 2(2), e12084. https://doi.org/10.1002/eng2.12084
  • Lu, J. (2007). Variational iteration method for solving two-point boundary value problems. Journal of Computational and Applied Mathematics, 207(1), 92–95. https://doi.org/10.1016/j.cam.2006.07.014
  • Mukhtarov, O., Yücel, M., & Aydemir, K. (2021). A new generalization of the differential transform method for solving boundary value problems. Journal of New Results in Science, 10(2), 49–58.
  • Nayar, H., & Phiri, P. A. (2020). A new modification of the differential transform method. Asian Journal of Mathematics and Computer Research, 27(3), 38–51.
  • Nemrat, A. A., Hailat, I., & Zainuddin, Z. (2019, November). Approximate solutions of some linear boundary value problems using the homotopy analysis method combined with sumudu transform. Journal of Physics Conference Series, 1366(1), 012038. IOP Publishing: https://doi.org/10.1088/1742-6596/1366/1/012038
  • Nemrat, A. A., & Zainuddin, Z. (2020). Sumudu transform and variational iteration method to solve two point second order linear boundary value problems. ASM Sciences Journal, 13. https://doi.org/10.32802/asmscj.2020.sm26(4.22)
  • Rashidinia, J., Ghasemi, M., & Jalilian, R. (2010). Numerical solution of the nonlinear Klein–Gordon equation. Journal of Computational and Applied Mathematics, 233(8), 1866–1878. https://doi.org/10.1016/j.cam.2009.09.023
  • Soltanalizadeh, B. (2011). Differential transformation method for solving one-space-dimensional telegraph equation. Computational and Applied Mathematics, 30(3), 639–653. https://doi.org/10.1590/S1807-03022011000300009
  • Wazwaz, A. M. (2008). Analytic study on burgers, Fisher, huxley equations and combined forms of these equations. Applied Mathematics and Computation, 195(2), 754–761. https://doi.org/10.1016/j.amc.2007.05.020
  • Yun, Y. S., Wen, Y., Chaolu, T., & Rach, R. (2019). A segmented Adomian algorithm for the boundary value problem of a second-order partial differential equation on a plane triangle area. Advances in Difference Equations, 2019(1), 1–13. https://doi.org/10.1186/s13662-019-2329-4