1 Introduction

In the last two decades, fractional calculus has become one of the most effective tools used in modeling of dynamical systems, to name a few, quantum, quantum physics, liquids, mechanics, optimization of biological models [16], where these phenomena are modeled and updated in equations that are closest to actually describing their condition. The first application for fractional calculus was probably what is referred to as a tautochrone problem that was given by Niels Henrik Abel in 1823 [2]. The great expansion in this field caused the attention and concern of researchers from various sciences, who in turn rushed to improve and correct some of the deficiencies and gaps in modeling.

However, there is no generally accepted definition of fractional operator, but some papers suggested mathematical properties that a fractional derivative must have. Hence, we can find many definitions each has advantages and disadvantages, see for example [58]. In 2015, the scientists Caputo and Fabrizio introduced a novel operator without a singular kernel [9], called Caputo–Fabrizio fractional derivative (CFFD). The advantage of this operator is that it provides an accurate update and description of some typical phenomena in which the most famous definitions often complain, similar to the Caputo, Riemann–Liouville, Riesz fractional operators, of limitations and deficiencies in the description [1015], since all of these definitions have a singular kernel. The interest of the nonsingular kernel is due to the necessity of describing material heterogeneitics and structures with distinct scales which local theory fails to describe. For more information, the reader is kindly requested to read the papers [1621].

Anyhow, Caputo–Fabrizio derivative has a nice characteristic; it has an equivalent representation with singular kernel which allows to study more general materials such as visco-plastic materials rather than only visco-elastic ones. The reader can refer to [22] in which the equivalence of CFFD with a model of singular kernel is presented. The Bagley–Torvik equation is one of the most important equations that occupies a leading status in the study of applied sciences and engineering applications. It was originally formulated in the eighties of the last century, where both Bagley and Torvik presented a study model viscoelasticity damped structure in the following equation [23]:

$$ a_{1}z^{\prime \prime }(\xi )+ a_{2} \mathcal{D}_{0}^{\gamma }z(\xi )+ a_{3}z(\xi )=h( \xi ), \quad \gamma =3/2, $$
(1.1)

along with the constants \(a_{i}\in R\), \(i=1,2,3\), \(h(\xi )\in C[0,X]\) which is the space of continuous functions over the interval \([0,X]\), and \(z(\xi )\) is an unknown function to be determined. Moreover, the Bagley–Torvik equation (1.1) has been generalized as \(\gamma \in (0, 2)\), and it can be modeled from a generalized fractional vibration equation [24]. Most previously prepared works are mostly related to Riemann–Liouville and Caputo derivatives.

Furthermore, the coefficients \(a_{i}\) may also change parallel with the changes in fluid density and viscosity. That is, \(a_{i}\) may be functions with respect to time. Exclusively, we generally consider the following generalized Bagley–Torvic equation (GBT) within CFFD:

$$ a_{1}(\xi ) z''(\xi )+ a_{2}(\xi ) {}^{CF}\mathcal{D}_{0}^{\frac{3}{2}}z( \xi )+ a_{3}(\xi )z'(\xi )+ a_{4}(\xi ){}^{CF}\mathcal{D}_{0}^{ \frac{1}{2}}z(\xi )+ a_{5}( \xi )z(\xi )=h(\xi ), $$
(1.2)

with initial conditions given by

$$ z(0)= \alpha _{0} ,\qquad z'(0)= \alpha _{1}, $$
(1.3)

whereas the boundary conditions are of the form

$$ z(0)= \beta _{0},\qquad z(X)= \beta _{1}, $$
(1.4)

whereas \(0\leq \xi \leq X\), \(a_{i}(\xi ),h(\xi )\in C[0,X]\), \(\alpha _{i},\beta _{i}\in R\), while \(z(\xi )\) are the solutions to the equation under initial or boundary conditions that are given in the Hilbert spaces \(\mathcal{H}_{2}[0,X]\) and \(\mathcal{H}_{3}[0,X]\) which will be defined later in Sect. 3.

Physically, the fractional 1/2-order and 3/2-order derivatives are common to predict the frequency-dependent damping material. These derivatives are often used to model the motion of physical systems, as a study of an immersed plate in a Newtonian fluid was associated with the derivative 3/2 and gas in a fluid with the derivative 1/2. For more information, we refer to [2530] and the references therein.

The value and importance of the Bagley–Torvic equation attracted the interest of researchers in finding approximate solutions using a range of iterative methods, among them, Adomian decomposition method, the generalized Taylor collocation method, homotopy analysis method, Chebyshev wavelet method, multistep methods, and predictor–corrector method of Adams type [3133]. In this present paper, we are interested in studying and developing the modified reproducing kernel Hilbert space (MRKHS) under the influence of the CFFD, and making it suitable for solving the GBT under initial or boundary conditions, and that with greater accuracy and a lower time effort. The beginnings of the MRKHS method dates back to 1907, when Stanisław Zaremba presented research treating the boundary value problem of the harmonic functions. Thereafter, the process of developing this method proceeded until it has reached its current form. The MRKHS method occupies an important position among other numerical methods, as it is a very effective tool in many fields, such as machine learning, statistics, probability theory, economics, and the theory of integral operators [3438]. In addition to that, this method is not limited to treating the well-posed problems, but also allows treating ill-posed problems.

The aim of this research paper can be summarized in several key points:

  • We undertake adjustments and improvements at the level of the MRKHS method, under the influence of the novel operator CFFD.

  • We use the CFFD properties to formulate GBT under initial conditions and convert it into an equivalent system of fractional differential equations. Then we apply the method given to solve this system. Finally, we get a relationship between the system solution and our equation.

  • We solve the GBT equation under the boundary conditions using the proposed method.

  • We prove some theorems related to the RKHS solution and its convergence to the exact solution.

  • We add mathematical simulations to determine the appropriateness and effectiveness of the accounts created.

2 Basic definitions and concepts

In this part, we present some basic definitions and theories for the Caputo–Fabrizio fractional derivative (CFFD) used in our study. It should be noted that rewriting Eq. (1.1) in the sense of this operator is due to its property of having a nonsingular kernel that enables it to represent some phenomena that well brief the functions of kernels. This data is not presented in other definitions, which creates difficulties in modeling. The use of exponentially based kernel and the equivalence of CFFD with a model of singular kernel give high precision in realistic representation phenomena, especially for physical problems.

Definition 2.1

([9])

The nonlocal fractional derivative of order \(0\leq \alpha \leq 1\) of a smooth function \(z:[a,\infty )\rightarrow \Re \) is given as

$$ {}^{CF}\mathcal{D}^{\alpha }_{\xi }z(\xi )=\textstyle\begin{cases} \frac{M(\alpha )}{1-\alpha }\int ^{\xi }_{a}z'(\tau ) e ^{{ \frac{-\alpha (\xi -\tau )}{1-\alpha }}}\,d\tau , & 0 \leq \alpha < 1, \\ \frac{dz(\xi )}{d\xi }, & \alpha = 1, \end{cases} $$
(2.1)

such that \(a\leq 0\), \(\xi \geq 0\), and \(M(\alpha )\) is a normalization function that satisfies \(M(0)=M(1)=1\). This operator is called Caputo–Fabrizio fractional derivative and is denoted by (CFFD).

Definition 2.2

([9])

Let z be a smooth function over \([0,X] \) and \(0 \leq \alpha \leq 1\). Then the corresponding fractional integral of CFFD operator with order α of a function z is given by

$$ {}^{CF}\mathcal{I}_{0}^{\alpha }z(\xi )= \frac{2(1-\alpha )}{(2-\alpha )M(\alpha ) }z(\xi )+ \frac{2\alpha }{(2-\alpha )M(\alpha )} \int ^{\xi }_{0}z(\tau )\,d\tau . $$
(2.2)

Proposition 2.3

([10])

For \(0<\alpha <1\) and \(z\in \mathcal{H}_{1}[0,X]\), we can conclude that

$$ \bigl({}^{CF}\mathcal{I}_{0}^{\alpha }\bigr) \bigl({}^{CF}\mathcal{D}^{\alpha }_{0}\bigr)z(\xi )=z( \xi )-z(0), $$
(2.3)

where \({H}_{1}[0,X]\) is the usual Sobolev space over \([0,X]\).

The following proposition will be used as an important hint for the higher-order derivations.

Proposition 2.4

([10])

If \(\alpha \in [0,1]\) and \(n\in N\), then the CFFD of order \(n+\alpha \) is defined as

$$ {}^{CF}\mathcal{D}^{\alpha +n}_{\xi }z(\xi )={}^{CF} \mathcal{D}^{\alpha }_{ \xi }\bigl(\mathcal{D}^{n}z(\xi ) \bigr). $$

Remark 2.5

In this present work, we take \(M(\alpha )=1\) and \(a=0\), so we can reformulate Definition 2.1 as follows:

$$ \begin{aligned} {}^{CF}\mathcal{D}^{\alpha }_{\xi }z( \xi )&= \frac{1}{1-\alpha } \int ^{\xi }_{0}z^{\prime }( \tau ) e^{{ \frac{-\alpha (\xi -\tau )}{1-\alpha }}}\,d\tau \\ & = \frac{1}{1-\alpha }z^{\prime }(\xi )\ast e^{{ \frac{-\alpha \xi }{1-\alpha }}}, \end{aligned} $$

where (∗) is the convolution operator.

In addition to that, the CFFD of any constant is zero, that is, for all \(c\geq 0\), we have \({}^{CF} \mathcal{D}^{\alpha }_{\xi } c=0\). Anyhow, we end this section with the equivalent representation of the CFFD which is

$$ {}^{CF}\mathcal{D}^{\alpha }_{\xi }z(\xi )=\frac{1}{(1-\alpha )} \int _{0}^{ \xi }\biggl(\frac{g'_{0}(\tau ) \delta (\xi -\tau )}{z'(\xi )} +e^{{ \frac{-\alpha (\xi -\tau )}{1-\alpha }}}\biggr)z'(\tau )\,d\tau , $$

where \(g'_{0}(\xi )=\int _{a}^{0} e^{{ \frac{-\alpha (\xi -\tau )}{1-\alpha }}}z'(\tau )\,d\tau \).

3 Preliminaries of MRKHS method

In this section, some of the essential facts of reproducing kernel theory are presented to construct Hilbert spaces associated with the reproducing function of our method. For more details, please read the papers [3947]. During this study, \(AC[0,T]\) denotes the absolutely continuous real functions.

Definition 3.1

Let Λ be a nonempty abstract set, and let \(\mathcal{W}\) be a Hilbert space of functions \(v : \Lambda \longrightarrow \mathcal{W} \). Then any function \(B:\Lambda \times \Lambda \longrightarrow C\) that attains both

(i):

\(B(\cdot,\xi )\in \mathcal{W} \) for each \(\xi \in \Lambda \) and

(ii):

\(\langle v(\cdot),B(\cdot,\xi )\rangle =v(\xi )\) for each \(v \in \mathcal{W} \)

is called reproducing-kernel function, whereas the property in (ii) is called “the reproducing property”.

This function possesses some important properties such as being of unique representation, conjugate symmetric, and positive-definite.

Definition 3.2

Any Hilbert space \(\mathcal{W}\) defined on a nonempty abstract Λ which possesses a reproducing kernel function is called a reproducing kernel Hilbert space.

Definition 3.3

For \(m=1,2,3\), the Hilbert spaces \(\mathcal{H}_{m}[0,X]\) are described by

$$ \begin{aligned} \mathcal{H}_{m}[0,X]&=\bigl\{ z(\xi )| z:[0,X]\longrightarrow R , z^{(m-1)}( \xi )\in AC[0,X] \\ &\quad \text{ and } z^{(m)}(\xi )\in L^{2}[0,X], m=1,2,3 \bigr\} . \end{aligned} $$
(3.1)

The inner product and the norm corresponding in \(\mathcal{H}_{m}[0,X]\) for \(m = 1,2,3\) are given as follows:

$$ \textstyle\begin{cases} \langle z,w\rangle _{\mathcal{H}_{m}}= \sum^{m-1}_{i=0}z^{(i)}(0)w^{(i)}(0)+ \int ^{X}_{0}z^{(m)}(\xi )w^{(m)}(\xi )\,d\xi ,\quad z,w\in \mathcal{H}_{m}[0,X],& \\ \Vert z \Vert _{\mathcal{H}_{m}}=\langle z,z \rangle ^{1/2}, \quad z\in \mathcal{H}_{m}[0,X]. & \end{cases} $$
(3.2)

Theorem 3.4

([34])

The unique representation of the reproducing-kernel function associated with the Hilbert space \(\mathcal{H}_{1}[0,X]\) is given by

$$ V^{\lbrace 1\rbrace }_{\xi }(\tau )=\frac{1}{2\sinh (X)} \bigl[\cosh (\xi + \tau -X)+\cosh \bigl( \vert \xi -\tau \vert -X\bigr) \bigr]. $$
(3.3)

Theorem 3.5

([35])

The unique representation of the reproducing-kernel function associated with \(\mathcal{H}_{2}[0,X]\) can be written as

$$ V^{\lbrace 2\rbrace }_{\xi }(\tau )= \textstyle\begin{cases} \frac{1}{6}\tau (-\tau ^{2}+3\xi (\tau +2)), & 0\leq \tau < \xi , \\ \frac{1}{6} \xi (-\xi ^{2}+3\tau (\xi +2)),& \xi < \tau \leq X. \end{cases} $$
(3.4)

Theorem 3.6

([35])

The unique representation of the reproducing-kernel function associated with \(\mathcal{H}_{3}[0,X]\) can be written as

$$ V^{\lbrace 3\rbrace }_{\xi }(\tau )= \textstyle\begin{cases} \frac{1}{120}(120+\tau ^{5}+10\xi ^{2}\tau ^{2}(3+\tau )-5\xi \tau (-24+ \tau ^{3})), & 0\leq \tau < \xi , \\ \frac{1}{120}(120+\xi ^{5}+10\xi ^{2}\tau ^{2}(3+\xi )-5\xi \tau (-24+ \xi ^{3})),& \xi < \tau \leq X. \end{cases} $$
(3.5)

Definition 3.7

We describe the inner product Hilbert space \(\mathcal{W}_{m}[0,X]\), \(m=1,2\), of \(\mathcal{H}_{m}[0,X]\) and \(\mathcal{H}_{m}[0,X]\) by

$$ \mathcal{W}_{m}[0,X]=\bigl\{ z(\xi )=\bigl(z_{1}(\xi ),z_{2}(\xi )\bigr)^{T}| z_{1},z_{2} \in \mathcal{H}_{m}[0,X], m=1,2 \bigr\} , $$

as well as the inner product and the norm associated with \(\mathcal{W}_{m}[0,X]\) are built as follows:

$$ \textstyle\begin{cases} \langle z,w\rangle _{\mathcal{W}_{m}}= \sum^{2}_{i=1} \langle z_{i},w_{i} \rangle _{\mathcal{W}_{m}},\quad z_{i},w_{i}\in \mathcal{H}_{m}[0,X], m=1,2 ,& \\ \Vert z \Vert _{{\mathcal{W}}_{m}}=\sqrt{\sum^{2}_{i=1} \langle z_{i},z_{i} \rangle }, \quad z_{i}\in \mathcal{H}_{m}[0,X], m=1,2. & \end{cases} $$
(3.6)

4 Structure of analytical solution

4.1 MRKHS solution of GBT equation along with boundary conditions

In this section, we present a brief description for the notations and preliminary definitions of the MRKHS theory. Additionally, we explain how to solve GBT with boundary conditions (1.2)–(1.4) using the MRKHS method. Accordingly, we construct orthonormal function systems of the space based on the process orthogonalization of Gram–Schmidt.

Consider the GBT equation within CFFD

$$ \textstyle\begin{cases} a_{1}(\xi ) \omega ''(\xi )+ a_{2}(\xi ) {}^{CF}\mathcal{D}_{0}^{ \frac{3}{2}}\omega (\xi )+ a_{3}(\xi )\omega '(\xi )\\ \quad {}+ a_{4}(\xi ){}^{CF} \mathcal{D}_{0}^{\frac{1}{2}}\omega (\xi )+ a_{5}(\xi )\omega (\xi )=h( \xi ) , \\ \omega (0)=\mu _{1} ;\qquad \omega (X)=\mu _{2} . \end{cases} $$
(4.1)

Now, to apply our technique to GBT equation (4.1) on the Hilbert space \(\mathcal{H}_{2}[0,X]\), we consider a linear differential operator defined as follows:

$$ \textstyle\begin{cases} \mathcal{L}:\mathcal{H}_{3}[0,X] \longrightarrow \mathcal{H}_{1}[0,X] , \\ \mathcal{L}\omega (\xi )= a_{1}(\xi ) \omega ''(\xi )+ a_{2}(\xi ) {}^{CF} \mathcal{D}_{0}^{\frac{3}{2}}\omega (\xi )+ a_{3}(\xi )\omega '(\xi )\\ \hphantom{\mathcal{L}\omega (\xi )= }{}+ a_{4}(\xi ){}^{CF}\mathcal{D}_{0}^{\frac{1}{2}}\omega (\xi )+ a_{5}( \xi )\omega (\xi ). \end{cases} $$
(4.2)

Thus, using the simple transform \(z(\xi ):=(\omega (\xi )-(\mu _{2}-\mu _{1})\xi +\mu _{1})\), the GBT with the boundary condition equation (4.1) can be equivalently converted to the form

$$ \textstyle\begin{cases} \mathcal{L}z(\xi )=h(\xi ), \quad \xi \in [0, X] , \\ z(0)=0,\qquad z(X)=0 . \end{cases} $$
(4.3)

Theorem 4.1

The differential operator \(\mathcal{L}\) from \(\mathcal{H}_{3}[0,X] \) into \(\mathcal{H}_{1}[0,X]\) is bounded and linear. Hence, \(\mathcal{L}\) is continuous.

Proof

In order to prove that \(\mathcal{L}\) is a bounded operator, it is enough to find \(M>0\) such that \(\frac{\|\mathcal{L}z(\xi )\|_{\mathcal{H}_{1}}}{\|z(\xi )\|_{\mathcal{H}_{3}}} \leq M\). By the definition of the inner product for \(m=1\) in (3.2) on the Hilbert space \(\mathcal{H}_{1}[0,X]\), we have

$$ \bigl\Vert \mathcal{L}z(\xi ) \bigr\Vert _{\mathcal{H}_{1}}^{2}= \bigl\langle \mathcal{L}z( \xi ) ,\mathcal{L}z(\xi )\bigr\rangle _{\mathcal{H}_{1}}= \bigl[\mathcal{L}z(0)\bigr]^{2}+ \int ^{X}_{0}\bigl| (\mathcal{L}z)'(\xi )\bigr| ^{2}\,d\xi . $$

On the other hand, using the reproducing property of the MRKHS and by the Cauchy–Schwarz inequality, we can write

$$ \begin{aligned} \bigl| (\mathcal{L}z)^{(i)}(\xi )\bigr| &= \bigl\vert \bigl\langle z(\xi ),\bigl(\mathcal{L}V^{ \{3\}}_{\xi } \bigr)^{(i)}(\xi )\bigr\rangle _{\mathcal{H}_{3}} \bigr\vert \\ & \leq \bigl\Vert \bigl(\mathcal{L}V^{\{3\}}_{\xi } \bigr)^{(i)}(\xi ) \bigr\Vert _{\mathcal{H}_{3}} \bigl\Vert z(\xi ) \bigr\Vert _{\mathcal{H}_{3}} \\ & \leq M_{\{i\}} \bigl\Vert z(\xi ) \bigr\Vert _{\mathcal{H}_{3}},\quad i=0,1. \end{aligned} $$
(4.4)

Hence,

$$ \begin{aligned} \bigl\Vert \mathcal{L}z(\xi ) \bigr\Vert _{\mathcal{H}_{1}}^{2} & \leq \biggl[M_{\{0\}}^{2}+ \int ^{X}_{0}M_{\{1\}}^{2}\,d\xi \biggr] \bigl\Vert z(\xi ) \bigr\Vert ^{2}_{\mathcal{H}_{3}} \\ & \leq \bigl(M_{\{0\}}^{2}+ XM_{\{1\}}^{2} \bigr) \bigl\Vert z(\xi ) \bigr\Vert ^{2}_{\mathcal{H}_{3}} \\ & \leq M^{2} \bigl\Vert z(\xi ) \bigr\Vert ^{2}_{\mathcal{H}_{3}}, \end{aligned} $$
(4.5)

where \(M=\sqrt{(M_{\{0\}}^{2}+XM_{\{1\}}^{2})}\).

Next, for all \(z,\eta \in \mathcal{H}_{3}[0,X] \), we have \(\|\mathcal{L}(z+\eta )-\mathcal{L}(z)\|_{\mathcal{H}_{1}}= \| \mathcal{L}(\eta )\|_{\mathcal{H}_{1}}\leq M\|\eta \|_{\mathcal{H}_{3}}\). Letting \(\eta \rightarrow 0\) implies that \(\mathcal{L}\) is continuous. □

We construct an orthonormal function system of \(\mathcal{H}_{3}[0,X]\) as follows: Put \(\Phi _{i}(\cdot)=V^{\{1\}}_{\xi _{i}}(\cdot)\) and \(\Psi _{i}(\cdot)=\mathcal{L}^{\star }\Phi _{i}(\cdot)\), where \(\mathcal{L}^{\star }\) is the adjoint operator of \(\mathcal{L}\) and \(\{\xi \}_{i=1}^{\infty }\) is a dense set on \([0, X]\).

The orthonormal system \(\{\widehat{\Psi }_{i}(\xi )\}_{i=1}^{\infty }\) of the space \(\mathcal{H}_{3}[0,X]\) can be generated from the well-known Gram–Schmidt orthogonalization process as follows:

$$ \begin{aligned} \widehat{\Psi }_{i}(\xi )&=\sum ^{i}_{k=1} \sigma _{ik}\Psi _{i1}(\xi ),\quad i=1,2,\ldots, \end{aligned} $$
(4.6)

where \(\sigma _{ik}>0\) are the orthogonalization coefficients.

Theorem 4.2

For (4.3), if \(\{\xi _{i}\}_{i=1}^{\infty }\) is a dense set on [0, X], then the orthogonal function system \(\{ \Psi _{i}(\xi ) \}_{i=1}^{\infty }\) is complete in \(\mathcal{H}_{3}[0,X]\).

Proof

Note that

$$ \Psi _{i}(\xi )=\bigl\langle \mathcal{L}^{\star }\Phi _{i}(\tau ) ,V^{\{3\}}_{ \xi _{i}}(\tau ) \bigr\rangle = \bigl\langle \Phi _{i}(\tau ) ,\mathcal{L}_{ \tau }V^{\{3\}}_{\xi _{i}}( \tau ) \bigr\rangle =\mathcal{L}_{\tau }V^{\{3\}}_{ \xi _{i}}( \tau )\in \mathcal{H}_{1}[0,X]. $$
(4.7)

Now, for each \(z(\xi )\in \mathcal{H}_{3}[0,X]\), suppose \(\langle z(\xi ),\Psi _{i}(\xi ) \rangle =0\), thus we have

$$ \begin{aligned} \bigl\langle z(\xi ),\Psi _{i}(\xi ) \bigr\rangle &=\bigl\langle z(\xi ),\mathcal{L}^{ \star }\Phi _{i}(\xi ) \bigr\rangle \\ & =\bigl\langle \mathcal{L}z(\xi ),\Phi _{i}(\xi ) \bigr\rangle \\ & =\mathcal{L}z(\xi _{i})=0. \end{aligned} $$
(4.8)

Because \(\{\xi _{i}\}_{i=1}^{\infty }\) is dense in [0, X] and \(\mathcal{L}\) is continuous, we get \(\mathcal{L}z(\xi _{i})=0\). Using the existence of the inverse operator \(\mathcal{L}^{-1}\), we conclude that \(z(\xi )=0\). So the proof is complete. □

Theorem 4.3

If \(\{\xi _{i}\}_{i=1}^{\infty }\) is a dense subset on [0, X] and the analytic solution \(z(\xi )\) of (4.1) is unique, then the solution \(z(\xi )\) can be represented in the following form:

$$ \begin{aligned} z(\xi )&= \sum _{i=1}^{\infty }\sum_{k=1}^{i} \sigma _{ik}h(\xi _{k})) \widehat{\Psi }_{i}(\xi ). \end{aligned} $$
(4.9)

Proof

For each \(z(\xi )\in \mathcal{H}_{3}[0,X]\), \(z(\xi )\) can be extended in the Fourier series \(\sum^{\infty }_{i=1}\langle z(\xi ), \widehat{\Psi }_{i}(\xi ) \rangle \widehat{\Psi }_{i}(\xi ) \) about the orthonormal function system \(\{ \Psi _{i}(\xi ) \}_{i=1}^{\infty }\) of \(\mathcal{H}_{3}[0,X]\). Moreover, the series \(\sum^{\infty }_{i=1}\langle z(\xi ),\widehat{\Psi }_{i}(\xi ) \rangle \) is uniformly convergent in the Hilbert space \(\mathcal{W}_{2}[0,X]\). So, we have

$$ \begin{aligned} z(\xi ) &=\sum^{\infty }_{i=1} \bigl\langle z(\xi ),\widehat{\Psi }_{i}(\xi ) \bigr\rangle \widehat{ \Psi }_{i}(\xi ) \\ & =\sum_{i=1}^{\infty }\sum _{k=1}^{i}\sigma _{ik}\bigl\langle z(\xi ), \Psi _{k}(\xi )\bigr\rangle \widehat{\Psi }_{i}(\xi ) \\ & =\sum_{i=1}^{\infty }\sum _{k=1}^{i}\sigma _{ik}\bigl\langle \mathcal{L}z( \xi ),\Phi _{k1}(\xi ) \bigr\rangle \widehat{\Psi }_{i}(\xi ) \\ & = \sum_{i=1}^{\infty }\sum _{k=1}^{i}\sigma _{ik}\mathcal{L}z(\xi _{k}) \widehat{\Psi }_{i}(\xi ) \\ &=\sum_{i=1}^{\infty }\sum _{k=1}^{i}\sigma _{ik}h(\xi _{k}) \widehat{\Psi }_{i}(\xi ). \end{aligned} $$
(4.10)

 □

Now, the approximate solution can be obtained by truncating the series in (4.9) as follows:

$$ \begin{aligned} z(\xi )&= \sum _{i=1}^{n}\sum_{k=1}^{i} \sigma _{ik}h(\xi _{k})) \widehat{\Psi }_{i}(\xi ). \end{aligned} $$
(4.11)

In the following theorem, we prove that the error that results when approximating the solution in (4.9) by the form (4.11) is decreasing to zero.

Theorem 4.4

Let \(E_{n}=\|z-z_{n}\|_{\mathcal{H}_{3}}\), where z, \(z_{n}\) are respectively the exact and the approximate solution of (4.1) represented in (4.9) and (4.11), then the error \(E_{n}\) decreases monotonously in the sense of \(\|\cdot\|_{\mathcal{H}_{3}}\), and \(E_{n}\rightarrow 0\) as \(n\rightarrow \infty \).

Proof

We have

$$ \begin{aligned} E_{n}^{2} &= \Vert z-z_{n} \Vert ^{2}_{\mathcal{H}_{3}} \\ & = \Biggl\Vert \sum_{i=n+1}^{\infty }\sum _{k=1}^{i}\sigma _{ik}h(\xi _{k}) \widehat{\Psi }_{i}(\xi ) \Biggr\Vert ^{2}_{\mathcal{H}_{3}} \\ &= \Biggl\Vert \sum_{i=n+1}^{\infty }A_{i} \widehat{\Psi }_{i}(\xi ) \Biggr\Vert ^{2}_{ \mathcal{H}_{3}} \\ &= \sum_{i=n+1}^{\infty }(A_{i})^{2} \end{aligned} $$

and

$$ \begin{aligned} E_{n-1}^{2} = \Vert z-z_{n-1} \Vert ^{2}_{\mathcal{H}_{3}}=\sum _{i=n-1}^{ \infty }(A_{i})^{2}=(A_{n-1})^{2}+ \sum_{i=n}^{\infty }(A_{i})^{2}. \end{aligned} $$

Note that \(E_{n-1}^{2} > E_{n}^{2} \), so we conclude that the error \(E_{n} \) is monotone decreasing in the sense of \(\|\cdot\|^{2}_{\mathcal{H}_{3}}\), and because \(\sum^{\infty }_{i=1}\langle z(\xi ),\widehat{\Psi }_{i}(\xi ) \rangle \widehat{\Psi }_{i}(\xi ) \) is convergent, \(E_{n}\rightarrow 0\) as \(n\rightarrow \infty \). Hence, the proof is complete. □

4.2 MRKHS solution of GBT equation along with initial conditions

Now, we give some notations and preliminary definitions of the MRKHS theory. We then explain how to reformulate the GBT under the initial conditions (1.2)–(1.3) into an equivalent system of first-order fractional differential equations and how to implement our method to solve this system, with highlighting the relationship between the solution of the system and the solution of GBT. Accordingly, we construct an orthonormal function system of the space based on the Gram–Schmidt orthogonalization process.

Consider the following GBT with initial conditions:

$$ \textstyle\begin{cases} a_{1}(\xi ) \omega ''(\xi )+ a_{2}(\xi ) {}^{CF}\mathcal{D}_{xi}^{ \frac{3}{2}}\omega (\xi )+ a_{3}(\xi )\omega '(\xi )\\ \quad {}+ a_{4}(\xi ){}^{CF} \mathcal{D}_{\xi }^{\frac{1}{2}}\omega (\xi )+ a_{5}(\xi )\omega (\xi )=h( \xi ), & \\ \omega (0)=\mu _{1},\qquad \omega ^{\prime }(0)=\mu _{2}. & \end{cases} $$
(4.12)

We can obtain an equivalent form of (4.12) by homogenizing the initial conditions using a transformation given by the following formula \(z(\xi ):=\omega (\xi )-(\mu _{2}\xi +\mu _{1})\)

$$ \textstyle\begin{cases} a_{1}(\xi ) z''(\xi )+ a_{2}(\xi ) {}^{CF}\mathcal{D}_{\xi }^{ \frac{3}{2}}z(\xi )+ a_{3}(\xi )z'(\xi )\\ \quad {}+ a_{4}(\xi ){}^{CF}\mathcal{D}_{ \xi }^{\frac{1}{2}}z(\xi )+ a_{5}(\xi )z(\xi )=H(\xi ),& \\ z(0)=0,\qquad z^{\prime }(0)=0, & \end{cases} $$
(4.13)

where \(H(\xi )=h(\xi )-(a_{3}(\xi )\mu _{2}+2\mu _{2} a_{4}(\xi )(1-e^{-\xi })+a_{5}( \xi )(\mu _{2}\xi +\mu _{1}))\).

Before starting to describe the approximate RKHS scheme, we find it appropriate to rewrite the equivalent GBT equation (4.13) in the form of a system of fractional differential equations (SFDE) of first order by setting \(z(\xi )=z_{1}(\xi )\) and \(z_{1}'(\xi )=z_{2}(\xi )\). In this sense, the equivalent SFDE that we design has the form

$$ \begin{gathered} z'_{1}(\xi )= z_{2}(\xi ), \\ a_{1}(\xi )z'_{2}(\xi )+ a_{2}(\xi ){}^{CF}\mathcal{D}_{0}^{\frac{1}{2}}z_{2}( \xi )= H(\xi )- a_{3}(\xi )z_{1}(\xi ), \end{gathered} $$
(4.14)

equipped with the initial conditions

$$ z_{1}(0)=0 ;\qquad z_{2}(0)=0. $$
(4.15)

It is obvious that GBT equation (4.13) with its original initial conditions is equivalent to SFDE (4.14) with the new initial conditions (4.15) in the following sense: whenever \(Z=(z_{1},z_{2})^{T}\) with \(z_{1}\in \mathcal{H}_{2}[0,X]\) is a solution of SFDE (4.14) associated with initial conditions (4.15), the solution \(z := z_{1}\) solves GBT equation (4.13). Also, whenever \(z\in \mathcal{H}_{2}[0,X]\) is a solution to GBT equation (4.13) with original initial conditions, the vector of solutions \(Z:=(z_{1},z_{2})^{T}:= (z,z')^{T}\) solves SFDE (4.14) equipped with initial conditions (4.15).

Now, we begin by applying the MRKHS approach to solve the SFDE by defining differential operators as

$$ \mathcal{L}_{1},\mathcal{L}_{2}:\mathcal{H}_{2}[0,X] \longrightarrow \mathcal{H}_{1}[0,X], $$
(4.16)

whereas \(\mathcal{L}_{1}z_{1}(\xi )=z'_{1}(\xi )\) and \(\mathcal{L}_{2}z_{2}(\xi )= a_{1}(\xi )z'_{2}(\xi )+ a_{2}(\xi ){}^{CF} \mathcal{D}_{\xi }^{\frac{1}{2}}z_{2}(\xi )\). Put L= ( L 1 0 0 L 2 ) W 2 [0,X], \(H_{1}(\xi ,Z(\xi ))=z_{2}(\xi )\), \(H_{2}(\xi ,Z(\xi ))= a_{3}(\xi )z_{1}(\xi )+H(\xi )\), and \(H(\xi ,Z(\xi ))= (H_{1}(\xi ,Z(\xi )),H_{2}(\xi ,Z(\xi )))^{T}\).

Consequently, the initial value GBT equation can be converted into the form

$$ \mathcal{L}Z(\xi )=H\bigl(\xi ,Z(\xi )\bigr) , $$

equipped with the initial conditions

$$ Z(\mathbf{0})=\mathbf{0}. $$

Lemma 4.5

The differential operators \(\mathcal{L}_{1},\mathcal{L}_{2}:\mathcal{H}_{2}[0,X]\longrightarrow \mathcal{H}_{1}[0,X]\) are linear and bounded operators. Consequently, the operator \(\mathcal{L}:\mathcal{W}_{2}[0,X] \longrightarrow \mathcal{W}_{1}[0,X]\) is also linear and bounded.

Proof

The proof is divided into two parts; first, we prove that \(\mathcal{L}_{j}:\mathcal{H}_{2}[0,X]\longrightarrow \mathcal{H}_{1}[0,X]\), \(j=1,2\), are bounded and linear. The linearity is obvious since both integer order and Caputo–Fabrizio derivatives are linear.

For boundedness, let \(z\in \mathcal{H}_{2}[0,X]\), then

$$ \Vert \mathcal{L}_{j}z_{j} \Vert ^{2}_{\mathcal{H}_{1}}= \langle \mathcal{L}_{j}z_{j}, \mathcal{L}_{j}z_{j} \rangle _{ \mathcal{H}_{1}}= \int _{0}^{X} \bigl( (\mathcal{L}_{j}z_{j}) (\tau )\bigr)^{2} +\bigl( (\mathcal{L}_{j}z_{j})'( \tau )\bigr)^{2} \,d\tau . $$

Using the reproducing property of \(V^{\lbrace 2\rbrace }_{\xi }(\tau )\), we can write \(z(\xi )= \langle z(\cdot), V^{\lbrace 2\rbrace }_{\xi }(\cdot) \rangle _{\mathcal{H}_{2}}\) and

$$ z'(\xi )= \biggl\langle z(\cdot), \frac{d}{d\xi }V^{\lbrace 2\rbrace }_{\xi }( \cdot) \biggr\rangle _{\mathcal{H}_{2}}, $$

and

$$ a_{1}(\xi )z'(\xi )+ a_{2}(\xi ){}^{CF}\mathcal{D}_{\xi }^{\frac{1}{2}}z( \xi )= \biggl\langle z( \cdot),a_{1}(\xi ) \frac{d}{d\xi } V^{\lbrace 2 \rbrace }_{\xi }( \cdot)+ a_{2}(\xi ){}^{CF}\mathcal{D}_{\xi }^{\frac{1}{2}}V^{ \lbrace 2\rbrace }_{\xi }( \cdot) \biggr\rangle _{\mathcal{H}_{2}}. $$

Applying the Schwarz inequality and using the fact that z, \(a_{1}\), \(a_{2}\) are continuous over \([0,X]\) and \({}^{CF}\mathcal{D}_{\xi }^{\frac{1}{2}}V^{\lbrace 2\rbrace }_{\xi }\) is continuous and uniformly bounded, we get

$$\begin{aligned}& \bigl\vert (\mathcal{L}_{1}z) (\xi ) \bigr\vert = \bigl\vert z'(\xi ) \bigr\vert = \biggl\vert \biggl\langle z(\cdot), \frac{d}{d\xi }V^{\lbrace 2\rbrace }_{\xi }(\cdot) \biggr\rangle \biggr\vert _{\mathcal{H}_{2}} \leq \Vert z \Vert _{ \mathcal{H}_{2}} \biggl\Vert \frac{d}{d\xi }V^{\lbrace 2\rbrace }_{\xi } \biggr\Vert _{\mathcal{H}_{2}} \leq \Upsilon _{11} \Vert z \Vert _{ \mathcal{H}_{2}}, \\& \bigl\vert (\mathcal{L}_{1}z)'(\xi ) \bigr\vert = \biggl\vert \biggl\langle z(\cdot), \frac{d^{2}}{d\xi ^{2}}V^{\lbrace 2\rbrace }_{\xi }( \cdot) \biggr\rangle \biggr\vert _{\mathcal{H}_{2}} \leq \Vert z \Vert _{\mathcal{H}_{2}} \biggl\Vert \frac{d^{2}}{d\xi ^{2}}V^{\lbrace 2\rbrace }_{\xi } \biggr\Vert _{\mathcal{H}_{2}} \leq \Upsilon _{12} \Vert z \Vert _{\mathcal{H}_{2}}, \\& \begin{aligned} \bigl\vert \bigl(\mathcal{L}_{2}z(\cdot)\bigr) (\xi ) \bigr\vert &= \biggl\langle z, a_{1}(\cdot) \frac{d}{d\xi } V^{\lbrace 2\rbrace }_{\xi }(\cdot)+ a_{2}(\cdot){}^{CF} \mathcal{D}_{\xi }^{\frac{1}{2}}V^{\lbrace 2\rbrace }_{\xi }(\cdot) \biggr\rangle _{\mathcal{H}_{2}} \\ &\leq \Vert z \Vert _{\mathcal{H}_{2}} \biggl\Vert a_{1} \frac{d}{d\xi } V^{\lbrace 2\rbrace }_{\xi }+ a_{2}{}^{CF} \mathcal{D}_{\xi }^{\frac{1}{2}}V^{\lbrace 2\rbrace }_{\xi } \biggr\Vert _{ \mathcal{H}_{2}} \leq \Upsilon _{21} \Vert z \Vert _{\mathcal{H}_{2}}, \end{aligned} \end{aligned}$$

and similarly,

$$ \bigl\vert (\mathcal{L}_{2}z)'(\xi ) \bigr\vert \leq \Upsilon _{22} \Vert z \Vert _{\mathcal{H}_{2}}, $$

where \(\Upsilon _{ij} \in \Re ^{+}\), \(\forall i,j=1,2\).

Hence,

$$ \Vert \mathcal{L}_{j} z_{j} \Vert ^{2}_{\mathcal{H}_{1}} \leq \bigl( \Upsilon _{1j}^{2}+\Upsilon _{2j}^{2} \bigr)X \Vert z \Vert _{\mathcal{H}_{2}}^{2} \leq M_{j}^{2} \Vert z \Vert _{\mathcal{H}_{2}}, $$

where \(M_{j}^{2}=(\Upsilon _{1j}^{2}+\Upsilon _{2j}^{2})X\).

So, \(\Vert \mathcal{L}_{j} z_{j} \Vert _{\mathcal{H}_{1}}^{2}\leq M_{j} \Vert z \Vert _{\mathcal{H}_{2}}\).

Now, for any \(Z=(z_{1},z_{2})^{T} \in \mathcal{W}_{2}[0,X]\), we have

$$ \begin{aligned} \Vert \mathcal{L}Z \Vert _{\mathcal{W}_{1}}&=\sqrt {\sum^{2}_{i=1} \Vert \mathcal{L}_{i}z_{i} \Vert ^{2}_{\mathcal{H}_{1}}} \\ & \leq \sqrt{ M^{2}_{1} \Vert z_{1} \Vert ^{2}_{\mathcal{H}_{2}}+M^{2}_{2} \Vert z_{2} \Vert ^{2}_{\mathcal{H}_{2}}} \\ & \leq M \Vert Z \Vert _{\mathcal{W}_{2}}, \end{aligned} $$
(4.17)

where \(M=\max \{M_{1},M_{2}\}\). So, the proof is complete. □

Next, we create an orthonormal function system of \(\mathcal{W}_{2}[0,X]\) as follows: Let \(\Phi _{ij}(\cdot)=V^{\{1\}}_{\xi _{i}}(\cdot)\) and \(\Psi _{ij}(\cdot)=\mathcal{L}^{\star }\Phi _{ij}(\cdot)\) for each \(i=1,2,\ldots\) , and \(j=1,2\), where \(\mathcal{L}^{\star }\) is the adjoint operator of \(\mathcal{L}\) and \(\{\xi _{i}\}_{i=1}^{\infty }\) is a countable dense subset of \([0,X]\). Moreover, using the properties of the reproducing kernel, we find

$$ \begin{aligned} \Psi _{ij}(\xi )&=\mathcal{L^{\star }}\Phi _{ij}(\xi )= \bigl\langle \mathcal{L^{\star }}\Phi _{ij}(\tau ),V^{\{2\}}_{\xi _{i}}(\tau ) \bigr\rangle _{\mathcal{W}_{2}} =\bigl\langle \Phi _{ij}(\tau ),\mathcal{L}V^{ \{2\}}_{\xi _{i}}( \tau )\bigr\rangle _{\mathcal{W}_{1}}\\ &=\mathcal{L}V^{\{2 \}}_{\xi _{i}}(\tau )\in \mathcal{W}_{2}[0,X]. \end{aligned} $$

To build the representative form of the MRKHS solutions of SFDE (4.14) equipped with the initial conditions (4.15) in the space \(\mathcal{W}_{2}[0, X]\), we use the well-known Gram–Schmidt process that outputs an orthonormal function \(\{ (\widehat{\Psi }_{i1}(\xi ), \widehat{\Psi }_{i2}(\xi ))^{T} \}_{i=1}^{ \infty }\) of the space \(\mathcal{W}_{2}[0,X]\) constructed from \(\{ (\Psi _{i1}(\xi ),\Psi _{i2}(\xi ))^{T} \}_{i=1}^{\infty }\) such that

$$ \widehat{\Psi }_{i}(\xi )=\begin{pmatrix} \widehat{\Psi }_{i1}(\xi ) \\ \widehat{\Psi }_{i2}(\xi )) \end{pmatrix}= \begin{pmatrix} \sum_{k=1}^{i}\sigma ^{1}_{ik}\Psi _{i1}(\xi ) \\ \sum_{k=1}^{i}\sigma ^{2}_{ik}\Psi _{i2}(\xi ) \end{pmatrix}, $$
(4.18)

where \(\sigma ^{j}_{ik}\), \(j=1,2\), are the orthogonalization coefficients.

Theorem 4.6

If \(\{\xi _{i}\}_{i=1}^{\infty }\) is a dense set on [0, X], then the orthogonal function system \(\{ (\Psi _{i1}(\xi ),\Psi _{i2}(\xi ))^{T} \}_{i=1}^{\infty }\) is complete in \(\mathcal{W}_{2}[0,X]\).

Proof

For each Z(ξ)= ( z 1 ( ξ ) z 2 ( ξ ) ) W 2 [0,X], suppose \(\langle Z(\xi ),\Psi _{ij}(\xi ) \rangle =0\). On the other hand, we have

$$ \begin{aligned} \bigl\langle Z(\xi ),\Psi _{ij}(\xi ) \bigr\rangle &=\bigl\langle Z(\xi ), \mathcal{L}^{\star }\Phi _{ij}(\xi ) \bigr\rangle \\ & = \left\langle \begin{pmatrix} z_{1}(\xi ) \\ z_{2}(\xi ) \end{pmatrix} , \begin{pmatrix} \mathcal{L}_{1}^{\star }\Phi _{i1}(\xi ) \\ \mathcal{L}_{2}^{\star }\Phi _{i2}(\xi ) \end{pmatrix} \right\rangle \\ & =\bigl\langle z_{1}(\xi ),\mathcal{L}_{1}^{\star } \Phi _{i1}(\xi ) \bigr\rangle + \bigl\langle z_{2}(\xi ), \mathcal{L}_{2}^{\star }\Phi _{i1}(\xi ) \bigr\rangle \\ & =\bigl\langle \mathcal{L}_{1}z_{1}(\xi ),\Phi _{i1}(\xi ) \bigr\rangle + \bigl\langle \mathcal{L}_{2}z_{2}( \xi ),\Phi _{i1}(\xi )\bigr\rangle \\ & = \mathcal{L}_{1}z_{1}(\xi _{i})+ \mathcal{L}_{2}z_{2}(\xi _{i}) \\ & =\mathcal{L}Z(\xi _{i})=0. \end{aligned} $$
(4.19)

Because \(\{\xi _{i}\}_{i=1}^{\infty }\) is dense in [0, X] and \(\mathcal{L}\) is continuous, we get \(\mathcal{L}Z(\xi _{i})=0\). Using the existence of the inverse operator \(\mathcal{L}^{-1}\), we conclude that \(Z(\xi )=0\). So the proof is complete. □

Theorem 4.7

If \(\{\xi _{i}\}_{i=1}^{\infty }\) is a dense subset on [0, X] and the analytic solution \(Z(\xi )\) of SFDE (4.14) is unique, then the analytic solution \(Z(\xi )\) can be represented in the following form:

$$ Z(\xi )= \begin{bmatrix} \sum_{i=1}^{\infty }\sum_{k=1}^{i}[\sigma ^{1}_{ik}H_{1}(\xi _{k},Z( \xi _{k}))+\sigma ^{2}_{ik}H_{2}(\xi _{k},Z(\xi _{k})) ] \widehat{\Psi }_{i1}(\xi ) \\ \sum_{i=1}^{\infty }\sum_{k=1}^{i}[\sigma ^{1}_{ik}H_{1}(\xi _{k},Z( \xi _{k}))+\sigma ^{2}_{ik}H_{2}(\xi _{k},Z(\xi _{k})) ] \widehat{\Psi }_{i2}(\xi ) \end{bmatrix}. $$
(4.20)

Proof

For each \(Z(\xi )\in \mathcal{W}_{2}[0,X]\), \(Z(\xi )\) can be extended in the Fourier series \(\sum^{\infty }_{i=1}\langle Z(\xi ), \widehat{\Psi }_{i}(\xi ) \rangle \widehat{\Psi }_{i}(\xi ) \) about the orthonormal function system \(\{ (\Psi _{i1}(\xi ),\Psi _{i2}(\xi ))^{T} \}_{i=1}^{\infty }\), as \(\mathcal{W}_{2}[0,X]\). Moreover, the series \(\sum^{\infty }_{i=1}\langle Z(\xi ),\widehat{\Psi }_{i}(\xi ) \rangle \) is convergent in norm in the Hilbert space \(\mathcal{W}_{2}[0,X]\). So, we have

$$ \begin{aligned} Z(\xi ) &=\sum^{\infty }_{i=1} \bigl\langle Z(\xi ),\widehat{\Psi }_{i}(\xi ) \bigr\rangle \widehat{ \Psi }_{i}(\xi ) \\ & =\sum_{i=1}^{\infty } \left\langle \begin{pmatrix} z_{1}(\xi ) \\ z_{2}(\xi ) \end{pmatrix} , \begin{pmatrix} \widehat{\Psi }_{i1}(\xi ) \\ \widehat{\Psi }_{i2}(\xi ) \end{pmatrix} \right\rangle \widehat{\Psi }_{ij}(\xi ) \\ & =\sum_{i=1}^{\infty } \left\langle \begin{pmatrix} z_{1}(\xi ) \\ z_{2}(\xi ) \end{pmatrix} , \begin{pmatrix} \sum_{k=1}^{i}\sigma ^{1}_{ik}\Psi _{k1}(\xi ) \\ \sum_{k=1}^{i}\sigma ^{2}_{ik}\Psi _{k2}(\xi ) \end{pmatrix} \right\rangle \widehat{\Psi }_{i}(\xi ) \\ & =\sum_{i=1}^{\infty }\sum _{k=1}^{i}\sigma ^{1}_{ik}\bigl\langle z_{1}( \xi ),\Psi _{k1}(\xi )\bigr\rangle \widehat{ \Psi }_{i}(\xi ) +\sum_{i=1}^{ \infty } \sum_{k=1}^{i}\sigma ^{2}_{ik} \bigl\langle z_{2}(\xi ),\Psi _{k2}( \xi ) \bigr\rangle ] \widehat{\Psi }_{i}(\xi ) \\ & =\sum_{i=1}^{\infty }\sum _{k=1}^{i}\sigma ^{1}_{ik}\bigl\langle \mathcal{L}_{1}z_{1}(\xi ),\Phi _{k1}(\xi ) \bigr\rangle \widehat{\Psi }_{i}( \xi ) +\sum _{i=1}^{\infty }\sum_{k=1}^{i} \sigma ^{2}_{ik} \bigl\langle \mathcal{L}_{2}z_{2}( \xi ),\Phi _{i2}(\xi )\bigr\rangle \widehat{\Psi }_{i}( \xi ) \\ & = \sum_{i=1}^{\infty }\sum _{k=1}^{i}\bigl[\sigma ^{1}_{ik} \mathcal{L}_{1}z_{1}( \xi _{k})+\sigma ^{2}_{ik} \mathcal{L}_{2}z_{2}(\xi _{k})\bigr] \widehat{\Psi }_{i}(\xi ) \\ & =\begin{bmatrix} \sum_{i=1}^{\infty }\sum_{k=1}^{i}[\sigma ^{1}_{ik}H_{1}(\xi _{k},Z( \xi _{k}))+\sigma ^{2}_{ik}H_{2}(\xi _{k},Z(\xi _{k})) ] \widehat{\Psi }_{i1}(\xi ) \\ \sum_{i=1}^{\infty }\sum_{k=1}^{i}[\sigma ^{1}_{ik}H_{1}(\xi _{k},Z( \xi _{k}))+\sigma ^{2}_{ik}H_{2}(\xi _{k},Z(\xi _{k})) ] \widehat{\Psi }_{i2}(\xi ) \end{bmatrix}. \end{aligned} $$
(4.21)

 □

Moreover, if we take finitely many terms in the series representation for the analytic solution \(Z(\xi )\), we get directly the approximate solution SFDE (4.14), and it is given as the form

$$ Z_{n}(\xi )= \begin{bmatrix} \sum_{i=1}^{n}\sum_{k=1}^{i}[\sigma ^{1}_{ik}H_{1}(\xi _{k},Z(\xi _{k}))+ \sigma ^{2}_{ik}H_{2}(\xi _{k}, Z(\xi _{k})) ]\widehat{\Psi }_{i1}( \xi ) \\ \sum_{i=1}^{n}\sum_{k=1}^{i}[\sigma ^{1}_{ik}H_{1}(\xi _{k},Z(\xi _{k}))+ \sigma ^{2}_{ik}H_{2}(\xi _{k},Z(\xi _{k})) ]\widehat{\Psi }_{i2}(\xi ) \end{bmatrix} .$$
(4.22)

Lemma 4.8

The analytical solution of FBT equation (4.13) is given as

$$ \begin{aligned} z(\xi )= \sum_{i=1}^{\infty } \sum_{k=1}^{i}\bigl[\sigma ^{1}_{ik}H_{1}\bigl( \xi _{k},Z(\xi _{k})\bigr)+\sigma ^{2}_{ik}H_{2} \bigl(\xi _{k}, Z(\xi _{k})\bigr) \bigr] \widehat{\Psi }_{i1}(\xi ). \end{aligned} $$

Proof

From Theorem 4.6, the proof is direct. □

Theorem 4.9

If \(E_{n}=\|Z-Z_{n}\|_{\mathcal{W}_{2}}\), where Z, \(Z_{n}\) are the exact and the approximate solutions of SFDE (4.14), respectively, represented in (4.20) and (4.22), then the error \(E_{n}\) is monotonic decreasing in the sense of \(\|\cdot\|_{\mathcal{W}_{2}}\), and \(E_{n}\rightarrow 0\) as \(n\rightarrow \infty \). Consequently, the behavior error of the solution of the GBT equation decreases monotonously in the sense of \(\|\cdot\|_{\mathcal{W}_{2}}\).

Proof

We have

$$ \begin{aligned} E_{n}^{2} &= \Vert Z-Z_{n} \Vert ^{2}_{\mathcal{W}_{2}} \\ & = \left \Vert \begin{bmatrix} \sum_{i=n+1}^{\infty }\sum_{k=1}^{i}[\sigma ^{1}_{ik}H_{1}(\xi _{k},Z( \xi _{k}))+\sigma ^{2}_{ik}H_{2}(\xi _{k},Z(\xi _{k})) ] \widehat{\Psi }_{i1}(\xi ) \\ \sum_{i=n+1}^{\infty }\sum_{k=1}^{i}[\sigma ^{1}_{ik}H_{1}(\xi _{k},Z( \xi _{k}))+\sigma ^{2}_{ik}H_{2}(\xi _{k},Z(\xi _{k})) ] \widehat{\Psi }_{i2}(\xi ) \end{bmatrix} \right \Vert ^{2}_{\mathcal{W}_{2}} \\ & = \left \Vert \begin{bmatrix} \sum_{i=n+1}^{\infty }A_{i}\widehat{\Psi }_{i1}(\xi ) \\ \sum_{i=n+1}^{\infty }A_{i}\widehat{\Psi }_{i2}(\xi ) \end{bmatrix} \right \Vert ^{2}_{\mathcal{W}_{2}} \\ &= \Biggl\Vert \sum_{i=n+1}^{\infty }A_{i} \widehat{\Psi }_{i}(\xi ) \Biggr\Vert ^{2}_{ \mathcal{W}_{2}} \\ &= \sum_{i=n+1}^{\infty }(A_{i})^{2} \end{aligned} $$

and

$$ \begin{aligned} E_{n-1}^{2} = \Vert Z-Z_{n-1} \Vert ^{2}_{\mathcal{W}_{2}}=\sum _{i=n-1}^{ \infty }(A_{i})^{2}=(A_{n-1})^{2}+ \sum_{i=n}^{\infty }(A_{i})^{2}. \end{aligned} $$

Note that \(E_{n-1}^{2}> E_{n}^{2} \). So, we conclude that the error \(E_{n} \) is monotone decreasing in the sense of \(\|\cdot\|^{2}_{\mathcal{W}_{2}}\), and because \(\sum^{\infty }_{i=1}\langle Z(\xi ),\widehat{\Psi }_{i}(\xi ) \rangle \widehat{\Psi }_{i}(\xi ) \) is convergent, then \(E_{n}\rightarrow 0\) as \(n\rightarrow \infty \). So, the proof is complete. □

5 Numerical experiments

In order to demonstrate the effectiveness and eligibility of the proposed method for solving generalized Bagley–Torvik equations under the effect of CFFD derivative, we provide some illustrative examples and then solve them using MRKHS. In each example, we compare their results with the exact solution. All numerical computations are carried out using Mathematica 12.0 software package.

Example 5.1

Consider the GBT equation equipped with the following initial conditions (ICs):

$$ \textstyle\begin{cases} z''(\xi )+\frac{2}{5}{}^{CF}\mathcal{D}_{\xi }^{\frac{3}{2}}z(\xi )- \frac{1}{4} z(\xi )=\frac{\xi ^{2}}{4}-\frac{\xi }{4}+ \frac{8 e^{-\xi }}{5}-\frac{18}{5}, & \\ z(0)=0, \qquad z'(0)=1, & \end{cases} $$
(5.1)

which can be rewritten along with homogeneous ICs as follows:

$$ \textstyle\begin{cases} v''(\xi )+\frac{2}{5}{}^{CF}\mathcal{D}_{\xi }^{\frac{3}{2}}v(\xi )- \frac{1}{4} v(\xi )=\frac{\xi ^{2}}{4}-\frac{\xi }{2}+ \frac{8 e^{-\xi }}{5}-\frac{18}{5}, & \\ v(0)=0, \qquad v'(0)=0, & \end{cases} $$
(5.2)

where the exact solution is \(z(\xi )=\xi (1-\xi )\).

In order to apply the MRKHS method with high efficiency, we make the substitution \(z_{1}(\xi )=v(\xi )\) and \(z_{2}(\xi )=v'(\xi )\) to convert it into the equivalent system:

$$\begin{aligned}& z_{1}'(\xi )-z_{2}(\xi )=0, \\& z_{2}'(\xi )+\frac{2}{5} {}^{CF} \mathcal{D}_{\xi }^{\frac{1}{2}}z_{2}( \xi )-\frac{1}{4} z_{1}(\xi )=\frac{\xi ^{2}}{4}-\frac{\xi }{2}+ \frac{8 e^{-\xi }}{5}- \frac{18}{5}, \\& z_{1}(0)=0,\qquad z_{2}(0)=0. \end{aligned}$$

Now, we apply the proposed method with \(n=70\) to get some numerical results as shown in Table 1. A comparison between the exact and the approximate curves is displayed in Fig. 1, which shows the accuracy of our method.

Figure 1
figure 1

Exact and MRKHS solution curves of Example 5.1

Table 1 Numerical results for Example 5.1

Example 5.2

Consider the GBT equation equipped with the following initial conditions:

$$ \textstyle\begin{cases} z''(\xi )+{}^{CF}\mathcal{D}_{\xi }^{\frac{3}{2}}z(\xi )+ z(\xi )=\xi +1, & \\ z(0)=1, \qquad z'(0)=1, & \end{cases} $$
(5.3)

which can be rewritten along with homogeneous ICs as follows:

$$ \textstyle\begin{cases} v''(\xi )+{}^{CF}\mathcal{D}_{\xi }^{\frac{3}{2}}v(\xi )+ v(\xi )=0, & \\ v(0)=0, \qquad v'(0)=0, & \end{cases} $$
(5.4)

where the exact solution is \(z(\xi )=\xi +1\).

The SFDE related to this GBT equation assuming \(z_{1}(\xi )=v(\xi )\) and \(z_{2}(\xi )=v'(\xi )\) is

$$ \textstyle\begin{cases} z_{1}'(\xi )-z_{2}(\xi )=0, & \\ z_{2}'(\xi )+{}^{CF}\mathcal{D}_{\xi }^{\frac{1}{2}}z_{2}(\xi )+ z_{1}( \xi )=0, & \\ z_{1}(0)=0, \qquad z_{2}'(0)=0. & \end{cases} $$
(5.5)

To achieve high accuracy, we found it enough to take \(n=5\) as shown in Table 2 and Fig. 2.

Figure 2
figure 2

Exact and MRKHS solution curves of Example 5.2

Table 2 Numerical results for Example 5.2

Example 5.3

Consider the following GBT equation:

$$ z''(\xi )+{}^{CF}\mathcal{D}_{\xi }^{\frac{3}{2}}z( \xi )+ z(\xi )=6+\xi ^{2}-4e^{-t}, $$

subject to

$$ z(0)=z'(0)=0, $$

where the exact solution \(z(\xi )=\xi ^{2}\).

Applying the methodology described in this paper, with \(n=90\), some tabulated and graphical results are shown in Table 3 and Fig. 3.

Figure 3
figure 3

Exact and MRKHS solution curves of Example 5.3

Table 3 Numerical results for Example 5.3

Example 5.4

Consider the GBT equation equipped with the following ICs:

$$ z''(t)+D^{3/2}_{\xi } z-D^{1/2}_{\xi }z+4 z'(t)+z(\xi )=-2 (\xi +1)-4 e^{- \xi };\quad z(0)=2, z'(0)=-2, $$

whose the exact solution is \(z(\xi )=2(1-\xi )\).

The comparison between the exact and the approximate curves for \(n=5\) is displayed in Fig. 4, which shows high accuracy of this method.

Figure 4
figure 4

Exact and MRKHS solution curves of Example 5.4

Example 5.5

Consider the following GBT equation:

$$ z''(\xi )+D^{3/2}_{\xi } z(\xi )-D^{\frac{1}{2}}_{\xi } z(\xi )+4 z'( \xi )+z(\xi )=-4 e^{-\xi } \bigl(\xi ^{2}-6 \xi +2 \bigr), $$

subject to ICs

$$ z(0)=2, \qquad z'(0)=-4, $$

which is equivalent to

$$ v''(\xi )+D^{3/2}_{\xi } v(\xi )-D^{\frac{1}{2}}_{\xi } v(\xi )+4 v'( \xi )+v(\xi )=e^{-\xi } \bigl(e^{\xi }(4 \xi +6)-4 (\xi -6) \xi \bigr), $$

subject to the homogeneous ICs

$$ v(0)=0, \qquad v'(0)=0, $$

where the exact solution is \(z(\xi )=2 (1-\xi ) \exp (-\xi )\).

By applying the MRKHS method with \(n=55\), a comparison between the exact and the approximate curves is displayed in Fig. 5, which shows the accuracy of our method.

Figure 5
figure 5

Exact and MRKHS solution curves of Example 5.5

Example 5.6

Consider the GBT equation with boundary conditions (BCs) within CFFD of the form

$$ \textstyle\begin{cases} z''(\xi )+{}^{CF}\mathcal{D}_{0}^{\alpha }z(\xi )+z(\xi )=(\xi +1)^{2}+2 e^{- \xi }, & 1< \alpha < 2, \\ z(0)=1, \qquad z(1)=3. & \end{cases} $$
(5.6)

In this example, we assume different values of the fractional CFFD orders to see the effect of this nonsingular kernel derivative to the GBT equations. Hence, a comparison between the approximate solutions for \(\alpha \in \lbrace 1,2,1.9,1.8,1.7,1.6,1.5\rbrace \) is shown in Table 4.

Table 4 Comparison of MRKHS solutions for different values of α for Example 5.6

Example 5.7

Consider the following GBT equation:

$$ z''(\xi )+{}^{CF}\mathcal{D}_{\xi }^{\frac{1}{2}}z( \xi )+ z(\xi )=6+\xi ^{2}-4e^{-t}-5 \xi , $$

subject to the BCs

$$ z(0)=z'(1)=0, $$

in which the exact solution is \(z(\xi )=\xi ^{2}-\xi \).

By applying the methodology described in this paper for \(n=55\), some tabulated and graphical results are shown in Table 5 and Fig. 6.

Figure 6
figure 6

Exact and MRKHS solution curves of Example 5.7

Table 5 Absolute errors of Example 5.7

6 Conclusion

In this paper, solutions of generalized Bagely–Torvik equations under the fractional derivative of a nonsingular kernel, the Caputo–Fabrizio derivative, are meaningfully discussed. These types of differential equations were solved under appropriate initial or boundary conditions. In the case of ICs, we prefer to convert the problem into a system of fractional differential equations seeking more efficiency and simplicity of the RKHS technique. Some theories related to the proposed method solutions, convergence, and error estimation have been proven. Numerical examples have been presented to reveal the effects of CFFD on solutions of the GBT equation. These examples showed how the proposed method is effective in solving GBT equations and showed how close the fractional solutions are to the solutions of the integer order.