Next Article in Journal
Determining Subway Emergency Evacuation Efficiency Using Hybrid System Dynamics and Multiple Agents
Previous Article in Journal
Efficiency and Core Loss Map Estimation with Machine Learning Based Multivariate Polynomial Regression Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Efficient Third-Derivative Hybrid Block Method for the Solution of Second-Order BVPs

by
Mufutau Ajani Rufai
Department of Mathematics, University of Bari, Aldo Moro, 70125 Bari, Italy
Mathematics 2022, 10(19), 3692; https://doi.org/10.3390/math10193692
Submission received: 26 August 2022 / Revised: 1 October 2022 / Accepted: 6 October 2022 / Published: 9 October 2022
(This article belongs to the Section Computational and Applied Mathematics)

Abstract

:
A new one-step hybrid block method with two-point third derivatives is developed to solve the second-order boundary value problems (BVPs). The mathematical derivation of the proposed method is based on the interpolation and collocation methods. The theoretical properties of the proposed method, such as consistency and convergence, are well analysed. Some BVPs with different boundary conditions are solved to demonstrate the efficiency and feasibility of the suggested method. The numerical results of the proposed method are much closer to the exact solutions and more competitive than other numerical methods in the available literature.

1. Introduction and Description of the Problem

Numerous real-life application problems frequently lead to ODEs in which the dependent variable or its derivative are specified at more than one point. For second-order problems of the form
q ( x ) = f ( x , q ( x ) , q ( x ) ) , x a , b R ,
we have the following types of boundary conditions:
(i)
q ( a ) = q a , q ( b ) = q b .
(ii)
q ( a ) = q a , q ( b ) = q b .
(iii)
m 1 ( q ( a ) , q ( a ) ) = v a , m 2 ( q ( b ) , q ( b ) ) = v b .
Hence, when the ODEs, together with any form of the boundary conditions given above, are specified, one obtains a second-order boundary value problem (BVP) of ODEs. Here, I assume that the function f is continuous on a , b × R 2 and fulfills the Lipchitz’s conditions to satisfy the uniqueness and existence theorem (see Keller et al. [1] and Soetaert et al. [2]).
The quest to tackle the class of BVP problems in Equations (1)–(4) theoretically or numerically has been of significant importance to scholars in the field of numerical solutions of the differential equations due to multiple practical applications of this problem in real-life modeling problems in various fields of applied and physical sciences and engineering.
The theoretical solution to the problem under consideration may be unknown or difficult to obtain due to the arbitrary nonlinearities of some of the problems of the form (1)–(4). Because of this reason, many research activities are are carried to develop numerical approaches for solving Equations (1)–(4).
There are many approximation methods for solving BVPs of ODEs in the literature. One of them is the shooting method. The shooting method (SM) is one of the existing methods for solving the class of BVPs in Equations (1)–(4). The SM gives a solution to Equations (1)–(4) by transforming them into a system of first-order IVPs of ODEs, which some initial-value solvers available for integrating first-order IVPs can solve. These solvers then find solutions to the obtained system of first-order IVPs for various initial conditions until one gets the solution that fulfills the desired boundary conditions (BCs) of the BVP.
One type of shooting method is the single shooting method (SSM). The SSM is easy to compute and implement. It is further compelling if the integration interval is small. However, a considerable large interval of integration needs a vast number of iterations, which is one of the demerits of the SSM. In addition, the SSM may be unstable for some BVPs, particularly the highly non-linear BVP of ODEs of the form (1)–(4). In the non-linear case, if the initial values are far from correct, the single SM always fails to obtain a correct solution.
Other types of shooting techniques have been proposed to overcome the the limitation associated with the SSM. One of the available shooting methods for increasing the accuracy of the SSM is the multiple SM, which decreases the distance of the growth of errors by partitioning the interval of integration. Multiple SM always gives better results than SSM. In addition, multiple SM can control the problem of instability for large intervals associated with the single SM by decreasing the growth of the solutions of the obtained systems of IVPs and partitioning the interval into several subintervals and then simultaneously improving the initial value to satisfy the boundary condition.
The SM can be applied effectively to the general non-linear second-order BVP of the form (1), with any of the boundary conditions given in Equations (3) and (4), where the non-linear terms pose no particular problems, and this is the main merit of utilising a shooting strategy as opposed to the finite difference method, in which a solution of finite difference equations is needed. However, the SM’s main drawback is that shooting for more than one BC requires high computational time to obtain good accuracy.
For more explanation on shooting methods theory, see Ascher et al. [3], Ascher and Petzold [4], Atkinson et al. [5], Keskin [6], and Hoffman [7].
Several scholars have developed and used various approximate techniques for numerically integrating the type of problems under consideration. Some of these methods are the finite difference method, collocation method, spectral method, Galerkin method, variational iteration method, the Rayleigh–Ritz method, B-spline technique, the Adomian decomposition method, a fixed-point iteration with Green’s functions method, finite-element technique, B-spline linear multistep method, block method, the simple Homotopy perturbation method, higher derivative hybrid block techniques, or the trigonometrically fitted predictor–corrector method (see [8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]).
The research on BVPs is one of the important areas in applied and computational mathematics because it plays an essential role in modeling real-life problems in astrophysics, heat transfer, fluid mechanics and dynamics and physical and chemical phenomena such as electromagnetic radiation reactions, chemical reactor theory, isothermal packed-bed reactor and numerous other real-world differential problems, which can be modeled by Equations (1)–(4). For more details about the application of BVPs for modeling real-life differential problems, see [27,28,29,30]. Motivated by the different applications of the BVPs in real-world modeling problems in applied sciences and engineering mentioned above and with the aims of improving the accuracy of some existing methods for solving Equations (1)–(4), in this research paper, a new two-point third-derivative hybrid block method (TDHBM) is proposed to provide a better numerical solution to BVP in Equations (1)–(4).

2. Derivation of the TDHBM

This section aims to derive a TDHBM with two intermediate points on the interval [ x n , x n + 1 ] . To derive the proposed TDHBM, I assume that the theoretical solution q ( x ) is approximated by a polynomial p ( x ) , i.e.,
q ( x ) p ( x ) = n = 0 7 k n x n ,
from the above equation, we obtain
q ( x ) p ( x ) = n = 1 7 k n n x n 1
q ( x ) p ( x ) = n = 2 7 k n n ( n 1 ) x n 2
q ( x ) p ( x ) = n = 3 7 k n n ( n 1 ) ( n 2 ) x n 3 ,
in which k n R are real unknown coefficients that will be evaluated using collocation conditions at specific points. Consider the two off-grid points x n + ( c 1 ) h and x n + ( c 2 ) h on [ x n , x n + 1 ] and the approximations in Equations (5) and (6) evaluated at the point x n ; its second derivative in Equation (7) is applicable to the points x n , x n + c 1 , x n + c 2 , x n + 1 , and its third derivative in Equation (8) is applicable to the points x n , x n + 1 . As a result, I obtain a system of eight equations with eight real unknowns, k n , n = 0 ( 1 ) 7 , written in matrix form as
1 x n x n 2 x n 3 x n 4 x n 5 x n 6 x n 7 0 1 2 x n 3 x n 2 4 x n 3 5 x n 4 6 x n 5 7 x n 6 0 0 2 6 x n 12 x n 2 20 x n 3 30 x n 4 42 x n 5 0 0 2 6 x n + c 1 12 x n + c 1 2 20 x n + c 1 3 30 x n + c 1 4 42 x n + c 1 5 0 0 2 6 x n + c 2 12 x n + c 2 2 20 x n + c 2 3 30 x n + c 2 4 42 x n + c 2 5 0 0 2 6 x n + 1 12 x n + 1 2 20 x n + 1 3 30 x n + 1 4 42 x n + 1 5 0 0 0 6 24 x n 60 x n 2 120 x n 3 210 x n 4 0 0 0 6 24 x n + 1 60 x n + 1 2 120 x n + 1 3 210 x n + 1 4 k 0 k 1 k 2 k 3 k 4 k 5 k 6 k 7 = q n q n f n f n + c 1 f n + c 2 f n + 1 g n g n + 1 .
I obtain the values of the coefficients k n , n = 0 ( 1 ) 7 by solving the above system of equations using the Gaussian elimination method. Then, after mathematical simplifications, I rewrite the polynomial in Equation (5) as follows
p ( x n + t h ) = α 0 ( t ) q n + h α 1 ( t ) q n + h 2 β 0 ( t ) f n + β c 1 ( t ) f n + c 1 + β c 2 ( t ) f n + c 2 + β 1 ( t ) f n + 1 + h 3 γ 0 ( t ) g n + γ 1 ( t ) g n + 1 ,
where the coefficients of the continuous scheme in the above equation is given by
α 0 ( t ) = 1 , α 1 ( t ) = t , β 0 ( t ) = 125 t 7 224 223 t 6 96 + 1137 t 5 320 413 t 4 192 + t 2 2 , β c 1 ( t ) = 405 t 7 392 + 81 t 6 20 3159 t 5 560 + 81 t 4 28 , β c 2 ( t ) = 3125 t 7 1568 625 t 6 96 + 3125 t 5 448 3125 t 4 1344 , β 1 ( t ) = 85 t 7 56 + 287 t 6 60 391 t 5 80 + 19 t 4 12 , γ 0 ( t ) = 5 t 7 56 47 t 6 120 + 53 t 5 80 25 t 4 48 + t 3 6 , γ 1 ( t ) = 5 t 7 28 8 t 6 15 + 21 t 5 40 t 4 6 .
The following main formulas that approximate the solutions q ( x n + 1 ) and q ( x n + 1 ) are obtained by evaluating (5) and (6) at the point x n + 1 = x n + h :
q n + 1 = q n + h q n + h 2 1053 f n + c 1 3920 + 625 f n + c 2 4704 + 461 f n 3360 13 f n + 1 336 + h 3 g n 168 + g n + 1 280 .
h q n + 1 = h q n + h 2 243 f n + c 1 560 + 625 f n + c 2 1344 + 25 f n 192 7 f n + 1 240 + h 3 g n 240 + g n + 1 120 .
The evaluations of p ( x ) and p ( x ) at the points x n + c 1 , x n + c 2 are also considered in order to produce a total of six formulas that form the TDHBM. The obtained four formulas after the evaluation and simplification are listed below
q n + c 1 = q n + h 3 q n + h 2 1861 f n + c 1 105 , 840 6875 f n + c 2 857 , 304 + 24 , 917 f n 612 , 360 + 6493 f n + 1 1 , 224 , 720 + h 3 151 g n 76 , 545 67 g n + 1 122 , 472 , q n + c 2 = q n + 4 h 5 q n + h 2 694 , 656 f n + c 1 3 , 828 , 125 + 164 f n + c 2 3675 + 36 , 524 f n 328 , 125 28 , 544 f n + 1 1 , 640 , 625 + h 3 8432 g n 1 , 640 , 625 + 768 g n + 1 546 , 875 ,
h q n + c 1 = h q n + h 2 859 f n + c 1 5040 18 , 125 f n + c 2 326 , 592 + 8491 f n 46 , 656 + 2123 f n + 1 58 , 320 + h 3 611 g n 58 , 320 109 g n + 1 29 , 160 , h q n + c 2 = h q n + h 2 47 , 952 f n + c 1 109 , 375 + 8 f n + c 2 21 + 1204 f n 9375 6928 f n + 1 46 , 875 + h 3 184 g n 46 , 875 + 608 g n + 1 46 , 875 .

3. Theoretical Analysis

In this section, the characteristics of the suggested TDHBM are investigated; one of the most difficult tasks is to analyse the convergence of the proposed method.

3.1. Consistency and Order of the TDHBM

I obtain the local truncation error for each of the formulas given in Equations (10)–(13) by transferring all of the terms to the left, replacing the approximate solution with the true solutions, and expanding the obtained expression by Taylor series in powers of h. By doing this, I obtain the order (p) and the LTEs reported in the following Table 1.
Table 1 shows that each of the above formulas is of order 6. Since the order of the formulas is greater than one, the TDHBM method is consistent.

3.2. Convergence Analysis

This subsection focuses on the convergence analysis of the suggested TDHBM method.
Theorem 1
(Convergence Theorem [20]). Let q ( x ) denote the true solution to problem (1) along with the boundary conditions in (2), and { q j } j = 1 N denote the discrete solution provided by the proposed method. Then, the proposed method is convergent of order six.
Proof. 
I begin the proof by letting A denote the 6 N × 6 N matrix indicated by
A = A 1 , 1 A 1 , 2 A 1 , 2 N A 2 N , 1 A 2 N , 2 A 2 N , 2 N ,
where the components A i , j are 3 × 3 submatrices, with the exception of the A i , N ,   i = 1 , , 2 N which has 3 × 2 elements, and the A i , 2 N , i = 1 , , 2 N with the size 3 × 4 . These submatrices are provided below
A i , i = I ,   i = 1 , , N 1 , where I is the identity matrix ,
A N , N = 1 0 0 1 0 0 ; A i , i 1 = 0 0 1 0 0 1 0 0 1 , i = 2 , , N ;
A i , i = h 1 1 0 1 0 1 1 0 0 , i = N + 1 , , 2 N 1 ; A 2 N , 2 N = h 1 1 0 0 1 0 1 0 1 0 0 1 ;
A i , i + 1 = h 0 0 0 0 0 0 1 0 0 , i = N + 1 , 2 N 2 ; A 2 N 1 , 2 N = h 0 0 0 0 0 0 0 0 1 0 0 0 ;
A i , N + i = h 1 3 0 0 4 5 0 0 1 0 0 , i = 1 , N 1 ; A N , 2 N = h 1 3 0 0 0 4 5 0 0 0 1 0 0 0 .
On the other hand, let U be a 6 N × ( 6 N + 2 ) matrix defined by
U = U 1 , 1 U 1 , 2 U 1 , 2 N U 2 N , 1 U 2 N , 2 U 2 N , 2 N ,
where the elements U i , j are 3 × 3 submatrices except for U i , 1 , U i , N + 1 , i = 1 , , 2 N , which have size 3 × 4 . Those submatrices are given as follows
U 1 , 1 = 24 , 917 612 , 360 1861 105 , 840 6875 857 , 304 6493 1 , 224 , 720 36 , 524 328 , 125 694 , 656 3 , 828 , 125 164 3675 28 , 544 1 , 640 , 625 461 3360 1053 3920 625 4704 13 336 ; U i , i = 1861 105 , 840 6875 857 , 304 6493 1 , 224 , 720 694 , 656 3 , 828 , 125 164 3675 28 , 544 1 , 640 , 625 1053 3920 625 4704 13 336 , i = 2 , N ;
U i , i 1 = 0 0 24 , 917 612 , 360 0 0 36 , 524 328 , 125 0 0 461 3360 , i = 3 , , N ; U 2 , 1 = 0 0 0 24 , 917 612 , 360 0 0 0 36 , 524 328 , 125 0 0 0 461 3360 ;
U N + 1 , 1 = 8491 46 , 656 859 5040 18 , 125 326 , 592 2123 58 , 320 1204 9375 47 , 952 109 , 375 8 21 6928 46 , 875 25 192 243 560 625 1344 7 240 ; U N + j , j = 859 5040 18 , 125 326 , 592 2123 58 , 320 47 , 952 109 , 375 8 21 6928 46 , 875 243 560 625 1344 7 240 , j = 2 , , N ;
U N + j , j 1 = 0 0 8491 46 , 656 0 0 1204 9375 0 0 25 192 , j = 3 , , N ; U N + 2 , 1 = 0 0 0 8491 46 , 656 0 0 0 1204 9375 0 0 0 25 192 ;
U 1 , N + 1 = h 151 76 , 545 0 0 67 122 , 472 8432 1 , 640 , 625 0 0 768 546 , 875 1 168 0 0 1 280 ; U i , N + i = h 0 0 67 122 , 472 0 0 768 546 , 875 0 0 1 280 , i = 2 , N ;
U i , N + i 1 = h 0 0 151 76 , 545 0 0 8432 1 , 640 , 625 0 0 1 168 , i = 3 , , N ; U 2 , N + 1 = h 0 0 0 151 76 , 545 0 0 0 8432 1 , 640 , 625 0 0 0 1 168 ;
U N + 1 , N + 1 = h 611 58 , 320 0 0 109 29 , 160 184 46 , 875 0 0 608 46 , 875 1 240 0 0 1 120 ; U N + i , N + i = h 0 0 109 29 , 160 0 0 608 46 , 875 0 0 1 120 , i = 2 , , N ;
U N + i , N + i 1 = h 0 0 611 58 , 320 0 0 184 46 , 875 0 0 1 240 , i = 3 , , N ; U N + 2 , N + 1 = h 0 0 0 611 58 , 320 0 0 0 184 46 , 875 0 0 0 1 240 ,
where the remaining submatrices are null matrices.
I remark that all the submatrices A i , j and U i , j contain the coefficients of the proposed method in Equations (10) and (11) for n = 0 , 1 , 2 , , N 1 . I proceed to define the vectors of exact values as follows
Q = q ( x c 1 ) , q ( x c 2 ) , , q ( x N 1 + c 2 ) , q ( x 0 ) , q ( x c 1 ) , , q ( x N ) , F = f ( x 0 , q ( x 0 ) , q ( x 0 ) ) , f ( x c 1 , q ( x c 1 ) , q ( x c 1 ) ) , , f ( x N , q ( x N ) , q ( x N ) ) , g ( x 0 , q ( x 0 ) , q ( x 0 ) ) , g ( x c 1 , q ( x c 1 ) , q ( x c 1 ) ) , , g ( x N , q ( x N ) , q ( x N ) ) .
I also note that Q has ( 3 N 1 ) + ( 3 N + 1 ) = 6 N components, while F has ( 3 N + 1 ) + ( 3 N + 1 ) = 6 N + 2 components.
By employing the notations mentioned above, the exact form of the system that gives the approximate values for the problem under consideration is defined by
A 6 N × 6 N Q 6 N + h 2 U 6 N × ( 6 N + 2 ) F 6 N + 2 + C 6 N = L ( h ) 6 N ,
where
C 6 N = q a , q a , q a , q a , 0 , , 0 , q b , 0 , , 0 ,
and
L ( h ) 6 N = 1697 h 8 q ( 8 ) x n 19 , 840 , 464 , 000 + O ( h 9 ) 32 h 8 q ( 8 ) x n 1 , 107 , 421 , 875 + O ( h 9 ) h 8 q ( 8 ) x n 9 , 072 , 000 + O ( h 9 ) 1697 h 8 q ( 8 ) x 1 19 , 840 , 464 , 000 + O ( h 9 ) h 8 q ( 8 ) ( x N 1 ) 9 , 072 , 000 + O ( h 9 ) 1861 h 7 q ( 8 ) x n 3 , 306 , 744 , 000 + O ( h 8 ) 164 h 7 q ( 8 ) x n 221 , 484 , 375 + O ( h 8 ) h 7 q ( 8 ) x n 1 , 512 , 000 + O ( h 8 ) 1861 h 7 q ( 8 ) x 1 3 , 306 , 744 , 000 + O ( h 8 ) h 7 q ( 8 ) ( x N 1 ) 1 , 512 , 000 + O ( h 8 ) .
Similarly, the system to obtain the approximate values of the problem under consideration is denoted by
A 6 N × 6 N Q ¯ 6 N + h 2 U 6 N × ( 6 N + 2 ) F ¯ 6 N + 2 + C 6 N = 0 ,
where Q ¯ 6 N approximates the vector Q 6 N , that is,
Q ¯ 6 N = q c 1 , q c 2 , q 1 , , q N 1 + c 2 , q 0 , q c 1 , , q N ,
and
F ¯ 6 N + 2 = f 0 , f c 1 , f c 2 , f 1 , , f N , g 0 , g c 1 , g c 2 , g 1 , , g N .
On subtracting (15) from (14) and simplifying, I obtain
A 6 N × 6 N E 6 N + h 2 U 6 N × ( 6 N + 2 ) F F ¯ 6 N + 2 = L ( h ) 6 N ,
where E 6 N = Q 6 N Q ¯ 6 N = e c 1 , , e N 1 + c 2 , e 0 , e c 1 , , e N .
Using Mean-Value Theorem (see [31]), one can express for i = 0 ( c 1 ) N
f ( x i , q ( x i ) , q ( x i ) ) f ( x i , q i , q i ) = q ( x i ) q i f q ( ξ i ) + q ( x i ) q i f q ( ξ i ) g ( x i , q ( x i ) , q ( x i ) ) g ( x i , q i , q i ) = q ( x i ) q i g q ( η i ) + q ( x i ) q i g q ( η i )
where ξ i and η i are intermediate points on the line segment joining ( x i , q ( x i ) , q ( x i ) ) to ( x i , q i , q i ) . Thus, I obtain
( F F ¯ ) 6 N + 2 = f q ( ξ 0 ) 0 0 f q ( ξ 0 ) 0 0 0 f q ( ξ c 1 ) 0 0 f q ( ξ c 1 ) 0 0 0 f q ( ξ N ) 0 0 f q ( ξ N ) g q ( η 0 ) 0 0 g q ( η 0 ) 0 0 0 g y ( η c 1 ) 0 0 g q ( η c 1 ) 0 0 0 g q ( η N ) 0 0 g q ( η N ) e 0 e c 1 e N e 0 e c 1 e N = 0 0 f q ( ξ 0 ) 0 0 0 f q ( ξ c 1 ) 0 0 f q ( ξ c 1 ) 0 0 0 0 f q ( ξ N 1 + c 2 ) 0 0 f q ( ξ N 1 + c 2 ) 0 0 0 0 0 0 f q ( ξ N ) 0 0 g q ( η 0 ) 0 0 0 g q ( η c 1 ) 0 0 g q ( η c 1 ) 0 0 0 0 g q ( η N 1 + c 2 ) 0 0 g q ( η N 1 + c 2 ) 0 0 0 0 0 0 g q ( η N ) e c 1 e N 1 + c 2 e 0 e c 1 e N = J ( 6 N + 2 ) × 6 N E 6 N .
The equation in (16) can be rewritten as follows
A 6 N × 6 N + h 2 U 6 N × ( 6 N + 2 ) J ( 6 N + 2 ) × 6 N E 6 N = L ( h ) 6 N ,
and setting M = D + h 2 U J , I obtain
M 6 N × 6 N E 6 N = L ( h ) 6 N .
I have that for sufficiently small values of h > 0 , the equation in (18) may be rewritten as
E = M 1 L ( h ) .
I take into account the maximum norm in R , E = max i | e i | , and the associated matrix induced norm in R 6 N × 6 N . By expanding every term of M 1 in series around h, it can be proved that M 1 = O ( h 1 ) . For the details to prove that M 1 = O ( h 1 ) , see [24]. Then, by assuming that q ( x ) has in [ a , b ] bounded derivatives up to the required order, I deduce that:
E M 1 L ( h ) = O ( h 1 ) O ( h 7 ) K h 6 .
From the above result, the proposed TDHBM is a six-order convergent method. □

4. Implementation and Numerical Experiments

Here, I discuss the computational details and apply the proposed TDHBM method for solving Equations (1)–(4).

Implementation

I denote the set of equations in Equations (10)–(13) by F n = 0 , taking into account the mixed boundary conditions in Equation (4) to formulate the algebraic system as follows
m 1 ( q 0 , q 0 ) v a = 0 , F 0 = 0 , F 1 = 0 , F N 1 = 0 , m 2 ( q N , q N ) v b = 0 ,
In addition, the 6 N + 2 unknowns are denoted by
Q = ( q 0 , q 0 , q c 1 , q c 2 , q 1 , q 1 , q 1 + c 1 , q 1 + c 2 , q 2 , q 2 , , q N 1 + c 1 , q N 1 + c 2 , q N , q N ) .
I solve the system F = 0 using the following Newton iteration
Q i + 1 = Q i J i 1 F i ,
where the Jacobian matrix of J is denoted by F . I take into consideration a stopping criterion with a maximum of 100 iterations and an error of less than 10 16 between two successive approximations.
I apply a homotopy-type procedure to obtain suitable starting values for Newton’s method by considering a family of non-linear BVPs H j , j = 0 , 1 , 2 , , r , such that for j = 0 , the problem H 0 permits only the solution q ( x ) = 0 , while for j = r , I obtain the original problem. In this manner, I obtain a family of BVPs represented by
H j q = f ( x , q , q ) f ( x , 0 , 0 ) + j r f ( x , 0 , 0 ) , m 1 ( q ( a ) , q ( a ) ) = j r v a , m 2 ( q ( b ) , q ( b ) ) = j r v b ,
for j = 0 , 1 , , r . For j = r , the nonlinear system related to the original problem is solved, taking the values obtained after solving the problem H r 1 as initial guesses.

5. Numerical Experiments

This section presents the numerical solutions for the problems of the form (1)–(4) using the proposed TDHBM method. The accuracy of the TDHBM is measured by utilising the maximum absolute error (MAE) and the rate of convergence (ROC) formulas:
M A E = max j = 0 , , N q ( x j ) q j , R O C = log 2 M A E h M A E 2 h ,
where q ( x j ) is the exact solution, and q j is the computed result at each point x j of the discrete grid.
Methods considered for numerical comparisons are indicated by:
  • TDHBM: The third derivative one-step hybrid block method derived in this paper.
  • TDFM: The third-derivative Falkner method of order six in [32].
  • FDM: The finite difference method in [33].
  • BSCM: The B-spline collocation method proposed in [34].
  • DQCM: The differential quadrature collocation method in [35].
Some numerical experiments used to demonstrate the efficiency of the proposed TDHBM method are presented below:

5.1. Numerical Experiment 1

As a first numerical experiment, I consider the following isothermal packed-bed reactor BVP [33]
1 M p e q ( x ) + q ( x ) R q 2 ( x ) = μ ( x ) , q ( 0 ) = 0 , q ( 1 ) + 1 M p e q ( 1 ) = 1 , x 0 , 1 ,
where μ ( x ) is obtained on the basis that the exact solution of the isothermal packed-bed reactor BVP given in Equation (22) is
q ( x ) = M p e e ( x 2 x 3 ) ( M p e 1 ) ,
where M p e denotes the axial Peclet number, and R stands for the reaction rate group.
The problem (22) is solved using the new TDHBM method with R = 1 8 , M p e = 8 , r = 1 . Table 2 shows that the proposed method’s numerical results are much closer to the exact solutions. In Table 3, one can see that the obtained R O C is consistent with the theoretical analysis of the proposed TDHBM method. Problem (22) is also solved by [33] using the same values of R = 1 8 , M p e = 8 , r = 1 . It is worth noting that the reported MAE for the FDM with h = 1 256 is 0.78390 × 10 5 , while for the TDHBM with h = 1 4 , the MAE is 6.73605 × 10 8 , confirming a better performance of the proposed TDHBM method. Moreover, Figure 1 shows the good results obtained with the TDHBM method when solving the isothermal packed-bed reactor BVP.

5.2. Numerical Experiment 2

In the next experiment, I consider
q ( x ) = 1 2 q ( x ) q ( x ) ,
subject to
{ 2 q ( 0 ) q ( 0 ) = 1.44 , q ( 4 ) + 0.5 q ( 4 ) = 6 } , 0 x 4 ,
whose true solution is
q ( x ) = 4 x 5 .
The approximate solutions to Problem (23) are compared in Table 4. The data in Table 4 show that the results obtained with TDHBM are more accurate than the TDFM and BSCM methods. Additionally, Figure 2 compares the theoretical and approximative solutions for Problem (23) utilizing the homotopy-type approach with r = 4 .

5.3. Numerical Experiment 3

In the next experiment, I consider a stiff second-order BVP with Dirichlet boundary conditions
q ( x ) = η 2 q ( x ) π η 2 + 4 π 2 sin ( 2 π x ) η ,
subject to
q ( 0 ) = e η 1 e η + 1 , q ( 1 ) = 1 e η e η + 1
The exact solution is
q ( x ) = e η ( x 1 ) e η x 1 + e η π sin ( 2 π x ) η
Table 5 illustrates the comparison of the MAEs with η = 50 for different step sizes, indicating the better efficiency of the proposed approach.

5.4. Numerical Experiment 4

For the last numerical experiment, I consider
q 1 ( x ) + x q 1 ( x ) + cos ( π x ) q 2 ( x ) = f 1 ( x ) , q 2 ( x ) + x q 1 ( x ) + x q 2 ( x ) = f 2 ( x ) ,
subject to
q 1 ( 0 ) = q 1 ( 1 ) = 0 , q 2 ( 0 ) = q 2 ( 1 ) = 0 ,
where 0 x 1 and
f 1 ( x ) = sin ( x ) + ( x 2 x + 2 ) cos ( x ) + ( 1 2 x ) cos ( π x ) , f 2 ( x ) = 2 + x sin ( x ) + ( x 2 x ) cos ( x ) + x ( 1 2 x ) 2 .
The analytical solution of Problem (25) is:
q 1 ( x ) = ( x 1 ) sin ( x ) , q 2 ( x ) = x x 2 .
From Table 6, one can see that the TDHBM is much more accurate than the technique utilised for comparison. Additionally, the plots in Figure 3 show that the numerical solution provided by the TDHBM method agrees with the analytical solution.

6. Conclusions

This manuscript has proposed a third-derivative one-step hybrid block method (TDHBM) to solve second-order BVPs directly. The proposed method’s numerical results demonstrate that it is suitable and efficient for solving the BVPs under consideration. In summary, I conclude thatthe TDHBM method suggested in this article is more accurate and effectively competitive than some of the existing numerical approaches for integrating the problem given in Equations (1)–(4).

Funding

This research did not receive any funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The author declares that there is no conflict of interest.

References

  1. Keller, H.B. Numerical Methods for Two-Point Boundary Value Problems; Dover Publications: New York, NY, USA, 1992. [Google Scholar]
  2. Soetaert, K.; Cash, J.; Mazzia, F. Solving Differential Equations in R; Springer: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
  3. Ascher, U.M.; Mattheij, R.M.M.; Russell, R.D. Numerical solution of boundary value problems for ordinary differential equations. In Classics in Applied Mathematics; Society for Industrial and Applied Mathematics (SIAM): Philadelphia, PA, USA, 1995; Volume 13. [Google Scholar]
  4. Ascher, U.M.; Petzold, L.R. Computer Methods for Ordinary Differential Equations and Differential-Algebraic Equations; Society for Industrial and Applied Mathematics (SIAM): Philadelphia, PA, USA, 1998. [Google Scholar]
  5. Atkinson, K.E.; Han, W.; Stewart, D. Numerical Solution of Ordinary Differential Equations; John Wiley and Sons: Hoboken, NJ, USA, 2009. [Google Scholar]
  6. Keskin, A.U. Boundary Value Problems for Engineers with MATLAB Solutions; Springer: Berlin/Heidelberg, Germany, 2019. [Google Scholar]
  7. Hoffman, J.D. Numerical Methods for Engineers and Scientists, 3rd ed.; Marcel Dekker, Inc.: New York, NY, USA, 2001; Chapter 8. [Google Scholar]
  8. Amodio, P.; Sgura, I. High-order flnite difierence schemes for the solution of second-order BVPs. J. Comput. Appl. Math. 2005, 176, 59–76. [Google Scholar] [CrossRef] [Green Version]
  9. Asaithambi, A. A Second-Order Finite-Difference Method for the Falkner-Skan Equation. Appl. Math. Comput. 2004, 156, 779–786. [Google Scholar] [CrossRef]
  10. Buckmire, R. Application of a Mickens finite-difference scheme to the cylindrical Bratu-Gelfand problem. Numer. Methods Partial. Differ. Equations 2004, 20, 327–337. [Google Scholar] [CrossRef]
  11. Boyd, J.P. Chebyshev and Fourier Spectral Methods; Courier Corporation: Chelmsford, MA, USA, 2001. [Google Scholar]
  12. Canuto, C.; Hussaini, M.Y.; Quarteroni, A.; Zang, T.A. Spectral Methods. Fundamentals in Single Domains; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar]
  13. Hairer, E.; Norsett, S.P.; Wanner, G. Solving Ordinary Differential Equations I, Nonstiff Problems; Springer: Berlin/Heidelberg, Germany, 1993. [Google Scholar]
  14. El-Salam, F.A.A.; El-Sabbagh, A.A.; Zaki, Z.A. The Numerical Solution of Linear Third Order Boundary Value Problems using Non-polynomial Spline Technique. J. Am. Sci. 2010, 6, 303–309. [Google Scholar]
  15. Akram, G.; Rehman, H. Homotopy perturbation method with reproducing kernel method for third order non linear boundary value problems. J. Basic. Appl. Sci. Res. 2014, 4, 60–67. [Google Scholar]
  16. Temimi, A. Discontinuous Galerkin finite element method for solving the Troeschs problem. Appl. Math. Comput. 2012, 219, 521–529. [Google Scholar]
  17. Rufai, M.A.; Ramos, H. Numerical integration of third-order singular boundary-value problems of Emden–Fowler type using hybrid block techniques. Commun. Nonlinear Sci. Numer. Simul. 2022, 105, 106069. [Google Scholar] [CrossRef]
  18. Ramos, H.; Rufai, M.A. Two-step hybrid block method with fourth derivatives for solving third-order boundary value problems. J. Comput. Appl. Math. 2022, 404, 113419. [Google Scholar] [CrossRef]
  19. Ramos, H.; Rufai, M.A. Numerical solution of boundary value problems by using an optimized two-step block method. Numer. Algorithms 2020, 84, 229–251. [Google Scholar] [CrossRef]
  20. Rufai, M.A.; Ramos, H. Numerical Solution for Singular Boundary Value Problems Using a Pair of Hybrid Nyström Techniques. Axioms 2021, 10, 202. [Google Scholar] [CrossRef]
  21. Rufai, M.A.; Ramos, H. Numerical solution of Bratu’s and related problems using a third derivative hybrid block method. Comput. Appl. Math. 2020, 39, 322. [Google Scholar] [CrossRef]
  22. Adeyefa, E.O.; Omole, E.O.; Shokri, A.; Nonlaopon, K. Numerical simulation of discretized second-order variable coefficient elliptic PDEs by a classical eight-step model. Results Phys. 2022, 41, 105922. [Google Scholar] [CrossRef]
  23. Shokri, A.; Hosein, S. Trigonometrically fitted high-order predictor–corrector method with phase-lag of order infinity for the numerical solution of radial Schrödinger equation. J. Math. Chem. 2014, 52, 1870–1894. [Google Scholar] [CrossRef]
  24. Rufai, M.A.; Ramos, H. One-step hybrid block method containing third-derivatives and improving strategies for solving Bratu’s and Troesch’s problems. Numer. Math. Theory Methods Appl. 2020, 13, 946–972. [Google Scholar]
  25. Ramos, H.; Singh, G. Solving second order two-point boundary value problems accurately by a third derivative hybrid block integrator. Appl. Math. Comput. 2022, 421, 126960. [Google Scholar] [CrossRef]
  26. Mazzia, F.; Sestini, A.; Trigiante, B. B-spline linear multistep methods and their continuous extensions. SIAM J. Numer. Anal. 2006, 44, 1954–1973. [Google Scholar] [CrossRef]
  27. Tafakkori–Bafghi, M.; Loghmani, G.B.; Heydari, M. Numerical solution of two-point nonlinear boundary value problems via Legendre–Picard iteration method. Math. Comput. Simul. 2022, 199, 133–159. [Google Scholar] [CrossRef]
  28. Brugnano, L.; Trigiante, D. Solving Differential Problems by Multistep Initial and Boundary Value Methods; Gordon and Breach Science Publishers: Philadelphia, PA, USA, 1998. [Google Scholar]
  29. Burden, R.L.; Faires, J.D. Numerical Analysis, 9th ed.; Brookscole: Boston, MA, USA, 2011. [Google Scholar]
  30. Butcher, J.C. Numerical Methods for Ordinary Differential Equations; Wiley: New York, NY, USA, 2016. [Google Scholar]
  31. Dym, H. Linear Algebra in Action; AMS: Providence, RI, USA, 2007. [Google Scholar]
  32. Ramos, H.; Rufai, M.A. A third-derivative two-step block Falkner-type method for solving general second-order boundary-value systems. Math. Comput. Simul. 2019, 165, 139–155. [Google Scholar] [CrossRef]
  33. Pandey, P.K. Finite Difference Method for a Second-order Ordinary Differential Equation with a Boundary Condition of the Third Kind. Comput. Methods Appl. Math. 2010, 10, 109–116. [Google Scholar] [CrossRef]
  34. Lang, F.G.; Xu, X.P. Quintic b-spline collocation method for second order mixed boundary value problem. Comp. Phy. Comm. 2012, 183, 913–921. [Google Scholar] [CrossRef]
  35. Dehghan, M.; Nikpour, A. Numerical solution of the system of second-order boundary value problems using the local radial basis functions based differential quadrature collocation method. Appl. Math. Model. 2013, 37, 8578–8599. [Google Scholar] [CrossRef]
Figure 1. Plots of absolute errors (left), exact and TDHBM solutions (right) for Problem (22) with r = 1 , R = 1 8 , M p e = 8 , h = 1 16 .
Figure 1. Plots of absolute errors (left), exact and TDHBM solutions (right) for Problem (22) with r = 1 , R = 1 8 , M p e = 8 , h = 1 16 .
Mathematics 10 03692 g001
Figure 2. Exact and discrete solutions with the method TDHBM on Problem (23) with h = 4 20 , r = 4 .
Figure 2. Exact and discrete solutions with the method TDHBM on Problem (23) with h = 4 20 , r = 4 .
Mathematics 10 03692 g002
Figure 3. Exact and discrete solutions with the method TDHBM on Problem (25) with h = 1 21 , r = 1 .
Figure 3. Exact and discrete solutions with the method TDHBM on Problem (25) with h = 1 21 , r = 1 .
Mathematics 10 03692 g003
Table 1. Order (p) and local truncation errors (LTEs) for the TDHBM method.
Table 1. Order (p) and local truncation errors (LTEs) for the TDHBM method.
SchemeOrderLocal Truncation Error
q n + c 1 6 1697 h 8 q ( 8 ) x n 19 , 840 , 464 , 000 + O ( h 9 )  
q n + c 2 6 32 h 8 q ( 8 ) x n 1 , 107 , 421 , 875 + O ( h 9 )  
q n + 1 6 h 8 q ( 8 ) x n 9 , 072 , 000 + O ( h 9 )  
q n + c 1 6 1861 h 7 q ( 8 ) x n 3 , 306 , 744 , 000 + O ( h 8 )  
q n + c 2 6 164 h 7 q ( 8 ) x n 221 , 484 , 375 + O ( h 8 )  
q n + 1 6 h 7 q ( 8 ) x n 1 , 512 , 000 + O ( h 8 )
Table 2. Numerical results for Problem (22) with h = 0.1 .
Table 2. Numerical results for Problem (22) with h = 0.1 .
tExactTDHBMAbsolute Error
0 1.1428571428421719 1.1428571428571428 1.49709 × 10 11
0.1 1.1531892820395981 1.1531892820272776 1.23206 × 10 11
0.2 1.1800200061659953 1.1800200060629924 1.03003 × 10 10
0.3 1.2171735307427942 1.2171735305500633 1.92731 × 10 10
0.4 1.2580103591061207 1.2580103588502614 2.55859 × 10 10
0.5 1.2950268037779877 1.2950268035049444 2.73043 × 10 10
Table 3. MAEs and order of convergence for Problem (22).
Table 3. MAEs and order of convergence for Problem (22).
hMethod MAE ROC
1 4 TDHBM 6.73605 × 10 8
1 8 TDHBM 1.03770 × 10 9 6.02
1 16 TDHBM 1.63760 × 10 11 5.99
1 32 TDHBM 2.59570 × 10 13 5.98
Table 4. Comparison of MAEs and order of convergence for Problem (23).
Table 4. Comparison of MAEs and order of convergence for Problem (23).
hMethod MAE ROC
4 20 TDHBM 2.12733 × 10 7
4 20 TDFM 1.87062 × 10 5
4 20 BSCM 2.64200 × 10 4
4 40 TDHBM 3.47122 × 10 9 5.93745
4 40 TDFM 4.07756 × 10 7 5.51967
4 40 BSCM 1.77700 × 10 5 3.89411
4 80 TDHBM 5.50697 × 10 11 5.97804
4 80 TDFM 7.49040 × 10 9 5.76652
4 80 BSCM 1.12500 × 10 6 3.98145
Table 5. Comparison of MAEs and order of convergence for Problem (24).
Table 5. Comparison of MAEs and order of convergence for Problem (24).
hMethod MAE ROC
1 32 TDHBM 2.21413 × 10 6
1 32 TDFM 2.23714 × 10 4
1 64 TDHBM 3.23302 × 10 8 6.09771
1 64 TDFM 4.40660 × 10 6 5.66585
1 128 TDHBM 5.63709 × 10 10 5.84179
1 128 TDFM 6.91612 × 10 8 5.99356
Table 6. Comparison of the MAE on Problem (25) with r = 1 .
Table 6. Comparison of the MAE on Problem (25) with r = 1 .
hMAE with TDHBMMAE with DQCM
1 21 8.743006 × 10 15 5.5775 × 10 5
1 41 1.11022 × 10 16 1.3892 × 10 5
1 61 5.55112 × 10 17 6.0484 × 10 6
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Rufai, M.A. An Efficient Third-Derivative Hybrid Block Method for the Solution of Second-Order BVPs. Mathematics 2022, 10, 3692. https://doi.org/10.3390/math10193692

AMA Style

Rufai MA. An Efficient Third-Derivative Hybrid Block Method for the Solution of Second-Order BVPs. Mathematics. 2022; 10(19):3692. https://doi.org/10.3390/math10193692

Chicago/Turabian Style

Rufai, Mufutau Ajani. 2022. "An Efficient Third-Derivative Hybrid Block Method for the Solution of Second-Order BVPs" Mathematics 10, no. 19: 3692. https://doi.org/10.3390/math10193692

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop