1 Introduction

In this paper, we consider the following boundary value problem of nonlinear fractional differential equations:

$$ \textstyle\begin{cases} \lambda D^{\alpha }_{0}x(t)+D^{\beta }_{0} x(t) = f(t,x(t)), \quad 0< t< T, \\ x(0)=0, \quad\quad \mu D^{\gamma_{1}}_{0}x(T)+I^{\gamma_{2}}_{0}x(\eta )=\gamma_{3}, \end{cases} $$
(1)

where \(D^{\alpha }_{0}\) and \(D^{\beta }_{0}\) are Riemann–Liouville fractional derivatives with \(1<\alpha \leq 2\) and \(1\leq \beta < \alpha \), \(0<\lambda \leq 1\), \(0\leq \mu \leq 1\), \(0\leq \gamma_{1} \leq {\alpha -\beta }\), \(\gamma_{2}\geq 0\), \(0<\eta <T\) and \(f: [0,T]\times R\rightarrow R \) is a given function satisfying some assumptions that will be verified later.

Fractional differential problems have attracted much attention in recent years due to its wide application in many fields of science and engineering, including fractal theory, potential theory, biology, chemistry, diffusion, etc. See, e.g., [1, 2]. There are several kinds of fractional derivatives used in different applied areas, such as Caputo derivative and Riemann–Liouville derivative. Recently, Atangana et al. [3,4,5,6] presented the Caputo–Fabrizio and the Atangana–Baleanu fractional derivatives.

In the literature, \({}^{c}D^{\alpha }_{0^{+}} u(t)+f(t,u(t))=0\) is known as a single term equation. This kind of fractional differential equation has many applications and has been studied widely. See, e.g., [1, 2, 7,8,9,10]. Equations containing more than one fractional differential terms are called multi-term fractional differential equations; they have some concrete applications in many fields. Due to the complexity of such a kind of equations, it seems that there has been no result for a general multi-term fractional differential equation. Only some special cases have been investigated. A classical example is the so-called Bagley–Torvik equation (B–T equation for short) [11],

$$ Ay{''}(t)+B^{c}D^{\frac{3}{2}}_{0}y(t)+Cy(t)=f(t), $$

where A, B and C are certain constants and f is a given function. This equation arises from the mathematical model of the motion of a thin plate in a Newtonian fluid. The B–T equation, as well as various generalizations, has wide applications in fluid dynamics and hence has attracted much attention. For example, Cermak et al. [12] investigated the two-term fractional differential equation

$$ D^{\alpha }_{0} y(t)+aD^{\beta }_{0} y(t) +y b(t)=0 $$

with real coefficients a, b and positive real orders \(\alpha > \beta \), which contains some important cases such as the B–T equation for \(\alpha =2\), \(\beta =3/2\) and the Basset equation for \(\alpha =1\), \(\beta =1/2\). The analytic solution and the numerical solution for the B–T equation were studied in [13] and [14], respectively. Various methods were introduced to investigate the approximate solutions such as the finite difference method [15], the variational iteration method [13, 16], the homotopy perturbation method [17] and the generalized differential transform method [18]. Boundary value problems for the B–T equations were studied in [19, 20] and [18, 21,22,23] for various boundary value conditions. In [18], the authors considered the approximate solution of B–T equations with variable coefficients and three-point boundary value,

$$ \textstyle\begin{cases} y^{\prime\prime}(x)+p(x)D^{\alpha }_{a} y+q(x)y=g(x), \quad x\in [a,b], \\ y(a)=\alpha_{1}, \quad\quad y(b)+\lambda y(\xi )=\beta_{1}, \quad \xi \in [a,b], \end{cases} $$

where \(0<\alpha <2\), \(p(x)\), \(q(x)\) and \(g(x)\) are known functions, \(\alpha_{1}\), \(\beta_{1}\), λ, μ and ξ are given constants. In [19, 20], Ntouyas et al. studied the generalized B–T equations with multiple integral and differential boundary conditions

$$ \textstyle\begin{cases} \lambda D^{\alpha }_{0}x(t)+(1-\lambda )D^{\beta }_{0}x(t) = f(t,x(t)), \quad 0< t< T, \\ x(0)=0,\quad \quad \mu D^{\gamma_{1}}_{0}(T)+(1-\mu )D^{\gamma_{2}}_{0}(T)= \gamma_{3}, \end{cases} $$

and

$$ \textstyle\begin{cases} \lambda D^{\alpha }_{0}x(t)+(1-\lambda )D^{\beta }_{0}x(t) = f(t,x(t)), \quad 0< t< T, \\ x(0)=0, \quad\quad \mu I^{\delta_{1}}_{0}x(T)+(1-\mu )I^{\delta_{2}}_{0}x(T)=\delta_{3}. \end{cases} $$

Green functions for the corresponding problems were investigated and the existence results were obtained by using fixed point theorems. For more detailed information, we refer the reader to [2, 24,25,26] and the references therein.

Stability analysis is an important respect of differential equations. Hyers–Ulam stability for differential equations was initialed in the 1940s by Ulam [27] and Hyers [28]. Roughly speaking, the Hyers–Ulam stability for a differential equation is the answer to the question whether there is an exact solution near an approximate solution (the solution to the approximate equation) to the differential equation. So it is obviously important for the study of numerical and approximate solutions and real world applications of differential equations. For this reason, many researchers investigate the Hyers–Ulam stability for differential equations of both integer and fractional order [29,30,31,32]. There are only a few works on the Ulam stability of fractional differential equations. Recently, Wang, Lv and Zhou [33] presented some Ulam stability results of fractional differential equations by using Hery–Gronwall inequality. By the method of Laplace transform, Wang and Li [34] studied Ulam stability of a fractional order linear differential equation. Later, Wang and Li [35] investigated the Hyers–Ulam stability for a nonlinear fractional Langevin equation and its corresponding impulsive problem. The authors of [36] researched a class of new differential equations with no instantaneous impulses. However, to the best of our knowledge, few results can be found on the Hyers–Ulam type stability for boundary value problems except that of Kumam [37].

Inspired by the above comments, in this paper, we consider the three points boundary value problem of a two-term fractional differential equation, with mixed integral and differential boundary conditions (1). Equation (1) with Riemann–Liouville fractional derivatives of order α and β is a generalization of the B–T equation. To compare with the discussion in [11, 19], there is no coefficient \((1-\lambda )\) or \((1-\mu )\) here, and the boundary conditions with mixed derivatives and integrals are different from the boundary value conditions in [11, 19]. So, our results can be regarded as an extension of B–T equation and partially extend the results in [11, 19, 38] and [20]. We also investigate the Hyers–Ulam stability for Eq. (1) with the boundary value conditions \(x(0)=0\) and \(x(T)=\gamma \). To deal with the Hyers–Ulam stability, we prove a fractional Gronwall-type integral inequality by the method of iteration, which is a generalization of the main result in [39] and Lemma 3.4 in [10].

2 Preliminaries

Let \(C([0,T],\mathbf{R})\) be the Banach space of all continuous functions from \([0,T]\) into R with the norm \(\Vert x \Vert _{\infty }=\max_{t\in [0,T]} \vert x(t) \vert \), and \(L^{1}([0,T],\mathbf{R})\) denotes the Banach space of functions \(x: [0,T]\rightarrow \mathbf{R}\) that are Lebesgue integrable with norm \(\Vert x \Vert _{L^{1}}=\int_{0}^{T} \vert x(t) \vert \,dt\).

Definition 2.1

([1])

The Riemann–Liouville fractional integral of order \(\alpha >0\) of a function \(f:[a,b]\rightarrow \mathbf{R}\) at the point t is defined by

$$ I_{a}^{\alpha }f(t)= \int_{a}^{t}\frac{(t-s)^{\alpha -1}}{\varGamma ( \alpha )}f(s)\,ds, $$

provided the right side is point-wisely defined, where Γ is the Gamma function.

Definition 2.2

([1])

The Riemann–Liouville fractional derivative of order \(\alpha >0\) of a function \(f:[a,b]\rightarrow \mathbf{R}\) at the point t is defined by

$$ D_{a}^{\alpha }f(t)=\frac{1}{\varGamma (n-\alpha )}\frac{d^{n}}{dt^{n}} \int_{a}^{t}(t-s)^{n-\alpha -1}f(s)\,ds, $$

provided the right side is point-wisely defined, where \(n=[\alpha ]+1\), \([\alpha ]\) denotes the integer part of α.

Lemma 2.3

([1])

Let \(\alpha >0\), and \(x\in C[0,T]\cap L[0,T]\). Then the fractional differential equation \(D^{\alpha }_{0}x(t)=0\) has the unique solution

$$ x(t)=c_{1}t^{\alpha -1}+c_{2}t^{\alpha -2}+\cdots +c_{n}t^{\alpha -n}, \quad c_{i}\in \mathbf{R}, i=0,1,2, \ldots, n-1, n=[\alpha ]+1. $$

Lemma 2.4

([1])

Let \(\alpha >0\). Then for \(x\in C(0,T)\cap L(0,T)\), we have

$$ I^{\alpha }_{0}D^{\alpha }_{0}x(t)=x(t)+c_{1}t^{\alpha -1}+c_{2}t^{ \alpha -2}+ \cdots +c_{n}t^{\alpha -n}, $$

for some \(c_{i}\in \mathbf{R}\), \(i=0,1,2,\ldots, n-1\), \(n=[\alpha ]+1\).

Lemma 2.5

The solution of the boundary value problem (1) satisfies the integral equation

$$ x(t)=\frac{\gamma_{3}}{\varTheta }t^{\alpha -1}+ \int_{0}^{T} G_{1}(t,s)x(s) \,ds+ \int_{0}^{T} G_{2}(t,s)f \bigl(s,x(s) \bigr) \,ds, $$

where

$$\begin{aligned}& \varTheta =\frac{\mu \varGamma (\alpha )T^{\alpha -\gamma_{1}-1}}{\varGamma ( \alpha -\gamma_{1})} +\frac{\varGamma (\alpha )\eta^{\alpha +\gamma_{2}-1}}{ \varGamma (\alpha +\gamma_{2})},\quad 0< t< T, \end{aligned}$$
(2)
$$\begin{aligned}& G_{11}(t,s)= \textstyle\begin{cases} -\frac{1}{\lambda \varGamma (\alpha -\beta )}(t-s)^{\alpha -\beta -1} \\ \quad{} +\frac{t^{\alpha -1}}{\varTheta \lambda }[\frac{\mu }{\varGamma (\alpha - \beta -\gamma_{1})} (T-s)^{\alpha -\beta -\gamma_{1}-1} \\ \quad{}+\frac{1}{\varGamma (\alpha -\beta +\gamma_{2})} (\eta -s)^{\alpha - \beta +\gamma_{2}-1}], & 0< s\leq t\leq \eta < T, \\ \frac{t^{\alpha -1}}{\varTheta \lambda }[\frac{\mu }{\varGamma (\alpha - \beta -\gamma_{1})} (T-s)^{\alpha -\beta -\gamma_{1}-1} \\ \quad{}+\frac{1}{\varGamma (\alpha -\beta +\gamma_{2})} (\eta -s)^{\alpha - \beta +\gamma_{2}-1}], & 0< t\leq s\leq \eta < T, \\ \frac{\mu t^{\alpha -1}}{\varTheta \lambda \varGamma (\alpha -\beta -\gamma _{1})} (T-s)^{\alpha -\beta -\gamma_{1}-1}, & 0< t\leq \eta \leq s< T, \end{cases}\displaystyle \end{aligned}$$
(3)
$$\begin{aligned}& G_{12}(t,s)= \textstyle\begin{cases} -\frac{1}{\lambda \varGamma (\alpha -\beta )}(t-s)^{\alpha -\beta -1} \\ \quad{}+\frac{t^{\alpha -1}}{\varTheta \lambda }[\frac{\mu }{\varGamma (\alpha - \beta -\gamma_{1})} (T-s)^{\alpha -\beta -\gamma_{1}-1} \\ \quad{}+\frac{1}{\varGamma (\alpha -\beta +\gamma_{2})}(\eta -s)^{\alpha - \beta +\gamma_{2}-1}], & 0< s\leq \eta \leq t< T, \\ -\frac{1}{\lambda \varGamma (\alpha -\beta )}(t-s)^{\alpha -\beta -1} +\frac{ \mu t^{\alpha -1}}{\varTheta \lambda \varGamma (\alpha -\beta -\gamma_{1})}(T-s)^{ \alpha -\beta -\gamma_{1}-1}, & 0< \eta \leq s\leq t< T, \\ \frac{\mu t^{\alpha -1}}{\varTheta \lambda \varGamma (\alpha -\beta -\gamma _{1})} (T-s)^{\alpha -\beta -\gamma_{1}-1}, & 0< \eta \leq t\leq s< T, \end{cases}\displaystyle \end{aligned}$$
(4)
$$\begin{aligned}& G_{21}(t,s)= \textstyle\begin{cases} \frac{1}{\lambda \varGamma (\alpha )}(t-s)^{\alpha -1}-\frac{t^{\alpha -1}}{ \varTheta \lambda } [\frac{\mu }{\varGamma (\alpha -\gamma_{1})}(T-s)^{ \alpha -\gamma_{1}-1} \\ \quad{} +\frac{1}{\varGamma (\alpha +\gamma_{2})} (\eta -s)^{\alpha +\gamma_{2}-1}], & 0< s\leq t\leq \eta < T, \\ -\frac{t^{\alpha -1}}{\varTheta \lambda }[\frac{\mu }{\varGamma (\alpha - \gamma_{1})}(T-s)^{\alpha -\gamma_{1}-1} \\ \quad{}+\frac{1}{\varGamma (\alpha +\gamma_{2})}(\eta -s)^{\alpha +\gamma_{2}-1}], & 0< t\leq s\leq \eta < T, \\ -\frac{\mu t^{\alpha -1}}{\varTheta \lambda \varGamma (\alpha -\gamma_{1})} (T-s)^{\alpha -\gamma_{1}-1}, & 0< t \leq \eta \leq s< T, \end{cases}\displaystyle \end{aligned}$$
(5)
$$\begin{aligned}& G_{22}(t,s)= \textstyle\begin{cases} \frac{1}{\lambda \varGamma (\alpha )}(t-s)^{\alpha -1}-\frac{t^{\alpha -1}}{ \varTheta \lambda } [\frac{\mu }{\varGamma (\alpha -\gamma_{1})}(T-s)^{ \alpha -\gamma_{1}-1} \\ \quad{} +\frac{1}{\varGamma (\alpha +\gamma_{2})} (\eta -s)^{\alpha +\gamma_{2}-1}], & 0< s \leq \eta \leq t< T, \\ \frac{1}{\lambda \varGamma (\alpha )}(t-s)^{\alpha -1}-\frac{\mu t^{ \alpha -1}}{\varTheta \lambda \varGamma (\alpha -\gamma_{1})}(T-s)^{\alpha -\gamma_{1}-1}, & 0< \eta \leq s\leq t< T, \\ -\frac{\mu t^{\alpha -1}}{\varTheta \lambda \varGamma (\alpha -\gamma_{1})}(T-s)^{ \alpha -\gamma_{1}-1}, & 0< \eta \leq t\leq s< T, \end{cases}\displaystyle \end{aligned}$$
(6)
$$\begin{aligned}& G_{1}(t,s)= \textstyle\begin{cases} G_{11}(t,s), & 0< t \leq \eta < T, \\ G_{12}(t,s), & 0< \eta \leq t< T, \end{cases}\displaystyle \end{aligned}$$
(7)
$$\begin{aligned}& G_{2}(t,s)= \textstyle\begin{cases} G_{21}(t,s), & 0< t \leq \eta < T, \\ G_{22}(t,s), & 0< \eta \leq t< T, \end{cases}\displaystyle \end{aligned}$$
(8)

Proof

From Eq. (1), we have

$$ D^{\alpha }_{0} x(t)=-\frac{1}{\lambda }D^{\beta }_{0} x(t)+\frac{1}{ \lambda }f \bigl(t,x(t) \bigr),\quad t\in [0,T]. $$
(9)

Taking the Riemann–Liouville fractional integral of order α on both sides of (9), we get

$$ \begin{aligned} x(t)&=-\frac{1}{\lambda \varGamma (\alpha -\beta )} \int_{0}^{t} (t-s)^{ \alpha -\beta -1}x(s) \,ds+ \frac{1}{\lambda \varGamma (\alpha )} \int_{0} ^{t} (t-s)^{\alpha -1}f \bigl(s,x(s) \bigr) \,ds\\&\quad{} +C_{1}t^{\alpha -1}+C_{2}t^{\alpha -2}.\end{aligned} $$

Then, \(x(0)=0 \) implies \(C_{2}=0\). Hence

$$ \begin{aligned}[b] x(t)&=-\frac{1}{\lambda \varGamma (\alpha -\beta )} \int_{0}^{t} (t-s)^{ \alpha -\beta -1}x(s) \,ds + \frac{1}{\lambda \varGamma (\alpha )} \int_{0} ^{t} (t-s)^{\alpha -1}f \bigl(s,x(s) \bigr) \,ds\\&\quad{} +C_{1}t^{\alpha -1}.\end{aligned} $$
(10)

Applying the Riemann–Liouville fractional derivative of order \(\gamma_{1}\) to both sides of (10), we deduce that

$$\begin{aligned} D^{\gamma_{1}}_{0} x(t) =&-\frac{1}{\lambda \varGamma (\alpha -\beta - \gamma_{1})} \int_{0}^{t}(t-s)^{\alpha -\beta -\gamma_{1}-1}x(s)\,ds \\ & {}+ \frac{1}{ \lambda \varGamma (\alpha -\gamma_{1})} \int_{0}^{t}(t-s)^{\alpha -\gamma _{1}-1}f \bigl(s,x(s) \bigr) \,ds \\ & {} +C_{1}\frac{\varGamma (\alpha )}{\varGamma (\alpha -\gamma_{1})} t^{ \alpha -\gamma_{1}-1}. \end{aligned}$$

Taking the Riemann–Liouville integral of order \(\gamma_{2}\) to both sides of (10), we obtain

$$\begin{aligned} I^{\gamma_{2}}_{0} x(t) =&-\frac{1}{\lambda \varGamma (\alpha -\beta + \gamma_{2})} \int_{0}^{t}(t-s)^{\alpha -\beta +\gamma_{2}-1}x(s)\,ds \\ & {}+ \frac{1}{ \lambda \varGamma (\alpha +\gamma_{2})} \int_{0}^{t}(t-s)^{\alpha +\gamma _{2}-1}f \bigl(s,x(s) \bigr) \,ds \\ & {} +C_{1}\frac{\varGamma (\alpha )}{\varGamma (\alpha +\gamma_{2})} t^{ \alpha +\gamma_{2}-1}. \end{aligned}$$

Let

$$ \varTheta :=\frac{\mu \varGamma (\alpha )T^{\alpha -\gamma_{1}-1}}{\varGamma ( \alpha -\gamma_{1})} +\frac{\varGamma (\alpha )\eta^{\alpha +\gamma_{2}-1}}{ \varGamma (\alpha +\gamma_{2})}. $$

By using the second condition of (1), we get

$$\begin{aligned} \gamma_{3} =&-\frac{\mu }{\lambda \varGamma (\alpha -\beta -\gamma_{1})} \int_{0}^{T}(T-s)^{\alpha -\beta -\gamma_{1}-1}x(s)\,ds \\ & {}+ \frac{\mu }{ \lambda \varGamma (\alpha -\gamma_{1})} \int_{0}^{T} (T-s)^{\alpha -\gamma _{1}-1}f \bigl(s,x(s) \bigr)\,ds \\ & {} +C_{1}\frac{\mu \varGamma (\alpha )}{\varGamma (\alpha - \gamma_{1})}T ^{\alpha -\gamma_{1}-1} -\frac{1}{\lambda \varGamma (\alpha -\beta + \gamma_{2})} \int_{0}^{\eta }(\eta -s)^{\alpha -\beta +\gamma_{2}-1}x(s)\,ds \\ & {} +\frac{1}{\lambda \varGamma (\alpha +\gamma_{2})} \int_{0}^{\eta }( \eta -s)^{\alpha +\gamma_{2}-1}f \bigl(s,x(s) \bigr)\,ds+C_{1}\frac{\varGamma (\alpha )}{\varGamma (\alpha +\gamma_{2})} \eta^{\alpha +\gamma_{2}-1}, \end{aligned}$$

which leads to

$$\begin{aligned} C_{1} =&\frac{1}{\varTheta } \biggl[\gamma_{3}+ \frac{\mu }{\lambda \varGamma ( \alpha -\beta -\gamma_{1})} \int_{0}^{T}(T-s)^{\alpha -\beta -\gamma _{1}-1}x(s)\,ds \\ & {}- \frac{\mu }{\lambda \varGamma (\alpha -\gamma_{1})} \int _{0}^{T}(T-s)^{\alpha -\gamma_{1}-1}f \bigl(s,x(s) \bigr)\,ds \\ & {} +\frac{1}{\lambda \varGamma (\alpha -\beta +\gamma_{2})} \int_{0}^{ \eta }(\eta -s)^{\alpha -\beta +\gamma_{2}-1}x(s)\,ds \\ & {}- \frac{1}{\lambda \varGamma (\alpha +\gamma_{2})} \int_{0}^{\eta }(\eta -s)^{\alpha +\gamma _{2}-1}f \bigl(s,x(s) \bigr)\,ds \biggr]. \end{aligned}$$

Substituting the value of \(C_{1}\) into (10), we have

$$\begin{aligned} x(t) =&-\frac{1}{\lambda \varGamma (\alpha -\beta )} \int_{0}^{t}(t-s)^{ \alpha -\beta -1}x(s)\,ds + \frac{1}{\lambda \varGamma (\alpha )} \int_{0} ^{t}(t-s)^{\alpha -1}f \bigl(s,x(s) \bigr)\,ds \\ & {} +\frac{t^{\alpha -1}}{\varTheta } \biggl[\gamma_{3}+\frac{\mu }{\lambda \varGamma (\alpha -\beta -\gamma_{1})} \int_{0}^{T}(T-s)^{\alpha -\beta -\gamma_{1}-1}x(s)\,ds \\ & {} -\frac{\mu }{\lambda \varGamma (\alpha -\gamma_{1})} \int_{0}^{T}(T-s)^{ \alpha -\gamma_{1}-1}f \bigl(s,x(s) \bigr) \,ds \\ & {} +\frac{1}{\lambda \varGamma (\alpha -\beta +\gamma_{2})} \int_{0}^{ \eta }(\eta -s)^{\alpha -\beta +\gamma_{2}-1}x(s)\,ds \\ & {} -\frac{1}{\lambda \varGamma (\alpha +\gamma_{2})} \int_{0}^{\eta }( \eta -s)^{\alpha +\gamma_{2}-1}f \bigl(s,x(s) \bigr)\,ds \biggr]. \end{aligned}$$

In the two cases of \(0< t\leq \eta <T \) and \(0<\eta \leq t< T\), we can verify

$$ x(t)=\frac{\gamma_{3}}{\varTheta }t^{\alpha -1}+ \int_{0}^{T} G_{1}(t,s)x(s) \,ds+ \int_{0}^{T} G_{2}(t,s)f \bigl(s,x(s) \bigr)\,ds, $$

which completes the proof. □

It is easily seen that \(G_{2}\) is continuous, and hence is bounded on \([0,T]\times [0,T]\). When \(\alpha -\beta -1<0\) or \(\alpha -\beta - \gamma_{1}-1<0\), \(G_{1}\) is unbounded. Fortunately, we have

$$\begin{aligned} \int_{0}^{T} \bigl\vert G_{1}(t,s) \bigr\vert \,ds \leq & \frac{1}{ \vert \lambda \varGamma (\alpha - \beta ) \vert } \int_{0}^{t}(t-s)^{\alpha -\beta -1}\,ds \\ & {} +\frac{t^{\alpha -1}}{\varTheta \lambda } \biggl[\frac{\mu }{ \vert \varGamma (\alpha -\beta -\gamma_{1}) \vert } \int_{0}^{T}(T-s)^{\alpha -\beta -\gamma_{1}-1}\,ds \\ & {} +\frac{1}{ \vert \varGamma (\alpha -\beta +\gamma_{2}) \vert } \int_{0}^{\eta }( \eta -s)^{\alpha -\beta +\gamma_{2}-1}\,ds \biggr] \\ = & \frac{1}{\lambda \varGamma (\alpha -\beta +1)}t^{\alpha -\beta } \\ & {} +\frac{t^{\alpha -1}}{\varTheta \lambda }\biggl[\frac{\mu }{\varGamma (\alpha -\beta -\gamma_{1}+1)}T^{\alpha -\beta -\gamma_{1}} \\ & {} +\frac{1}{\varGamma (\alpha -\beta +\gamma_{2}+1)} \eta^{\alpha -\beta +\gamma_{2}}\biggr] \\ \leq & \frac{1}{\lambda \varGamma (\alpha -\beta +1)}T^{\alpha -\beta } \\ & {} +\frac{T^{\alpha -1}}{\varTheta \lambda }\biggl[\frac{\mu }{\varGamma (\alpha -\beta -\gamma_{1}+1)}T^{\alpha -\beta -\gamma_{1}} \\ & {} +\frac{1}{\varGamma (\alpha -\beta +\gamma_{2}+1)} \eta^{\alpha -\beta +\gamma_{2}}\biggr], \end{aligned}$$

which means \(\int_{0}^{T} \vert G_{1}(t,s) \vert \,ds \) is uniformly bounded for \(t\in [0,T]\). We denote

$$ M_{1}:=\max_{t\in (0,T)} \int_{0}^{T} \bigl\vert G_{1}(t,s) \bigr\vert \,ds $$

and

$$ M_{2}:=\max_{t\in (0,T)} \int_{0}^{T} \bigl\vert G_{2}(t,s) \bigr\vert \,ds. $$

Next, we introduce an integral inequality which can be regarded as a generalization of the Gronwall inequality. It is also the generalization of the main result in [39] and Lemma 3.4 of [10].

Lemma 2.6

Suppose \(\alpha >0\), \(a>0\), \(g(t,s)\) is a nonnegative continuous function defined on \([0,T]\times [0, T]\) with \(g(t,s)\leq M\), and \(g(t,s)\) is nondecreasing w.r.t. the first variable and nonincreasing w.r.t. the second variable. Assume that \(u(t)\) is nonnegative and integrable on \([0,T]\) with

$$ u(t)\leq a+ \int_{0}^{t} g(t,s) (t-s)^{\alpha -1}u(s)\,ds, \quad t\in [0,T]. $$

Then

$$ u(t)\leq a+a \int_{0}^{t} \sum_{n=1}^{\infty } \frac{(g(t,s)\varGamma ( \alpha ))^{n}}{\varGamma (n\alpha )}(t-s)^{n\alpha -1}\,ds. $$
(11)

Proof

Let \(Au(t)=\int_{0}^{t} g(t,s)(t-s)^{\alpha -1}u(s)\,ds\), where \(u(t)\) is nonnegative and locally integrable on \(t\in [0,T]\). It follows that \(u(t)\leq a+Au(t)\), which implies

$$ u(t)\leq \sum_{k=0}^{n-1}A^{k} a+A^{n} u(t) \quad \bigl(A^{0} a=a \bigr). $$
(12)

We now prove that

$$ A^{n} u(t)\leq \int_{0}^{t} \frac{(g(t,s)\varGamma (\alpha ))^{n}}{ \varGamma (n\alpha )}(t-s)^{n\alpha -1}u(s) \,ds $$
(13)

by induction. For \(n=1\), the proof is trivial. Assume that Eq. (13) holds for \(n=k\). Then, for \(n=k+1\), we obtain

$$\begin{aligned} A^{k+1}u(t) =&A \bigl(A^{k} u(t) \bigr) = \int_{0}^{t} g(t,s) (t-s)^{\alpha -1}A ^{k} u(s)\,ds \\ \leq & \int_{0}^{t} g(t,s) (t-s)^{\alpha -1} \int_{0}^{s} \frac{(g(s, \tau )\varGamma (\alpha ))^{k}}{\varGamma (k\alpha )}(s-\tau )^{k\alpha -1}u( \tau )\,d\tau \,ds \\ \leq & \int_{0}^{t} g(t,\tau ) \int_{0}^{s} \frac{(g(t,\tau )\varGamma ( \alpha ))^{k}}{\varGamma (k\alpha )}(t-s)^{\alpha -1}(s- \tau )^{k\alpha -1}u(\tau )\,d\tau \,ds \\ =& \int_{0}^{t} {g(t,\tau )}^{k+1} \biggl[ \int_{\tau }^{t} \frac{{\varGamma ( \alpha )}^{k}}{\varGamma (k\alpha )}(t-s)^{\alpha -1}(s- \tau )^{k\alpha -1} \,ds \biggr] u(\tau )\,d\tau \\ =& \int_{0}^{t} \frac{{g(t,\tau )}^{k+1}(\varGamma (\alpha ))^{k}}{ \varGamma (k\alpha )}B(\alpha ,k\alpha ) (t-\tau )^{(k+1)\alpha -1}u( \tau )\,d\tau \\ =& \int_{0}^{t} \frac{(g(t,s)\varGamma (\alpha ))^{k+1}}{\varGamma ((k+1) \alpha )}(t-s)^{(k+1)\alpha -1}u(s) \,ds. \end{aligned}$$

By mathematical induction, the inequality (13) holds for all \(n\in \mathbf{N}\). Replaced \(u(t)\) by a in (13) we deduce that \(A^{k} a\leq a\int_{0}^{t} \frac{(g(t,s)\varGamma (\alpha ))^{k}}{ \varGamma (k\alpha )}(t-s)^{k\alpha -1}\,ds\), \(k=1,2,\ldots \) . Similar to the proof of Lemma 3.4 of [10] we can verify that

$$ A^{n} u(t)\leq \int_{0}^{t} \frac{(M\varGamma (\alpha ))^{n}}{\varGamma (n \alpha )}(t-s)^{n\alpha -1}u(s) \,ds\rightarrow 0 $$

as \(n\rightarrow \infty \) uniformly in \(t\in [0, T]\). Finally, letting \(n\rightarrow \infty \) in (12), we get

$$ u(t)\leq \sum_{n=0}^{\infty }A^{n} a \leq a+a \int_{0}^{t}\sum_{n=1} ^{\infty } \frac{(g(t,s)\varGamma (\alpha ))^{n}}{\varGamma (n\alpha )}(t-s)^{n \alpha -1}\,ds, $$

i.e., the inequality (11) holds. The lemma is proved. □

3 Existence results

In this section, we investigate the existence for BVP (1). For convenience we list the hypothesis.

(\(H_{1}\)):

\(f:[0,T]\times \mathbf{R} \rightarrow \mathbf{R} \) is continuous.

(\(H_{2}\)):

There exists a constant \(L>0 \) such that

$$ \bigl\vert f(t,x_{1})-f(t,x_{2}) \bigr\vert \leq L \vert x_{1}-x_{2} \vert $$

for all \(x_{1}, x_{2}\in \mathbf{R}\) and \(t\in [0,T]\).

(\(H_{3}\)):

There exists \(u\in C([0,T],\mathbf{R}^{+})\) such that

$$ \bigl\vert f(t,x) \bigr\vert \leq u(t) $$

for each \(t\in [0,T]\) and \(x\in \mathbf{R}\).

(\(H_{4}\)):

There exist a continuous function \(\phi_{1}(t)\in C([0,T], \mathbf{R}^{+})\) and a nondecreasing function \(\phi_{2}\in C([0,T], \mathbf{R}^{+})\) such that

$$ \bigl\vert f(t,x) \bigr\vert \leq \phi_{1}(t)\phi_{2} \bigl( \vert x \vert \bigr) $$

for each \(t\in [0,T]\) and \(x\in \mathbf{R}\).

Theorem 3.1

Assume that (\(H_{1}\)) and (\(H_{2}\)) hold. If

$$ M_{1}+LM_{2}< 1, $$

then the boundary value problem (1) has a unique solution in \(C([0,T],\mathbf{R})\).

Proof

We define an operator \(S: C([0,T],\mathbf{R})\rightarrow C([0,T],\mathbf{R})\) by

$$\begin{aligned} Sx(t)=\frac{\gamma_{3}}{\varTheta }t^{\alpha -1}+ \int_{0}^{T} G_{1}(t,s)x(s) \,ds+ \int_{0}^{T} G_{2}(t,s)f \bigl(s,x(s) \bigr) \,ds, \end{aligned}$$

for each \(t\in (0,T)\).

By Lemma 2.3, \(x\in C([0,T],\mathbf{R})\) is a solution of problem (1) if and only if x is a fixed point of S. We now prove that S has a fixed point. Taking \(x_{1},x_{2}\in C([0,T],\mathbf{R})\) arbitrary, according to (\(H_{2}\)), we find

$$\begin{aligned}& \bigl\vert Sx_{1}(t)-Sx_{2}(t) \bigr\vert \\& \quad \leq \int_{0}^{T} \bigl\vert G_{1}(t,s) \bigr\vert \bigl\vert x_{1}(s)-x _{2}(s) \bigr\vert \,ds + \int_{0}^{T} \bigl\vert G_{2}(t,s) \bigr\vert \bigl\vert f \bigl(s,x_{1}(s) \bigr)-f \bigl(s,x_{2}(s) \bigr) \bigr\vert \,ds \\& \quad \leq \Vert x_{1}-x_{2} \Vert \int_{0}^{T} \bigl\vert G_{1}(t,s) \bigr\vert \,ds+L \Vert x_{1}-x _{2} \Vert \int_{0}^{T} \bigl\vert G_{2}(t,s) \bigr\vert \,ds \\& \quad \leq (M_{1}+LM_{2}) \Vert x_{1}-x_{2} \Vert , \end{aligned}$$

and hence

$$ \Vert Sx_{1}-Sx_{2} \Vert \leq (M_{1}+LM_{2}) \Vert x_{1}-x_{2} \Vert . $$

Since \(M_{1}+LM_{2}<1\), S is a contraction. By Banach contraction principle, S has a unique fixed point in \(C([0,T],\mathbf{R})\), i.e., the boundary value problem (1) has a unique solution. This completes the proof. □

Theorem 3.2

Assume that (\(H_{1}\)) and (\(H_{3}\)) hold. If

$$ M_{1}< 1, $$

then the boundary value problem (1) has at least one solution in \(C([0,T],\mathbf{R})\).

Proof

We define mappings A and B from \(C((0,T), \mathbf{R})\) into itself by

$$\begin{aligned} Ax(t)=\frac{\gamma_{3}}{\varTheta }t^{\alpha -1}+ \int_{0}^{T} G_{1}(t,s)x(s) \,ds \end{aligned}$$

and

$$\begin{aligned} Bx(t)= \int_{0}^{T} G_{2}(t,s)f \bigl(s,x(s) \bigr) \,ds. \end{aligned}$$

It is easy to verify that B is continuous on \(C([0,T],\mathbf{R})\), since \(G_{2}\) and f are continuous. Further, since \(M_{1}<1\), we can choose a constant \(r>0\) large enough such that \(M_{1}+\frac{M_{2} \Vert u \Vert }{r}+\frac{\gamma_{3} T^{\alpha -1}}{r\varTheta }<1\), i.e., \(rM_{1}+M _{2} \Vert u \Vert +\frac{\gamma_{3} T^{\alpha -1}}{\varTheta }< r \), where u belongs to \(C([0,T],{\mathbf{R}}^{+})\) such that \(\vert f(t,x) \vert \leq u(t)\), according to (\(H_{3}\)). Set \(B_{r}=\{x\in C((0,T),\mathbf{R}): \Vert x \Vert \leq r\}\). Then \(B_{r}\) is nonempty, bounded, closed and convex. Moreover, for any \(x,y\in B_{r}\) and \(t\in [0,T] \), we have

$$\begin{aligned} \bigl\vert Ax(t) \bigr\vert \leq & \biggl\vert \frac{\gamma_{3} t^{\alpha -1}}{\varTheta } \biggr\vert + \int_{0} ^{T} \bigl\vert G_{1}(t,s) \bigr\vert \bigl\vert x(s) \bigr\vert \,ds \\ \leq & rM_{1}+\frac{\gamma_{3} T^{\alpha -1}}{\varTheta } \end{aligned}$$

and

$$\begin{aligned} \bigl\vert By(t) \bigr\vert \leq & \int_{0}^{T} \bigl\vert G_{2}(t,s) \bigr\vert \bigl\vert f \bigl(s,x(s) \bigr) \bigr\vert \,ds \\ \leq & M_{2} \Vert u \Vert . \end{aligned}$$

Thus, \(\vert Ax(t)+By(t) \vert \leq rM_{1}+M_{2} \Vert u \Vert +\frac{\gamma_{3} T^{ \alpha -1}}{\varTheta }< r \), i.e., \(Ax+By\in B_{r}\).

Next we prove that A is a contraction. In fact, for any \(x, y\in C((0,T), \mathbf{R})\) and \(t\in [0, 1]\),

$$\begin{aligned} \bigl\vert Ax(t)-Ay(t) \bigr\vert \leq \int_{0}^{T} \bigl\vert G_{1}(t,s) \bigr\vert \bigl\vert x(t)-y(t) \bigr\vert \,ds \leq M _{1} \Vert x-y \Vert . \end{aligned}$$

It follows that \(\Vert Ax-Ay \Vert \leq M_{1} \Vert x-y \Vert \). Since \(M_{1}<1\), we know that A is a contraction.

Finally, we have to show that B is compact. Take any bounded subset \(U\subseteq C([0,T],\mathbf{R}) \). Then there exists a constant \(r_{0}>0\) such that \(U=\{u\in U: \Vert u \Vert \leq r_{0}\}\). We prove that BU is bounded and equicontinuous. In fact, for any \(x\in U \), we have

$$\begin{aligned} \bigl\vert Bx(t) \bigr\vert \leq \int_{0}^{T} \bigl\vert G_{2}(t,s) \bigr\vert \bigl\vert f \bigl(s,x(s) \bigr) \bigr\vert \,ds \leq M_{2} \Vert u \Vert \leq M_{2}r_{0} \end{aligned}$$

for each \(t\in (0,T)\). Hence BU is bounded. Further, for any \(0\leq t_{1}< t_{2}\leq T\) and \(x\in U \), we have

$$\begin{aligned} \bigl\vert Bx(t_{2})-Bx(t_{1}) \bigr\vert =& \biggl\vert \int_{0}^{T} G_{2}(t_{2},s)f \bigl(s,x(s) \bigr)- \int _{0}^{T} G_{2}(t_{1},s)f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ \leq & \biggl\vert \int_{0}^{T} \frac{\mu }{\varTheta \lambda \varGamma (\alpha - \gamma_{1})} \bigl(t_{1}^{\alpha -1}-t_{2}^{\alpha -1} \bigr) (T-s)^{\alpha -\gamma _{1}-1}f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ & {} + \biggl\vert \int_{0}^{\eta }\frac{1}{\varTheta \lambda \varGamma (\alpha +\gamma _{2})} \bigl(t_{1}^{\alpha -1}-t_{2}^{\alpha -1} \bigr) (\eta -s)^{\alpha +\gamma _{2}-1}f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ & {} + \biggl\vert \int_{0}^{t_{1}} \frac{1}{\lambda \varGamma (\alpha )} \bigl[(t_{2}-s)^{ \alpha -1}-(t_{1}-s)^{\alpha -1} \bigr]f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ & {} + \biggl\vert \int_{t_{1}}^{t_{2}} \frac{1}{\lambda \varGamma (\alpha )}(t_{2}-s)^{ \alpha -1}f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ \leq & \frac{\mu (t_{2}^{\alpha -1}-t_{1}^{\alpha -1})}{\varTheta \lambda \varGamma (\alpha -\gamma_{1})} \int_{0}^{T} (T-s)^{\alpha -\gamma _{1}-1} \,ds \Vert u \Vert \\ & {} +\frac{t_{2}^{\alpha -1}-t_{1}^{\alpha -1}}{\varTheta \lambda \varGamma (\alpha +\gamma_{2})} \int_{0}^{\eta }(\eta -s)^{\alpha +\gamma_{2}-1} \,ds \Vert u \Vert \\ & {} +\frac{1}{\lambda \varGamma (\alpha )} \int_{0}^{t_{1}} \bigl\vert (t_{2}-s)^{ \alpha -1}-(t_{1}-s)^{\alpha -1} \bigr\vert \,ds \Vert u \Vert \\ & {} +\frac{1}{\lambda \varGamma (\alpha )} \int_{t_{1}}^{t_{2}} (t_{2}-s)^{ \alpha -1} \,ds \Vert u \Vert \\ =& \frac{\mu T^{\alpha -\gamma_{1}}(t_{2}^{\alpha -1}-t_{1}^{\alpha -1})}{\varTheta \lambda \varGamma (\alpha -\gamma_{1}+1)}r_{0} \\ & {} +\frac{\eta^{\alpha +\gamma_{2}}(t_{2}^{\alpha -1}-t_{1}^{\alpha -1})}{ \varTheta \lambda \varGamma (\alpha +\gamma_{2}+1)}r_{0} \\ & {} +\frac{1}{\lambda \varGamma (\alpha +1)} \bigl[t_{2}^{\alpha }-t_{1}^{ \alpha }+2(t_{2}-t_{1})^{\alpha } \bigr]r_{0}. \end{aligned}$$

We can see from the above inequality that \(\vert Bx(t_{2})-Bx(t_{1}) \vert \rightarrow 0\) as \(t_{2}-t_{1}\rightarrow 0\), and the convergence is independent on x, \(t_{1}\) and \(t_{2}\). This shows that BU is equicontinuous. An employment of Arzelà–Ascoli theorem shows that B is compact. Now, we apply Krasnoselskii’s fixed point theorem on operator A and B to deduce that there exists at least one x such that \(Ax+Bx=x\), which is the solution of the boundary value problem (1). □

Theorem 3.3

Assume that (\(H_{1}\)) and (\(H_{4}\)) hold. If

$$ M_{1}+M_{2} \Vert \phi_{1} \Vert \limsup _{r\rightarrow \propto } \frac{\phi_{2}(r)}{r}< 1, $$

then the boundary value problem (1) has at least one solution in \(C([0,T],\mathbf{R})\).

Proof

Define a mapping \(S: C([0,T],\mathbf{R})\rightarrow C([0,T], \mathbf{R})\) by

$$ Sx(t)=\frac{\gamma_{3}}{\varTheta }t^{\alpha -1}+ \int_{0}^{T} G_{1}(t,s)x(s) \,ds+ \int_{0}^{T} G_{2}(t,s)f \bigl(s,x(s) \bigr) \,ds $$

for \(t\in [0,T]\). It is easy to prove that S is continuous. In order to apply Schauder’s fixed point theorem, we only need to show that S is compact.

Firstly, we take any bounded subset \(Q\subseteq C([0,T],\mathbf{R})\). Then there exists q (\(q>0\)) satisfying that \(Q\subseteq B_{q}=\{x \in C([0,T],\mathbf{R}): \Vert x \Vert \leq q\}\). Notice that \(B_{q}\) is a closed convex and bounded subset. For any \(x\in B_{q}\), we have

$$\begin{aligned} \bigl\vert Sx(t) \bigr\vert \leq & \biggl\vert \frac{\gamma_{3}t^{\alpha -1}}{\varTheta } \biggr\vert + \int_{0}^{T} \bigl\vert G_{1}(t,s) \bigr\vert \bigl\vert x(s) \bigr\vert \,ds+ \int_{0}^{T} \bigl\vert G_{2}(t,s) \bigr\vert \bigl\vert f \bigl(s,x(s) \bigr) \bigr\vert \,ds \\ \leq & \frac{\gamma_{3}T^{\alpha -1}}{\varTheta }+ \Vert x \Vert \int_{0}^{T} \bigl\vert G _{1}(t,s) \bigr\vert \,ds+ \Vert \phi_{1} \Vert \phi_{2} \bigl( \Vert x \Vert \bigr) \int_{0}^{T} \bigl\vert G_{2}(t,s) \bigr\vert \,ds, \\ \leq & \frac{\gamma_{3}T^{\alpha -1}}{\varTheta }+TM_{1}q+TM_{2} \Vert \phi _{1} \Vert \phi_{2}(q), \end{aligned}$$

which means \(SB_{q}\), and therefore SQ, is uniformly bounded in \(C((0,T),\mathbf{R})\). For \(0\leq t_{1}< t_{2}\leq T\) and any \(x\in B_{q}\),

$$\begin{aligned}& \begin{aligned} \bigl\vert Sx(t_{1})-Sx(t_{2}) \bigr\vert &\leq \frac{\gamma_{3}}{\varTheta } \bigl(t_{2}^{\alpha -1}-t_{1}^{\alpha -1} \bigr)+ \biggl\vert \int_{0}^{T} G_{1}(t_{2},s)x(s)- \int_{0}^{T} G _{1}(t_{1},s)x(s) \,ds \biggr\vert \\ & \quad {} + \biggl\vert \int_{0}^{T} G_{2}(t_{2},s)x(s)- \int_{0}^{T} G_{2}(t_{1},s)x(s) \,ds \biggr\vert \\ &= P_{1}+P_{2}+P_{3}; \end{aligned} \\ & P_{1}=\frac{\gamma_{3}}{\varTheta } \bigl(t_{2}^{\alpha -1}-t_{1}^{\alpha -1} \bigr), \\ & \begin{aligned} P_{2} &= \biggl\vert \int_{0}^{T} G_{1}(t_{2},s)x(s)- \int_{0}^{T} G_{1}(t_{1},s)x(s) \,ds \biggr\vert \\ &\leq \biggl\vert \int_{0}^{T} \frac{\mu }{\varTheta \lambda \varGamma (\alpha - \beta -\gamma_{1})} \bigl(t_{2}^{\alpha -1}-t_{1}^{\alpha -1} \bigr) (T-s)^{\alpha -\beta -\gamma_{1}-1}x(s) \,ds \biggr\vert \\ & \quad {} + \biggl\vert \int_{0}^{\eta }\frac{1}{\varTheta \lambda \varGamma (\alpha -\beta + \gamma_{2})} \bigl(t_{2}^{\alpha -1}-t_{1}^{\alpha -1} \bigr) (\eta -s)^{\alpha - \beta +\gamma_{2}-1}x(s) \,ds \biggr\vert \\ & \quad {} + \biggl\vert \int_{0}^{t_{1}} \frac{1}{\lambda \varGamma (\alpha -\beta )} \bigl[(t _{2}-s)^{\alpha -\beta -1}-(t_{1}-s)^{\alpha -\beta -1} \bigr]x(s) \,ds \biggr\vert \\ & \quad {} + \biggl\vert \int_{t_{1}}^{t_{2}} \frac{1}{\lambda \varGamma (\alpha -\beta )}(t _{2}-s)^{\alpha -\beta -1}x(s) \,ds \biggr\vert \\ &\leq \frac{\mu (t_{2}^{\alpha -1}-t_{1}^{\alpha -1})}{\varTheta \lambda \varGamma (\alpha -\beta -\gamma_{1})} \int_{0}^{T} (T-s)^{\alpha -\beta -\gamma_{1}-1} \,ds \Vert x \Vert \\ & \quad {} +\frac{t_{2}^{\alpha -1}-t_{1}^{\alpha -1}}{\varTheta \lambda \varGamma (\alpha -\beta +\gamma_{2})} \int_{0}^{\eta }(\eta -s)^{\alpha -\beta +\gamma_{2}-1} \,ds \Vert x \Vert \\ & \quad {} +\frac{1}{\lambda \varGamma (\alpha -\beta )} \int_{0}^{t_{1}} \bigl\vert (t_{2}-s)^{ \alpha -\beta -1}-(t_{1}-s)^{\alpha -\beta -1} \bigr\vert \,ds \Vert x \Vert \\ & \quad {} +\frac{1}{\lambda \varGamma (\alpha -\beta )} \int_{t_{1}}^{t_{2}} (t _{2}-s)^{\alpha -\beta -1} \,ds \Vert x \Vert \\ &=\quad \frac{\mu (t_{2}^{\alpha -1}-t_{1}^{\alpha -1})T^{\alpha -\beta - \gamma_{1}}q}{\varTheta \lambda \varGamma (\alpha -\beta -\gamma_{1})} \\ & \quad {} +\frac{(t_{2}^{\alpha -1}-t_{1}^{\alpha -1}) \eta^{\alpha -\beta -\gamma_{1}}q}{\varTheta \lambda \varGamma (\alpha - \beta +\gamma_{2})} \\ & \quad {} +\frac{q}{\lambda \varGamma (\alpha -\beta )} \bigl[t_{2}^{\alpha -\beta }-t _{1}^{\alpha -\beta }+2(t_{2}-t_{1})^{\alpha -\beta } \bigr], \end{aligned} \\ & P_{3} = \biggl\vert \int_{0}^{T} G_{2}(t_{2},s)f \bigl(s,x(s) \bigr)- \int_{0}^{T} G_{2}(t _{1},s)f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ & \hphantom{P_{3}} \leq \biggl\vert \int_{0}^{T} \frac{\mu }{\varTheta \lambda \varGamma (\alpha - \gamma_{1})} \bigl(t_{1}^{\alpha -1}-t_{2}^{\alpha -1} \bigr) (T-s)^{\alpha -\gamma _{1}-1}f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ & \hphantom{P_{3}} \quad {} + \biggl\vert \int_{0}^{\eta }\frac{1}{\varTheta \lambda \varGamma (\alpha +\gamma _{2})} \bigl(t_{1}^{\alpha -1}-t_{2}^{\alpha -1} \bigr) (\eta -s)^{\alpha +\gamma _{2}-1}f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ & \hphantom{P_{3}} \quad {} + \biggl\vert \int_{0}^{t_{1}} \frac{1}{\lambda \varGamma (\alpha )} \bigl[(t_{2}-s)^{ \alpha -1}-(t_{1}-s)^{\alpha -1} \bigr]f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ & \hphantom{P_{3}}\quad {} + \biggl\vert \int_{t_{1}}^{t_{2}} \frac{1}{\lambda \varGamma (\alpha )}(t_{2}-s)^{ \alpha -1}f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ & \hphantom{P_{3}}\leq \frac{\mu (t_{2}^{\alpha -1}-t_{1}^{\alpha -1})}{\varTheta \lambda \varGamma (\alpha -\gamma_{1})} \biggl[ \int_{0}^{T} (T-s)^{\alpha - \gamma_{1}-1} \,ds \biggr] \Vert \phi_{1} \Vert \phi_{2} \bigl( \Vert x \Vert \bigr) \\ & \hphantom{P_{3}}\quad {} +\frac{(t_{2}^{\alpha -1}-t_{1}^{\alpha -1})}{\varTheta \lambda \varGamma (\alpha +\gamma_{2})} \biggl[ \int_{0}^{\eta }(\eta -s)^{\alpha +\gamma _{2}-1} \,ds \biggr] \Vert \phi_{1} \Vert \phi_{2} \bigl( \Vert x \Vert \bigr) \\ & \hphantom{P_{3}}\quad {} +\frac{1}{\lambda \varGamma (\alpha )} \biggl[ \int_{0}^{t_{1}} \bigl\vert (t_{2}-s)^{ \alpha -1}-(t_{1}-s)^{\alpha -1} \bigr\vert \,ds \biggr] \Vert \phi_{1} \Vert \phi_{2} \bigl( \Vert x \Vert \bigr) \\ & \hphantom{P_{3}}\quad {} +\frac{1}{\lambda \varGamma (\alpha )} \int_{t_{1}}^{t_{2}} (t_{2}-s)^{ \alpha -1} \,ds \Vert \phi_{1} \Vert \phi_{2} \bigl( \Vert x \Vert \bigr) \\ & \hphantom{P_{3}}= \frac{\mu T^{\alpha -\gamma_{1}}(t_{2}^{\alpha -1}-t_{1}^{\alpha -1})}{\varTheta \lambda \varGamma (\alpha -\gamma_{1}+1)} \Vert \phi_{1} \Vert \phi _{2}(q) \\ & \hphantom{P_{3}}\quad {} +\frac{\eta^{\alpha +\gamma_{2}}(t_{2}^{\alpha -1}-t_{1}^{\alpha -1})}{ \varTheta \lambda \varGamma (\alpha +\gamma_{2}+1)} \Vert \phi_{1} \Vert \phi_{2}(q) \\ & \hphantom{P_{3}}\quad {} +\frac{1}{\lambda \varGamma (\alpha +1)} \bigl[t_{2}^{\alpha }-t_{1}^{ \alpha }+2(t_{2}-t_{1})^{\alpha } \bigr] \Vert \phi_{1} \Vert \phi_{2}(q). \end{aligned}$$

It is trivial that \(P_{1}\), \(P_{2} \) and \(P_{3}\) all tend to 0 as \(t_{2}-t_{1}\rightarrow 0\). Hence, \(\vert Sx(t_{2})-Sx(t_{1}) \vert \rightarrow 0\) (\(t_{2}-t_{1}\rightarrow 0\)). Notice that the convergence is independent on x, \(t_{1}\) and \(t_{2}\). It follows that \(SB_{q}\) is equicontinuous. An application of the Arzelà–Ascoli Theorem yields that \(SB_{q}\) is compact. Therefore, we have shown that S maps bounded subsets into compact subset, i.e., S is a compact mapping.

Now, from the condition \(M_{1}+M_{2} \Vert \phi_{1} \Vert \lim_{r\rightarrow \propto }\sup\frac{\phi_{2}(r)}{r}<1\), we can choose a positive r large enough, such that

$$ M_{1}+M_{2} \Vert \phi_{1} \Vert \frac{\phi_{2}(r)}{r}+\frac{\gamma_{3}T^{ \alpha -1}}{r\varTheta }< 1, $$

i.e., \(M_{1}r+M_{2} \Vert \phi_{1} \Vert \phi_{2}(r)+\frac{\gamma_{3} T^{\alpha -1}}{\varTheta }< r\). Hence, we can take \(C>0\) such that \(M_{1}C+M_{2} \Vert \phi_{1} \Vert \phi_{2}(C)+\frac{\gamma_{3} T^{\alpha -1}}{\varTheta }< C\). Let \(U=\{x\in C((0,T),\mathbf{R}): \Vert x \Vert \leq C\}\). Then \(S:\overline{U} \rightarrow C((0,T),\mathbf{R})\) is compact and continuous. If there exist \(\lambda \in (0,1)\) and \(x\in \overline{U}\) such that \(x=\lambda Sx\), then, for every \(t\in (0,T)\),

$$\begin{aligned} \bigl\vert x(t) \bigr\vert = &\bigl\vert \lambda Sx(t) \bigr\vert \leq \bigl\vert Sx(t) \bigr\vert \\ \leq & \biggl\vert \frac{\gamma_{3}t^{\alpha -1}}{\varTheta } \biggr\vert + \biggl\vert \int_{0}^{T} G_{1}(t,s)x(s) \,ds \biggr\vert + \biggl\vert \int_{0}^{T} G_{2}(t,s)f \bigl(s,x(s) \bigr) \,ds \biggr\vert \\ \leq &\frac{\gamma_{3} T^{\alpha -1}}{\varTheta }+M_{1}C+M_{2} \Vert \phi _{1} \Vert \phi_{2} \bigl( \Vert x \Vert \bigr) \\ \leq & M_{1}C+M_{2} \Vert \phi_{1} \Vert \phi_{2}(C)+\frac{\gamma_{3} T^{ \alpha -1}}{\varTheta }. \end{aligned}$$

It then follows that \(C= \Vert x \Vert \leq M_{1}C+M_{2} \Vert \phi_{1} \Vert \phi_{2}(C)+\frac{ \gamma_{3} T^{\alpha -1}}{\varTheta }< C\), which contradict to the fact that \(x\in \overline{U}\). Thus, \(x\neq \lambda Sx\) for each \(\lambda \in (0,1)\) and \(x\in \overline{U}\). By the Leray Schauder alternative, S has at least one fixed point, which is the solution to the boundary value problem (1). This completes the proof. □

4 Stability analysis

In this section, we study Hyers–Ulam stability of the boundary value problem

$$ \textstyle\begin{cases} \lambda D^{\alpha }_{0}x(t)+D^{\beta }_{0}x(t) = f(t,x(t)), \quad 0\leq t\leq T, \\ x(0)=0, \quad\quad x(T)=\gamma . \end{cases} $$
(14)

Definition 4.1

The boundary value problem (14) is Hyers–Ulam stable if there exists a real constant \(c>0\), such that for any \(\varepsilon >0\), and for every solution \(y(t)\in C([0,T],\mathbf{R})\) of the inequality

$$ \bigl\vert \lambda D^{\alpha }_{0}y(t)+D^{\beta }_{0}y(t)-f \bigl(t,y(t) \bigr) \bigr\vert \leq \varepsilon , \quad t\in [0,T], $$

there exists a solution \(x(t)\in C([0,T],\mathbf{R})\) of problem (14) with

$$ \bigl\vert y(t)-x(t) \bigr\vert \leq c\varepsilon , \quad t\in [0,T]. $$

Theorem 4.2

Assume that (\(H_{1}\)) and (\(H_{2}\)) hold. Then the solution of the boundary value problem (14) is Hyers–Ulam stable.

Proof

For \(\varepsilon >0\), and each solution \(y(t)\in C([0,T], \mathbf{R})\) of the inequality

$$ \bigl\vert \lambda D^{\alpha }_{0} y(t)+D^{\beta }_{0}y(t)-f \bigl(t,y(t) \bigr) \bigr\vert \leq \varepsilon , \quad t\in [0,T], $$

we can find a function \(g(t)\) satisfying \(\lambda D^{\alpha }_{0} y(t)+D ^{\beta }_{0} y(t)=f(t,y(t))+g(t)\) and \(\vert g(t) \vert \leq \varepsilon \). It follows that

$$\begin{aligned} y(t)&=-\frac{1}{\lambda }I^{\alpha -\beta }_{0} y(t)+ \frac{1}{\lambda }I^{\alpha }_{0} f \bigl(t,y(t) \bigr)+ \frac{1}{\lambda }I^{\alpha }_{0} g(t) \\ &\quad{} +\frac{t ^{\alpha -1}}{T^{\alpha -1}} \biggl[y(T)+\frac{1}{\lambda }I^{\alpha -\beta }_{0} y(T)- \frac{1}{\lambda }I^{\alpha }_{0} f \bigl(T,y(T) \bigr)- \frac{1}{ \lambda }I^{\alpha }_{0} g(T) \biggr]. \end{aligned}$$

Let \(x(t)\in C([0,T],\mathbf{R})\) be the unique solution of (14). Then \(x(t)\) is given by

$$ x(t)=-\frac{1}{\lambda }I^{\alpha -\beta }_{0} x(t)+ \frac{1}{\lambda }I^{\alpha }_{0} f \bigl(t,x(t) \bigr)+ \frac{t^{\alpha -1}}{T^{\alpha -1}} \biggl[x(T)+\frac{1}{ \lambda }I^{\alpha -\beta }_{0} x(T)-\frac{1}{\lambda }I^{\alpha } _{0} f \bigl(T,x(T) \bigr) \biggr]. $$

Then we have

$$\begin{aligned} \bigl\vert y(t)-x(t) \bigr\vert \leq & \frac{1}{\lambda }I^{\alpha -\beta }_{0} \bigl\vert y(t)-x(t) \bigr\vert +\frac{1}{ \lambda }I^{\alpha }_{0} \bigl\vert f \bigl(t,y(t) \bigr)-f \bigl(t,x(t) \bigr) \bigr\vert \\ & {} +\frac{t^{\alpha -1}}{T^{\alpha -1}} \biggl[\frac{1}{\lambda }I^{\alpha - \beta }_{0} \bigl\vert y(T)-x(T) \bigr\vert +\frac{1}{\lambda }I^{\alpha }_{0} \bigl\vert f \bigl(T,y(T) \bigr)-f \bigl(T,x(T) \bigr) \bigr\vert \biggr] \\ & {} +\frac{1}{\lambda }I^{\alpha }_{0} \bigl\vert g(t) \bigr\vert +\frac{t^{\alpha -1}}{ \lambda T^{\alpha -1}}I^{\alpha }_{0} \bigl\vert g(T) \bigr\vert \\ \leq & \frac{1}{\lambda } \int_{0}^{t} \biggl[\frac{(t-s)^{\alpha -\beta -1}}{ \varGamma (\alpha -\beta )}+L \frac{(t-s)^{\alpha -1}}{\varGamma (\alpha )} \biggr] \bigl\vert y(s)-x(s) \bigr\vert \,ds \\ & {} +\frac{t^{\alpha -1}}{\lambda T^{\alpha -1}} \int_{0}^{T} \biggl[\frac{(T-s)^{ \alpha -\beta -1}}{\varGamma (\alpha -\beta )}+L \frac{(T-s)^{\alpha -1}}{ \varGamma (\alpha )} \biggr] \bigl\vert y(s)-x(s) \bigr\vert \,ds \\ & {} +\frac{1}{\lambda } \int_{0}^{t}\frac{(t-s)^{\alpha -1}}{\varGamma ( \alpha )} \bigl\vert g(s) \bigr\vert \,ds+\frac{t^{\alpha -1}}{\lambda T^{\alpha -1}} \int_{0} ^{T}\frac{(T-s)^{\alpha -1}}{\varGamma (\alpha )} \bigl\vert g(s) \bigr\vert \,ds \\ \leq & \frac{1}{\lambda } \int_{0}^{t} \biggl[\frac{(t-s)^{\alpha -\beta -1}}{ \varGamma (\alpha -\beta )}+L \frac{(t-s)^{\alpha -1}}{\varGamma (\alpha )} \biggr] \bigl\vert y(s)-x(s) \bigr\vert \,ds \\ & {} +\frac{1}{\lambda } \int_{0}^{T} \biggl[\frac{(T-s)^{\alpha -\beta -1}}{ \varGamma (\alpha -\beta )}+L \frac{(T-s)^{\alpha -1}}{\varGamma (\alpha )} \biggr] \bigl\vert y(s)-x(s) \bigr\vert \,ds \\ & {} +2\varepsilon \frac{1}{\lambda } \int_{0}^{T}\frac{(T-s)^{\alpha -1}}{ \varGamma (\alpha )}\,ds \\ \leq & \frac{1}{\lambda } \int_{0}^{t} \biggl[\frac{(t-s)^{\alpha -\beta -1}}{ \varGamma (\alpha -\beta )}+L \frac{(t-s)^{\alpha -1}}{\varGamma (\alpha )} \biggr] \bigl\vert y(s)-x(s) \bigr\vert \,ds \\ & {} +M(\varepsilon )\varepsilon +\frac{2T^{\alpha }}{\lambda \varGamma ( \alpha +1)}\varepsilon , \end{aligned}$$

where \(\frac{1}{\lambda }\int_{0}^{T}[\frac{(T-s)^{\alpha -\beta -1}}{ \varGamma (\alpha -\beta )}+L\frac{(T-s)^{\alpha -1}}{\varGamma (\alpha )}] \vert y(s)-x(s) \vert \,ds \leq M(\varepsilon )\varepsilon \) and \(M(\varepsilon )\) is a constant dependent on ε. Let \(g(t,s)=\frac{1}{\lambda \varGamma ( \alpha -\beta )}+L\frac{(t-s)^{\beta }}{\lambda \varGamma (\alpha )}\) and \(\overline{M}=M(\varepsilon )+\frac{2T^{\alpha }}{\lambda \varGamma ( \alpha +1)}\). Then

$$ \bigl\vert y(t)-x(t) \bigr\vert \leq \overline{M}\varepsilon + \int_{0}^{t} g(t,s) (t-s)^{ \alpha -\beta -1} \bigl\vert y(s)-x(s) \bigr\vert \,ds. $$

We note that \(g(t,s)\leq \frac{1}{\lambda \varGamma (\alpha -\beta )}+L\frac{T ^{\beta }}{\lambda \varGamma (\alpha )}\) (=M). Hence, in view of Lemma 3.4,

$$\begin{aligned} \bigl\vert y(t)-x(t) \bigr\vert \leq & \overline{M}\varepsilon + \overline{M}\varepsilon \int_{0}^{t} \sum_{n=1}^{\infty } \frac{(g(t,s)\varGamma (\alpha -\beta ))^{n}}{ \varGamma (n(\alpha -\beta ))}(t-s)^{n(\alpha -\beta )-1}\,ds \\ \leq & \overline{M}\varepsilon +\overline{M}\varepsilon \int_{0}^{t} \sum_{n=1}^{\infty } \frac{(M\varGamma (\alpha -\beta ))^{n}}{\varGamma (n( \alpha -\beta ))}(t-s)^{n(\alpha -\beta )-1}\,ds \\ =&\overline{M}\varepsilon +\overline{M}\varepsilon \sum _{n=1}^{ \infty }\frac{(M\varGamma (\alpha -\beta ))^{n}}{\varGamma (n(\alpha - \beta )+1)}T^{n(\alpha -\beta )} \\ \leq &\overline{M}\varepsilon E_{\alpha -\beta } \bigl(MT^{(\alpha -\beta )}\varGamma (\alpha -\beta ) \bigr). \end{aligned}$$

Let \(c=\overline{M}E_{\alpha -\beta }(MT^{(\alpha -\beta )}\varGamma ( \alpha -\beta ))\). The inequality

$$ \bigl\vert y(t)-x(t) \bigr\vert \leq c\varepsilon $$

holds. Thus, the boundary value problem (14) is Hyers–Ulam stable. □

5 Examples

Example 5.1

Let us consider the following multiply three-term fractional differential equation

$$ \textstyle\begin{cases} \frac{4}{5}D^{\frac{3}{2}}_{0}x(t)+D^{\frac{5}{4}}_{0}x(t) = t^{2} \sin(x(t)), \quad 0< t< {\frac{1}{4}}, \\ x(0)=0, \quad\quad \frac{1}{8}D^{\frac{1}{8}}_{0}x(\frac{1}{4})+I^{\frac{3}{4}}_{0}x( \frac{1}{8})=\frac{1}{16}. \end{cases} $$
(15)

Here \(\alpha =\frac{3}{2}\), \(\beta =\frac{5}{4}\), \(\lambda = \frac{4}{5}\), \(\mu =\frac{1}{8}\), \(\gamma_{1}=\frac{1}{8}<\alpha - \beta \), \(\gamma_{2}=\frac{3}{4}\), \(\gamma_{3}=\frac{1}{16}\), \(T=\frac{1}{4}\), \(\eta =\frac{1}{8}\) and \(f(t,x)={t^{2}}\sin x\). It is evident that \(\vert f(t,x_{1})-f(t,x_{2}) \vert <(\frac{1}{4})^{2} \vert x_{1}-x_{2} \vert < \vert x _{1}-x_{2} \vert \), which satisfies condition \((H_{2})\). So, we can select \(L=1\). We can calculate that \(\varTheta =0.9090913801766\), \(M_{1}\leq 0.4588930235784\), \(M_{2}\leq 0.0465184974808\). So, \(M_{1}+LM_{2}\leq 0.5054115210592<1\). Therefore, by applying Theorem 3.1, we deduce that the boundary value problem (15) has a unique solution on \((0,\frac{1}{4})\).

Let \(g(t,s)=\frac{1}{\lambda \varGamma (\alpha -\beta )}+L\frac{(t-s)^{ \beta }}{\lambda \varGamma (\alpha )}\). Noting that \(g(t,s)\leq \frac{1}{ \lambda \varGamma (\alpha -\beta )}+L\frac{T^{\beta }}{\lambda \varGamma ( \alpha )}\approx 4.7314835278026\) (=M). Let \(x(\frac{1}{4})=1\). By Theorem 4.2, the problem (15) with \(x(\frac{1}{4})=1\) is Hyers–Ulam stable.

Example 5.2

Considering the following boundary value problem which contains Riemann–Liouville fractional derivatives of two orders in a differential equation and the condition

$$ \textstyle\begin{cases} \frac{4}{5}D^{\frac{3}{2}}_{0}x(t)+D^{\frac{5}{4}}_{0}x(t) = t^{2} x ^{\frac{1}{2}}, \quad 0< t< {\frac{1}{8}}, \\ x(0)=0, \quad\quad \frac{1}{16}D^{\frac{1}{8}}_{0}x(\frac{1}{4})+I^{\frac{3}{4}}_{0}x( \frac{1}{16})=\frac{1}{24}. \end{cases} $$
(16)

Here \(\alpha =\frac{3}{2}\), \(\beta =\frac{5}{4}\), \(\lambda = \frac{4}{5}\), \(\mu =\frac{1}{16}\), \(\gamma_{1}=\frac{1}{8}<\alpha - \beta \), \(\gamma_{2}=\frac{3}{4}\), \(\gamma_{3}=\frac{1}{24}\), \(T=\frac{1}{8}\) and \(\eta =\frac{1}{16}\). By direct computation, we have \(\varTheta \approx 0.053013292298\), \(M_{1}\leq 0.2209565547363\), \(M_{2}\leq 0.0111290158488\). Choosing \(\phi_{1}(t)=t^{2}\) and \(\phi_{2}=x^{\frac{1}{2}}\), we can show that \(M_{1}+M_{2} \Vert \phi_{1} \Vert \lim_{r\rightarrow \propto }\sup\frac{\phi_{2}(r)}{r}<1\). Hence, by Theorem 3.3, the problem (16) has at least one solution on \((0,\frac{1}{8})\).

6 Conclusion

In this paper, we study a class of two-term fractional differential equations. We first investigate the Green function of a three-point boundary value problems with mixed fractional differential and integral boundary conditions. Existence results are obtained based on some fixed point theorems. We also study the Hyers–Ulam stability for null boundary conditions. Our results improve and generalize the results in [11, 19, 38] and [20]. Moreover, we present a Gronwall type inequality of fractional order integral by the method of iteration.