PLoS ONE
Home Approximating non linear higher order ODEs by a three point block algorithm
Approximating non linear higher order ODEs by a three point block algorithm
Approximating non linear higher order ODEs by a three point block algorithm

Competing Interests: The authors have declared that no competing interests exist.

‡ These authors also contributed equally to this work.

Article Type: research-article Article History
Abstract

Differential equations are commonly used to model various types of real life applications. The complexity of these models may often hinder the ability to acquire an analytical solution. To overcome this drawback, numerical methods were introduced to approximate the solutions. Initially when developing a numerical algorithm, researchers focused on the key aspect which is accuracy of the method. As numerical methods becomes more and more robust, accuracy alone is not sufficient hence begins the pursuit of efficiency which warrants the need for reducing computational cost. The current research proposes a numerical algorithm for solving initial value higher order ordinary differential equations (ODEs). The proposed algorithm is derived as a three point block multistep method, developed in an Adams type formulae (3PBCS) and will be used to solve various types of ODEs and systems of ODEs. Type of ODEs that are selected varies from linear to nonlinear, artificial and real life problems. Results will illustrate the accuracy and efficiency of the proposed three point block method. Order, stability and convergence of the method are also presented in the study.

Rasedee,Abdul Sathar,Othman,Hamzah,Ishak,and Sandeep: Approximating non linear higher order ODEs by a three point block algorithm

Introduction

The multistep method was discovered by Bashforth and Adams [1] in their pursue to extend Euler’s method. The idea which was then named the Adams-Bashforth method was formulated by obtaining the approximated solution for a point by way of solution values from multiple previous steps. Milne [2, 3] then established a new form of multistep method, known as the predictor-corrector formulation. The modern multistep method was widely researched by authors such as [49].

Krogh [6], managed to revitalize the field of numerical method for solving ordinary differential equations (ODEs) which was almost discarded as robust, with a divided difference approach. The premise of his work is that the back values of any point of the derivative could be interpolated. In the same study, Krogh presented a comparison for two second order problems similar to the problem provide in [5], where Gear had introduced a Nordsieck version of the multi step method.

The current study is part of research series motivated by [9]. Suleiman [9] developed an algorithm for solving stiff and non stiff higher order ordinary differential equations. The nonstiff portion of the algorithm was derived in a divided difference formulation whereas the stiff algorithm was red obtained using a backward differentiation formulation. Suleiman [9] introduced a divided difference formulation known as Direct Integration (DI) method for solving nonstiff higher order ODEs directly. Omar [10] then established a new variation of the DI method by implementing a block algorithm. The block DI method developed by Omar consists of two different red algorithms, namely explicit block method and implicit block method algorithms. The block method developed in Omar [10] was matched by a fully implicit block method established by Abdul Majid [11]. In [12], authors presented a predictor-corrector algorithm in backward difference form for solving higher ODEs. The backward difference formulation from [12] was then extended in [13]. Md Ijam [13] fitted the backward difference formulae with a two point block algorithm, reducing the number of function evaluations by half.

The current study is established to overcome drawbacks of the DI method as well to provide an efficient numerical multistep method. When establishing a numerical method, accuracy has constantly been the benchmark to determine its viability. But, as numerical methods become more and more robust, accuracy alone is longer sufficient hence, the need for efficiency. The efficiency of a numerical method is associated with computational cost which translates into accuracy per step. The current study proposes a three-point block multistep formulation (3PBCS) in backward difference form for solving higher order ODEs directly. The three-point formulation requires only a fraction of computational steps usually required by standard methods. Complemented with an Adams equivalent predictor-corrector algorithm, the 3PBCS method is able to reduce computational cost more significantly. The drawback of the 3PBCS method, is the need for establishing three set of coefficients for each blocks but, by establishing multiple recursive relationships between explicit and implicit coefficients and also for coefficients of different orders, the corrector algorithm can be written in terms of the predictor which eliminates redundancy in the form of unnecessary calculations. This issue becomes irrelevant if introduced with a parallel algorithm.

Recent advancement in related area can be found in works such as [1427] and others.

Establishing the three-point block method

Ordinary differential equations are often used to model the occurrence of natural phenomenon to man made mechanics. Among these applications include modeling two body motions, chemical reactions and engineering problems such as the bend of a thin clamped beam. These ODE models can be categorized into stiff and nonstiff. However, the study conducted here focuses mainly on initial value nonstiff ODEs of any order. We begin by considering the higher order ODE,

with the initial conditions
In a three point block formulation, derivation of all three points are necessary. But, to avoid unwanted redundancy, only derivation of the third point will be elaborated. Comprehensive derivation of the first and second points can be obtained from [28] and [13]. When formulating a predictor-corrector three-point block algorithm, obtaining the explicit and implicit integration coefficients is crucial. The proposed three-point block method follows similar formulation to the Adam-Basthforth-Moulton method.

The predictor

The third point predictor is derived by integrating (1) once with the limit of integration from ti to ti+3 which is then denoted as

Then, we approximate ϕ(t, f, f′, …, f(n−1)) using the Newton Gregory backward difference polynomial
and substituting dt = hds, thus allowing Eq (2) to be rewritten as
Next, the integral in (3) is substituted by
which provides the following first order predictor formulation
This is then followed by derivation of the second order predictor formulation. The second order predictor is established by integrating (1) twice, which results to the following
Again, we substitute ϕ(t, f, f′, …, f(n−1)) with the Newton Gregory backward difference polynomial then replacing (tti+3) by h(3 − s) where s is as previously defined, yields
Then, replacing the integral
gives
For the nth order integration, (1) is integrated n fold,
Implementing similar step as the previous order, yields
where

The corrector

Derivation of the corrector also begins with integrating (1) once, which introduces the corrector as follows

Again, approximating ϕ(t, f, f′, …, f(n−1)) using the Newton Gregory backward difference polynomial with some subtle differences,
and substituting dt = hds, the corrector in the following form
Let denote
then by amending (7) we have,
Because derivation of subsequent orders follow the same sequence, we skip ahead to the nth order derivation. The derivation continues with integrating (1) n number of times
thus yielding
after applying similar process as the preceding orders.

Integration coefficients

In a three point block predictor-corrector method, it is highly beneficial to obtain the relationship between integration coefficients. In this section, firstly the explicit and implicit integration coefficients are derived. Then a recursive relationship between explicit and implicit integration coefficients and also coefficient of different orders are established.

Explicit coefficients

To derive the explicit integration coefficient, we first denote the first order generating function, G3,1p(t) as

By replacing β3,1,jptj as defined in (4), G3,1p(t) takes the following form
and by solving the integral establishes the following generating function
By way of (12), the generating functions can be written in terms of β3,1,jp
Expanding the functions in (14) then gives the following set of first order explicit coefficients,
Next, the second order generating function has similar form as (11), where
and by substituting β3,2,jptj with (5) we can rewrite G3,2p(t) as
Then, solving (15) yields
thus establishing
By mathematical induction, the nth order explicit generating function and set of coefficients can be constructed as
and

Implicit coefficients

The implicit integration is derived by first defining the first order implicit generating function

Subsequent to defining the generating function, G3,1c(t) is then equated as
with the solution
hence extracting the following set of coefficients
The second order implicit generating function is defined by
where β3,2,jc is replaced with
thus re-defining the generating function as
Next, G3,2c(t) is expressed in the form of
which is then translated into the following set of coefficients
The nth order generating function can then be mathematically deduced as
which subsequently produces the nth order implicit coefficients

Recursive relationship

Calculating both predictor and corrector can be expensive, especially when the calculation requires large number of integration. By obtaining a recursive relationship between explicit and implicit coefficients, the corrector can be written in terms of predictor which will reduce the need for extensive calculation to obtain the corrected value. We begin by establishing the recursive interrelationship between explicit and implicit coefficients of the first order. From (13) and (18), the first order explicit and implicit generating functions are given respectively as

and
Next, consider rearranging the implicit first order generating function G3,1c(t) which then can be denoted as
and then simplified as
Then substituting the set of first order explicit and implicit coefficients obtained in (11) and (17) into (21) establishes the following
which can reformulated yielding the following explicit-implicit relationship.
We then continue with the second order explicit and implicit coefficients beginning with the generating functions which can be obtained respectively from (16) and (19) as
and
Using the relationship obtained from (21), G3,2c(t) can be written as
and by way of (16), then denoted as
which yields a similar relationship as (22)
Finally via similar approach, the nth order generating function can be mathematically deduced as
with the recursive relationship for nth order explicit-implicit integration coefficient denoted as

Order, stability and convergence

Conditions that satisfy order and zero stability of block methods have been researched by authors such as [2931]. Order and stability of the proposed method presented in this study uses techniques provided in [30]. Before establishing order and stability of the method, here are preliminary definitions that are required.

Preliminaries

This section provides necessary definitions to determine issue of stability, convergence and order of the method. We begin with the definition of the general linear multistep method.

Definition 1 The general linear multistep method is denoted by

Next, lets define the linear differential operator for the general linear multistep method as

Definition 2 The linear differential operator L associated with the linear multistep method is defined

where g(t) is an arbitrary function in C1[a, b].

Let g(t) be a function that is q times differentiable. Next, expand g(t + ih) and g′(t + ih) about t and arrange as

where Ci, i = 0, 1.…, q, … are constants.

Definition 3 The linear multistep method and associated difference operator L are said to be of order p if, C0 = C1 = … = Cq = 0, Cq+1 ≠ 0 where

Definition 4 The block method is zero stable if the roots rj, j = 1, …k of the first characteristic polynomial ρ(r) denoted by
satisfies the conditions |rj| ≤ 1 and the roots with |rj| = 1 where the multiplicity does not exceed 2.

Definition 5 A Linear Multistep Method is said to be consistent if the LLM is of order p ≥ 1.

Order of the method

In the current section, order of both predictor and corrector will be substantiated for k = 6 number of back values. For simplicity, the example selected is of f′. Beginning with the predictor, fi+b for b = 1, 2, 3 of the three block method can be expressed as

The order of the method follows Definition 1, where (23) to (25) are defined as matrices which satisfy
where the matrices obtained are as follows
and
The coefficients matrices are then split into sets of vector columns

By way of Definition 3, from the set of vector columns yield

thus, establishing the predictor is of order 5 with a corresponding error constant of
Next, the order method for the corrector begins by denoting the corrector as follows
Again by Definition 3 and derived in similar fashion as the predictor, it is established that the corrector formula is of order 6 with the error constant

Zero stability

Zero stability governs certain conditions which dictates the viability of a linear multistep method. The stability of the three point block method can be established by following similar conditions as presented in [7]. To establish whether the method is zero stable, derivation begins with the predictor. By way of the standard linear test problem

and applying Eqs (23) to (25) and (26) to (28), the predictor and corrector can reformulated as
and
respectively. Next, consider the stability polynomial which is denoted by,
By way of the stability polynomial, (29) and (30) can consequently be expressed as
and
For zero stability, we let Λ = 0 which yields the stability polynomial for both predictor and corrector as
with roots t0 = … = t5 = 0, t6 = 1. Thus, Definition 4 dictates that both predictor and corrector formulae are zero stable.

Convergence of the backward difference method

Works of [32] highlights that certain conditions are required in order to validate the convergence of a backward difference formulation. Those conditions are governed by the following.

Theorem 1 Conditions necessary for the linear multistep method (6) and (10) to be convergent are

    Methods must be consistent

    Methods must be zero stable

For proof of the theorem, we refer readers to works of [32].

The order of the method was established in earlier subsection as following: The predictor

The corrector
Hence, by Definition 5 the predictor and corrector are consistent of orders 5 and 6 respectively. And as shown in the previous subsection, both methods are zero stable ergo satisfying the necessary conditions for convergence.

Finally, we proceed with the subsequent section, the long awaited numerical results.

Results and discussion

Real life science and engineering problems are often modeled in the form of ODEs. Every so often, these problems are not able to be solved analytically, thus requires numerical approximations. These numerical approximations are often used as alternative solutions due to the absence of analytical solution. The current section provides results for selected higher order ODEs using the proposed three point block method (3PBCS) with constant step size. Problems selected varies from linear to nonlinear artificial and real life problems which are in the form of single and systems of equations. The problems selected also consist of various difficulty levels in order to provide a holistic overview of the 3PBCS method’s capability. For a more just comparison, the 3PBCS method is compared against Direct Integration (DI), one point block (1PBCS) and two point block (2PBCS) methods. Results will be compared in terms of accuracy, function evaluations and efficiency. The error solution used in this study adopts techniques suggested in [12] which is given by

where the nth component of the exact solution is denoted by (fi)n and the nth component of the approximated solution for f is denoted by f(ti)n. The error Errn is used to define three types of error test used this study, absolute error (A = 1, B = 0), relative error (A = 0, B = 1) and mixed error (A = 1, B = 1) tests. Before continuing with the numerical results, these are a few terms that will be used throughout the section.

Higher order problems

This section begins with higher order differential problems which are artificial in nature and of different orders then followed with well known differential equations. Examples 1-3 are 4th to 5th order problems obtained from various sources.

Example 1: A non homogeneous 4th order ODE,

with the initial conditions f|0 = 0, f′|0 = 1, f″|0 = 0, f‴|0 = −1 and given analytical solution f(t) = sin(t). (Source: [33])

Example 2: A 4th order non linear ODE

with the initial condtions f|0 = 1, f′|0 = −0.1, f″|0 = 0.02, f‴|0 = −0.006 and given analytical solution f(t)=1010+t. (Source: [34])

Example 3: A 5th order non linear ODE

with the initial condtions f|1 = 1, f′|1 = −1, f″|1 = 2, f‴|1 = −6f(iv)|1 = 24 and given analytical solution f(t)=1t. (Source: [16])

Table 1 presents numerical results of the 1PBCS, 2PBCS and 3PBCS methods for Examples 1 -3. The 1PBCS approximates single steps of equidistant, the 2PBCS approximates two-points of equidistant simultaneously and the 3PBCS approximates three-points of equidistant simultaneously. Results will compare accuracy and total steps approximated by all three methods for step sizes 10−1, 10−2, 10−3, 10−4 and 10−5. Tstep represents the total steps required and Err denotes the maximum error estimated for each method in the interval T0tTn. The 1PBCS and 2PBCS methods were selected to compare efficiency of the 3PBCS when solving higher order ODEs with other backward difference methods to provide a fair analysis. The analysis of Examples 1 to 3 begins with results provided in Table 1. As shown in Table 1, the 3PBCS method obviously requires less calculation steps compared to the latter even though some loss of accuracy is expected. For Example 2, the 3PBCS is able to match the level of accuracy of 1PBCS and 2PBCS methods but slightly under-performed in Examples 1 and 3. Whereas Table 2 provides computational time (Time) which is recorded in seconds for Examples 1-3. As exhibited in Table 2, 3PBCS requires less computational time compared to 1PBCS and 2PBCS methods for almost all step sizes, except at H = 1 × 10−1. This is due to the initial calculation of the three-point block integration coefficients. The small amount of Tsteps required to calculate the solutions from beginning to end outweighs the efficiency of the 3PBCS method. But as a smaller H is selected, more Tstep is required which redistributes calculation time of the initial 3PBCS integration coefficients thus leads to a lesser overall computational time. This loss is barely significant and can be overcome in a variable order stepsize algorithm. Figs 13 compares the efficiency of the methods. As defined in [12], the efficiency of the methods is the accuracy per step and by way of the under most curve, graphs depicted in Figs 13 show the 3PBCS method to be slightly more efficient than latter methods.

Efficiency of the 1PBCS, 2PBCS and 3PBCS methods for Example 1.
Fig 1

Efficiency of the 1PBCS, 2PBCS and 3PBCS methods for Example 1.

Efficiency of the 1PBCS, 2PBCS and 3PBCS methods for Example 2.
Fig 2

Efficiency of the 1PBCS, 2PBCS and 3PBCS methods for Example 2.

Efficiency of the 1PBCS, 2PBCS and 3PBCS methods for Example 3.
Fig 3

Efficiency of the 1PBCS, 2PBCS and 3PBCS methods for Example 3.

Table 1
Comparison between 1PBCS, 2PBCS dan 3PBCS methods for Examples 1 to 3.
HMethodExample 1Example 2Example 3
TStepsErrMaxTStepsErrMaxTStepsErrMax
10−11PBCS1007.45376e-011001.15401e-04203.21086e-01
2PBCS506.66935e-01502.34228e-04103.59297e-01
3PBCS349.35380e-01345.11552e-0476.48511e-01
10−21PBCS10008.23960e-0310001.15142e-062002.54695e-03
2PBCS5001.62497e-025002.30738e-061005.16502e-03
3PBCS3343.79323e-023345.17431e-06671.15395e-02
10−31PBCS100008.16835e-05100001.15118e-0820002.54180e-05
2PBCS50001.63524e-0450002.30283e-0810005.09487e-05
3PBCS33343.67387e-0433345.17962e-086671.14395e-04
10−41PBCSI1000008.16543e-071000001.14942e-10200002.54175e-07
2PBCS500001.63373e-06500002.30188e-10100005.08467e-07
3PBCS333343.67505e-06333345.18013e-1066671.14379e-06
10−51PBCS10000005.45040e-0910000001.58909e-122000002.54041e-09
2PBCS5000001.62002e-085000001.86703e-121000005.08386e-09
3PBCS3333343.58752e-083333344.42069e-12666671.14377e-08
Table 2
Comparison in computational time between 1PBCS, 2PBCS dan 3PBCS methods for Examples 1 to 3.
HMethodExample 1Example 2Example 3
TimeTimeTime
10−11PBCS3.0323.0323.027
2PBCS3.0323.0323.027
3PBCS3.0333.0333.029
10−21PBCS3.0443.0413.036
2PBCS3.0413.0373.036
3PBCS3.0373.0353.036
10−31PBCS3.0493.0483.052
2PBCS3.0463.0463.052
3PBCS3.0423.0413.049
10−41PBCSI3.1823.1923.072
2PBCS3.1743.1863.070
3PBCS3.1653.1753.068
10−51PBCS4.3114.3223.289
2PBCS4.3014.3103.285
3PBCS4.2894.2983.278

Example 4: A 3rd order systems of ODE,

with the initial conditions f1|0 = 1, f1|0=-1, f1|0=1, f2|0 = 1, f2|0=-2, f2|0=4, f3|0 = 1, f3|0=-3 and f3|0=9 and given analytical solutions f1(t) = et, f2(t) = e−2t and f3(t) = e−3t. (Source: [35])

Table 3 compares results between the DI and 3PBCS methods. Opposed to the 3PBCS backward difference formulation, the DI method is derived with a divided difference formulation. The DI method was chosen to test the 3PBCS with a competing predictor-corrector multistep method. Results presented highlights maximum error (ErrEQ1, ErrEQ2, ErrEQ3) for each of equation, f1, f2 and f3 and the overall maximum error for each step size, ErrMax. The error is obtained by comparing approximated solution with the exact solution, |(fi)n-f(ti)nA+B(f(ti)n)| with conditions established in (31). The DI was selected because of its divided difference formulation. The purpose was to test the performance of the 3PBCS method against an alternative multistep method using similar parameter. In the current case, both methods were set using similar order methods (same number of back values). Results of the current example clearly illustrates the advantage of 3PBCS over the DI method.

Table 3
Comparison between DI dan 3PBCS method for Example 4.
HMethodTStepsErrEQ1ErrEQ2ErrEQ3ErrMax
10−1DI301.00000e+001.00000e+001.00000e+001.00000e+00
3PBCS101.00000e+001.00000e+001.00000e+001.00000e+00
10−2DI3001.00000e+001.00000e+001.00000e+001.00000e+00
3PBCS1006.69108e-021.77349e-021.05606e-026.69108e−02
10−3DI30008.40056e−013.82868e−011.15686e−018.40056e−01
3PBCS10001.98994e-041.78543e-041.22428e-041.98994e-04
10−4DI300004.04766e−021.56457e−022.34364e−034.04766e−02
3PBCS100001.97238e-061.78345e-061.22641e-061.97238e-06
10−5DI3000002.31051e−031.55405e−032.24310e−042.31051e−03
3PBCS1000001.97209e-081.78295e-081.22651e-081.97209e-08

Example 5: The problem presented is a artificial second order ODE with periodic solution. The second order ODE

with the initial condtions f|0 = −1, f′|0 = 50 and given analytical solution f(t) = sin(50t) − cos(60t) provides an unique oscillatory solution.

Table 4 provides numerical approximation by the 3PBCS and the provided exact solution for Example 5. Due to the difficulty of the current example, the step size of order H = 10−5 is selected. Results show a consistent approximation error of 1×10−6 for every point. To further validate the accuracy of 3PBCS as suitable method for the approximation of a non linear ODE with periodic solution, 3PBCS is compared against NDSOLVER, a preset Euler method equipped in Mathematica 12. The plotted graph displayed in Fig 4 shows that the 3PBCS method matches the solution obtained by NDSOLVER thus, confirming the accuracy of the method. Figs 5 and 6 are 2D and 3D parametric plots of Example 5 by the 3PBCS. For a clear understanding of the difficulty level for Example 5, readers may also refer to a 3D representation of the periodic solutions as illustrated in Fig 7.

Comparison between NDSOLVER and 3PBCS for the solution of Example 5.
Fig 4

Comparison between NDSOLVER and 3PBCS for the solution of Example 5.

Parametric plot of f and f′ of 3PBCS method for Example 5.
Fig 5

Parametric plot of f and f′ of 3PBCS method for Example 5.

3D parametric plot of f, f′ and f″ approximated by 3PBCS method for Example 5.
Fig 6

3D parametric plot of f, f′ and f″ approximated by 3PBCS method for Example 5.

3D representation of 3PBCS method for Example 5.
Fig 7

3D representation of 3PBCS method for Example 5.

Table 4
Comparison between the 3PBCS approximation and exact solution for Example 5.
Approximate f(tn+3)Exact fn(t)ErrMax
0.5-2.86605e−03-2.86603e−031.29539e−06
16.90035e−016.90038e−012.46112e−06
1.56.02881e−026.02920e−023.85117e−06
2-1.32055e+00-1.32055e+004.36827e−06

Application problems

Test problems in the current section are practical ODEs that are found in real applications including two body motion, thin flow and electrical circuits. Lets begin with the renowned two body motion.

Example 6: Newton’s equation of the two body motion problem refers to the movement of two particle interacting which each other due to gravitational pull, neglecting any third body the two do not collide with (see Fig 8)

The two body problem.
Fig 8

The two body problem.

In the current research, we consider the following formulation of the two body problem

with the initial conditions f1|0=1f1|0=0,f2|0=0,f2|0=1 and given analytical solution f1(t) = cos(t), f2(t) = sin(t). (Source: [36])

Data provided in Table 5 are numerical approximations for Example 6 using DI and 3PBCS method. Results exhibits that when using a larger step size, both methods are comparable but as smaller step size are used, 3PBCS begins showing an obvious advantage. Results produced in the table shows that the accuracy of 3PBCS improves at a rate of H2 compared to e the DI method which barely equals the current step size. To further validate the capability of the 3PBCS method, Figs 9 dan 10 show graphical approximation of f1 and f2 by NDSOLVER and 3PBCS methods. It is clear that both methods practically overlap each other, point by point. Fig 11 is presented to illustrate the orbit of the two body motion as approximated by 3PBCS. Example 6, with the current initial conditions presents a circular orbit (orbit 1), where as, by changing the initial conditions to f1|0=0.4f1|0=0,f2|0=0,f2|0=2, gives Example 6 a Kepler-like solution which produces an elliptic orbit (orbit 2) and can be verified from the work of Shampine and Gordon [37].

Comparison between NDSOLVER and 3PBCS for f1 of Example 6.
Fig 9

Comparison between NDSOLVER and 3PBCS for f1 of Example 6.

Comparison between NDSOLVER and 3PBCS for f2 of Example 6.
Fig 10

Comparison between NDSOLVER and 3PBCS for f2 of Example 6.

Orbit for Example 6 with different initial conditions.
Fig 11

Orbit for Example 6 with different initial conditions.

Table 5
Comparisan of accuracy and total step of 5 different step size for Example 6.
HExample 6
MethodTStepsErrEQ1ErrEQ2
10−1DI1007.86394e−029.00026e−02
3PBCS342.37337e−022.11901e−02
10−2DI10008.02804e−039.24779e−03
3PBCS3343.11795e−043.22462e−04
10−3DI100008.02694e−049.28815e−04
3PBCS33343.20106e−063.33937e−06
10−4DI1000008.02843e−059.29075e−05
3PBCS333343.20816e−083.34984e−08
10−5DI10000008.02848e−069.29096e−06
3PBCS3333343.00597e−103.43977e−10

Example 7: Many problems in engineering and physics are based on the famous thin flow of liquid which is a third order ODEs with the ideal draining flow as shown in Fig 12.

An idealized draining flow.
Fig 12

An idealized draining flow.

These thin film flow problems can be found in various form like the the infamous drainage dry surface given by the function

Consider a thin film pre-wetted surface with a remotely small thickness, ω > 0. This changes the function to
Among the main concern is the tension surface effects when dealing with a flow of thin film of viscous fluid with free surface. As discussed in [38]
with initial values f|0 = , f′|0 = 1, f′|0 = 1. (Source: [39]) exemplify the dynamic balance against the strength of a thin fluid layer, disregarding gravity.

Because the thin flow problem have no exact or analytical solution, the solution by 3PBCS is compared against the solution obtained by the DI. Table 6 presents the approximated solution obtained by 3PBCS method of f, f′ and f″ for the points 1.0, 1.5, 2.0, 2.5, 3.0, 3.5 and 4.0. As shown in Table 6, both methods are comparable with similar approximation up to at least 5 decimal points. Fig 13 compares solutions by NDSOLVER and 3PBCS. For the current example, 3PBCS method approximates the solution using a step size of H = 1 × 103. Even at the current stepsize, the figure shows 3PBCS ability to match step by step solution of the NDSOLVER. Whereas, Fig 14 illustrates the difference of solution between f, f′ and f″.

Comparison between NDSOLVER and 3PBCS for the solution of Example 6.
Fig 13

Comparison between NDSOLVER and 3PBCS for the solution of Example 6.

Numerical approximation of f, f′ and f″ by the 3PBCS method for Example 6.
Fig 14

Numerical approximation of f, f′ and f″ by the 3PBCS method for Example 6.

Table 6
Numerical approximation by DI and 3PBCS method of points f, f′ and f″ for Example 7 given k = 2.
TOLMethodk = 2
fff
1.0DI2.60828e+002.28486e+001.46992e-01
3PBCS2.60828e+002.28491e+001.46992e-01
1.5DI3.93278e+003.01725e+006.46548e-02
3PBCS3.93278e+003.01725e+006.46548e-02
2.0DI5.62831e+003.76676e+003.15678e-02
3PBCS5.62831e+003.76677e+003.15678e-02
2.5DI7.70090e+004.52454e+001.68623e-02
3PBCS7.70090e+004.52454e+001.68623e-02
3.0DI1.01536e+015.28668e+009.69980e-03
3PBCS1.01536e+015.28669e+009.69979e-03
3.5DI1.29880e+016.05132e+005.92811e-03
3PBCS1.29880e+016.05132e+005.92811e-03
4.0DI1.62051e+016.81747e+003.80798e-03
3PBCS1.62051e+016.81747e+003.80798e-03

Example 8: Consider the second order RLC circuit in Fig 15 below, with resistance of 2 ohm, capacitor at 1260 and inductor at 0.1 Henry and electrical force of 100 sin 60tV. The objective is to find the capacitor charge at any time, t > 0 given the initial current and initial charge of the capacitor are both zero. By Kirchhoff law, the following second order differential equation can be derived,

with the initial conditions f|0 = 0, f′|0 = 0 and given analytical solution f(t)=6e-10t61(6sin(50t)+5cos(50t))-561(5sin(60t)+6cos(60t)). (Source: [40])

Second order RLC circuit.
Fig 15

Second order RLC circuit.

The following Table 7 contains numerical results of 3PBCS method for example. The approximated values for end points (Tn) 0.5, 1.0, 1.3 and 2.0 are provided with the corresponding exact solutions. The maximum error of all points, ErrMax is defined by T0 ≤ |f(tn+b) − f(t)| ≤ Tn, b = 1, 2, 3 is also provided for a clearer view of 3PBCS abilities. As demonstrated in Table 6, 3PBCS is consistently accurate to the seventh decimal point when applying a stepsize of H = 1 × 10−3. Fig 16 is the approximate solution for fn by NDSOLVER and 3PBCS. The graphical overlap shown in the figure exhibits the similar accuracy of both methods, whereas Fig 17 is parametric plot of Example 8 presented to express the level of difficulty of the problem.

Comparison between NDSOLVER and 3PBCS for the solution of Example 7.
Fig 16

Comparison between NDSOLVER and 3PBCS for the solution of Example 7.

Parametric plot of f and f′ of 3PBCS method for Example 7.
Fig 17

Parametric plot of f and f′ of 3PBCS method for Example 7.

Table 7
Comparison of approximated solution and exact solution for Example 8.
Approximate f(tn+3)Exact fn(t)ErrMax T0 ≤ |f(tn+b) − fn(t)| ≤ Tn
0.53.31828e-013.31828e-011.82051e-07
15.93337e-015.93337e-011.82051e-07
1.5-1.46028e-01-1.46028e-011.82051e-07
2-6.38372e-01-6.38372e-011.82051e-07

Example 9: The Van der Pol equation is an ODE that is derived from Rayleigh differential equation. In a Van der Pol equation,

f(t) is defined as the displacement of the periodic solution and f|0 is the amplitude of the oscillation (Source: [41]). The classical nonlinear dynamics of a self sustained oscillation is commonly modeled when ξ > 0. Parameters used for this problem are ξ = 0.025 for 0 ≤ t ≤ 40 with initial conditions f|0 = 0, f′|0 = 0.5.

Example 9 is originally a problem obtained from [42]. The Van Der Pol equation selected does not have any known analytical solution. Table 8 provides approximated values of f, f′ and f″ for 5 different end points by the DI and 3PBCS methods. Numerical approximation shows that both methods obtained similar values for f, f′ and f″ up to 1 × 10−5. Figs 18 and 19 illustrate the approximated solution, f by the 3PBCS method against NDSOLVER for the interval 0 ≤ t ≤ 40. Results in Fig 18 shows similar approximation for both 3PBCS and NDSOLVER where Fig 19 illustrates a graphical representation approximated values of t against f, f′ and f″. Fig 20 is to present a 3D illustration of f, f′ and f″ which corresponds to similar steps points by the 3PBCS method.

Numerical Comparison between NDSOLVER and 3PBCS.
Fig 18

Numerical Comparison between NDSOLVER and 3PBCS.

Aprroximation of f, f′ and f″ by 3PBCS method.
Fig 19

Aprroximation of f, f′ and f″ by 3PBCS method.

A 3D parametric plot of f, f′ and f″ approximated by 3PBCS method for Example 5.
Fig 20

A 3D parametric plot of f, f′ and f″ approximated by 3PBCS method for Example 5.

Table 8
Numerical result of 3PBCS method in constant order and step size mode for Example 8.
TnMethodfff
0.5DI2.4270367281e-0014.5018020968e-001-2.2152055722e-001
3PBCS2.4270367388e-0014.5018022195e-001-2.2152055773e-001
1.0DI4.3105071043e-0012.8664149615e-001-4.1938160270e-001
3PBCS4.3105073032e-0012.8664156431e-001-4.1938162006e-001
1.5DI5.1671714810e-0014.8026186062e-002-5.1495698025e-001
3PBCS5.1671722009e-0014.8026324566e-002-5.1495704734e-001
2.0DI4.7630950304e-001-2.0708952836e-001-4.8431485170e-001
3PBCS4.7630965708e-001-2.0708934721e-001-4.8431499722e-001
2.5DI3.1729761641e-001-4.1655545180e-001-3.3602849515e-001
3PBCS3.1729786006e-001-4.1655528657e-001-3.3602872814e-001
5.0DI-5.3857425618e-0011.4704130967e-0015.4379376516e-001
3PBCS-5.3857445794e-0011.4704079637e-0015.4379394710e-001

Conclusion

Results provided in the current work validate that 3PBCS is a viable numerical method for solving ODEs. The three-point element of the method allows for lesser computational cost and provides better efficiency compared to its rival counterparts. By simply using a constant step size algorithm decreases computational cost and increases efficiency. Tables 1, 3 and 5 validate the convergence of the method. When a smaller H is selected, the method becomes more accurate and proven to provide a consistent set of accuracy for every point in the interval as indicated in Tables 4 and 7. For future works, the 3PBCS can be fitted with a variable order step size and parallel computing algorithm. The effectiveness of a variable order step size algorithm depends on the selection of a suitable order step size criterion. Authors a currently refining appropriate conditions to provide a better approximation for a variable order step size algorithm.

Acknowledgements

We would like to thank both Universiti Sains Islam Malaysia and Universiti Putra Malaysia for fully supporting our efforts and assisting us in completing this research.

References

FBashforth, JCAdams. An attempt to test the theories of capillary action by comparing the theoretical and measured forms of drops of fluid. Cambridge: Cambridge University Press; 1883.

WEMilne. Numerical integration of ordinary differential equations. The American Mathematical Monthly. 1926; 33(9):455460. 10.1080/00029890.1926.11986619

WEMilne. Numerical solution of differential equations. New York: Wiley; 1953.

PHenrici. Computational methods in ordinary differential equations. Michigan: Wiley; 1962.

CWGear. The numerical integration of ordinary differential equations. Mathematics of Computation. 1966; 21:146156. 10.1090/S0025-5718-1967-0225494-5

Krogh FT. A variable-step, variable-order multistep method for the numerical solution of ordinary differential equations. Proceedings of the IFIP Congress in Information Processing 68. 1968; 194–199.

GHall, JMWatt. Modern numerical methods for ordinary differential equations. Oxford: Clarendon Press; 1976.

JDLambert. Computational methods in ordinary differential equations. New York: John Wiley and Sons: New York; 1973.

Suleiman MB. Generalised multistep Adams and backward differentiation methods for the solution of stiff and non-stiff ordinary differential equations. Manchester: University of Manchester; 1979.

10 

ZOmar, MSuleiman. Solving higher order ordinary differential equations using parallel 2-point explicit bock method. Matematika. 2005; 21(1):1523.

11 

Majid ZA, Suleiman M. Two point fully implicit block direct integration variable step method for solving higher order system of ordinary differential equations. World Congress on Engineering. 2007; 812–815.

12 

Rasedee AFN. Direct method using backward difference for solving higher order ordinary differential equations. Selangor: Universiti Putra Malaysia; 2009.

13 

HMohd Ijam, MSuleiman, AFNRasedee, NSenu, AAhmadian, SSalahshour. Solving Nonstiff Higher-Order Ordinary Differential Equations Using 2-Point Block Method Directly. Abstract and Applied Analysis. 2014; 2014: Article ID 867095, 13 pages. 10.1155/2014/867095

14 

AFNRasedee, MBSuleiman, ZBIbrahim. Solving nonstiff higher order odes using variable order step size backward difference directly. Mathematical Problems in Engineering. 2014; 2014: Article ID 565137, 10 pages. 10.1155/2014/565137

15 

Rasedee AFNB, Sathar MHB, Abdul Deraman F, Mohd Ijam H, Suleiman MB, Saaludin NB, et al. 2 point block backward difference method for solving Riccati type differential problems. AIP Conference Proceedings. 2016; 1775(1): p030005.

16 

NWaeleh, ZAbdul Majid. A 4-point block method for solving higher order ordinary differential equations directly. International Journal of Mathematics and Mathematical Sciences. 2016; 2016: Article ID 565137, 10 pages. 10.1155/2016/9823147

17 

AIAsnor, SAMohd Yatim, ZBIbrahim. Solving Directly Higher Order Ordinary Differential Equations by Using Variable Order Block Backward Differentiation Formulae. Symmetry. 2019; 11(10):10 pages. 10.3390/sym11101289

18 

ZBIbrahim, NZainuddin, KIOthman, MSuleiman, ISMZawawi. Variable Order Block Method for Solving Second Order Ordinary Differential Equations. Sains Malaysiana. 2019; 48(8):17611769. 10.17576/jsm-2019-4808-23

19 

HMd Ijam, ZBIbrahim. Diagonally Implicit Block Backward Differentiation Formula with Optimal Stability Properties for Stiff Ordinary Differential Equations. Symmetry. 2019; 11(11):18 pages.

20 

MKIqbal, MAbbas, NKhalid. New cubic B-spline approximation for solving non-linear singular boundary value problems arising in physiology. Communications in Mathematics and Applications. 2018; 9(3):377392.

21 

MKIqbal, MAbbas, IWasim. New cubic B-spline approximation for solving third order Emden–Flower type equations. Applied Mathematics and Computation. 2018; 331(3):319333. 10.1016/j.amc.2018.03.025

22 

MKIqbal, MAbbas, BZafar. New quartic B-spline approximation for numerical solution of third order singular boundary value problems. Punjab Univ. J. Math. 2019; 51(1):4359.

23 

MKIqbal, MAbbas, IWasim. A new extended B-spline approximation technique for second order singular boundary value problems arising in physiology. J. Math. Comput. Sci. 2019; 19(4):258267. 10.22436/jmcs.019.04.06

24 

MKIqbal, MAbbas, BZafar. New Quartic B-spline Approximations for Numerical Solution of Fourth Order Singular Boundary Value Problems. Journal of Mathematics. 2020; 52(3):4763.

25 

MKIqbal, MWIftikhar, MSIqbal, MAbbas. Numerical treatment of fourth-order singular boundary value problems using new quintic B-spline approximation technique. Int. J. Adv. Appl. Sci. 2020; 7(6):4856. 10.21833/ijaas.2020.06.007

26 

AFNRasedee, MHAbdul Sathar, TJWong, LFKoo, NARamli. Numerical solution for Duffing-Van Der Pol ocsillator via block method. Advances in Mathematics: Scientific Journal 2021; 10(1):1928.

27 

Rasedee AFN, Abdul Sathar MH, Hamzah SR, Ishak N, Wong TJ, Koo LF, et al. Two Point Block variable order step size Multistep Method for Solving Higher Order ODEs. Manuscript submitted for publication; 2020; 23 pages.

28 

MBSuleiman, ZBIbrahim, AFNRasedee. Solution of higher-order ODEs using backward difference method. Mathematical Problems in Engineering. 2011; 2011: Article ID 810324, 18 pages.

29 

HAWatts, LFShampine. A-stable block implicit one-step methods. BIT Numerical Mathematics. 1972; 12(2): 252266. 10.1007/BF01932819

30 

SOla Fatunla. Block methods for second order ODEs. International journal of computer mathematics. 1991; 41(1): 5563. 10.1080/00207169108804026

31 

Ijam HM, Ibrahim ZB, Senu N, Suleiman M, Rasedee AFN. Order and stability of 2-point block backward difference method. AIP Conference Proceedings. 2018; 1974(1): p020054.

32 

MBSuleiman. Some necessary conditions for convergence of the GBDF methods. Mathematics of Computation. 1993; 60(202): 635649. 10.1090/S0025-5718-1993-1176717-5

33 

Phan HT. A new numerical approach for solving higher order nonlinear ordinary differential equations. New South Wales: University of Wollongong; 2002.

34 

FIsmail, KHussain, NSenu. A Sixth-Order RKFD Method with Four-Stage for Directly Solving Special Fourth-Order ODEs. Sains Malaysiana. 2016; 45(11): 17471754.

35 

FAFawzi, NSenu, FIsmail. An efficient of direct integrator of Runge-Kutta type method for solving y‴ = f(x, y, y′) with application to thin film flow problem. International Journal of Pure and Applied Mathematics. 2018; 120(1): 2750.

36 

Rasedee AFN, MdIjam H, Abdul Sathar MH, Ishak N, Nazri MA, Kamarudin NS, et al. Block variable order step size method for solving higher order orbital problems. AIP Conference Proceedings. 2017; 1905(1): p030028.

37 

LFShampine, MKGordon. Computer solution of ordinary differential equations: the initial value problem. San Francisco: Freeman; 1975.

38 

EOTuck, LWSchwartz. A numerical and asymptotic study of some third-order ordinary differential equations relevant to draining and coating flows. SIAM review. 1990; 32(3): 453469. 10.1137/1032079

39 

BDuffy, SKWilson. A third-order differential equation arising in thin-film flows and relevant to Tanner’s law. Applied Mathematics Letters. 1997; 10(3): 6368. 10.1016/S0893-9659(97)00036-0

40 

AHasan, MAHalim, MAMeia. Application of Linear Differential Equation in an Analysis Transient and Steady Response for Second Order RLC Closed Series Circuit. American Journal of Circuits, Systems and Signal Processing. 2019; 5(1): 18.

41 

NZMukhtar, ZAMajid, FIsmail, MSuleiman. Numerical solution for solving second order ordinary differential equations using block method. International Journal of Modern Physics: Conference Series. 2012; 9: 560565.

42 

JVigo-Aguiar, HRamos. Variable stepsize implementation of multistep methods for y″ = f(x, y, y′). Journal of Computational and Applied Mathematics. 2006; 192(1): 114131.