MPEMathematical Problems in Engineering1563-51471024-123XHindawi10.1155/2020/97049689704968Research ArticleDesign of a Novel Second-Order Prediction Differential Model Solved by Using Adams and Explicit Runge–Kutta Numerical MethodsSabirZulqurnain1https://orcid.org/0000-0003-2788-809XGuiraoJuan L. G.2SaeedTareq3https://orcid.org/0000-0003-3745-0198ErdoğanFevzi4AgarwalPraveen1Department of Mathematics and StatisticsHazara UniversityMansehraPakistanhu.edu.pk2Department of Applied Mathematics and StatisticsTechnical University of CartagenaHospital de MarinaCartagena 30203Spainupct.es3Nonlinear Analysis and Applied Mathematics (NAAM)-Research GroupDepartment of MathematicsFaculty of ScienceKing Abdulaziz UniversityP.O. Box 80203Jeddah 21589Saudi Arabiakau.edu.sa4Department of MathematicsFaculty of SciencesYuzuncu Yil UniversityVanTurkeyyyu.edu.tr202010720202020210220200906202010720202020Copyright © 2020 Zulqurnain Sabir et al.This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

In this study, a novel second-order prediction differential model is designed, and numerical solutions of this novel model are presented using the integrated strength of the Adams and explicit Runge–Kutta schemes. The idea of the present study comes to the mind to see the importance of delay differential equations. For verification of the novel designed model, four different examples of the designed model are numerically solved by applying the Adams and explicit Runge–Kutta schemes. These obtained numerical results have been compared with the exact solutions of each example that indicate the performance and exactness of the designed model. Moreover, the results of the designed model have been presented numerically and graphically.

1. Introduction

The historical delay differential equations (DDEs) are applied in the pioneer work of Newton and Leibnitz in the last years of the 16th century. To understand the worth and importance of the DDEs, one can see their extensive and wide-ranging applications in the field of scientific wonders. Few mentioned applications are population dynamics, economical systems, engineering systems, transports, and communication models . Many researchers worked to solve DDEs in different years, e.g., Kondorse studied DDEs in the seventh decade of the 17th century, but properly used the applications of DDEs in the 19th century. Kuang  and Hale and LaSalle  presented the detailed theory, solution schemes, and applications of DDEs. Perko  studied linear/nonlinear differential models for the dynamical system and configuration. Beretta and Kuang  worked on the geometric constancy of DDEs with the constraints of delay values. Frazier  explained the DDEs of the second kind by applying the wavelet Galerkin scheme. Rangkuti and Noorani  established the exact solution of DDEs by applying the iterative method named as a coupled variation scheme with the support of the Taylor series method. Chapra  discussed the scheme of Runge–Kutta for solving both types of differential delay and nondelay models. Adel and Sabir  presented the numerical solutions of a nonlinear second-order Lane–Emden pantograph delay differential model via the Bernoulli collocation method. Sabir et al. [12, 13] solved the nonlinear functional differential models of second and third order. Erdogan et al.  applied the finite difference method on a layer-adapted mesh for singularly perturbed DDEs. Some more details of DDEs are provided in references . The literature form of the second-order DDE is given as follows :(1)d2ydx2=gx,yx,yxτ1,τ1>0,axb,yx=θx,ρxa,0τ1aρ,dyadx=ω,where θx is used for the initial condition and τ1 is the delayed term in the abovementioned equation. It is clear in understanding that the appearance of this term yxτin any differential equation shows the DDE that means to subtract some values from time. The question arises here when we add some values in time then what happens, i.e., yx+τ. This clearly indicates the prediction and aim of the present work is related to design a new model based on the prediction differential equation. The general form of the new second-order prediction differential model along with initial conditions is presented as(2)d2ydx2=gx,yx,yx+τ,τ>0,axb,yx=θx,ρxa,0τρa,dyadx=ω,where τ is used as a prediction term in equation (2). This prediction differential model can be used to forecast the weather, transport, engineering, stock markets, technology, biological models, astrophysics, and many more. Moreover, the obtained numerical results from both of the schemes have been compared with the exact solution to verify the correctness and exactness of the designed model presented in equation (2).

Some salient features of the designed model are given as follows:

The novel prediction model is successfully designed by considering the worth of the delay differential model

For verification of the designed model, the obtained numerical results have been compared with the exact solutions

Easily comprehensible procedures with effortless implementation, conserved accuracy in close locality of the input interval, broader, and extendibility applicability are other considerable advantages.

The remaining parts of the paper are organized as follows. Section 2 shows the designed methodology. Section 3 represents the detailed results. The conclusions and future research directions of the present study are provided in the last section.

2. Methodology

In the present study, the strength of predictor-corrector Adams technique [22, 23] and explicit Runge–Kutta numerical technique [24, 25] is exploited to solve the second-order prediction differential model.

To find the numerical solutions of the novel designed prediction differential model, the predictor-corrector numerical technique is applied, which takes further two steps to complete.

Step 1: the approximate measures of prediction are accomplished

Step 2: to find if the numerical solutions of correction are capable with the similar contributions of prediction.(3)dydx=hx,y,ux0=y0.

The generalized Adams–Bashforth two-step numerical scheme using the predictor-corrector techniques is given as(4)Dn+1=yn+32ghxn,yn12ghxn1,yn1.

The Adams-Moulton two-step corrector scheme is shown as follows:(5)yn+1=yn+12ghxn+1,Dn+1+hxn,yn.

The 4-step predictor-corrector scheme is provided as follows:(6)Dn+1=yn+124g55hxn,yn59gxn1,yn1+37gxn2,yn29gxn3,yn3.

The Adams–Bashforth–Moulton 4-step scheme is written as follows:(7)yn+1=yn+124g9hxn+1,Dn+1+19gxn,yn5gxn1,yn1+fxn2,yn2.

2.2. Explicit Runge–Kutta Numerical Scheme

The explicit Runge–Kutta scheme is applied to solve the novel designed second-order prediction model. The general form of the explicit Runge–Kutta scheme is considered as(8)yn+1=yn+gj=1sbjIj,I1=hxn,yn,I2=hxn+c2g,yn+ga21I1,I3=hxn+c3g,un+ga31I1+a32I2,Is=hxn+csg,yn+gas1I1+as2I2+as3I3++ass1Is1.

The first step is to consider the obtained initial results, and slopes for all variables are predictable. These attained numerical conclusions for slopes (theI1s) at the middle point of the interval domain are taken to make the dependent variable designs, while in the second phase, the slopes of the central point (theI2s) are obtained by using these accomplished values based on the middle points. The calculated numerical values for slopes are twisted back using the first point of the other set of central point values that are instigated for the new slope of predictions at the central point (theI3s). These numerical calculated values are complementary functional to make the predictions to develop the slopes at the ending point of the interval domain (theIss). Similarly, all the numerical values for Is are accomplished to make an additional set of growth functions and, finally, take the initial point to make the last prediction.

3. Simulations and Results

In this section of the study, the prediction differential model presented in equation (2) is solved by using the four numerical examples based on the predictor-corrector Adams technique and explicit Runge–Kutta method. Furthermore, the obtained numerical results using both the schemes have been compared with the exact solutions of each example.

Example 1.

Consider the second-order prediction differential equation along with the initial conditions given as follows:(9)2d2ydx2+yxyx+π=0,y0=1,dy0dx=1.

The exact solution of equation (9) is 1+sinx.

Example 2.

Consider the second-order prediction differential equation along with boundary conditions given as follows:(10)d2ydx2yx+yx+12x=0,y0=2,dy3dx=3.

The exact solution of equation (10) is x23x+2.

Example 3.

Consider the second-order prediction differential equation involving trigonometric functions along with initial conditions given as follows:(11)d2ydx2dydxx+1+yx+1+yx+cosx+1sinx+1=0,y0=0,dy0dx=1.

The exact solution of equation (11) is sinx.

Example 4.

Consider the second-order prediction differential equation along with initial conditions given as follows:(12)d2ydx2dyx+1dx+yx+1yx=0,y0=1,dy0dx=1.

The exact solution of equation (12) is ex.

It is clearly seen that the prediction term is involved in the form of yx+π, yx+1 in Examples 1 and 2, respectively. The prediction terms are involved four times in Example 3, i.e., dy/dxx+1, yx+1, cosx+1, and sinx+1. Moreover, the prediction terms appeared twice in Example 4, i.e., dy/dxx+1 and yx+1.

The graphic illustration based on the numerical results for all four examples is provided in Figure 1. The explicit Runge–Kutta scheme is used to find the graphical values for all the examples. The plots of Figures 1(a) to 1(d) are based on Examples 1 to 4. Figure 1(a) is plotted in the domain of [0, 30], and the results are found to be positive in all intervals. The plots of Figure 1(b) are plotted in the domain of [0, 3]. The results represent positive values in most of the intervals. However, negative values have been noticed in the subinterval [1, 2]. Figures 1(c) and 1(d) are plotted in the domain of [0, π] and [0, 1], respectively. It is noticed in the table that positive results have seen in both Examples 3 and 4. For comparison of the results, the plots of exact and numerical solutions have been drawn in Figure 2. The overlapping of the results shows the exactness and accurateness of the designed model. For more clear results of all the examples, the numerical results of exact solutions and the predictor-corrector Adams numerical scheme are tabulated in Tables 1 and 2. The comparison of the Adams numerical results and exact solutions are same up to a higher level.

Graphical illustration of the numerical results for Examples 1, 2, 3, and 4. (a) Plot results of Example 1. (b) Plot results of Example 2. (c) Plot results of Example 3. (d) Plot results of Example 4.

Comparison of the exact results and numerical solutions for Examples 1, 2, 3, and 4. (a) Comparison plots of Example 1. (b) Comparison plots of Example 2. (c) Comparison plots of Example 3. (d) Comparison plots of Example 4.

Numerical values of the Adams and explicit Runge–Kutta scheme for Examples 1 and 2.

xExample 1Example 2
0.001.0000001.0000002.0000002.000000
0.041.0400001.0399891.8816001.881600
0.081.0799001.0799151.7664001.766400
0.121.1197001.1197121.6544001.654400
0.161.1593001.1593181.5456001.545600
0.201.1987001.1986691.4400001.440000
0.241.2377001.2377031.3376001.337600
0.281.2764001.2763561.2384001.238400
0.321.3146001.3145671.1424001.142400
0.361.3523001.3522741.0496001.049600
0.401.3894001.3894180.9600000.960000
0.441.4259001.4259390.8736000.873600
0.481.4618001.4617790.7904000.790400
0.521.4969001.4968800.7104000.710400
0.561.5312001.5311860.6336000.633600
0.601.5646001.5646420.5600000.560000
0.641.5972001.5971950.4896000.489600
0.681.6288001.6287930.4224000.422400
0.721.6594001.6593850.3584000.358400
0.761.6889001.6889210.2976000.297600
0.801.7174001.7173560.2400000.240000
0.841.7446001.7446430.1856000.185600
0.881.7707001.7707390.1344000.134400
0.921.7956001.7956020.0864000.086400
0.961.8192001.8191920.0416000.041600
1.001.8415001.8414710.0000000.000000

Numerical values of the Adams and explicit Runge-Kutta scheme for Examples 3 and 4.

xExample 3Example 4
0.000.0000000.0000001.0000001.000000
0.040.0400000.0399891.0408001.040811
0.080.0799000.0799151.0833001.083287
0.120.1197000.1197121.1275001.127497
0.160.1593000.1593181.1735001.173511
0.200.1987000.1986691.2214001.221403
0.240.2377000.2377031.2712001.271249
0.280.2764000.2763561.3231001.323130
0.320.3146000.3145671.3771001.377128
0.360.3523000.3522741.4333001.433329
0.400.3894000.3894181.4918001.491825
0.440.4259000.4259391.5527001.552707
0.480.4618000.4617791.6161001.616074
0.520.4969000.4968801.6820001.682028
0.560.5312000.5311861.7507001.750673
0.600.5646000.5646421.8221001.822119
0.640.5972000.5971951.8965001.896481
0.680.6288000.6287931.9739001.973878
0.720.6594000.6593852.0544002.054433
0.760.6889000.6889212.1383002.138276
0.800.7174000.7173562.2255002.225541
0.840.7446000.7446432.3164002.316367
0.880.7707000.7707392.4109002.410900
0.920.7956000.7956022.5093002.509290
0.960.8192000.8191922.6117002.611696
1.000.8415000.8414712.7183002.718282
4. Conclusions

The present study is carried out to design a novel second-order prediction differential model by manipulating the strength of the Adams numerical scheme and explicit Runge–Kutta scheme. The designed novel prediction differential model will be very useful and can be applied in many applications. Four different variants of the designed model have been solved by using the Adams and Runge–Kutta schemes and compared the obtained numerical results with the exact solutions. The overlapping of the exact and numerical reference solutions show the worth and accuracy of the novel designed prediction differential model. It is clear in understanding that the proposed methods are valuable and suitable for solving the second-order prediction differential model due to accurate results for all the examples of the second-order prediction differential model. For solving all four examples, the proposed Adams and explicit Runge–Kutta schemes are found to be very good in terms of accuracy and convergence. Software used for solving the prediction differential model is MATLAB R 2017(a) package and Mathematica 10.4.

In future, the nonlinear prediction Lane–Emden model and nonlinear prey-predator singular prediction model can be designed and solved via an artificial neural network .

Data Availability

Our manuscript is not data-based.

Conflicts of Interest

The authors declare that they have no conflicts of interest.