Abstract
This article introduces a Haar wavelet-based numerical method for solving fifth-order linear and nonlinear differential equations. This method easily handles both homogeneous and nonhomogeneous equations. It also works with variable and constant coefficients under various conditions. The method is flexible, making it easy to work with boundary, integral, and two-point integral conditions. These three different cases of given information are coupled with fifth-order linear and nonlinear differential equations, and the method proves to be effective in these cases. The outcomes of the Haar wavelet collocation technique are compared with approaches found in existing literature. The method demonstrates second-order convergence, and experimental results support this idea as well. The CPU time is used to evaluate the efficiency of the method, and the maximum absolute errors (\(L_\infty \)) are utilized to assess the accuracy level. Different examples are studied along with various given information, and the method is found to be adaptable to different types of boundary conditions and particular integral conditions.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
In the field of engineering and applied sciences, particularly in combination of mathematics and physics, the ordinary differential equations (ODEs) play a key role for describing a real-world phenomenon. Differential equations also arises in mathematical modelling such as viscoelastic flow which is represented by fifth-order nonlinear ODEs with two-point boundary conditions and is studied by Davies [1]. Many other methods used by researchers such as Adomian decomposition technique (ADM) used by Wazwaz [2] to solve fifth-order ODE. Spline techniques like Sextic B splines as weighted function and Quartic B splines as basis function in Petrove–Galerkin methods are implemented to solve fifth order ODEs [3]. Variation of parameter technique is also used for numerical solution of fifth-order ODEs in [4]. Beside of these methods, other techniques have also been reported to solve fifth-order ODEs in [5, 6]. Apart from ODEs there are also some applied problems which have importance in mathematics and applied sciences [7,8,9,10,11].
Several alternative methods exist for approximating higher-order ODEs. For instance, direct explicit numerical integrators of RK-type tailored for a specific class of ninth-order ODEs are presented in [12]. For the approximate solution of the temporal fractional advection diffusion problem, a computational technique based on the finite difference scheme with redefined extended B-spline functions is provided in [13, 14]. The fractional boundary value problems were addressed using the spline collocation approach in [15, 16]. The numerical solution of different partial differential equations are given in [17,18,19,20,21]. Additionally, the utilization of a Newton-Gregory backward difference polynomial as a predictor-corrector technique is discussed in [22]. Moreover, a novel computational approach utilizing Chebyshev series in [23] provides a direct solution pathway for nonlinear higher-order ODEs. Another noteworthy method is presented in [24], which proposes a simple implementation of a Taylor series expansion-based approach for higher-order ODEs. These references offer diverse strategies for tackling higher-order ODEs, each with its unique advantages and applicability.
This paper aims to find the solution to the following nonlinear fifth-order ODE:
Here, we have taken different types of given information along with Eq. (1):
- \({\textbf {Case 1:}}\):
-
Simple boundary conditions
$$\begin{aligned} y(\lambda _0)=\eta _0,\quad y(\lambda _1)=\eta _1,\quad y^{\prime }(\lambda _0)=\eta _2,\quad y^{\prime }(\lambda _1)=\eta _3,\quad y^{\prime \prime }(\lambda _0)=\eta _4.\quad ~ \end{aligned}$$(2) - \({\textbf {Case 2:}}\):
-
Two points boundary conditions
$$\begin{aligned} \begin{aligned}&y(\lambda _0)+y(\lambda _1)=\zeta _0,\quad y(\lambda _0)+y^{\prime }(0)=\zeta _1,\quad y(\lambda _0)+y^{\prime }(\lambda _1)=\zeta _2,\qquad ~ \\ {}&y(\lambda _0)+y^{\prime \prime }(\lambda _0)=\zeta _3, y(\lambda _1)+y^{\prime }(\lambda _0)=\zeta _4. \end{aligned} \end{aligned}$$(3) - \({\textbf {Case 3:}}\):
-
Two points integral boundary conditions
$$\begin{aligned} \begin{aligned}&\beta _0\int _{\lambda _0}^{\lambda _1} y(x)\textrm{d}x=\alpha _0, \qquad y(\lambda _0)+\beta _0\int _{\lambda _0}^{\lambda _1} y(x)\textrm{d}x=\alpha _{1}, \\&y(\lambda _1)+\beta _0\int _{\lambda _0}^{\lambda _1} y(x)\textrm{d}x=\alpha _{2}\\&y^{\prime }(\lambda _0)+\beta _0\int _{\lambda _0}^{\lambda _1} y(x)\textrm{d}x=\alpha _{3}, \qquad y^{\prime }(\lambda _1)+\beta _0\int _{\lambda _0}^{\lambda _1} y(x)\textrm{d}x=\alpha _{4}, \end{aligned} \end{aligned}$$(4)
where \(\beta _0\), \(\zeta _i\), \(\eta _i\), \(\alpha _i\), such that \(i=0,1,2,3,4\) represents constants while g(x) is a given function.
In the early twentieth century, wavelets were utilized to find applications in various forums, such as engineering and applied sciences. Nowadays, its popularity are further extended in different disciplines such as numerical analysis and compression of data. Creating different images for medical purposes by focusing on wavelet theory also highlights the importance of wavelets. The benefit of the wavelet method is that it simplifies the understanding and study of complex functions that may otherwise be difficult to comprehend [25]. Biorthonormal spline wavelet used in fingerprint, different JPEG chip and electrocardiograph analysis are some uses of wavelets in practice [26]. Due to localization properties of wavelet based algorithms, it become famous in numerical analysis. Coiflet, Symlet and Daubechies are some techniques based on wavelet approach, used in numerical solutions of different problems. Wavelet families have some demerits that is the scaling of wavelet function, and therefore cannot provide an explicit representation. In order to integrate or differentiate these wavelets, the process is a little bit complicated.
The introduction of Haar wavelet become famous after implementing it to find the numerical solution of different problems. First of all, Alfred Haar is the one who introduced wavelets notation [27]. Approaches such as Chen & Hasio developed in [28, 29] are then used the wavelet to integrate ODE. After that, Ülo Lepik [30, 31] used direct method in which Haar functions are directly integrated. In order to calculate arbitrary-order integrals, direct technique is easy to implement, but operational matrix technique is applicable only for first-order integrals.
Wavelet methodologies have garnered increased attention as a computational solver for both linear and nonlinear differential equations, encompassing significant to the direct and inverse problems. Initially, Chen and Hsiao formulated a collocation approach utilizing Haar wavelets (CAHW) to address nonlinear stiff systems [28, 29]. Subsequently, Ülo Lepik, a distinguished Estonian mathematician, harnessed the CAHW to tackle a diverse array of applied phenomena within optimal control theory, elastic beam buckling and free vibrations concerning Euler-Bernoulli and Timoshenko beams [30, 31]. In his famous book, he also demonstrated the versatility of the CAHW by adapting it to address integral, evolution, differential and fractional differential equations [31]. It is noteworthy to mention that a machine learning algorithm focus on CAHW has also been designed for damage detection [32]. These remarkable accomplishments have underscored the prominence of CAHW among various researchers, leading many to regard it as a viable solver for their pertinent problems. A concise summary of CAHW with its adaptation to address a wide spectrum of problems can be found in [25, 32,33,34,35,36,37,38,39,40,41,42,43,44]. In 2018, M. Ahsan et al. applied CAHW to discern various types of source functions within the realm of inverse problems [45]. Moreover, CAHW effectively tackles challenging fractional differential equations [46,47,48,49,50]. Furthermore, CAHW has demonstrated its efficacy in resolving a plethora of diverse direct and inverse problems, as documented in [51,52,53,54,55,56,57,58].
Therefore, CAHW is utilized to approximate solutions for ordinary, partial, integral, and fractional differential equations. However, it’s crucial to acknowledge a technical limitation of the Haar wavelet, which lacks continuity and differentiability. Interestingly, this drawback can sometimes serve as an advantage when addressing certain challenging differential equations which have jumps or non-continuities in their solution, as discussed in [34, 45, 56, 59].
1.1 The aim of this study
Up to now, fifth-order ODEs with two-point boundary conditions or two-point integral boundary conditions have not been successfully addressed in the literature by adopting CAHW. This study pioneers the application of the CAHW method to solve fifth-order linear and nonlinear ODEs, specifically addressing specialized cases of boundary conditions like two-point boundary conditions or two-point integral boundary conditions. Hence, this is referred to as the novelty of the paper. Furthermore, in tackling nonlinear equations, numerous researchers have traditionally relied on methods such as Newton’s or Broyden’s method and both of these techniques necessitate the computation of the Jacobian matrix; a procedure known to be time consuming and often considered a drawback of the method. Therefore, a quasi-linearization technique is coupled with CAHW, and calculating the Jacobian is not required. Therefore, the proposed CAHW is efficient as well.
The paper follows a structured flow, beginning with an introduction in which the application of fifth-order ODEs along with a literate survey are elaborated upon in detail. Following this, Sect. 2 provides a comprehensive discussion of the Haar functions, laying the groundwork for the subsequent sections. In Sect. 3, the focus shifts towards the development of numerical approximation techniques designed to handle various types of given conditions effectively. Sect. 4 delves into the convergence analysis of the proposed methods, while Sect. 5 presents the results obtained from applying this technique. Lastly, Section 6 brings together the main discoveries from our study and offers closing thoughts along with potential directions for future research.
2 Haar functions
Representation of generalized Haar wavelet in \([\lambda _0, \lambda _1]\) is given as follows [28, 29]
where
Dilation parameter is denoted by \(d_p\) having its maximum value \(D_p\), and the translation parameter is represented by \(t_p\). The graphical presentation of Haar functions is given in Fig. 1.
To simplify the derivations, the s th-order integrals of the Haar functions are introduced, denoted as \(\rho _{i,s}(x)\), where \(i=1,2,3,\dots \). It is important to note that these values can be obtained through analytical calculations, yielding the following expressions:
For \(i=1\), the Haar scale function is defined as:
and
3 Collocation approach utilizing Haar wavelets (CAHW)
Chen and Hsiao, who implemented CAHW for the first time to solve differential equations, made significant contributions to the field and achieved notable results [28, 29]. Here, the CAHW is extended to solve (1) with the boundary conditions given in (2). According to this method, the approximation of highest derivative term in (1) is performed by the following Haar series
The coefficients \(a_1,\dots , a_{R_{M}}\) are the unknown series constants. We can now obtain the following expression by integrating Eq. (7) five times with respect to x consecutively.
where \(c_i\), for \(i=1,\dots ,5,\) is the unknown integration constant. Utilizing (7)–(12) into (1) and then introducing the collocation points \(x_i=\lambda _0+\frac{(\lambda _1-\lambda _0)(i-0.5)}{R_{M}}\), the \(R_{M}\) equations with \(R_{M}+5\) unknowns can be obtained. By utilizing any of the three cases of boundary conditions, the remaining five equations can be obtained. After finding all the integration constants along with \(a_i\)s, these values will be used in (12) to obtain the numerical solution.
Just for better understanding of the proposed technique, a special case of (1), such that \(g(x,y,y',y'',y''',y^{(iv)})=f_1(x)y^2\) having the same integral conditions given in (4) is presented here step by step.
where \(f_1\) and f are some functions.
In the first step, the following iterative scheme is designed.
where \(z=1,2,\dots , z_m\) is the iteration number with maximum iteration \(z_m\). The values of g(x) and f(x) being the function of independent variable do not change due to z, therefore we replaced \(\left[ f(x)\right] ^{z+1}\) by f(x) and \(g(x)]^{z+1}\) by g(x). In the second step, the following quasi-linearization approach is introduced [60] to linearized the nonlinear term in (14)
Putting (15) in (14), the linearized form of (13) is
In the third step, Eq. (16) can be converted into Haar functions using (7) through (12), which is
In the fourth step, the collocation points are used in (17) to get \(R_{M}\) equation in \(R_{M}+5\) unknowns:
In the fifth step, the five other equations can be obtained from (4), which are presented one by one as follow:
In the six step, combining the equations of step four and five, the following system will be obtained
where \({\mathcal {U}}\) is unknown vectors containing as and cs and \({\mathcal {J}}\) contains the Haar functions and \({\mathcal {W}}\) is the right side known values. In the last step, solve (24) and then putting the calculated values of Haar coefficient and integration constant in Eq. (12) the required solution of the given nonlinear ODEs can be achieved.
4 Convergence analysis
Convergence rate of the proposed CAHW is second order.
Theorem 1
Assume that \(y^{(p)}\), where \(p=i,ii,iii,iv,v,vi\), exist and show bounded in \([\lambda _0,\lambda _1]\). For any \({R_M}\), if \(y_E\) and \(y_{R_{M}}\) are the representations of exact and Haar wavelet based solution, then \( \Vert y_E-y_{R_{M}}\Vert _\infty \le {\mathcal {O}}\big (\frac{1}{R_M}\big )^2 ~\textrm{as}~R_M\rightarrow \infty .\)
Proof
See in [41]. \(\square \)
4.1 Stability
Definition 1
Let us suppose, we have the Eq. (24) (\({{\mathcal {J}}}{{\mathcal {U}}}={\mathcal {W}}\)), representing a sequence of equations obtained from ODEs using the numerical technique. Any numerical technique is said to be stable if \({\mathcal {J}}^{-1}\) is bounded [61]:
where \(C_o\) is some constant.
To analyze the stability of the CAHW, we have followed the definition 1 and find the least values of eigenvalues of \({\mathcal {J}}\) that reflects the spectral radius magnitudes of \({\mathcal {J}}^{-1}\), which are shown in Figs. 3, 5, 7, 9, 11, 13, 15 and 17. Moreover, with an increase in resolution \(R_M\) as observed in the mentioned figures, the 2-norm of \({\mathcal {J}}^{-1}\) for various cases does not rise rapidly. Therefore, the method satisfies the stability condition presented in Definition 1 and hence, CAHW is stable.
Another way to check the stability is the invertibility of a matrix \({\mathcal {J}}\). The invertibility of a matrix \({\mathcal {J}}\) is crucial in solving differential equations using numerical techniques, especially the (24). It refers to the property of a square matrix, whether an inverse exists or not. In practical terms, the invertibility of \({\mathcal {J}}\) ensures a unique solution to the system of equations. If \({\mathcal {J}}\) is not invertible (i.e., singular), it suggests that the system is either underdetermined or the equations are linearly dependent, resulting in non-unique or inconsistent solutions. To assess this, the determinants of \({\mathcal {J}}\) were calculated in Table 1 for Case 1, Case 2, and Case 3 at different \(D_p\), observing values that are non-zero. Ensuring the invertibility of matrices derived from the discretization of differential equations is vital for the stability and accuracy of numerical methods. Thus, this crucial aspect of maintaining the robustness of the solution using CAHW is processed and also preventing computational errors.
5 Results with discussion
We have implemented the CAHW method to solve linear and nonlinear ODEs. The numerical computations have been carried out using the “MATLAB R2015b” software. The results have been obtained on a Toshiba Laptop equipped with an Intel(R) Celeron(R) B830 CPU running at 1.80 GHz and 2 GB of RAM. In order to observe the correctness and reliability of the obtained results, the \(L_\infty \) error has been utilized which is defined as:
To check the applicability of the CAHW, the rate of convergence (\(C_{R}\)) of CAHW is an important factor, which is define as:
Example 1
Considering the nonhomogeneous fifth-order ODE having constant coefficient, which is given as:
The exact solution is provided in [5]:
The following three different forms of boundary conditions are studied with (25) to get the particular solutions.
- \({\textbf {Case 1:}}\):
-
Simple boundary conditions:
$$\begin{aligned}{}[y(0) \quad y(1)\quad y^{\prime }(0) \quad y^{\prime }(1) \quad y^{\prime \prime }(0)] = [ 0 \quad 0 \quad 1 \quad -e\quad 0]. \end{aligned}$$(27) - \({\textbf {Case 2:}}\):
-
Two-points boundary conditions:
$$\begin{aligned} \begin{aligned}&y^{\prime }(0)+y(0)=1, \quad y^{\prime \prime }(0)+y(0)=0,\quad y(0)+y(1)=0,\\&y^{\prime }(1)+y(0)=-e,\quad y^{\prime }(0)+y^{\prime \prime }(0)=1. \end{aligned} \end{aligned}$$ - \({\textbf {Case 3:}}\):
-
Two-points integral boundary conditions:
$$\begin{aligned} \begin{aligned}&\int _{0}^{1} y(x){dx}+y(0)=ln(4)-1,\quad y(1)+\int _{0}^{1} y(x){dx}=ln(4)+ln(2)-1,\\&\int _{0}^{1} y(x){dx}+y^{\prime }(0)=ln(4),\quad y^{\prime \prime }(0)+\int _{0}^{1} y(x){dx}=ln(4)-2, \\&\int _{0}^{1} y(x){dx}=ln(4)-1. \end{aligned} \end{aligned}$$
Various methodologies, such as the polynomial sextic spline method(PSSM) [62], sixth-degree B-spline method(SB-SM) [63], quartic spline method(QSM) [64], non-polynomial sextic spline method(NSSM) [6], sextic-spline method(S-SM) [65], non-polynomial spline method(NSM) [66] and cubic B-spline method(CB-SM) [5] have been applied to tackle Test Problem 1. The comparative results of CAHW with other methods are documented in Table 2, where the CAHW accuracy is better than the reported methods even at less amount of grid points n (but for CAHW \(n=R_M=2^{D_p+1}\)). The largest values of absolute errors for various cases are meticulously documented in Table 3. A visual representation of Case 1 of Test Problem 1 is displayed in Fig. 2 using different values of \(D_p\), where comparisons between the exact and numerical solutions are performed as well. Results for Case 2 and Case 3 of this problem are also displayed in Fig. 4 using \(D_p=6\). The stability of CAHW is evident in Fig. 3 for Case 1 and Fig. 5 for Cases 2 and 3. Analyzing the tables and figures, provides insights into the performance of the proposed CAHW, and the proposed method outcomes are promising, showcasing its better effectiveness over the other mentioned methodologies.
Example 2
Considering the important non homogeneous fifth-order ODE with variable coefficients
The exact solution is reported in [67]:
The Eq. (28) is coupled with the following three various form of conditions:
- \({\textbf {Case 1:}}\):
-
Simple boundary conditions:
$$\begin{aligned}{}[y(0)\quad y^{\prime }(0) \quad y^{\prime \prime }(0)\quad y^{\prime }(1) \quad y(1)] = [ 5 \quad -5 \quad -5 \quad -5\cos (1)\quad 0]. \end{aligned}$$(30) - \({\textbf {Case 2:}}\):
-
Two-points boundary conditions:
$$\begin{aligned} \begin{aligned}&y(0)+y^{\prime }(0)=0,\quad y^{\prime \prime }(0)+y(0)=0,\quad y(1)+y(0)=5, \\&y(0)+y^{\prime }(1)=5-5\cos (1),\quad y^{\prime \prime }(0)+y^{\prime }(0)=-10. \end{aligned} \end{aligned}$$(31) - \({\textbf {Case 3:}}\):
-
Two-points integral boundary conditions:
$$\begin{aligned} \begin{aligned}&y(0)+\int _{0}^{1} y(x){dx}=10-5\cos (1),\quad \int _{0}^{1} y(x){dx}=5-5\cos (1), \\&\int _{0}^{1} y(x){dx}+y(1)=5-5\cos (1),\\&y^{\prime }(0)+\int _{0}^{1} y(x){dx}=-5\cos (1),\quad \int _{0}^{1} y(x){dx}+y^{\prime \prime }(0)=-5\cos (1). \end{aligned} \end{aligned}$$(32)
The performance of the CAHW technique has been assessed through a comparative analysis in Table 4 with the cubic B-spline method(CB-SM) [5] and the quartic spline method(QSM) [67]. The collocation points of CAHW depend on \({R_M}\), where \(R_M\) is the resolution (\(2^{D_p+1}\) number of collocation points (n)). We see that the CAHW results are better than the CB-SM and are comparable with QSM. Here, it should be noted that the n of CAHW is smaller than the other methods. In Fig. 6, the solutions at low and high resolutions are presented, along with the absolute errors for Case 1. The behavior of the \(L_{\infty }\) error against the resolution (\(D_p\)) is shown in Table 5 and the error decreases as \(D_p\) increases, for both Case 1 and Case 2. The solutions with absolute errors are also displayed in Fig. 8 at \(D_p=6\) for both Case 2 and Case 3. The stability of CAHW can be seen in Fig. 7 for Case 1 and Fig. 9 for Case 2 and Case 3. The experimental rate of convergence, CPU time, and \(L_\infty \) errors of Test Problem 1 and Test Problem 2 are presented in Table 6. These results conclude that the current CAHW performs effectively for the numerical solution of different linear problems.
Example 3
Considering the fith-order nonlinear homogeneous differential equation of the following form:
where the exact solution to (33) is
With Eq. (33), we have considered three different types of given information:
- \({\textbf {Case 1:}}\):
-
Simple boundary conditions:
$$\begin{aligned}{}[y(0)\quad y^{\prime }(0) \quad y^{\prime \prime }(0)\quad y^{\prime }(1) \quad y(1)] = [ 1 \quad 1 \quad 1 \quad e\quad e]. \end{aligned}$$(35) - \({\textbf {Case 2:}}\):
-
Two-points boundary conditions:
$$\begin{aligned} \begin{aligned}&y^{\prime }(0)+y(0)=2,\quad y(0)+y^{\prime }(0)=2,\quad y(1)+y(0)=1+e, \\ {}&y(0)+y^{\prime }(1)=1+e,\quad y^{\prime \prime }(0)+y^{\prime }(0)=2. \end{aligned} \end{aligned}$$(36) - \({\textbf {Case 3:}}\):
-
Two-points integral boundary conditions:
$$\begin{aligned} \begin{aligned}&\int _{0}^{1} y(x){dx}=e-1,\quad y(0)+\int _{0}^{1} y(x){dx}=e, \quad \int _{0}^{1} y(x){dx}+y^{\prime }(0)=e,\\ {}&y^{\prime \prime }(0) +\int _{0}^{1} y(x){dx}=e, \quad \int _{0}^{1} y(x){dx}+y(1)=2e-1. \end{aligned} \end{aligned}$$(37)
The proposed method has been compared with the Sixth-order Degree Spline Method(S-OSM) [63] and the Variational Iteration Method(VIM) [68] and is given in Table 7 for various values of \(x\in [0,1]\). Various cases of the given information are discussed in Table 8 using different values of \(D_p\), and as the value of \(D_p\) increases, the maximum absolute error decreases. Results for Case 1 are visually presented in Fig. 10, while other cases are illustrated in Fig. 12. The satisfaction of the stability condition can be seen in Figs. 11 and 13.
Example 4
Consider a nonhomogeneous fifth-order nonlinear differential equation of the following form:
The exact solution is
For this nonlinear problem, we have consider the following three different types of information.
- \({\textbf {Case 1:}}\):
-
Simple boundary conditions:
$$\begin{aligned}{}[y(0) \quad y(1)\quad y^{\prime }(1) \quad y^{\prime }(0) \quad y^{\prime \prime }(0)] = [ 0 \quad ln(2) \quad 0.5 \quad 1\quad -1]. \end{aligned}$$(40) - \({\textbf {Case 2:}}\):
-
Two-points boundary conditions:
$$\begin{aligned} y(0)+y(1)=ln(2),\quad y(0)+y^{\prime }(0)=1,\quad y^{\prime }(1)+y(0)=0.5, \end{aligned}$$(41)$$\begin{aligned} y(0)+y^{\prime \prime }(0)=-1,\quad y^{\prime }(0)+y(1)=ln(2)+1. \end{aligned}$$ - \({\textbf {Case 3:}}\):
-
Two-points integral boundary conditions:
$$\begin{aligned} \begin{aligned}&\int _{0}^{1} y(x){dx}=ln(4)-1,\quad \int _{0}^{1} y(x){dx}+y(0)=ln(4)-1, \\&y^{\prime }(0)+\int _{0}^{1} y(x){dx}=ln(4),\\&\int _{0}^{1} y(x){dx}+y^{\prime \prime }(0)=ln(4)-2, \quad y(1)+\int _{0}^{1} y(x){dx}=ln(4)+ln(2)-1. \end{aligned} \end{aligned}$$(42)
Following the same quasilinearized scheme given in [69] for (4), we have
Incorporating the Haar wavelet representations defined in (7)–(12) into (43) and then following the same procedure discussed in Sect. 5, the solutions can be obtained. The proposed method has been systematically compared with the Spectral Symmetry Method (SSM) [63] at different values of \(D_p\)s in Table 9. Analyzing the table reveals a decreasing trend in error as the value of \(D_p\) increases, implying that higher collocation points contribute to enhanced accuracy. Specifically, the results for Case 2 and Case 3 at various \(D_p\)s are presented in Table 10. Remarkably, the CAHW consistently outperforms the SSM [63]. Figure 14 illustrates the exact and approximate solutions for Case 1 across different \(D_p\) values, while the other two cases are depicted in Fig. 16. The stability behavior of CAHW is shown in Fig. 15 for Case 1 and Fig. 17 for Case 2 and Case 3. In order to check the accuracy, the absolute errors are calculated from exact and numerical values for Test Problem 3 and Test Problem 4 at \(R_M=32\), as displayed in Table 11. The comprehensive evaluation continues with the maximum absolute error, experimental convergence rate, and CPU time for Test Problem 3 and Test Problem 4 presented in Table 12. These results collectively affirm the efficiency and convergence capability of the proposed method.
6 Conclusion
In this investigation, the CAHW method is employed to solve fifth-order linear and nonlinear differential equations, considering both homogeneous and nonhomogeneous cases with constant and variable coefficients. The advantage of the current CAHW is its applicability to various types of given information called boundary conditions, such as simple, two points, and integral conditions. To make the method easy and efficient in the case of nonlinear differential equations, a method known as quasilinearization is adopted. The results of the proposed CAHW exhibit numerical stability as well. The CAHW stands out for its efficiency, delivering solutions that are both acceptable and accurate. Additionally, the CAHW proves to be a straightforward and precise numerical approach applicable to both linear and nonlinear ODEs. Its versatility, which extends to solving PDEs with various boundary conditions, will make it a more adaptable choice compared to other numerical methods.
Data availibility
All the data related to this research are presented within the paper.
References
Davies, A., Karageorghis, A., Phillips, T.: Spectral Galerkin methods for the primary two-point boundary value problem in modelling viscoelastic flows. Int. J. Numer. Meth. Eng. 26(3), 647–662 (1988)
Wazwaz, A.-M.: The numerical solution of fifth-order boundary value problems by the decomposition method. J. Comput. Appl. Math. 136(1–2), 259–270 (2001)
Viswanadham, K.K., Reddy, S.: Numerical solution of fifth order boundary value problems by Petrov Galerkin method with cubic B-splines as basis functions and quintic B-splines as weight functions. IJCSEE 3(1), 87–91 (2015)
Noor, M.A., Mohyud-Din, S.T., Waheed, A.: Variation of parameters method for solving fifth-order boundary value problems. Appl. Math. Inf. Sci 2(2), 135–141 (2008)
Lang, F.-G., Xu, X.-P.: A new cubic B-spline method for linear fifth order boundary value problems. J. Appl. Math. Comput. 36, 101–116 (2011)
Khan, M.A., Tirmizi, I.A., Twizell, E., Ashraf, S., et al.: A class of methods based on non-polynomial sextic spline functions for the solution of a special fifth-order boundary-value problems. J. Math. Anal. Appl. 321(2), 651–660 (2006)
Zhu, C., Al-Dossari, M., Rezapour, S., Alsallami, S., Gunay, B.: Bifurcations, chaotic behavior, and optical solutions for the complex Ginzburg–Landau equation. Results Phys. 59, 107601 (2024)
Zhu, C., Al-Dossari, M., Rezapour, S., Gunay, B.: On the exact soliton solutions and different wave structures to the (2+ 1) dimensional Chaffee–Infante equation. Results Phys. 107431 (2024)
Zhu, C., Al-Dossari, M., Rezapour, S., Shateyi, S., Gunay, B.: Analytical optical solutions to the nonlinear Zakharov system via logarithmic transformation. Results Phys. 56, 107298 (2024)
Kai, Y., Chen, S., Zhang, K., Yin, Z.: Exact solutions and dynamic properties of a nonlinear fourth-order time-fractional partial differential equation. Waves Random Compl. Media 1–12 (2022)
Kai, Y., Ji, J., Yin, Z.: Study of the generalization of regularized long-wave equation. Nonlinear Dyn. 107(3), 2745–2752 (2022)
Mechee, M.S., Wali, H.M., Mussa, K.B.: Developed RKM method for solving ninth-order ordinary differential equations with applications. J. Phys. Conf. Ser. 1664, 012102 (2020)
Khalid, N., Abbas, M., Iqbal, M.K., Singh, J., Ismail, A.I.M.: A computational approach for solving time fractional differential equation via spline functions. Alex. Eng. J. 59(5), 3061–3078 (2020)
Abbas, M., Majid, A.A., Ismail, A.I.M., Rashid, A.: The application of cubic trigonometric b-spline to the numerical solution of the hyperbolic problems. Appl. Math. Comput. 239, 74–88 (2014)
Khalid, N., Abbas, M., Iqbal, M.K.: Non-polynomial quintic spline for solving fourth-order fractional boundary value problems involving product terms. Appl. Math. Comput. 349, 393–407 (2019)
Majeed, A., Kamran, M., Abbas, M., Misro, M.Y.B.: An efficient numerical scheme for the simulation of time-fractional nonhomogeneous Benjamin-Bona-Mahony-Burger model. Phys. Scr. 96(8), 084002 (2021)
Iqbal, A., Abd Hamid, N.N., Ismail, A.I.M., Abbas, M.: Galerkin approximation with quintic b-spline as basis and weight functions for solving second order coupled nonlinear schrödinger equations. Math. Comput. Simul. 187, 1–16 (2021)
Nazir, T., Abbas, M., Iqbal, M.K.: New cubic b-spline approximation technique for numerical solutions of coupled viscous burgers equations. Eng. Comput. 38(1), 83–106 (2021)
Nazir, T., Abbas, M., Ismail, A.I.M., Majid, A.A., Rashid, A.: The numerical solution of advection-diffusion problems using new cubic trigonometric b-splines approach. Appl. Math. Model. 40(7–8), 4586–4611 (2016)
Abbas, M.: A finite difference scheme based on cubic trigonometric b-splines for time fractional diffusion-wave equation. arXiv preprint arXiv:1705.08342 (2017)
Iqbal, M.K., Abbas, M., Nazir, T., Ali, N.: Application of new quintic polynomial b-spline approximation for numerical investigation of Kuramoto-Sivashinsky equation. Adv. Differ. Equ. 2020, 1–21 (2020)
Rasedee, A.F.N., Sathar, M.H.A., Hamzah, S.R., Ishak, N., Wong, T.J., Koo, L.F., Ibrahim, S.N.I.: Two-point block variable order step size multistep method for solving higher order ordinary differential equations directly. J. King Saud Univ.-Sci. 33(3), 101376 (2021)
Akyüz-Daşcıoğlu, A., Çerdi, H., et al.: The solution of high-order nonlinear ordinary differential equations by Chebyshev series. Appl. Math. Comput. 217(12), 5658–5666 (2011)
Elnady, A.O., Newir, A., Ibrahim, M.A.: Novel approach for solving higher-order differential equations with applications to the van der pol and van der pol-duffing equations. Beni-Suef Univ. J. Basic Appl. Sci. 13(1), 29 (2024)
Ahsan, M., Ahmad, I., Ahmad, M., Hussian, I.: A numerical Haar wavelet-finite difference hybrid method for linear and non-linear Schrödinger equation. Math. Comput. Simul. 165, 13–25 (2019)
Ruch, D.K., Van Fleet, P.J.: Wavelet Theory: An Elementary Approach with Applications. Wiley, Hoboken (2009)
Haar, A.: Zur Theorie der Orthogonalen Funktionensysteme. Georg-August-Universitat, Gottingen (1909)
Chen, C., Hsiao, C.-H.: Haar wavelet method for solving lumped and distributed-parameter systems. IEE Proc. Control Theory Appl. 144(1), 87–94 (1997)
Chen, C., Hsiao, C.-H.: Wavelet approach to optimising dynamic systems. IEE Proc. Control Theory Appl. 146(2), 213–219 (1999)
Lepik, U.: Haar wavelet method for solving higher order differential equations. Int. J. Math. Comput 1(8), 84–94 (2008)
Lepik, Ü., Hein, H.: Haar wavelets. In: Haar Wavelets: With Applications, pp 7–20. Springer (2014)
Lepik, Ü.: Numerical solution of evolution equations by the Haar wavelet method. Appl. Math. Comput. 185(1), 695–704 (2007)
Aznam, S.M., Chowdhury, M.: Generalized Haar wavelet operational matrix method for solving hyperbolic heat conduction in thin surface layers. Results Phys. 11, 243–252 (2018)
Ahsan, M., Tran, T., Hussain, Siraj-ul-Islam, I.: A multiresolution collocation method and its convergence for Burgers’ type equations. Math. Methods Appl. Sci. 1–24 (2022)
Tran, T., Stephan, E.P., Mund, P.: Hierarchical basis preconditioners for first kind integral equations. Appl. Anal. 65(3–4), 353–372 (1997)
Maleknejad, K., Mirzaee, F.: Using rationalized Haar wavelet for solving linear integral equations. Appl. Math. Comput. 160(2), 579–587 (2005)
Ahsan, M., Bohner, M., Ullah, A., Khan, A.A., Ahmad, S.: A Haar wavelet multi-resolution collocation method for singularly perturbed differential equations with integral boundary conditions. Math. Comput. Simul. 204, 166–180 (2023). https://doi.org/10.1016/j.matcom.2022.08.004
Aziz, I., Amin, R.: Numerical solution of a class of delay differential and delay partial differential equations via haar wavelet. Appl. Math. Model. 40(23–24), 10286–10299 (2016)
Jiwari, R.: A Haar wavelet quasilinearization approach for numerical simulation of Burgers’ equation. Comput. Phys. Commun. 183(11), 2413–2423 (2012). https://doi.org/10.1016/j.cpc.2012.06.009
Pandit, S., Jiwari, R., Bedi, K., Koksal, M.E.: Haar wavelets operational matrix based algorithm for computational modelling of hyperbolic type wave equations. Eng. Comput. 34(8), 2793–2814 (2017)
Majak, J., Shvartsman, B., Kirs, M., Pohlak, M., Herranen, H.: Convergence theorem for the Haar wavelet based discretization method. Compos. Struct. 126, 227–232 (2015)
Rana, G., Asif, M., Haider, N., Bilal, R., Ahsan, M., Al-Mdallal, Q., Jarad, F., et al.: A modified algorithm based on Haar wavelets for the numerical simulation of interface models. J. Funct. Spaces 2022 (2022)
Liu, X., Ahsan, M., Ahmad, M., Hussian, I., Alqarni, M., Mahmoud, E.E.: Haar wavelets multi-resolution collocation procedures for two-dimensional nonlinear Schrödinger equation. Alex. Eng. J. 60(3), 3057–3071 (2021)
Liu, X., Ahsan, M., Ahmad, M., Nisar, M., Liu, X., Ahmad, I., Ahmad, H.: Applications of Haar wavelet-finite difference hybrid method and its convergence for hyperbolic nonlinear Schrö dinger equation with energy and mass conversion. Energies 14(23), 7831 (2021)
Ahsan, M., Hussian, I., et al.: A multi-resolution collocation procedure for time-dependent inverse heat problems. Int. J. Therm. Sci. 128, 160–174 (2018)
Ahsan, M., Khan, A.A., Dinibutun, S., Ahmad, I., Ahmad, H., Jarasthitikulchai, N., Sudsutad, W.: The Haar wavelets based numerical solution of Reccati equation with integral boundary condition. Thermal Sci. 27(Spec. issue 1), 93–100 (2023)
Wang, L., Ma, Y., Meng, Z.: Haar wavelet method for solving fractional partial differential equations numerically. Appl. Math. Comput. 227, 66–76 (2014)
Zada, L., Aziz, I.: Numerical solution of fractional partial differential equations via Haar wavelet. Numer. Methods Part. Differ. Equ. 38(2), 222–242 (2022)
Zada, L., Aziz, I.: The numerical solution of fractional Korteweg–de Vries and Burgers’ equations via Haar wavelet. Math. Methods Appl. Sci. 44(13), 10564–10577 (2021)
Majak, J., Shvartsman, B., Pohlak, M., Karjust, K., Eerme, M., Tungel, E.: Solution of fractional order differential equation by the Haar wavelet method. numerical convergence analysis for most commonly used approach. In: Vol. 1738, p. 480110 (2016). https://doi.org/10.1063/1.4952346.
Lei, W., Ahsan, M., Ahmad, M., Nisar, M., Uddin, Z.: A reliable multi-resolution collocation algorithm for nonlinear Schrödinger equation with wave operator. Appl. Math. Sci. Eng. 31(1), 2163998 (2023)
Ahsan, M., ul Islam, S., Hussain, I.: Haar wavelets multi-resolution collocation analysis of unsteady inverse heat problems. Inverse Probl. Sci. Eng. 27(11), 1498–1520 (2019)
Ahsan, M., Shams-ul-Haq, K., Liu, X., Ahmad, S., Nisar, M.: A Haar wavelets based approximation for nonlinear inverse problems influenced by unknown heat source. Math. Methods Appl. Sci. 1–13 (2022)
Ahsan, M., Lin, S., Ahmad, M., Nisar, M., Ahmad, I., Ahmed, H., Liu, X.: A Haar wavelet-based scheme for finding the control parameter in nonlinear inverse heat conduction equation. Open Phys. 19(1), 722–734 (2021)
Ahsan, M., Hussain, I., Ahmad, M.: A finite-difference and Haar wavelets hybrid collocation technique for non-linear inverse Cauchy problems. Appl. Math. Sci. Eng. 30(1), 121–140 (2022)
Ahsan, M., Lei, W., Ahmad, M., Hussein, M., Uddin, Z.: A wavelet-based collocation technique to find the discontinuous heat source in inverse heat conduction problems. Phys. Scr. 97(12), 125208 (2022)
Lei, W., Ahsan, M., Khan, W., Uddin, Z., Ahmad, M.: A numerical Haar wavelet-finite difference hybrid method and its convergence for nonlinear hyperbolic partial differential equation. Demonstratio Math. 56(1), 20220203 (2023)
Ahsan, M., Ahmad, M., Khan, W., Mahmoud, E.E., Abdel-Aty, A.-H.: Meshless analysis of nonlocal boundary value problems in anisotropic and inhomogeneous media. Mathematics 8(11), 2045 (2020)
Ahsan, M., Lei, W., Bohner, M., Khan, A.A.: A high-order multi-resolution wavelet method for nonlinear systems of differential equations. Math. Comput. Simul. 215, 543–559 (2024)
Ahsan, M., Lei, W., Khan, A.A., Ullah, A., Ahmad, S., Arifeen, S.U., Uddin, Z., Qu, H.: A high-order reliable and efficient Haar wavelet collocation method for nonlinear problems with two point-integral boundary conditions. Alex. Eng. J. 71, 185–200 (2023)
LeVeque, R.J.: Finite Difference Methods for Ordinary and Partial Differential Equations: Steady-state and Time-dependent Problems. SIAM (2007)
Khan, M.A., et al.: A numerical method based on polynomial sextic spline functions for the solution of special fifth-order boundary-value problems. Appl. Math. Comput. 181(1), 356–361 (2006)
Caglar, H., Caglar, S., Twizell, E.: The numerical solution of fifth-order boundary value problems with sixth-degree B-spline functions. Appl. Math. Lett. 12(5), 25–30 (1999)
Siddiqi, S.S., Akram, G., Elahi, A.: Quartic spline solution of linear fifth order boundary value problems. Appl. Math. Comput. 196(1), 214–220 (2008)
Siddiqi, S.S., Akram, G.: Sextic spline solutions of fifth order boundary value problems. Appl. Math. Lett. 20(5), 591–597 (2007)
Siddiqi, S.S., Akram, G.: Solution of fifth order boundary value problems using nonpolynomial spline technique. Appl. Math. Comput. 175(2), 1574–1581 (2006)
Lang, F.-G., Xu, X.-P.: Quartic B-spline collocation method for fifth order boundary value problems. Computing 92(4), 365–378 (2011)
Zhang, J.: The numerical solution of fifth-order boundary value problems by the variational iteration method. Comput. Math. Appl. 58(11–12), 2347–2350 (2009)
Bellman, R.E., Kalaba, R.E.: Quasilinearization and nonlinear boundary-value problems. Appl. Math. 5(4) (1965).
Acknowledgements
The second author would like to acknowledge the financial supports from the research grant JCYJ20210324121402008 by Shenzhen Science and Technology Innovation Commission. The last author would like to acknowledge the Deanship of Graduate Studies and Scientific Research, Taif University for funding this work.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
There is not any conflict of interest among the authors to published this research.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Ahsan, M., Lei, W., Junaid, M. et al. A numerical solver based on Haar wavelet to find the solution of fifth-order differential equations having simple, two-point and two-point integral conditions. J. Appl. Math. Comput. (2024). https://doi.org/10.1007/s12190-024-02176-3
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s12190-024-02176-3