Skip to main content

Theory and Modern Applications

Green–Haar wavelets method for generalized fractional differential equations


The objective of this paper is to present two numerical techniques for solving generalized fractional differential equations. We develop Haar wavelets operational matrices to approximate the solution of generalized Caputo–Katugampola fractional differential equations. Moreover, we introduce Green–Haar approach for a family of generalized fractional boundary value problems and compare the method with the classical Haar wavelets technique. In the context of error analysis, an upper bound for error is established to show the convergence of the method. Results of numerical experiments have been documented in a tabular and graphical format to elaborate the accuracy and efficiency of addressed methods. Further, we conclude that accuracy-wise Green–Haar approach is better than the conventional Haar wavelets approach as it takes less computational time compared to the Haar wavelet method.

1 Introduction

The mathematical theory of fractional calculus can be described as that of derivatives as well as integrals of any order possible. Primarily, fractional calculus is a generalized form of integer order calculus. Fractional calculus has been exploited as a crucial tool for applications that concern science and engineering. These applications of fractional calculus have been elaborated previously by several authors. In essence, fractional calculus has been deployed for modeling the transfer of heat in heterogeneous media [1], nonlinear oscillation of earthquakes [2], signal processing [3], neural networks [46], fluid dynamic traffic flow [7], electromagnetism [8], bioengineering [9], economics [10], anomalous diffusions and fractal-like nature [11, 12]. For the qualitative analysis of fractional differential equations, we refer the reader to [1, 2, 1315] and the references therein.

Several books have been written on the philosophy and development of fractional calculus [1619]. In fractional calculus the fractional derivative is introduced via fractional integral. Riemann, Liouville, Caputo, Hadamard, Grunwald and Letinkow are the pioneering researchers who have been contributing and publishing extensively about these applications. Meanwhile, the literature has witnessed the appearance of different types of fractional derivatives that improve and generalize the classical fractional operators defined by the above listed authors [2022]. Recently, Katugampola rediscovered a new type of fractional integral operator which covers both Riemann–Liouville and Hadamard operators and represents them in a single form [23, 24].

The study of wavelet theory dates back to mid-20th century. Once it had been introduced, the theory has had prominent contributions in mathematical studies [25]. It is a significant tool for science and engineering. Wavelets are being used for analyzing signals, for representation of waveform and segmentation, optimal control, numerical analysis, fast algorithm for easy implementation, and time–frequency analysis [26]. There are many kinds of wavelets, for example, Haar [2730], Daubechies [31], B-spline [32], Battle–Lemarie [33], Legender [34], as well as Green–CAS [30]. A naive form of orthonormal wavelets which employ compact support has been used by many researchers and is called the Haar wavelet. Mathematically, Haar wavelet family consists of rectangular functions. Further, it contains the lower member of Daubechies family of wavelets which is appropriate for computer implementations. Primarily, Haar wavelets convert a fractional differential equation into an algebraic system of equations with finite variables. The Haar wavelets approximation for tackling linear and nonlinear systems has been discussed in [3539].

The prospective study has been established to solve the generalized fractional differential equations numerically. The numerical computation utilizes Haar wavelets, as well as Green–Haar approach for this purpose. Operational matrices have been developed using Haar wavelet approach. These matrices are thus employed to solve generalized fractional differential equations. The integral operator used for the purpose of computing operational matrix is the generalized Reinmann–Liouville fractional integral operator. An error analysis for convergence of the proposed technique has been undertaken through a generalized Caputo-type fractional differential operator. The method has been further elaborated in terms of efficiency and accuracy by considering a number of documented examples. A comparison of these results has also been presented against previous studies [40] to further emphasize the accuracy and efficiency of the proposed technique.

One important feature of the method is that it does not require an operational matrix at all. Stability and convergence of this method have also been derived for further applications. The undertaken study shows that the method is even more computationally efficient against the standard Haar wavelet technique discussed in the same study. Interestingly, the accuracy is not compromised, but rather enhanced by using Green–Haar method for solving generalized fractional boundary-value problems.

The present study is structured as follows: In Sect. 2, we review basic mathematical expressions of fractional calculus with their respective definitions. Furthermore, we reflect on Haar wavelets which is an essential preliminary topic for subsequent sections in this paper. In Sect. 3, we develop operational matrices using a generalized integral operator and Haar wavelets which help in estimating the numerical solution of a generalized Caputo-type fractional differential equation. Moreover, we establish an upper bound for the proposed technique through Haar wavelets for the generalized fractional differential equation. Further, numerical solutions are given to elaborate the accuracy and efficiency of the numerical scheme. We propose a new method called Green–Haar method for the boundary value problems and compare our results against the Haar wavelet approach in Sect. 4. We summarize the outcomes of this paper in the last section.

2 Preliminaries

In this section, for the sake of convenience, we will review some necessary definitions. These definitions serve as essential preliminaries for fractional calculus and Haar wavelets. These definitions are going to assist in upcoming sections.

2.1 Fractional calculus

Definition 2.1

([23, 24])

Consider α, \(\rho \in \mathbb{R}^{+}\) such that \(\alpha >0\). The generalized fractional integral \((\mathcal{I}_{a}^{\alpha , \rho }f)\) (in the sense of Katugampola) is given by

$$ \bigl(\mathcal{I}_{a}^{\alpha , \rho }f\bigr) (t)= \frac{\rho ^{\alpha -1}}{\Gamma (\alpha )} \int _{a}^{t}\bigl(t^{\rho }- \tau ^{\rho }\bigr)^{\alpha -1}\tau ^{\rho -1}f(\tau )\,d\tau . $$

Now we introduce the Caputo-type generalized fractional derivative such that, at two convenient limits, this generalized Caputo-type fractional derivative recovers the well-known Caputo–Hadamard and Caputo fractional derivatives.

Definition 2.2

([23, 24])

Consider α, \(\rho \in \mathbb{R}^{+}\) such that \(\alpha >0\) and \(n= \lfloor {\alpha } \rfloor +1\). The generalized Caputo-type fractional derivative is defined by

$$\begin{aligned} \bigl(\mathcal{D}_{a}^{\alpha , \rho }f\bigr) (t) =& \frac{\rho ^{\alpha -n+1}}{\Gamma (n-\alpha )} \int _{a}^{t} \frac{\tau ^{\rho -1}}{(t^{\rho }-\tau ^{\rho })^{n-\alpha -1}} \biggl( \tau ^{1-\rho }\frac{d}{dt} \biggr)^{n}f(\tau )\,d\tau \end{aligned}$$
$$\begin{aligned} =&\bigl(\mathcal{I}_{a}^{n-\alpha , \rho }\delta _{\rho }^{n} f\bigr) (t), \end{aligned}$$

where \(\delta _{\rho }^{n}=(t^{1-\rho }\frac{d}{dt})^{n}\) and α represents the order of the fractional operators.

Lemma 2.3


Let \(\alpha , \rho \in \mathbb{R}^{+} \)with \(\alpha >0, \alpha \notin \mathbb{N}\), and \(n= \lfloor {\alpha } \rfloor +1 \). Then

$$\begin{aligned}& \lim_{\rho \to 1}\bigl(\mathcal{D}_{a}^{\alpha , \rho }f \bigr) (t)=\mathcal{D}_{a}^{ \alpha }f(t)= \frac{1}{\Gamma (n-\alpha )} \int _{a}^{t}(t-\tau )^{n- \alpha -1} f^{(n)}(\tau )\,d\tau , \end{aligned}$$
$$\begin{aligned}& \lim_{\rho \to 0}\bigl(\mathcal{D}_{a}^{\alpha , \rho }f \bigr) (t)=\mathcal{D}_{*a}^{ \alpha }f(t)= \frac{1}{\Gamma (n-\alpha )} \int _{a}^{t} {\biggl(}\ln \frac{t}{\tau } {\biggr)}^{n-\alpha -1} \delta ^{n}f(\tau )\,d\tau . \end{aligned}$$

The fractional operators in (4) and (5) represent Caputo and Caputo–Hadamard fractional derivative, respectively.

Definition 2.4


The Mittag-Leffler function \(\mathbb{E}_{\gamma ,\beta }\) depending on two parameters α and β is defined by the following series:

$$ \mathbb{E}_{\gamma ,\beta }(t)=\sum_{k=0}^{\infty } \frac{t^{k}}{\Gamma (\gamma k+\beta )},\quad \gamma , \beta >0. $$

As a particular case, when \(\beta =1\), we have a one-parameter Mittag-Leffler function,

$$ \mathbb{E}_{\gamma }(t)=\sum_{k=0}^{\infty } \frac{t^{k}}{\Gamma (\gamma k+1)},\quad \gamma >0. $$

Lemma 2.5


For \(\theta \in \mathbb{R} \), \(\gamma >0\), and \(\beta \geq 1\), we have

$$ \mathcal{D}_{a}^{\alpha , \rho } \bigl(t^{\rho }-a^{\rho }\bigr)^{ \beta -1} \mathbb{E}_{\gamma ,\beta }\bigl[\theta \bigl(t^{\rho }-a^{\rho } \bigr)^{ \gamma }\bigr]= \textstyle\begin{cases} \frac{\rho ^{\alpha }\mathbb{E}_{\gamma ,\beta -\alpha }[\theta (t^{\rho } -a^{\rho })^{\gamma }]}{(t^{\rho }-a^{\rho })^{\alpha -\beta +1}}, &\textit{if } \beta >1; \\ \frac{\theta \rho ^{\alpha }\mathbb{E}_{\gamma ,\gamma -\alpha +1}[\theta (t^{\rho } -a^{\rho })^{\gamma }]}{(t^{\rho }-a^{\rho })^{\gamma -1}}, &\textit{if } \beta =1. \end{cases} $$

Example 2.6


Let \(\beta ,\rho \in \mathbb{R}\), with \(\beta ,\rho >0\) and \(f(t)=t^{\rho \beta }\). Taking the limit as \(a\rightarrow 0\), we get

$$ \mathcal{D}_{0^{+}}^{\alpha , \rho }\bigl(t^{\rho } \bigr)^{\beta }= \frac{\rho ^{\alpha }\Gamma (\beta +1)}{\Gamma (\beta -\alpha +1)}t^{ \rho (\beta -\alpha )}. $$

2.2 Haar wavelets and function approximation

The domain of Haar wavelets is an essential component of a set of those wavelets which employ compact support. The functions forming the family of Haar wavelets consists of step functions over the real line. These are the functions which are restrained to only the values −1, 0, and 1. These functions have two characteristics. Firstly, they are discontinuous in their nature. Secondly, their derivative vanishes. Each function that falls into the category of Haar wavelets is essentially defined over the interval \(t\in [a,b)\) except for the scaling function conveyed as [39]

$$ h_{i}(t)= \textstyle\begin{cases} 1,& \text{for } t\in [\xi _{1}(i),\xi _{2}(i)]; \\ -1,& \text{for } t\in [\xi _{2}(i),\xi _{3}(i)]; \\ 0,& \text{otherwise}. \end{cases} $$

where, \(\xi _{1}(i) =a+ (b-a)\frac{k}{m} \), \(\xi _{2}(i) =a+ (b-a) \frac{2k+1}{2m}\), \(\xi _{3}(i) =a+ (b-a)\frac{k+1}{m}\). We define the quantity \(m=2^{j}\), where \(j=0, 1, 2, 3, \ldots , J\) and \(k=0, 1, 2, 3, \ldots , m-1\). Here parameter j is used as a representation for the level of wavelet or dilation parameter, translation is represented by t, while the maximal level of resolution for the Haar wavelet is represented by J. The relation between the parameter m, k, and i is as \(i= m+k+1\).

Equation (7) is valid for \(i\geq 3\). It is presumed that the values \(i=1\) and \(i=2\) correspond to the following scaling functions, respectively:

$$ h_{1}(x)= \textstyle\begin{cases} 1,& \text{for } x\in [a,b]; \\ 0,& \text{otherwise}, \end{cases} $$


$$ h_{2}(x)= \textstyle\begin{cases} 1,& x\in [a,\frac{a+b}{2}); \\ -1,& x\in [\frac{a+b}{2},b); \\ 0,& \text{otherwise}. \end{cases} $$

If \(u(t)\) is a function defined on the interval \([0,1]\), it should decompose as

$$ u(t)=\sum_{i=0}^{\infty }c_{i}h_{i}(t), $$

where \(c_{i}=\langle u(t),h_{i}(t)\rangle \). In particular, the first m terms are considered, such that m is a power of 2,

$$ u(t)\cong {u}_{m}(t)=\sum _{i=0}^{m-1} c_{i}h_{i}(t). $$

Lemma 2.7


Suppose that a function \(v(t)\)is differentiable and has bounded first derivative over \((0,1)\), that is, there exits \(M>0\)such that \(|v^{\prime }(t)|\leq M\)for all \(t\in (0,1)\), and also assume that \(v_{k}(t)\)is an approximation of \(v(t)\), then we have

$$ \bigl\Vert v(t)-v_{k}(t) \bigr\Vert _{E}\leq \frac{M}{\sqrt{3}K}. $$

3 Operational matrices method

Operational matrices have been widely used to deal with fractional order systems. Several authors established Haar wavelets operational matrices to deal with various problems, such as to find the numerical solutions of linear and nonlinear initial as well as boundary value problems of fractional order [29, 30, 44, 45]. Hsiao and Chen [46] established an operational matrix to study lumped dynamical systems with distributed–parameters. Wang and Hsiao [47] have solved an optimal control system by linearly changing through Haar wavelets. Dai and Cochran Jr. [48] have considered a Haar wavelet technique to transform an optimal control system in the direction to nonlinear programming (NLP) parameters using collocation points. This NLP can be solved using a nonlinear programming solver such as SNOPT and exploiting Haar wavelet operational matrices for the purpose of analyzing the optimal control system [49].

Now our aim is to integrate the Haar wavelets. The generalized fractional integration of Haar vector \(H=[ h_{0},h_{1},h_{2},\ldots ,h_{m-1}]\) is given as

$$ p^{\alpha ,\rho }(t) =\frac{(\rho )^{1-\alpha }}{(\alpha -1)!} \int _{a}^{t}\bigl(t^{ \rho }-\tau ^{\rho }\bigr)^{\alpha -1}\tau ^{\rho -1}h_{i}( \tau )\,d\tau, $$

where \(P^{\alpha ,\rho }(t)\) is a square m-dimensional operational matrix of generalized integrals. In general these generalized fractional integrals can be calculated analytically as

$$ p^{\alpha ,\rho }(t)= \textstyle\begin{cases} 0, &\text{for } x< \xi _{1}(i); \\ \frac{\rho ^{-\alpha }}{\alpha !}[t^{\rho }-\xi _{1}^{\rho }(i)]^{\alpha }, &\text{for } t\in [\xi _{1}(i),\xi _{2}(i)]; \\ \frac{\rho ^{-\alpha }}{\alpha !} {[} {(}t^{\rho }-\xi _{1}^{\rho }(i) {)}^{\alpha }-2 {(}t^{\rho }-\xi _{2}^{\rho }(i) {)}^{\alpha } {]}, &\text{for } t\in [\xi _{2}(i),\xi _{3}(i)]; \\ \frac{\rho ^{-\alpha }}{\alpha !} {[} {(}t^{\rho }-\xi _{1}^{ \rho }(i) {)}^{\alpha }-2 {(}t^{\rho }-\xi _{2}^{\rho }(i) {)}^{ \alpha } \\ \quad {}+ {(}t^{\rho }-\xi _{3}^{\rho }(i) {)}^{\alpha } {]}, &\text{for } t>\xi _{3}(i). \end{cases} $$

This formula holds for \(i>1\). For \(i=1\), we obtain

$$ p^{\alpha ,\rho }(t)=\frac{(\rho )^{-\alpha }}{\alpha !} \bigl[t^{\rho }-a^{ \rho }\bigr]^{\alpha }. $$

The generalized fractional order integration matrix \(P^{\alpha ,\rho }(t)\) can be obtained by using collocation points in equations (13) and (14). In particular, the Haar wavelet operational matrix for the fixed variables \(\alpha =0.75\), \(m=8\), and \(\rho =1.5\) is

$$ P_{8\times 8}^{0.75,1.5}= \begin{bmatrix} 0.0355 & 0.1221 & 0.2169 & 0.3167 & 0.4202 & 0.5266 & 0.6355 & 0.7465 \\ 0.0355 & 0.1221 & 0.2169 & 0.3167 & 0.2057 & 0.0171 & -0.1397& -0.2847 \\ 0.0355 & 0.1221 & 0.0479 & -0.0977 & -0.1182& -0.0934& -0.0814& -0.0739 \\ 0 & 0 & 0 & 0 & 0.1073 & 0.2548 & 0.1397 & -0.0659 \\ 0.0355 & -0.013& -0.0471& -0.0354& -0.0304 & -0.0274& -0.0252& -0.0236 \\ 0 & 0 & 0.0845& 0.0132 & -0.0360 & -0.0233& -0.0186& -0.0161 \\ 0 & 0 & 0 & 0 & 0.1073 & 0.0225 & -0.0359& -0.0217 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0.1240 & 0.0286 \end{bmatrix} . $$

Furthermore, in Sect. 4 we will present a new approach to solve certain classes of linear or nonlinear boundary value problems of generalized fractional differential equations numerically, called Green–Haar wavelet method. This technique will be free of operational matrices

3.1 Error analysis

An error analysis for a function approximation by Haar wavelets is carried out in [43]. Here we derive an inequality in the context of an upper bound for the Caputo–Katugampola fractional differential operator which shows the convergence of the Haar wavelet technique. The proof of the following theorem is similar to that in [50].

Theorem 3.1

Suppose that \(u^{(n)}\)is continuous on \((a,b)\)and there exists \(M>0\), such that \(|t^{1-\rho }u^{(n)}(t)|\leq M\)for all \(t\in [a,b] \)where \(a,b\in \mathbb{R}^{+} \), and \(\mathcal{D}^{\alpha ,\rho }_{a}u_{m}\)is an approximation of \(\mathcal{D}^{\alpha ,\rho }_{a}u\), then we have

$$ \bigl\Vert \mathcal{D}^{\alpha ,\rho }_{a}u(t)- \mathcal{D}^{\alpha ,\rho }_{a}u_{m}(t) \bigr\Vert _{E}\leq \frac{\rho M}{\Gamma (n-\alpha )(n-\alpha )} \frac{b^{(n-\alpha )(\rho -1)}}{[1-2^{2(\alpha -n)}]^{\frac{1}{2}}} \frac{1}{m^{(n-\alpha )}}. $$


The function \(\mathcal{D}^{\alpha ,\rho }_{a}u\) defined over \([a,b]\) can be approximated as

$$ \mathcal{D}^{\alpha ,\rho }_{a}u(t)=\sum _{i=0}^{\infty }c_{i}h_{i}(t), $$


$$ c_{i}=\bigl\langle \mathcal{D}^{\alpha ,\rho }_{a}u(t),h_{i}(t) \bigr\rangle = \int _{a}^{b}\mathcal{D}^{\alpha , \rho }_{a}u(t)h_{i}(t)\,dt. $$

Consider the first m terms of the sum, denoted by \(\mathcal{D}^{\alpha ,\rho }_{a}u_{m}\), which approximate \(\mathcal{D}^{\alpha ,\rho }_{a}u(t)\), that is,

$$ \mathcal{D}^{\alpha ,\rho }_{a}u(t) \cong \mathcal{D}^{ \alpha ,\rho }_{a}u_{m}(t)=\sum _{i=0}^{m-1}c_{i}h_{i}(t), $$

where \(m=2^{\beta +1}\), \(\beta =1,2,3,\ldots \) , then

$$\begin{aligned}& \mathcal{D}^{\alpha ,\rho }_{a}u(t)- \mathcal{D}^{\alpha ,\rho }_{a}u_{m}(t)= \sum _{i=m}^{\infty }c_{i}h_{i}(t)= \sum_{i=2^{\beta +1}}^{\infty }c_{i}h_{i}(t), \\& \begin{aligned} \bigl\Vert \mathcal{D}^{\alpha ,\rho }_{a}u(t)- \mathcal{D}^{ \alpha ,\rho }_{a}u_{m}(t) \bigr\Vert _{E}^{2}&= \int _{a}^{t}\bigl[\mathcal{D}^{ \alpha ,\rho }_{a}u(t)- \mathcal{D}^{\alpha ,\rho }_{a}u_{m}(t) \bigr]^{2}\,dt \\ &=\sum_{i=2^{\beta +1}}^{\infty }\sum _{i^{\prime }=2^{\beta +1}}^{ \infty }c_{i}c_{i^{\prime }} \int _{a}^{t}h_{i}(t)h_{i^{\prime }}(t)\,dt. \end{aligned} \end{aligned}$$

By orthogonality, we have \(\int _{a}^{b}h_{m}(t)h_{m}(t)\,dt=I_{m}\), where \(I_{m}\) is the identity matrix of order m. Therefore,

$$ \bigl\Vert \mathcal{D}^{\alpha ,\rho }_{a}u(t)- \mathcal{D}^{\alpha ,\rho }_{a}u_{m}(t) \bigr\Vert _{E}^{2}=\sum_{i=2^{\beta +1}}^{\infty } c_{i}^{2} .$$

From equation (17) we have

$$ \begin{aligned} c_{i}&= \int _{a}^{b}\mathcal{D}^{\alpha ,\rho }_{a}u(t)h_{i}(t)\,dt \\ &=2^{\frac{j}{2}} {\biggl\{ } \int _{a+(b-a)k2^{-j}}^{a+(b-a)(k+ \frac{1}{2})2^{-j}}\mathcal{D}^{\alpha ,\rho }_{a}u(t)\,dt- \int _{a+(b-a)(k+ \frac{1}{2})2^{-j}}^{a+(b-a)(k+1)2^{-j}}\mathcal{D}^{\alpha ,\rho }_{a}u(t)\,dt {\biggr\} }. \end{aligned} $$

Recall the mean value theorem of integration: \(\exists t_{1},t_{2}\), \(a+(b-a)k2^{-j} \leq t_{1}< a+(b-a)(k+ \frac{1}{2}) 2^{-j}\), \(a+(b-a)(k+\frac{1}{2})2^{-j}\leq t_{2} < a+(b-a)(k+1)2^{-j} \) such that

$$ \begin{aligned} c_{i}={}&2^{\frac{j}{2}}(b-a) {\biggl\{ } {\biggl(}a+\biggl(k+ \frac{1}{2}\biggr) 2^{-j}- \bigl(a+k2^{-j}\bigr) {\biggr)} \mathcal{D}^{\alpha ,\rho }_{a^{+}}u(t_{1}) \\ &{}- {\biggl(}a+(k+1)2^{-j}-\biggl(a+\biggl(k+\frac{1}{2} \biggr) 2^{-j}\biggr) {\biggr)} \mathcal{D}^{\alpha ,\rho }_{a^{+}}u(t_{2}) {\biggr\} } \\ ={}&2^{\frac{j}{2}}(b-a) {\bigl\{ }2^{-j-1} {\bigl(} \mathcal{D}^{ \alpha ,\rho }_{a}u(t_{1}) - \mathcal{D}^{\alpha ,\rho }_{a}u(t_{2}) {\bigr)} { \bigr\} }. \end{aligned} $$


$$ c_{i}^{2}=2^{-j-2}(b-a)^{2} {\bigl(} \mathcal{D}^{\alpha ,\rho }_{a}u(t_{1}) - \mathcal{D}^{\alpha ,\rho }_{a}u(t_{2}) { \bigr)}^{2}. $$

Together with the definition of Caputo–Katugampola fractional derivative and \(|t^{1-\rho }u^{n}(t)| \leq M\)\(\forall t\in [a,b] \), we have

$$\begin{aligned}& \bigl\vert \mathcal{D}^{\alpha ,\rho }_{a}u(t_{1}) -\mathcal{D}^{\alpha ,\rho }_{a}u(t_{2}) \bigr\vert \\& \quad = \frac{\rho ^{\alpha -n+1}}{\Gamma (n-\alpha )} { \biggl\vert } \int _{a}^{t_{1}} \frac{u^{n}(\tau )}{(t_{1}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau - \int _{a}^{t_{2}} \frac{u^{n}(\tau )}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau { \biggr\vert } \\& \quad = \frac{\rho ^{\alpha -n+1}}{\Gamma (n-\alpha )} { \biggl\vert } \int _{a}^{t_{1}} \frac{u^{n}(\tau )}{(t_{1}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau - \int _{a}^{t_{1}} \frac{u^{n}(\tau )}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau \\& \qquad {}- \int _{t_{1}}^{t_{2}} \frac{u^{n}(\tau )}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau { \biggr\vert } \\& \quad \leq \frac{\rho ^{\alpha -n+1}}{\Gamma (n-\alpha )} {\biggl(} { \biggl\vert } \int _{a}^{t_{1}} \frac{u^{n}(\tau )}{(t_{1}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau - \int _{a}^{t_{1}} \frac{u^{n}(\tau )}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau { \biggr\vert } \\& \qquad {}+ { \biggl\vert } \int _{t_{1}}^{t_{2}} \frac{u^{n}(\tau )}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau { \biggr\vert } {\biggr)} \\& \quad = \frac{\rho ^{\alpha -n+1}}{\Gamma (n-\alpha )} {\biggl(} { \biggl\vert } \int _{a}^{t_{1}}u^{n}(\tau )\tau ^{(1-\rho )} {\biggl[} \frac{\tau ^{\rho -1}}{(t_{1}^{\rho }-\tau ^{\rho })^{\alpha -n+1}} - \frac{\tau ^{\rho -1}}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}} { \biggr]}\,d\tau { \biggr\vert } \\& \qquad {}+ { \biggl\vert } \int _{t_{1}}^{t_{2}} \frac{u^{n}(\tau )\tau ^{(1-\rho )}\tau ^{\rho -1}}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau { \biggr\vert } {\biggr)} \\& \quad \leq \frac{\rho ^{\alpha -n+1}}{\Gamma (n-\alpha )} {\biggl(} \int _{a}^{t_{1}} { \biggl\vert }u^{n}(\tau )\tau ^{(1-\rho )} {\biggl[} \frac{\tau ^{\rho -1}}{(t_{1}^{\rho }-\tau ^{\rho })^{\alpha -n+1}} - \frac{\tau ^{\rho -1}}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}} {\biggr]} { \biggr\vert }\,d\tau \\& \qquad {}+ \int _{t_{1}}^{t_{2}} { \biggl\vert } \frac{u^{n}(\tau )\tau ^{(1-\rho )}\tau ^{\rho -1}}{(t_{2}^{\rho } -\tau ^{\rho })^{\alpha -n+1}} { \biggr\vert }\,d\tau {\biggr)} \\& \quad \leq \frac{\rho ^{\alpha -n+1}M}{\Gamma (n-\alpha )} {\biggl(} \int _{a}^{t_{1}} {\biggl[} \frac{\tau ^{\rho -1}}{(t_{1}^{\rho }-\tau ^{\rho })^{\alpha -n+1}} - \frac{\tau ^{\rho -1}}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}} {\biggr]}\,d\tau \\& \qquad {}+ \int _{t_{1}}^{t_{2}} \frac{\tau ^{\rho -1}}{(t_{2}^{\rho }-\tau ^{\rho })^{\alpha -n+1}}\,d\tau { \biggr)} \\& \quad = \frac{\rho ^{\alpha -n+1}M}{\Gamma (n-\alpha )(n-\alpha )} {\bigl(}\bigl[ \bigl(t_{1}^{ \rho }-a^{\rho }\bigr)^{n-\alpha }+ \bigl(t_{2}^{\rho }-t_{1}^{\rho } \bigr)^{n-\alpha }-\bigl(t_{2}^{ \rho }-a^{\rho } \bigr)^{n-\alpha }\bigr] \\& \qquad {}+\bigl(t_{2}^{\rho }-t_{1}^{\rho } \bigr)^{n-\alpha } {\bigr)}. \end{aligned}$$

Since \(t_{1}< t_{2}\), one gets \((t_{1}^{\rho }-a^{\rho })^{n-\alpha }-(t_{2}^{\rho }-a^{\rho })^{n-\alpha }<0\) for \(\rho >0\).


$$ \bigl\vert \mathcal{D}^{\alpha ,\rho }_{a}u(t_{1}) -\mathcal{D}^{\alpha ,\rho }_{a}u(t_{2}) \bigr\vert \leq \frac{2\rho ^{\alpha -n+1}M}{\Gamma (n-\alpha )(n-\alpha )}\bigl(t_{2}^{ \rho }-t_{1}^{\rho } \bigr)^{n-\alpha }. $$

By the mean value theorem, \(\exists \xi \in [t_{1},t_{2}]\subseteq [a,b]\),

$$ \begin{aligned} \bigl\vert \mathcal{D}^{\alpha ,\rho }_{a}u(t_{1}) -\mathcal{D}^{ \alpha ,\rho }_{a}u(t_{2}) \bigr\vert &\leq \frac{2\rho ^{\alpha -n+1}M}{\Gamma (n-\alpha )(n-\alpha )}\rho ^{n- \alpha }\xi ^{(n-\alpha )(\rho -1)}(t_{2}-t_{1})^{n-\alpha } \\ &\leq \frac{2\rho Mb^{(n-\alpha )(\rho -1)}}{\Gamma (n-\alpha )(n-\alpha )} \frac{1}{2^{j(n-\alpha )}} \end{aligned} $$

which implies that

$$ \bigl(\mathcal{D}^{\alpha ,\rho }_{a}u(t_{1})- \mathcal{D}^{\alpha ,\rho }_{a}u(t_{2}) \bigr)^{2} \leq \frac{4\rho ^{2} M^{2}}{\Gamma (n-\alpha )^{2}(n-\alpha )^{2}} \frac{b^{2(n-\alpha )(\rho -1)}}{2^{2j(n-\alpha )}}. $$

Substituting equation (21) into (20), we get

$$ \begin{aligned}[b] c_{i}^{2}& \leq 2^{-j-2}(b-a)^{2} {\biggl(} \frac{4\rho ^{2} M^{2}}{\Gamma (n-\alpha )^{2}(n-\alpha )^{2}} \frac{b^{2(n-\alpha )(\rho -1)}}{2^{2j(n-\alpha )}} {\biggr)} \\ &= \frac{(b-a)^{2}\rho ^{2} M^{2}}{\Gamma (n-\alpha )^{2}(n-\alpha )^{2}} \frac{b^{2(n-\alpha )(\rho -1)}}{2^{2j(n-\alpha )+j}}. \end{aligned} $$

Putting equation (22) into equation (19), we have

$$\begin{aligned} \bigl\Vert \mathcal{D}^{\alpha ,\rho }_{a}u(t)- \mathcal{D}^{\alpha ,\rho }_{a}u_{m}(t) \bigr\Vert _{E}^{2} &=\sum_{i=2^{\beta +1}}^{\infty } c_{i}^{2} =\sum_{j= \beta +1}^{\infty } {\Biggl(}\sum_{i=2^{j}}^{2^{j+1}-1}c_{i}^{2} {\Biggr)} \\ &\leq \sum_{j=\beta +1}^{\infty } {\biggl(} \frac{(b-a)^{2}\rho ^{2} M^{2}}{\Gamma (n-\alpha )^{2}(n-\alpha )^{2}} \frac{b^{2(n-\alpha )(\rho -1)}}{2^{2j(n-\alpha )+j}}\bigl(2^{j+1}-1-2^{j}+1 \bigr) {\biggr)} \\ &=\sum_{j=\beta +1}^{\infty } \frac{(b-a)^{2}\rho ^{2} M^{2}}{\Gamma (n-\alpha )^{2}(n-\alpha )^{2}} \frac{b^{2(n-\alpha )(\rho -1)}}{2^{2j(n-\alpha )}} \\ & = \frac{(b-a)^{2}\rho ^{2} M^{2}b^{2(n-\alpha )(\rho -1)}}{\Gamma (n-\alpha )^{2}(n-\alpha )^{2}} \sum_{j=\beta +1}^{\infty } \frac{1}{2^{2j(n-\alpha )}} \\ & = \frac{(b-a)^{2}\rho ^{2} M^{2}}{\Gamma (n-\alpha )^{2}(n-\alpha )^{2}} \frac{b^{2(n-\alpha )(\rho -1)}}{1-2^{2(\alpha -n)}} \frac{1}{2^{2(\beta +1)(n-\alpha )}}. \end{aligned}$$

Let \(m=2^{\beta +1}\), then we have

$$\begin{aligned} \bigl\Vert \mathcal{D}^{\alpha ,\rho }_{a}u(t)- \mathcal{D}^{\alpha ,\rho }_{a}u_{m}(t) \bigr\Vert _{E}^{2}&\leq \frac{(b-a)^{2}\rho ^{2} M^{2}}{\Gamma (n-\alpha )^{2}(n-\alpha )^{2}} \frac{b^{2(n-\alpha )(\rho -1)}}{1-2^{2(\alpha -n)}} \frac{1}{m^{2(n-\alpha )}} \\ &\leq \frac{(b-a)\rho M}{\Gamma (n-\alpha )(n-\alpha )} \frac{b^{(n-\alpha )(\rho -1)}}{[1-2^{2(\alpha -n)}]^{\frac{1}{2}}} \frac{1}{m^{(n-\alpha )}}. \end{aligned}$$

Hence, one can achieve the error bound for the given partial sum, provided a numerical value of M is given.

To get an estimate for M, we proceed as follows. Since \(u^{(n)}(t)\) is bounded and continuous on the interval \([a,b]\),

$$ u^{(n)}(t)\cong \sum_{i=0}^{m-1}c_{i}h_{i}(t)=C^{t}H_{m}(t), $$

where \(C=[c_{0}, c_{1}, c_{2}, \ldots ,c_{m-1}]^{t}\) and \(H_{m}(t)=[h_{0}(t), h_{1}(t), h_{2}(t), \ldots , h_{m-1}(t)]\).

The integral of Haar wavelets of order α is given as

$$ \mathcal{I}_{a}^{\alpha ,\rho }H_{m}(t)\,dt\cong P_{m\times m}^{\alpha , \rho }H_{m}(t),\quad t\in [a,b). $$

Integrating equation (23) yields

$$ u^{(n-1)}(t)= \int _{a}^{t}u^{(n)}(x)\,dx+u^{(n-1)}(a)= \int _{a}^{t}u^{(n)}(x)\,dx \cong C^{t}P_{m\times m}^{1,\rho }H_{m}(t). $$

Similarly, equation (24) is integrated as

$$ u^{(n-2)}(t)= \int _{a}^{t}u^{(n-1)}(x)\,dx+u^{(n-2)}(a)= \int _{a}^{t}u^{(n-1)}(x)\,dx \cong C^{t}P_{m\times m}^{2,\rho }H_{m}(t). $$


$$ u(t)\cong C^{t}P_{m\times m}^{n,\rho }H_{m}(t). $$

Equation (25) can be written as

$$ u(t_{j})\cong C^{t}P_{m\times m}^{n,\rho }H_{m}(t_{j}),\quad \text{where } t_{j}=\frac{j-1/2}{m}, j=1,2,\ldots ,k. $$

Writing equation (26) in matrix form, we get

$$ U^{t}\cong C^{t}P_{m\times m}^{n,\rho }H_{m\times m},\quad \text{where } U^{t}=\bigl[u(t_{1}),u(t_{2}),u(t_{3}), \ldots ,u(t_{m})\bigr]^{t}. $$

By solving the linear system in (27), we can determine the vector \(C^{t}\), and putting this vector into equation (23), \(u^{(n)}(t)\) can be calculated for each \(t\in [a,b]\).

Now assuming \(x_{i}\in [a,b]\) and \(u^{(n)}(x_{i})\) are calculated for \(i=1,2,3,\ldots ,\ell \), where the points are equidistant, an estimate of M may be considered as \(\epsilon +\max |u^{(n)}(x_{i})|_{1\leq i\leq \ell }\). Clearly, the estimate shall be relatively more precise if increases and ϵ is chosen, for example, equal to b. □

Corollary 3.2

Assume that \(\mathcal{D}^{\alpha ,\rho }_{a}u(t)\)is a Haar wavelet approximation of \(\mathcal{D}^{\alpha ,\rho }_{a}u(t)\), then

$$ \bigl\Vert u(t)-u_{m}(t) \bigr\Vert _{E}\leq \frac{(b-a)\rho ^{2-\alpha } M}{\Gamma (\alpha )\Gamma (n-\alpha ) \cdot \alpha (n-\alpha )} \frac{b^{(n-\alpha )(\rho -1)}}{[1-2^{2(\alpha -n)}]^{\frac{1}{2}}} \frac{1}{m^{(n-\alpha )}}. $$

From equation (28) it is evident that \(\|u(t)-u_{m}(t)\|_{E}\longrightarrow 0 \) when \(m\longrightarrow \infty \).

3.2 Numerical examples

In this part we present a few numerical examples which can help us compare the solutions obtained by the numerical methods with exact solutions and solutions by other methods.

Example 3.3

Consider the αth order Cauchy-type generalized fractional differential equation

$$ \mathcal{D}^{\alpha ,\rho }_{1^{+}}u(t)=u(t)+ \frac{2\rho ^{\alpha }}{\Gamma (3-\alpha )}\bigl(t^{\rho }-1\bigr)^{2-\alpha }- \bigl(t^{ \rho }-1\bigr)^{2},\quad t\in [1,2], $$

with the initial condition \(u(1)=0\), where \(0<\alpha \leq 1\) and \(\rho >0\). It is easy to check that the analytic solution of system (29) is \(u(t)=(t^{\rho }-1)^{2}\). To find the approximate solution, we apply Haar wavelets technique to equation (29). Let

$$ \mathcal{D}^{\alpha ,\rho }_{1^{+}}u(t)=C_{m}^{t}H_{m}(t), $$

then computing the α order integral of (30) along with initial condition leads to

$$ u(t)=C_{m}^{t}\mathcal{I}^{\alpha ,\rho }_{1^{+}}H_{m}(t)=C_{m}^{t}P_{m \times m}^{\alpha ,\rho }H_{m}(t). $$

Putting the values from (30) and (31) into equation (29), we have

$$ C_{m}^{t}H_{m}(t)=C_{m}^{t}P_{m\times m}^{\alpha ,\rho }H_{m}(t)+F_{m}H_{m}(t), $$

where \(F_{m}H_{m}(t)=\frac{2\rho ^{n}}{\Gamma (3-n)}(t^{\rho -1})^{2-n}-(t^{ \rho }-1)^{2}-1\). After solving (32) for Haar coefficient vector \(C_{m}^{t}\), and using the result in equation (31), we get the required approximate solution. This problem is also solved in [41] by a decomposition formula. The maximum absolute difference of the numerical and exact solutions of equation (29) for distinct values of α, ρ is documented in Table 1. The numerical results are in good agreement with the exact solutions.

Table 1 Maximum absolute error for distinct values of ρ, α, and \(m=64\)

Example 3.4

Consider an initial value problem

$$ \mathcal{D}^{\alpha ,\rho }_{0}u(t)+a(t)u(t)=g(t),\quad t\in [0,1], u(0)=0, 0< \alpha \leq 1, \text{and } \rho >0. $$

For \(a(t)=-(1+t)\) and \(g(t)=4\pi \rho ^{\alpha }(t^{\rho })^{1-\alpha }E_{2,2-\alpha }(-(4\pi t^{ \rho })^{2})+\rho ^{\alpha }\Gamma (\alpha +1)-(1+t)(\sin (4\pi t^{\rho })+(t^{ \rho })^{\alpha })\), one may verify that \(u(t)=\sin (4\pi t^{\rho })+(t^{\rho })^{\alpha }\) is the analytical solution for equation (33). For a numerical solution, we approximate \(\mathcal{D}^{\alpha ,\rho }_{0}u(t)\) by Haar wavelets as

$$ \mathcal{D}^{\alpha ,\rho }_{0}u(t)=C_{m}^{t}H_{m}(t). $$

Applying the integral operator of order α, we get

$$ u(t)=\mathcal{I}^{\alpha ,\rho }_{0}C_{m}^{t}H_{m}(t)=C_{m}^{t}P_{m \times m}^{\alpha ,\rho }H_{m}(t). $$

Using (34) and (35) in (33), we have

$$ C_{m}^{t}H_{m}(t)+C_{m}^{t} \hat{P}_{m\times m}^{\alpha ,\rho }H_{m}(t)=G_{m}^{t}H_{m}(t), $$

where \(g(t)\) is estimated as \(g(t)=G_{m}^{t}H_{m}(t)\) and \(a(t)P_{m\times m}^{\alpha ,\rho }H_{m}(t)=\hat{P}_{m\times m}^{ \alpha ,\rho }H_{m}(t)\).

The numerical and exact solutions are shown in Fig. 1 for the fixed values of \(m=64\), \(\rho =1.6\), and \(\alpha =0.75\). Also numerical solutions of the initial value problem (33) at distinct values of ρ are shown in Fig. 2. We evaluate the maximum absolute error between the exact and approximate solutions for distinct values of ρ and m and represent it in Table 2. Also the maximum absolute error is presented graphically in Fig. 3. Furthermore, numerical as well as exact solutions are graphically presented in Fig. 4 for different values of α. Graphical results show that the numerical and exact solutions match with each other.

Figure 1
figure 1

Exact and numerical solutions for \(m=64\), \(\rho =1.6\), and \(\alpha =0.75\)

Figure 2
figure 2

Numerical solutions for \(m=64\), \(\alpha =0.75\), and several values of ρ

Figure 3
figure 3

The absolute error for \(m=64\), \(\rho =1.75\), and different values of α

Figure 4
figure 4

Exact and numerical solutions for \(m=64\), \(\rho =1.75\)

Table 2 Maximum absolute difference for distinct values of ρ, m, and \(\alpha =0.75\)

Example 3.5

Consider a fractional differential equation with variable coefficient defined as

$$ \mathcal{D}^{\alpha ,\rho }_{1^{+}}u(t)+a(t)u(t)=g(t),\quad t\in [1,2], $$

with the initial condition \(u(1)=1\), where \(0<\alpha \leq 1\). For \(a(t)=(1+t)\) and \(g(t)=\frac{2^{\alpha }}{\Gamma (2-\alpha )}(t^{\rho } -1)^{1-\alpha }+(1+t)t^{ \rho }\), it can be verified that the analytic solution for equation (37) is \(u(t)=t^{\rho }\). We apply the Haar wavelets technique with the aid of Haar matrices while seeking an approximate solution. Let

$$ \mathcal{D}^{\alpha ,\rho }_{1^{+}}u(t)=C_{m}^{t}H_{m}(t). $$

After applying integral \(\mathcal{I}^{\alpha ,\rho }_{1^{+}}\) on both sides of equation (38), we obtain

$$ u(t)=\mathcal{I}^{\alpha ,\rho }_{1^{+}}C_{m}H_{m}(t)+1=C_{m}^{t}P_{m \times m}^{\alpha ,\rho }H_{m}(t)+1. $$

Using equations (38) and (39) in equation (37), we obtain

$$ C_{m}^{t}H_{m}(t)+C_{m}^{t} \hat{P}_{m\times m}^{\alpha ,\rho }H_{m}(t)=F_{m}^{t}H_{m}(t), $$

where \(f(t)=g(t)-(1+t)\) is approximated as \(f(t)=F_{m}^{t}H_{m}(t)\) and \(a(t)P_{m\times m}^{\alpha ,\rho }H_{m}(t) =\hat{P}_{m\times m}^{\alpha ,\rho }H_{m}(t)\).

For \(\rho =2\) and several fixed values of α and m, Table 3 contains the maximum absolute error obtained from the exact and approximate results achieved through the Haar wavelets along with the method discussed in [40]. The tabulated results show that the presented method is nearly as accurate as the discretization method but with comparatively fewer nodes.

Table 3 Maximum absolute error for \(\rho =2\) and for different values of m, α

Example 3.6

Consider the generalized Bagley–Torvik equation,

$$ a\mathcal{D}^{\alpha ,\rho }_{0}u(t)+b \mathcal{D}^{\frac{3}{2},\rho }_{0}u(t)+cu(t)= g(t),\quad t\in [0,1], $$

with the initial conditions \(u(0)=0\), \(u{'}(0)=0\), where \(1<\alpha \leq 2\), \(a,b,c\in \mathbb{R}\), \(a\neq 0\), and \(\rho >0\). For \(a=b=c=1\) and \(f(t)=\rho ^{\alpha }\Gamma (\alpha +1)+ \frac{\rho ^{\frac{3}{2}}\Gamma (\alpha +1)}{\Gamma (\alpha -\frac{3}{2}+1)}(t^{ \rho })^{\alpha -\frac{3}{2}}+(t^{\rho })^{\alpha }\), the exact solution is \(u(t)=(t^{\rho })^{\alpha }\), and for \(\rho =1\) and \(n=2\), equation (41) becomes Bagley–Torvik equation considered in [51]. To find an approximate solution, we use Haar wavelets technique as follows. Letting

$$ \mathcal{D}^{\alpha ,\rho }_{0}u(t)=C_{m}^{t}H_{m}(t) $$

and performing integration \(\mathcal{I}^{\alpha ,\rho }_{0}\) on both sides, as well as using initial conditions, we have

$$ u(t)=\mathcal{I}^{\alpha ,\rho }_{0}C_{m}^{t}H_{m}(t)=C_{m}^{t}P_{m \times m}^{\alpha ,\rho }H_{m}(t) $$


$$ \mathcal{D}^{\frac{3}{2},\rho }_{0}u(t)= \mathcal{D}^{\frac{3}{2},\rho }_{0}C_{m}^{t}P_{m \times m}^{\alpha ,\rho }H_{m}(t)=C_{m}^{t}P_{m\times m}^{\alpha - \frac{3}{2}}H_{m}(t). $$

In the same way, the input function \(g(t)\) can be approximated by Haar functions as

$$ g(t)=G_{m}^{t}H_{m}(t). $$

Putting equations (42), (43), (44), and (45) into equation (41), we have

$$ C_{m}^{t}H_{m}(t)+ C_{m}^{t}P_{m\times m}^{\alpha -\frac{3}{2}}H_{m}(t) + C_{m}^{t}P_{m\times m}^{\alpha ,\rho }H_{m}(t)=G_{m}^{t}H_{m}(t). $$

By solving (46), we can get the Haar coefficients \(C_{m}^{t}\). Then using equation (43), we can obtain the required output \(u(t)\). The absolute error is shown in Table 4 for \(\rho =1.5\), \(m=64\), and distinct values of α.

Table 4 Absolute error for \(\rho =1.75\), \(\alpha =1.45\) and for several fixed values of m

Example 3.7

Consider a generalized fractional differential equation of inhomogeneous type with boundary conditions:

$$ \mathcal{D}_{0^{+}}^{\alpha ,\rho }u(t)+a(t)u(t)=f(t),\quad t \in [0,1], $$

with \(u(0)=u_{0}\), \(u(1)=u_{1}\), and \(1<\alpha \leq 2\). For \(a(t)=1\), \(f(t)=\rho ^{\alpha }t^{\rho }+ \frac{(t^{\rho })^{\alpha +1}}{\Gamma (\alpha +2)}\), \(u_{0}=0\), and \(u_{1}=\frac{1}{\Gamma (\alpha +2)}\), the analytic solution of the differential equation is \(u(t)=\frac{(t^{\rho })^{\alpha +1}}{\Gamma (\alpha +2)}\). To find a numerical solution, the integral form of equation (47) is given by

$$ u(t)=-\mathcal{I}_{0^{+}}^{\alpha ,\rho }a(t)u(t)+ t^{\rho }\mathcal{I}_{0^{+}}^{ \alpha ,\rho }a(1)u(1) + g(t), $$

where \(g(t)= \mathcal{I}_{0^{+}}^{\alpha ,\rho }f(t)- t^{\rho }\mathcal{I}_{0^{+}}^{ \alpha ,\rho }f(1)+ u_{0}+t^{\rho }(u_{1}-u_{0})\). Let

$$ u(t)=C_{m}^{t}H_{m}(t). $$

Integrating on both sides of equation (49), we have

$$ \mathcal{I}_{0^{+}}^{\alpha ,\rho }u(t) = \mathcal{I}_{0^{+}}^{\alpha , \rho }C_{m}^{t}H_{m}(t)=C_{m}^{t}P_{m\times m}^{\alpha ,\rho }H_{m}(t). $$

Using (49) and (50) in (48) yields

$$ C_{m}^{t}H_{m}(t)=-C_{m}^{t}P_{m\times m}^{\alpha ,\rho }H_{m}(t)+C_{m}^{t}M_{m \times m}^{\alpha ,\rho }H_{m}(t)+G_{m}^{t}H_{m}(t), $$

where the approximations \(g(t)=G_{m}^{t}H_{m}(t)\) and \(t^{\rho }\mathcal{I}_{0^{+}}^{\alpha ,\rho }u(1) =C_{m}^{t}M_{m\times m}^{ \alpha ,\rho }H_{m}(t)\) are used for convenience. To obtain the value of \(C_{m}^{t}\), we have to solve the algebraic linear system in equation (51) and, putting value of \(C_{m}^{t}\) into equation (49), we have an approximate solution. The maximum absolute error of the exact and numerical solutions for \(\rho =1.5\) and different values of α and m is given in Table 6; see Sect. 4.

3.3 Nonlinear problems

A nonlinear differential equation can be transformed to a sequence of linear differential equations. One of the possible way to achieve this goal is the application of quasilinearization method. The quasilinearization technique was presented by Kalabas and Bellman [52] as a generalization of a specific method (Newton–Raphson) [53] which assists in solving nonlinear functional equations. Further, Haar wavelets with the quasilinearization technique have been applied for the numerical solution of the individual or system of nonlinear fractional differential equations [44]. Here we apply the quasilinearization technique to solve generalized nonlinear fractional differential equations.

Example 3.8

Consider the nonlinear Caputo–Katugampola fractional differential equation

$$ a\mathcal{D}^{2,\rho }_{0^{+}}u(t)+b \mathcal{D}^{\alpha _{1},\rho }_{0^{+}}u(t)+c \mathcal{D}^{\alpha _{2},\rho }_{0^{+}}u(t)+d \bigl[u(t)\bigr]^{3}=f(t),\quad t \in [0,1], $$

subject to initial conditions \(u(0)=0\), \(u^{\prime }(0)=0\).

Applying the quasilinearization technique to (52), we get

$$\begin{aligned}& a\mathcal{D}^{2,\rho }_{0^{+}}u_{r+1}(t)+b \mathcal{D}^{\alpha _{1}, \rho }_{0^{+}}u_{r+1}(t)+c \mathcal{D}^{\alpha _{2},\rho }_{0^{+}}u_{r+1}(t)+ d \bigl[u_{r}^{3}(t)+3\bigl(u_{r+1}(t)-u_{r}(t) \bigr)u_{r}^{2}(t)\bigr] \\& \quad =f(t) \end{aligned}$$


$$ a\mathcal{D}^{2,\rho }_{0^{+}}(t)+b \mathcal{D}^{\alpha _{1},\rho }_{0^{+}}u_{r+1}(t)+c \mathcal{D}^{\alpha _{2},\rho }_{0^{+}}u_{r+1}(t)+ 3du_{r}^{2}(t)u_{r+1}(t)=f(t)+2du_{r}^{3}(t), $$

which is a linear fractional differential equation. Let

$$ \mathcal{D}^{2,\rho }_{0^{+}}u_{r+1}(t)=C_{m}^{t}H_{m}(t). $$

Equivalent integral equations for the equations in (55) are

$$ u_{r+1}(t)=\mathcal{I}^{2,\rho }_{0^{+}}C_{m}^{t}H_{m}(t)=C_{m}^{t}P_{m \times }^{2,\rho }H_{m}(t) $$


$$ \mathcal{D}^{\alpha _{1},\rho }_{0^{+}}u_{r+1}(t)=C_{m}^{t}P_{m\times m}^{2- \alpha _{1},\rho } H_{m}(t). $$

Also we have

$$ \mathcal{D}^{\alpha _{2},\rho }_{0^{+}}u_{r+1}(t)=C_{m}^{t}P_{m\times m}^{2- \alpha _{2},\rho } H_{m}(t). $$

Substituting equations (55), (56), (57), and (58) into (54), we have

$$ C_{m}^{t}\bigl[aH_{m}(t)+bP_{m\times m}^{2-\alpha _{1},\rho } H_{m}(t)+cP_{m \times m}^{2-\alpha _{2},\rho } H_{m}(t)+dP_{m\times }^{2,\rho }H_{m}(t) \bigr]=G_{m}^{t}H_{m}(t), $$

where the function \(g(t)=f(t)+2du_{r}^{3}(t)\) is approximated as \(g(t)=G_{m}^{t}H_{m}(t)\), taking \(0<\alpha _{1}\leq 1\), \(1<\alpha _{2}\leq 2\), and \(a,b,c,d\in \mathbb{R}\). The exact solution of the nonlinear initial value problem (52) is \(u(t)=\frac{1}{3}(t^{\rho })^{3}\) provided \(a=b=c=d=1\) and \(f(t)=\frac{2\rho ^{2}}{\Gamma (2)}t^{\rho }+ \frac{2\rho ^{\alpha _{1}}}{\Gamma (4-\alpha _{1})}(t^{\rho })^{3- \alpha _{1}}+ \frac{2\rho ^{\alpha _{2}}}{\Gamma (4-\alpha _{2})}(t^{ \rho })^{3-\alpha _{2}}+ [\frac{1}{3}(t^{\rho })^{3}]^{3}\). The absolute error for fixed values of \(\alpha _{1}=1.55\), \(\alpha _{2}=0.75\), \(\rho =1.45\), and for distinct values of m are presented in the tabular form in Table 5.

Table 5 Absolute error for \(\rho =1.45\), \(\alpha _{1}=1.55\), \(\alpha _{2}=0.75\), and for different fixed values of m

4 Green–Haar method

The fractional Green’s function was defined by K.S. Miller and B. Ross [54] who applied it to fractional differential equations consisting of derivatives of order only, where \(k\in \mathbb{Z}\). In this section we present a numerical method which is based on standard Haar wavelets and the Green function. This method applies to boundary value problems of a certain type. An interesting feature of the method is that in does not require fractional operational matrices or specific metrics reserved for solving boundary value problems. The study undertaken shows that the method is computationally efficient against the standard Haar wavelet technique discussed in the previous section. Thus the efficiency of the method is found to be considerably higher than that of some relevant numerical methods. Interestingly, the accuracy is not compromised, but rather enhanced.

At this stage, we shall consider following class of fractional boundary value problems:

$$ \mathcal{D}_{0}^{\alpha ,\rho }u(t)=f \bigl(t,u(t)\bigr), \qquad u(0)=u_{0},\qquad u(1)=u_{1}. $$

Lemma 4.1

Let \(0<\alpha \leq 2\), and suppose \(f(t,u(t)):[0,1]\times \mathbb{R}\longrightarrow \mathbb{R}\)is continuous. Then \(u(t)\)is the solution of equation (60) if and only if \(u(t)\)satisfies the following Fredholm integral equation:

$$ u(t)= \int _{0}^{1}G(t,\tau )f\bigl(\tau ,u(\tau ) \bigr)\,d\tau + g(t), $$


$$ G(t,\tau )= \textstyle\begin{cases} \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} {[}(t^{\rho }-\tau ^{ \rho })^{\alpha -1}-t^{\rho }\cdot (1-\tau ^{\rho })^{\alpha -1} {]} \tau ^{\rho -1}, &\textit{if } 0\leq \tau < t; \\ -t^{\rho }\cdot \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )}(1-\tau ^{ \rho })^{\alpha -1}\tau ^{\rho -1}, &\textit{if } t\leq \tau \leq 1. \end{cases} $$


Suppose \(u(t)\) is the solution of (60), then the integral form of equation (60) is given by

$$ u(t)=\mathcal{I}_{0}^{\alpha ,\rho }f \bigl(t,u(t)\bigr)+c_{1}+c_{2}t^{\rho }. $$

Using the boundary condition, we obtain

$$ u(t)=\mathcal{I}_{0}^{\alpha ,\rho }f \bigl(t,u(t)\bigr)-\mathcal{I}_{0}^{\alpha , \rho }f\bigl(1,u(1) \bigr)+g(t) $$


$$ \begin{aligned} u(t)={}&\frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} \int _{0}^{t}\bigl(t^{ \rho }-\tau ^{\rho }\bigr)^{\alpha -1}\tau ^{\rho -1}f\bigl(\tau ,u(\tau ) \bigr)\,d\tau \\ &{}- t^{\rho }\cdot \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} \int _{0}^{1}\bigl(1- \tau ^{\rho } \bigr)^{\alpha -1}\tau ^{\rho -1}f\bigl(\tau ,u(\tau )\bigr)\,d\tau + g(t), \end{aligned} $$

where \(g(t)= u_{0}+t^{\rho }(u_{1}-u_{0})\) and

$$ \begin{aligned} u(t)={}&\frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} \int _{0}^{t} {\bigl[}\bigl(t^{\rho }- \tau ^{\rho }\bigr)^{\alpha -1}-t^{\rho }\bigl(1-\tau ^{\rho }\bigr)^{ \alpha -1} {\bigr]}\tau ^{\rho -1}f\bigl(\tau ,u(\tau )\bigr)\,d\tau \\ &{}- t^{\rho }\cdot \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} \int _{t}^{1}\bigl(1- \tau ^{\rho } \bigr)^{\alpha -1}\tau ^{\rho -1}f\bigl(\tau ,u(\tau )\bigr)\,d\tau +g(t), \end{aligned} $$


$$ u(t)= \int _{0}^{1}G(t,\tau )f\bigl(\tau ,u(\tau ) \bigr)\,d\tau +g(t), $$


$$ G(t,\tau )= \textstyle\begin{cases} \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} {[}(t^{\rho }-\tau ^{ \rho })^{\alpha -1}-t^{\rho }\cdot (1-\tau ^{\rho })^{\alpha -1} {]} \tau ^{\rho -1} &\text{if } 0\leq \tau < t, \\ -t^{\rho }\cdot \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )}(1-\tau ^{ \rho })^{\alpha -1}\tau ^{\rho -1} &\text{if } t\leq \tau \leq 1. \end{cases} $$

Conversely, assume that \(u(t)\) satisfies the Fredholm integral equation. Taking generalized Caputo-type fractional derivative on both sides of equation (64), we end up with equation (60). □

The graph for the function in equation (66) at the values of \(\alpha =2\), \(\rho =1\), and \(m=64\) is shown in Fig. 5.

Figure 5
figure 5

Green function for fixed values of \(m=128\), \(\rho =1\) and for \(\alpha =2\)

4.1 Linear case

In this part we present numerical solution of a class of generalized linear fractional differential equations with boundary conditions.

Example 4.2

We consider the fractional boundary value problem in equation (47) with Dirichlet boundary conditions \(u(0)=u_{0}\), \(u(1)=u_{1}\).

The integral representation for this boundary value problem is given by

$$ u(t)=-\mathcal{I}_{0^{+}}^{\alpha ,\rho }a(t)u(t)+ t^{\rho }\mathcal{I}_{0^{+}}^{ \alpha ,\rho }a(1)u(1) + g(t), $$


$$ u(t)= \int _{0}^{1}G(t,\tau )u(\tau )\,d\tau +g(t), $$


$$ G(t,\tau )= \textstyle\begin{cases} \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} {[}-(t^{\rho }-\tau ^{ \rho })^{\alpha -1}+t^{\rho }\cdot (1-\tau ^{\rho })^{\alpha -1} {]} \tau ^{\rho -1}a(t) &\text{if } 0\leq \tau < t, \\ t^{\rho }\cdot \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )}(1-\tau ^{\rho })^{ \alpha -1}\tau ^{\rho -1}a(t) &\text{if } t\leq \tau \leq 1, \end{cases} $$

and \(g(t)= \mathcal{I}_{0^{+}}^{\alpha ,\rho }f(t)- t^{\rho }\mathcal{I}_{0^{+}}^{ \alpha ,\rho }f(1) + u_{0}+t^{\rho }(u_{1}-u_{0})\).

For \(a(t)=1\) and \(f(t)=\rho ^{\alpha }t^{\rho }+ \frac{(t^{\rho })^{\alpha +1}}{\Gamma (\alpha +2)}\), \(u_{0}=0\), and \(u_{1}=\frac{1}{\Gamma (\alpha +2)}\), the analytic solution of the boundary value problem is \(u(t)=\frac{(t^{\rho })^{\alpha +1}}{\Gamma (\alpha +2)}\). Let

$$\begin{aligned}& u(t)=C_{m}^{t}H_{m}(t), \end{aligned}$$
$$\begin{aligned}& G(t,\tau )=H_{m}^{t}(t)K_{m}^{t}H_{m}( \tau ). \end{aligned}$$

Using (69) and (70) in (67), we have

$$ C_{m}^{t}H_{m}(t)=C_{m}^{t}H_{m}(t)K_{m}^{t}+G_{m}^{t}H_{m}(t), $$

where \(g(t)=\frac{\rho ^{-\alpha }}{\Gamma (2\alpha +2)}[(t^{\rho })^{2 \alpha +1}-t^{\rho }]+ \frac{1}{\Gamma (\alpha +2)}(t^{\rho })^{\alpha +1}\) is approximated as \(g(t)=G_{m}^{t}H_{m}(t)\), and using the orthonormality of the sequence \(\{h_{i}(t)\}\) on \([0,1)\), we obtain

$$ \int _{0}^{1}H_{m}(\tau )H_{m}^{t}(\tau )\,d\tau =\mathbb{I}_{m\times m}, $$

where \(\mathbb{I}_{m\times m}\) represents an identity matrix of dimension \(m\times m\). We can solve the algebraic equation (71) for the Green–Haar coefficient vector \(C_{m}^{t}\) and, by equation (69), we get the required numerical solution. For \(\rho =1.5\) and different values of α and m, the tabular data in Table 6 presents the maximum absolute error given by Haar wavelet method in Example 3.7 and Green–Haar wavelet method, respectively. Green–Haar wavelet technique provides significantly more accurate numerical results in comparison with Haar wavelet technique. Moreover, it is also computationally less intensive and takes less time compared to the Haar wavelet method.

Table 6 Maximum absolute error for \(\rho =1.5\) and different values of m, α

Example 4.3

Again we consider the fractional boundary value problem in equation (47) with Dirichlet boundary conditions \(u(0)=u_{0}\), \(u(1)=u_{1}\), but this time with different data. Particularly, we take \(g(t)=\rho ^{\alpha }(\Gamma (\alpha +1)-\Gamma (\alpha +2)t^{\rho })+(t^{ \rho })^{\alpha }-(t^{\rho })^{\alpha +1}\). The exact solution of fractional differential equation is \(u(t)=(t^{\rho })^{\alpha }-(t^{\rho })^{\alpha +1}\). The corresponding integral representation for the boundary value problem is given by

$$ u(t)=-\mathcal{I}_{0}^{\alpha ,\rho }u(t)+ \mathcal{I}_{0}^{\alpha , \rho }u(1)+f(t) $$


$$ u(t)= - \int _{0}^{1}G(t,\tau )u(\tau )\,d\tau +f(t), $$


$$ G(t,\tau )= \textstyle\begin{cases} \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} {[}(t^{\rho }-\tau ^{ \rho })^{\alpha -1}-t^{\rho }\cdot (1-\tau ^{\rho })^{\alpha -1} {]} \tau ^{\rho -1} &\text{if } 0\leq \tau < t, \\ -t^{\rho }\cdot \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )}(1-\tau ^{ \rho })^{\alpha -1}\tau ^{\rho -1} &\text{if } t\leq \tau \leq 1, \end{cases} $$

and \(f(t)= \frac{\rho ^{-\alpha }\Gamma (\alpha +1)}{\Gamma (2\alpha +1)} {(}(t^{\rho })^{2\alpha }-t^{\rho } {)}- \frac{\rho ^{-\alpha }\Gamma (\alpha +2)}{\Gamma (2\alpha +2)} {(}(t^{ \rho })^{2\alpha +1}-t^{\rho } {)}+(t^{\rho })^{\alpha }-(t^{\rho })^{ \alpha +1}\). Let

$$\begin{aligned}& u(t)=C_{m}^{t}H_{m}(t), \end{aligned}$$
$$\begin{aligned}& G(t,\tau )=H_{m}^{t}(t)K_{m}^{t}H_{m}( \tau ). \end{aligned}$$

Using (76) and (77) in (74), and using the orthonormality of the sequence \(\{h_{i}(t)\}\) on \([0,1)\) in equation (72), we obtain

$$ C_{m}^{t}H_{m}(t)=-C_{m}^{t}H_{m}(t)K_{m}^{t}+F_{m}^{t}H_{m}(t), $$

where \(f(t)\) is approximated as \(f(t)=F_{m}^{t}H_{m}(t)\). The vector \(C_{m}^{t}\) can be obtained by solving the algebraic linear system in equation (78), which leads to the numerical solution when inserted into (76). The numerical solution is in good agreement with the exact solution as shown in Fig. 6. The absolute error for several fixed values of m is given in Table 7. Furthermore, the numerical solutions for \(\rho =1.45\), \(m=64\), and different values of α are given in Fig. 7. Figure 8 shows the numerical solutions for \(m=64\), \(\alpha =1.55\), and several values of ρ.

Figure 6
figure 6

Exact and numerical solutions for \(m=64\), \(\rho =1.55\), and different values of α

Figure 7
figure 7

Numerical solutions for \(m=64\), \(\rho =1.45\), and distinct values of α

Figure 8
figure 8

Numerical solutions for \(m=64\), \(\alpha =1.55\), and different values of ρ

Table 7 Absolute error for \(\rho =1.55\), \(\alpha =1.75\), and for different values of m

4.2 Nonlinear case

In this part we focus on solving nonlinear fractional differential equations using Green–Haar approach. The quasilinear technique is used to convert the nonlinear equations into sequences of linear equations.

Example 4.4

Consider the the generalized nonlinear Caputo–Katugampola fractional differential equation

$$ \mathcal{D}_{0^{+}}^{\alpha ,\rho }u(t)+ \bigl[a(t)u(t)\bigr]^{n}=g(t),\quad t \in [0,1], $$

subject to the boundary conditions \(u(0)=u_{0}\), \(u(1)=u_{1}\), where \(\alpha ,n\in \mathbb{R}\) and \(0<\alpha \leq 2\). Applying the quasilinearization technique to equation (79), for \(n=3\) we have

$$ \mathcal{D}_{0^{+}}^{\alpha ,\rho }u_{r+1}(t)+a^{3}(t) \bigl[u_{r}^{3}(t)+3\bigl(u_{r+1}(t)-u_{r}(t) \bigr)u_{r}^{2}(t)\bigr]=g(t), $$


$$ \mathcal{D}_{0^{+}}^{\alpha ,\rho }u_{r+1}(t) +3a^{3}(t)u_{r}^{2}(t)u_{r+1}(t)=g(t)+2a^{3}(t)u_{r}^{3}(t). $$

The integral representation for equation (81) is

$$ \begin{aligned}[b] u_{r+1}(t)={}&{-}3 \mathcal{I}_{0^{+}}^{\alpha ,\rho }\bigl[a^{3}(t)u_{r}^{2}(t)u_{r+1}(t) \bigr] +2\mathcal{I}_{0^{+}}^{\alpha ,\rho }a^{3}(t)u_{r}^{3}(t) \\ &{}+ t^{\rho } \bigl\{ 3\mathcal{I}_{0^{+}}^{\alpha ,\rho }a^{3} (1)u_{r}^{2}(1)u_{r+1}(1)-2 \mathcal{I}_{0^{+}}^{\alpha ,\rho }a^{3}(1)u_{r}^{3}(1) \bigr\} +f(t), \end{aligned} $$


$$ u_{r+1}(t)= 3 \int _{0}^{1}G_{1}(t,\tau )u_{r+1}(\tau )\,d\tau -2 \int _{0}^{1}G_{2}(t, \tau )\,d\tau +f(t), $$


$$\begin{aligned}& G_{1}(t,\tau )= \textstyle\begin{cases} \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} {[}-(t^{\rho }-\tau ^{ \rho })^{\alpha -1}+t^{\rho }\cdot (1-\tau ^{\rho })^{\alpha -1} {]} \tau ^{\rho -1}a^{3}(t)u_{r}^{2}(\tau ) &\text{if } 0\leq \tau < t, \\ t^{\rho }\cdot \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )}(1-\tau ^{\rho })^{ \alpha -1}\tau ^{\rho -1}a^{3}(t)u_{r}^{2}(\tau ) &\text{if } t\leq \tau \leq 1, \end{cases}\displaystyle \end{aligned}$$
$$\begin{aligned}& G_{2}(t,\tau )= \textstyle\begin{cases} \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} {[}-(t^{\rho }-\tau ^{ \rho })^{\alpha -1}+t^{\rho }\cdot (1-\tau ^{\rho })^{\alpha -1} {]} \tau ^{\rho -1}a^{3}(t)u_{r}^{3}(\tau ) &\text{if } 0\leq \tau < t, \\ t^{\rho }\cdot \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )}(1-\tau ^{\rho })^{ \alpha -1}\tau ^{\rho -1}a^{3}(t)u_{r}^{3}(\tau ) &\text{if } t\leq \tau \leq 1, \end{cases}\displaystyle \end{aligned}$$

and \(f(t)=I_{0^{+}}^{\alpha ,\rho }g(t)-t^{\rho }I_{0^{+}}^{\alpha ,\rho }g(1)\).

Since \(u_{r}(t)\) is known at the collocation points \(t_{i}=\frac{2i-1}{2m}\), \(i=1,2,\ldots ,m\), we cannot directly integrate \(G_{2}\) on the interval \([0,1]\). For the numerical approximation of \(\int _{0}^{1}G_{2}(t,\tau )\,d\tau \), we use a quadrature rule which is a mixture of trapezoidal and Simpson’s rules. Since \(t_{i}=\frac{2i-1}{2m}\), \(i=1,2,\ldots ,m\), give an even number of collocation points and divide the domain into \(m-1\) intervals, we use the Simpson’s rule on \(m-2\) even intervals and apply the trapezoidal on the last two collocation points \(t_{m-1}\) and \(t_{m}\). Considering

$$\begin{aligned}& u_{r+1}(t)=C_{m}^{t}H_{m}(t), \\ \end{aligned}$$
$$\begin{aligned}& G_{1}(t,\tau )=H_{m}^{t}(t)K_{m}^{t}H_{m}( \tau ), \end{aligned}$$

and using equations (86) and (86) in equation (83), together with the orthonormality condition in equation (72), we get

$$ C_{m}^{t}H_{m}(t)=C_{m}^{t}H_{m}(t)K_{m}^{t}+G_{m}^{t}H_{m}(t)+F_{m}^{t}H_{m}(t), $$

where \(f(t)=F_{m}^{t}H_{m}(t)\), \(G_{m}^{t}H_{m}(t)=\int _{0}^{1}G_{2}(t,\tau )\,d\tau \), which are calculated by using trapezoidal and Simpson’s rules together.

If we choose \(a^{3}(t)=-1\) and \(f(t)=\frac{\Gamma (2\alpha +1)}{\Gamma (\alpha +1)}(t^{\rho })^{ \alpha } -(t^{\rho })^{6\alpha }\), then the exact solution of equation (79) is \(u(t)=(t^{\rho })^{2\alpha }\). The maximum absolute error of the numerical and exact solutions is given in Table 8 for various fixed values of α, m, and \(\rho =1\). Also exact and numerical solutions for equation (79) are shown in Fig. 9. Graphical results show that the numerical and exact solutions match with each other.

Figure 9
figure 9

Exact and numerical solutions for fixed values of \(m=64\), \(\rho =1\), and \(\alpha =1.6\)

Table 8 Maximum absolute error for \(\rho =1\) and for different values of m and α

4.3 Error analysis

In this section we establish a bound of the absolute error for the Green–Harr wavelets.

Theorem 4.5

Suppose that function \(u^{\prime }(t)\)is continuous and bounded on \((0,1)\), that is, there exits \(M>0\)such that \(|u^{\prime }(t)|\leq M\)for all \(t\in (0,1)\), and also assume that \(u_{k}(t)\)is an approximation of \(u(t)\), Then we have

$$ \bigl\Vert u(t)-u_{k}(t) \bigr\Vert _{E}\leq \sqrt{ \frac{\rho ^{1-\alpha }}{3\Gamma (\alpha +1)}}\frac{M}{K}. $$


The function \(u(t)\) defined over \([0,1]\) can be approximated as

$$ u(t)=\sum_{n=0}^{\infty }c_{n}h_{n}(t). $$

Let us consider the first k terms of the sum, denoted by \(u_{k}(t)\), that is,

$$ u(t) \cong u_{k}(t)=\sum _{n=0}^{k-1}c_{n}h_{n}(t), $$

where \(k=2^{\alpha +1}\), \(\alpha =0,1,\ldots \) . By Lemma 2.7, we have

$$ \bigl\Vert v(t)-v_{k}(t) \bigr\Vert _{E}^{2}\leq \frac{M^{2}}{3K^{2}}. $$


$$\begin{aligned}& \begin{aligned}[b] \bigl\Vert u(t)-u_{k}(t) \bigr\Vert _{E}^{2}&\leq { \biggl\vert } \int _{0}^{1}G(t,\tau )\,d\tau { \biggr\vert } \cdot \bigl\Vert u(t)-u_{k}(t) \bigr\Vert ^{2} \\ &=\frac{M^{2}}{3K^{2}} { \biggl\vert } \int _{0}^{1}G(t, \tau )\,d\tau { \biggr\vert }, \end{aligned} \\& \begin{aligned} \int _{0}^{1}G(t,\tau )\,d\tau ={}& \frac{\rho ^{1-\alpha }}{\Gamma (\alpha )} {\biggl\{ } \int _{0}^{t} {\bigl[}\bigl(t^{\rho }- \tau ^{\rho }\bigr)^{\alpha -1}-t^{ \rho }\bigl(1-\tau ^{\rho }\bigr)^{\alpha -1} {\bigr]}\tau ^{\rho -1}\,d\tau \\ &{}- t^{\rho } \int _{t}^{1}\bigl(1-\tau ^{\rho } \bigr)^{\alpha -1}\tau ^{\rho -1}\,d\tau {\biggr\} } \\ ={}&\frac{\rho ^{1-\alpha }}{\Gamma (\alpha +1)} {\bigl\{ }\bigl(t^{\rho }\bigr)^{\alpha }- \bigl(t^{\rho }\bigr)^{\alpha +1}+t^{\rho } \bigl(1-t^{\rho }\bigr)^{ \alpha } {\bigr\} } \end{aligned} \end{aligned}$$

as long as \(-t^{\rho }\leq 0\) because \(t\in [0,1] \) for \(\rho >0\). Therefore

$$ \int _{0}^{1}G(t,\tau )\,d\tau \leq \frac{\rho ^{1-\alpha }}{\Gamma (\alpha +1)} {\bigl\{ }\bigl(t^{\rho }\bigr)^{\alpha }+t^{ \rho } \bigl(1-t^{\rho }\bigr)^{\alpha } {\bigr\} }, $$


$$ \int _{0}^{1}G(t,\tau )\,d\tau \leq \frac{\rho ^{1-\alpha }}{\Gamma (\alpha +1)} .$$

Hence, equation (92) yields

$$ \bigl\Vert u(t)-u_{k}(t) \bigr\Vert _{E}\leq \sqrt{ \frac{\rho ^{1-\alpha }}{3\Gamma (\alpha +1)}}\frac{M}{K}. $$


5 Conclusion

The main findings of the paper are concluded as follows:

  • The Haar wavelets operational matrices are derived for generalized fractional integrals.

  • A variety of numerical examples are solved by Haar wavelet technique, including certain classes of linear and nonlinear fractional differential equations with initial and boundary conditions. Results are analyzed in terms of computational efficiency and accuracy.

  • Green–Haar method has been proposed for numerical solutions of linear and nonlinear fractional boundary value problems.

  • A comparison has been conducted for the proposed method with conventional Haar wavelet technique. We conclude that Green–Haar method is relatively more efficient and accurate.

  • The convergence and stability of Green–Haar method have also been discussed.


  1. Sierociuk, D., Dzielinski, A., Sarwas, G., Petras, I., Podlubny, I., Skovranek, T.: Modelling heat transfer in heterogeneous media using fractional calculus. Philos. Trans. R. Soc. 371, 20130146 (2013)

    MathSciNet  MATH  Google Scholar 

  2. He, J.H.: Nonlinear oscillation with fractional derivative and its applications. Int. Conf. Vibr. Eng. 98, 288–291 (1998)

    Google Scholar 

  3. Panda, R., Dash, M.: Fractional generalized splines and signal processing. Signal Process. 86, 2340–2350 (2006)

    MATH  Google Scholar 

  4. Alzabut, J., Tyagi, S., Abbas, S.: Discrete fractional-order BAM neural networks with leakage delay: existence and stability results. Asian J. Control 22(1), 143–155 (2020)

    MathSciNet  Google Scholar 

  5. Iswarya, M., Raja, R., Rajchakit, G., Alzabut, J., Lim, C.P.: A perspective on graph theory based stability analysis of impulsive stochastic recurrent neural networks with time-varying delays. Adv. Differ. Equ. 2019, 502 (2019).

    Article  MathSciNet  Google Scholar 

  6. Pratap, A., Raja, R., Alzabut, J., Dianavinnarasi, J., Cao, J., Rajchakit, G.: Finite-time Mittag-Leffler stability of fractional-order quaternion-valued memristive neural networks with impulses. Neural Process. Lett. (2020).

    Article  Google Scholar 

  7. He, J.H.: Some applications of nonlinear fractional differential equations and their approximations. Bull. Sci. Technol. 15, 86–90 (1999)

    Google Scholar 

  8. Engheta, N.: On fractional calculus and fractional multipoles in electromagnetism. IEEE Trans. Antennas Propag. 44, 554–566 (1996)

    MathSciNet  MATH  Google Scholar 

  9. Magin, R.L.: Fractional calculus in bioengineering. Crit. Rev. Biomed. Eng. 32, 1–104 (2004)

    Google Scholar 

  10. Baillie, R.T.: Long memory processes and fractional integration in econometrics. J. Econom. 73, 5–59 (1996)

    MathSciNet  MATH  Google Scholar 

  11. Cosenza, P., Korosak, D.: Secondary consolidation of clay as an anomalous diffusion process. Int. J. Numer. Anal. Methods Geomech. 38, 1231–1246 (2014)

    Google Scholar 

  12. Pagnini, G.: Erdelyi–Kober fractional diffusion. Fract. Calc. Appl. Anal. 15, 117–127 (2012)

    MathSciNet  MATH  Google Scholar 

  13. Alam, M.N., Tunc, C.: An analytical method for solving exact solutions of the nonlinear Bogoyavlenskii equation and the nonlinear diffusive predator–prey system. Alex. Eng. J. 11(1), 152–161 (2016).

    Article  Google Scholar 

  14. Tunc, C., Golmankhaneh, A.K.: On stability of a class of second alpha-order fractal differential equations. AIMS Math. 5(3), 2126–2142 (2020).

    Article  MathSciNet  Google Scholar 

  15. Tunc, C., Tunc, O.: A note on the stability and boundedness of solutions to non-linear differential systems of second order. J. Assoc. Arab Univ. Basic Appl. Sci. 24, 169–175 (2017).

    Article  Google Scholar 

  16. Kilbas, A.A., Srivastava, H.M., Trujillo, J.J.: Theory and Applications of Fractional Differential Equations. Elsevier, Amsterdam (2006)

    MATH  Google Scholar 

  17. Oldham, K.B., Spainer, J.: The Fractional Calculus. Academic Press, New York (1974)

    Google Scholar 

  18. Podlubny, I.: Fractional Differential Equations. Academic Press, San Diego (1999)

    MATH  Google Scholar 

  19. Samko, S.G., Kilbas, A.A., Marichev, O.I.: Fractional Integrals and Derivatives: Theory and Applications. Gordon & Breach, New York (1993)

    MATH  Google Scholar 

  20. Jarad, F., Abdeljawad, T., Alzabut, J.: Generalized fractional derivatives generated by a class of local proportional derivatives. Eur. Phys. J. Spec. Top. 226, 3457–3471 (2017)

    Google Scholar 

  21. Atangana, A., Baleanu, D.: New fractional derivatives with nonlocal and non-singular kernel: theory and application to heat transfer model. Therm. Sci. 20(2), 763–769 (2016).

    Article  Google Scholar 

  22. Seemab, A., ur Rehman, M., Alzabut, J., Hamdi, A.: On the existence of positive solutions for generalized fractional boundary value problems. Bound. Value Probl. 2019, 186 (2019).

    Article  MathSciNet  Google Scholar 

  23. Katugampola, U.N.: New approach to a generalized fractional integral. Appl. Math. Comput. 218, 860–865 (2011)

    MathSciNet  MATH  Google Scholar 

  24. Katugampola, U.N.: A new approach to generalized fractional derivatives. Bull. Math. Anal. Appl. 6, 1–15 (2014)

    MathSciNet  MATH  Google Scholar 

  25. Chui, C.K.: Wavelet Analysis and Its Application. Academic Press, San Diego (1992)

    Google Scholar 

  26. Guf, J.S., Jiang, W.S.: The Haar wavelets operational matrix of integration. Int. J. Syst. Sci. 27, 623–628 (1996)

    MATH  Google Scholar 

  27. Shah, F.A., Abass, R., Debnath, L.: Numerical solution of fractional differential equations using Haar wavelet operational matrix method. Int. J. Appl. Comput. Math. 3, 2423–2445 (2017)

    MathSciNet  MATH  Google Scholar 

  28. Mechee, M.S., Al-Shaher, O.I., Al-Juaifri, G.A.: Haar wavelet technique for solving fractional differential equations with an application. AIP Conf. Proc. 2086, 030025 (2019)

    Google Scholar 

  29. Lepik, L.: Numerical solution of evolution equations by the Haar wavelet method. Appl. Math. Comput. 185, 695–704 (2007)

    MathSciNet  MATH  Google Scholar 

  30. Ismail, M., Saeed, U., Alzabut, J., ur Rehman, M.: Approximate solutions for fractional boundary value problems via Green–CAS wavelets method. Mathematics 7(12), 1164 (2019).

    Article  Google Scholar 

  31. Diaz, L.A., Martin, M.T., Vampa, V.: Daubechies wavelet beam and plate finite elements. Finite Elem. Anal. Des. 45, 200–209 (2009)

    MathSciNet  Google Scholar 

  32. Dehghan, M., Lakestani, M.: Numerical solution of nonlinear system of second-order boundary value problems using cubic B-spline scaling functions. Int. J. Comput. Math. 85, 1455–1461 (2008)

    MathSciNet  MATH  Google Scholar 

  33. Zhu, X., Lei, G., Pan, G.: On application of fast and adaptive Battle Lemarie wavelets to modeling of multiple lossy transmission lines. J. Comput. Phys. 132, 299–311 (1997)

    MathSciNet  MATH  Google Scholar 

  34. ur Rehman, M., Khan, R.A.: The Legendre wavelet method for solving fractional differential equations. Commun. Nonlinear Sci. Numer. Simul. 11, 4163–4173 (2011)

    MathSciNet  MATH  Google Scholar 

  35. Amir, M., Aghazadeh, N., Rezapour, S.: Haar wavelet collocation method for solving singular and nonlinear fractional time-dependent Emden–Fowler equations with initial and boundary conditions. Math. Sci. 13, 255–265 (2019)

    MathSciNet  MATH  Google Scholar 

  36. Khashan, M.M., Amin, R., Syam, M.I.: A new algorithm for fractional Riccati type differential equations by using Haar wavelet. Mathematics 7, 545 (2019)

    Google Scholar 

  37. Saeed, U.: Haar wavelet operational matrix method for system of fractional nonlinear differential equations. Int. J. Wavelets Multiresolut. Inf. Process. 15, 1750043 (2017)

    MathSciNet  MATH  Google Scholar 

  38. Li, Y., Zhao, W.: Haar wavelet operational matrix of fractional order integration and its applications in solving the fractional order differential equations. Appl. Math. Comput. 216, 2276–2285 (2010)

    MathSciNet  MATH  Google Scholar 

  39. Lepik, U.: On nonlinear Haar wavelet method for solving higher order differential equations. Int. J. Math. Comput. 1, 84–94 (2008)

    MathSciNet  Google Scholar 

  40. Zeng, S., Baleanu, D., Bai, Y., Wu, G.: Fractional differential equations of Caputo–Katugampola type and numerical solutions. Appl. Math. Comput. 315, 549–554 (2017)

    MathSciNet  MATH  Google Scholar 

  41. Almeida, R., Malinowska, A.B.: Fractional differential equations with dependence on the Caputo–Katugampola derivative. J. Comput. Nonlinear Dyn. 11, 061017 (2016)

    Google Scholar 

  42. Pang, D., Jiang, W., Niazi, A.U.K.: Fractional derivatives of the generalized Mittag-Leffler functions. Adv. Differ. Equ. 2018, 415 (2018).

    Article  MathSciNet  MATH  Google Scholar 

  43. Babolian, E., Shahsavaran, A.: Numerical solution of nonlinear Fredholm integral equations of the second kind using Haar wavelets. J. Comput. Appl. Math. 1, 87–95 (2009)

    MathSciNet  MATH  Google Scholar 

  44. Saeed, U., ur Rehman, M.: Haar wavelet-quasilinearization technique for fractional nonlinear differential equations. Appl. Math. Comput. 220, 630–648 (2013)

    MathSciNet  MATH  Google Scholar 

  45. ur Rehman, M., Khan, R.A.: Numerical solutions to initial and boundary value problems for linear fractional partial differential equations. Appl. Math. Model. 7, 5233–5244 (2013)

    MathSciNet  MATH  Google Scholar 

  46. Chen, C.F., Hsiao, C.H.: Haar wavelet method for solving lumped and distributed-parameter systems. IEE Proc. Part D, Control Theory Appl. 144, 87–94 (1997)

    MATH  Google Scholar 

  47. Hsiao, C.H., Wang, W.J.: Optimal control of linear time varying systems via Haar wavelets. J. Optim. Theory Appl. 103, 641–655 (1999)

    MathSciNet  MATH  Google Scholar 

  48. Dai, R., Cochran, J.E.: Wavelet collocation method for optimal control problems. J. Optim. Theory Appl. 143, 265–278 (2009)

    MathSciNet  MATH  Google Scholar 

  49. Swaidan, W., Hussin, A.: Feedback control method using Haar wavelet operational matrices for solving optimal control problems. Abstr. Appl. Anal., 2013, Article ID 240352 (2013)

    MathSciNet  MATH  Google Scholar 

  50. Chen, Y., Yi, M., Yu, C.: Error analysis for numerical solution of fractional differential equation by Haar wavelets method. J. Comput. Sci. 3, 367–373 (2012)

    Google Scholar 

  51. Rawashdeh, E.A.: Numerical solution of semidifferential equations by collocation method. Appl. Math. Comput. 174, 869–876 (2006)

    MathSciNet  MATH  Google Scholar 

  52. Bellman, R.E., Kalaba, R.E.: Quasilinearization and Nonlinear Boundary-Value Problems. Elsevier, New York (1965)

    MATH  Google Scholar 

  53. Conte, S.D., de Boor, C.: Elementary Numerical Analysis. McGraw-Hill, New York (1981)

    Google Scholar 

  54. Miller, K.S., Ross, B.: An Introduction to the Fractional Calculus and Fractional Differential Equations. Wiley, New York (1993)

    MATH  Google Scholar 

Download references


J. Alzabut would like to thank Prince Sultan University for funding this work through research group Nonlinear Analysis Methods in Applied Mathematics (NAMAM) group number RG-DES2017-01-17.

Availability of data and materials

Not applicable.


Not applicable.

Author information

Authors and Affiliations



All authors contributed equally and significantly to this paper. All authors have read and approved the final version of the manuscript.

Corresponding author

Correspondence to Jehad Alzabut.

Ethics declarations

Competing interests

The authors declare that they have no competing interests.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

ur Rehman, M., Baleanu, D., Alzabut, J. et al. Green–Haar wavelets method for generalized fractional differential equations. Adv Differ Equ 2020, 515 (2020).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: