Research Article  Open Access
Diagonal Block Method for Solving TwoPoint Boundary Value Problems with Robin Boundary Conditions
Abstract
This numerical study presents the diagonal block method of order four for solving the secondorder boundary value problems (BVPs) with Robin boundary conditions at twopoint concurrently using constant step size. The solution is obtained directly without reducing to a system of firstorder differential equations using a combination of predictorcorrector mode via shooting technique. The shooting method was adapted with the Newton divided difference interpolation approach as the strategy of seeking for the new initial estimate. Five numerical examples are included to examine and illustrate the practical usefulness of the proposed method. Numerical tested problem is also highlighted on the diffusion of heat generated application that imposed the Robin boundary conditions. The present findings revealed that the proposed method gives an efficient performance in terms of accuracy, total function calls, and execution time as compared with the existing method.
1. Introduction
This study is focusing on the numerical approach for solving secondorder boundary value problems (BVPs) associated with Robin boundary conditions. Generally, this type of BVPs is given as follows:withwhere , and are all constants and , and all nonzero. In the case of Robin type, both functional value and derivative of the solutions are given in (2). If only functional value is given, then condition in (2) is known as Dirichlet type; otherwise BVPs will be subject to Neumann condition when only derivative values exist. Robin boundary conditions arise in several branches of applications such as in electromagnetic problem and heat transfer problem where these Robin type conditions are called impedance boundary conditions and the convective boundary conditions are, respectively, as explained in [1]. The Bernoulli polynomial together with Galerkin approximation in solving linear and nonlinear Robin boundary condition problems had been studied by Islam and Shirin [2]. The eminent scholars including Duan et al. [3] and Rach et al. [4] had derived the Adomian decomposition methods for solving BVPs imposing this condition where the approach involved analytic stage and numeric simulations. Meanwhile, Bhatta and Sastri [5] and Lang and Xu [6] had transformed respective BVPs into discretization form and solved them using symmetric global (continuous) spline and Quintic Bspline collocation method, respectively.
To optimize the computational cost, the development of proposed algorithm must at least satisfy the facility to generate solutions at several points simultaneously as suggested in Fatunla [7]. This implementation has been shown in the literature discussed by Phang et al. [8], Majid et al. [9], and Omar and Adeyeye [10]. They obtained the approximate solution of (1) at two points concurrently. Therefore, the advantages of outcome from their discussion have motivated us in this study.
Diagonal block method for solving differential equations was widely studied in the previous literatures. These include the discussion on solving firstorder differential equations in [11, 12]. Solving secondorder ordinary differential equations using diagonal block method has been discussed in [13]. The formulation in [12, 13] is based on backward differentiation approach. In [11], the author has derived the diagonal block method using Lagrange interpolation polynomial for solving firstorder ordinary differential equations. In this research, we have extended the derivation in [11] to obtain the formulation of direct integration for solving secondorder differential equations. Then the new formulae obtained have been implemented to solve the boundary value problems. The investigation will be focusing on the Newton divided difference interpolation as an iterative technique in seeking as well as updating the missing initial guesses while performing the shooting technique.
The organization of this paper is as follows. Section 2 presents the derivation of the twopoint diagonal block method. Section 3 elaborates on the analysis of the method including the order, consistency, and stability. Section 4 presents the idea of the procedure of shooting method together with Newton divided difference interpolation as an iterative part. For validation and a clear overview, five tested problems will be discussed in Section 5. Finally, Section 6 concludes the finding from this study.
2. Derivation of the Diagonal Block Method
The interval of is divided into a series of blocks so that each block contains two subintervals with equal distance step size, , as depicted in Figure 1. Both numerical solutions of and in these subintervals are simultaneously generated using the appropriate number of back values. The approximate solution of at the point will be computed using three back values at the points, , and While the approximation of at the point required an additional one back value, The derivation formulae of and will be obtained by integrate equation (1) once and twice over the intervals and , respectively, as follows.
First PointSecond PointThe function in these equations will be approximated using Lagrange interpolating polynomial, By following the standard mathematical process, replace the in (4) and (6) with Lagrange interpolation polynomial that interpolates the set of pointsNow, introducing the variable substitution and into interpolating polynomial, hence, evaluate these integrals using MAPLE with the limit of the integration from to This will generate the corrector formula for the first point. Similar procedure applied to the in (8) and (10) with Lagrange interpolation polynomial that interpolates the set of pointsNext, introduce the variable substitutions and into interpolating polynomial. Again, evaluate these integrals using MAPLE with the limit of the integration from to This will generate the corrector formula for the second point. This twopoint one block method is the combination of mode where P is the predictor formula, C is the corrector, and E is the evaluation of the function, The predictor formulae were derived similarly as the corrector formulae but with the order being one less. In this study, we called the proposed predictorcorrector formula as 2PDD4 method. The 2PDD4 formulae were given as follows.
PredictorCorrectorOnestep method will be used at the beginning of the proposed block method in order to get the starting initial points since multistep method needs more than one previous points before generating the remaining values over the interval.
3. Analysis of the Method
In this section, the order, consistency, stability, and convergence of the proposed twopoint block method are discussed.
3.1. Order of the Method
The main proposed method of (13)–(16) is classified as a member of the Linear Multistep Method (LMM) which generally can be represented asThe local truncation error (LTE) associated with LMM in (17) is defined in the form of linear difference operator asAssume that is sufficiently differentiable, so that expanding the terms in (18) using Taylor’s series about the point will give the following expression:Substituting (19)–(21) into (18) results inSimplifying this givesand now we obtained the expressionwhere
Definition 1. According to Fatunla [7] and Lambert [14], the method in (17) is said to be of order with error constant ifThis concept was used to calculate the order and error constant of the proposed formula as stated in (13)–(16). Now, rewrite the corrector formula in matrix difference form aswith
By choosing the calculation givesThus, the 2PDD4 satisfied order four with the error constant,
3.2. Consistency of the Method
Definition 2. The linear multistep method is said to be consistent if it has order according to [14].
Since the order of the proposed method is , the method is consistent.
3.3. Stability of the Method
Definition 3. The linear multistep method is zero stable provided that the root of the first characteristics polynomial specified as satisfies and for those roots with , the multiplicity must not exceed two as in Lambert [14] and See et al. [15].
Rewrite (15) to (16) in matrix form as follows:From (30), the first characteristic polynomial , whereAccording to Definition 3 and (31), the diagonal twopoint one block method is zero stable.
The test equation used in order to obtain the stability polynomial of the twopoint block follows the idea from [11] as follows:The stability polynomial obtained is as follows:where and
The boundary of the absolute stability region in plane is determined by substituting in the stability polynomial with and for Figure 2 illustrates the regions of the absolute stability for the block method.
The stability region shows that the proposed numerical method will be able to produce reasonable results with the given values of the time steps.
3.4. Convergence of the Method
Definition 4. The linear multistep method is convergent if and only if it is consistent and zero stable [14].
Since the consistency and zero stability of the method have been achieved, in conclusion, the proposed twopoint block method is convergent.
4. Implementation of the Method
In this study, shooting technique will be adapted throughout the solution process where the calculation starts with deciding a set of initial guesses. The behaviour of shooting method is ‘hit or miss’ the target. Due to that, we attempt to obtain the result as close as possible to the required solution with less number of guessing values. Therefore, choosing the right initial guesses and implementing the best method for refining the guessing value are two important elements in this shooting procedure. Initial values of and need to be guessed for the case of Robin type since none of them are given in (2). Starting with the initial guess, for , then the initial guess of is given explicitly from the first boundary condition as follows:where and Compute the approximate solutions using the formula in (13) to (16). We obtained the first stopping condition aswhere , with If this is sufficiently close to the condition in (35), then the BVPs are solved. Otherwise, update the new set of guessing values and the process continues as described in the following algorithm.
Algorithm of 2PDD4
Step 1. Set TOL and
Step 2. Set and calculate the approximate values, and , using the formula in (13) to (16) with where and depend on the test of convergence at each iteration.
Step 3. If , then repeat Step 2. If , then go to Step 4.
Step 4. If the following stopping condition is fulfilled: , then go to Step 6.
Else, continue to Step 5.
Step 5. Generate the new guessing values, and for based on the previous guess using Newton divided difference interpolation formula. Repeat Step 2.
Step 6. Complete.
The first two estimates were decided to be and based on the consideration in Roberts [16]. The calculation for the corrector part involved the test for convergence. The formulae for the calculation of error and convergence test are defined as follows.
Error
Convergence Testwhere r is the number of iterations and is the component of the approximation. result in absolute error test, result in mixed error test, and result in relative error test. All the calculations were done using the C programing code.
5. Numerical Results
In this section, we have applied the algorithm of 2PDD4 to five numerical tested problems to illustrate its accuracy and efficiency. Problem 1 used mixed error test and Problem 2 applied the relative error test whereas Problems 3, 4, and 5 used absolute error test throughout the calculation for obtaining the required result. The following notations are used in the following result. MAXE: Maximum absolute error as stated with AVE: Average absolute error : Step size TOL: Tolerance TS: Total steps at last iteration FCN: Total function call ITN: Total iteration of guess TIME: Time computation in seconds 2PDD4: Direct twopoint diagonal block method of order four proposed in this study 2PDAM4: Direct twostep Adams Moulton method of order four as in Phang et al. [17] DAM4: Direct Adams Moulton method of order four as in Majid et al. [18] BP5: Bernoulli polynomials of degree five proposed by Islam and Shirin [2].
Problem 1. One has linear secondorder differential equationwith and
Exact solution:
Source: Islam and Shirin [2].
Problem 2. One has nonlinear secondorder differential equationwith and
Exact solution:
Source: Duan et al. [3].
Problem 3. One has nonlinear secondorder differential equationwith and
Exact solution:
Source: Duan et al. [3].
Problem 4. One has nonlinear secondorder differential equationwith and
Exact solution: Source: Bhatta and Sastri [5].
Problem 5. One has nonlinear secondorder differential equationwith and
Exact solution:
Source: Lang and Xu [6].
The general equation of Problem 5 given as follows:arises in applications involving the diffusion of heat generated by positive temperaturedependent sources. According to discussion in Agarwal and O’Regan [19], p.295, if , the diffusion of heat arises in the two different analyses as Joule losses either in electrically conducting solids or in frictional heating. For the first analysis, represents the square of the constant current and the temperaturedependent resistance. Meanwhile, for the second part, represents the square of the constant shear stress and the temperaturedependent fluidity. In addition, if and , then problem in (43) has a unique solution.
Data in Tables 1–4 summarized the result obtained for all tested problems at and with In addition, the values ending with in Tables 1–4 denote the maximum error for those particular results. In order to investigate the competency of this proposed method, 2PDD4 has been compared with 2PDAM4 and DAM4. These two existing methods have the same order as 2PDD4 and will solve the BVP problems directly. The same shooting procedure has been implemented in the algorithm as explained in Section 4.
In Table 1, the maximum error of 2PDD4 is comparable with 2PDAM4 and DAM4 but better than BP5. The total function calls and execution times for 2PDD4 are less compared to 2PDAM4 and DAM4. As can be seen in Table 2, the total function calls and number of initial guessing for 2PDD4 are greater than DAM4 at but comparable in terms of computation time. Besides that, 2PDD4 achieved an excellent accuracy result compared to 2PDAM4. In detail, 2PDD4 has less three or twodecimal accuracy than 2PDAM4 for solving Problem 2 with and , respectively. Method 2PDD4 needs less total function call and obtained smallest maximum error compared to other methods as displayed in Table 3. Table 4 has shown that 2PDD4 required only one initial guessing as compared to 2PDAM4 and DAM4 for solving Problem 4 at Due to this efficient iterative performance, 2PDD4 gives a superiority result in terms of execution times and total function calls.




Overall, a similar number of total steps are observed from all the data generated by 2PDD4 and 2PDAM4 as presented in Tables 1–4. These results justify that both methods have potential to reduce the total step approximately by half when computing the results at twopoint simultaneously.
Finally, Table 5 describes the comparison of maximum error obtained in Lang and Xu [6] using the Quintic bspline collocation method of order four with 2PDD4 method. The first three results demonstrate that the maximum error for both methods is comparable. However, at and , the results showed that 2PDD4 are able to achieve smaller maximum error than the method in [6]. Figures 3, 4, 5, and 6 display clear information about the comparison of the maximum errors versus the total function call as well as time for the numerical results summarized in Tables 1–4. Comparison result for Problem 5 is as depicted in Figure 7.

(a) Comparison of FCN and MAXE
(b) Comparison of TIME and MAXE
(a) Comparison of FCN and MAXE
(b) Comparison of TIME and MAXE
(a) Comparison of FCN and MAXE
(b) Comparison of TIME and MAXE
(a) Comparison of FCN and MAXE
(b) Comparison of TIME and MAXE
6. Conclusion
This study has presented a diagonal twopoint block method formula of order four to solve directly the linear and nonlinear secondorder Robin boundary conditions. Overview from the results showed a significant finding that the proposed diagonal block method manages to give faster execution time and less number of total function calls in all tested problems. The proposed method is able to achieve good accuracy when solving the problems. Future work should be devoted to solving third and fourthorder Robin boundary value problems.
Data Availability
All data generated or analysed from the five tested problems in the article during this study are included in this published article.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
The authors gratefully acknowledge the financial support received from Putra Grant (Project Code: GPIPS/2018/9625100), Universiti Putra Malaysia (UPM), and SLAB Scholarship sponsored by the Ministry of Higher Education (MOHE), Malaysia.
References
 T. T. Akano and O. A. Fakinlede, “Numerical computation of Sturmliouville problem with Robin boundary condition,” in Proceedings of the World Academy of Science, Engineering and Technology, International Journal of Mathematical, Computational, Physical, Electrical and Computer Engineering, vol. 9, pp. 684–688, 2015. View at: Google Scholar
 M. S. Islam and A. Shirin, “Numerical solutions of a class of second order boundary value problems on using Bernoulli polynomials,” Applied Mathematics, vol. 2, no. 9, pp. 1059–1067, 2011. View at: Publisher Site  Google Scholar  MathSciNet
 J. Duan, R. Rach, A. Wazwaz, T. Chaolu, and Z. Wang, “A new modified Adomian decomposition method and its multistage form for solving nonlinear boundary value problems with Robin boundary conditions,” Applied Mathematical Modelling, vol. 37, no. 20–21, pp. 8687–8708, 2013. View at: Publisher Site  Google Scholar
 R. Rach, J.S. Duan, and A.M. Wazwaz, “Solution of higherorder, multipoint, nonlinear boundary value problems with highorder robintype boundary conditions by the adomian decomposition method,” Applied Mathematics & Information Sciences, vol. 10, no. 4, pp. 1231–1242, 2016. View at: Publisher Site  Google Scholar
 S. K. Bhatta and K. S. Sastri, “Symmetric spline procedures for boundary value problems with mixed boundary conditions,” Journal of Computational and Applied Mathematics, vol. 45, no. 3, pp. 237–250, 1993. View at: Publisher Site  Google Scholar  MathSciNet
 F.G. Lang and X.P. Xu, “Quintic Bspline collocation method for second order mixed boundary value problem,” Computer Physics Communications, vol. 183, no. 4, pp. 913–921, 2012. View at: Publisher Site  Google Scholar  MathSciNet
 S. O. Fatunla, “A class of block methods for second order ivps,” International Journal of Computer Mathematics, vol. 55, no. 12, pp. 119–133, 1995. View at: Publisher Site  Google Scholar
 P. S. Phang, Z. A. Majid, and M. Suleiman, “On the solution of two point boundary value problems with two point direct method,” International Journal of Modern Physics: Conference Series, vol. 9, pp. 566–573, 2012. View at: Publisher Site  Google Scholar
 Z. A. Majid, M. Mughti Hasni, and N. Senu, “Solving second order linear Dirichlet and Neumann boundary value problems by block method,” IAENG International Journal of Applied Mathematics, vol. 43, no. 2, pp. 71–76, 2013. View at: Google Scholar  MathSciNet
 Z. Omar and O. Adeyeye, “Solving twopoint second order boundary value problems using twostep block method with starting and nonstarting values,” International Journal of Applied Engineering Research, vol. 11, no. 4, pp. 2407–2410, 2016. View at: Google Scholar
 Z. A. Majid, Parallel block methods for solving ordinary differential equations [Ph.D. thesis], Universiti Putra Malaysia, 2004.
 I. S. M. Zawawi, Z. B. Ibrahim, F. Ismail, and Z. A. Majid, “Diagonally Implicit Block Backward Differentiation Formulas for Solving Ordinary Differential Equations,” International Journal of Mathematics and Mathematical Sciences, vol. 2012, Article ID 767328, 8 pages, 2012. View at: Publisher Site  Google Scholar  MathSciNet
 N. Zainuddin, Z. B. Ibrahim, and K. I. Othman, “Diagonally implicit block backward differentiation formula for solving linear second order ordinary differential equations,” in Proceedings of the 3rd international conference on fundamental and applied sciences (icfas 2014): innovative research in applied sciences for a sustainable future, pp. 69–75, Kuala Lumpur, Malaysia, 2014. View at: Publisher Site  Google Scholar
 J. D. Lambert, Computational Methods in Ordinary Differential Equations, John Wiley & Sons, New York, NY, USA, 1973. View at: MathSciNet
 P. P. See, Z. Abdul Majid, and M. Suleiman, “Threestep block method for solving nonlinear boundary value problems,” Abstract and Applied Analysis, vol. 2014, Article ID 379829, 8 pages, 2014. View at: Publisher Site  Google Scholar  MathSciNet
 J. Roberts, Ordinary differential equations, PrenticeHall, Inc., Englewood Cliffs, N.J., 1979. View at: MathSciNet
 P. S. Phang, Z. A. Majid, and M. Suleiman, “Solving nonlinear two point boundary value problem using two step direct method (menyelesaikan masalah nilai sempadan dua titik tak linear menggunakan kaedah langsung dua langkah,” Journal of Quality Measurement and Analysis, vol. 7, no. 1, pp. 129–140, 2011. View at: Google Scholar
 Z. A. Majid, P. P. See, and M. Suleiman, “Solving directly two point non linear boundary value problems using direct Adams Moulton method,” Journal of Mathematics and Statistics, vol. 7, no. 2, pp. 124–128, 2011. View at: Publisher Site  Google Scholar
 R. P. Agarwal and D. ORegan, An introduction to ordinary differential equations, Springer Science & Business Media, 2008.
Copyright
Copyright © 2018 Nadirah Mohd Nasir 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.