1 Introduction

Mathematical modeling is an undeniably powerful tool for systems since a mathematical description of processes allows us to figure out quantitative and qualitative behavior of it in analysis. Moreover, mathematical models involving a fractional order derivative lead to an excellent description for the properties of the behavior of nonlinear systems in various branches of Science and Engineering [17]. From this point of view, fractional order models provide better predictions than integer order models. Therefore, in recent decades, fractional order models have been used in a wide range of fields such as physics, chemistry, biology,engineering, optimal control theory, and finance [826]. Fractional order mathematical models have been recently employed for complex systems with memory and hereditary properties to provide deep understanding of the phenomena since fractional derivatives are non-local operators. It is worth while mentioning that selecting the type of fractional derivative is based on the experimental data to adjust the model to find the evolution of the phenomena with nonlinear behavior and memory. Since the mathematical models involving a Caputo fractional order derivative have classical initial conditions, the Caputo fractional derivative and its extensions are widely used to model systems in diverse areas of sciences. Moreover, the Caputo fractional derivative of a constant is zero unlike the other fractional derivatives. As a result, fractional order models in the Caputo sense are developed to be able to study the complex behavior of real evolution processes with memory and hereditary properties much better. Besides modeling, developing reliable analytical methods to solve fractional differential equations is an emerging area since finding exact solutions of many fractional differential equations is hard. Hence, considerable attention has been given to utilizing new powerful and efficient methods and software programs to obtain analytical and accurate numerical solutions.

The fractional Schrödinger equation (SE) plays an important role in fractional quantum mechanics [2730]. Since the beginning the solution of a space-time SE is a significant topic of physical, mathematical and engineering research, in this article the solution of it is constructed based on the method so-called RPSM which is a well-known analytic technique, with a new transformation [31]. Since the behavior of real world systems is affected by their historical states, modeling them via fractional PDEs is recommended to understand and analyze real world systems. Therefore fractional PDEs have drawn the attention of many scientists in various research areas [3235]. In many cases obtaining the solution of a space-time SE analytically is not always possible, and that is why solving them by numerical methods is very common [3537].

The main purpose of the present study is to establish the space-time SE by using RPSM and some new transformations. The main advantage of these new transformations is in reducing the space-time SE to either time SE or space SE for which applying RPSM is easier.

In the present article, a new transformation is constructed to implement RPSM to obtain approximately the solution for the following space-time fractional SE general dimensionless form:

$$\begin{aligned}& iD_{t}^{\alpha }u+\delta D_{x}^{\beta +1}u+\gamma \bigl\vert u(x,t) \bigr\vert ^{2}u(x,t)+ \phi (x)u(x,t)=0, \end{aligned}$$
(1)
$$\begin{aligned}& u(x,t_{0})=\varphi (x), \end{aligned}$$
(2)
$$\begin{aligned}& u(x_{0},t)=\mu _{1}(t), \end{aligned}$$
(3)
$$\begin{aligned}& u_{x}(x_{0},t)=\mu _{2}(t), \end{aligned}$$
(4)

where \(x,\delta ,\gamma \epsilon R\), \(t\geq t_{0}\), \(0<\alpha , \beta \leq 1\), \(i^{2}=-1\), and \(|\cdot|\) is the modulus. Here, \(u(x,t)\), \(\phi (x)\) and \(\varphi (x)\) represent the macroscopic wave function, the external trapping potential analytic function and an analytic function, respectively. This mathematical and physical model has various applications in science such as nonlinear optics, plasma physics, superconductivity, and quantum mechanics [2730, 3843].

2 Preliminaries

In this section properties of fractional calculus theory which allow us to construct the solution of space-time fractional SE are presented [8]. We first give the main definitions and various features of the fractional calculus theory in this section. The Riemann–Liouville fractional integral operator of order α (\(\alpha \geq 0\)) is defined as

$$\begin{aligned}& J^{\alpha }f(x)=\frac{1}{\varGamma (\alpha )} \int _{0}^{x}(x-t)^{\alpha -1}f(t)\,dt,\quad \alpha >0, x>0, \end{aligned}$$
(5)
$$\begin{aligned}& J^{0}f(x)=f(x). \end{aligned}$$
(6)

The Caputo fractional derivative of order α is defined as

$$\begin{aligned}& \begin{gathered} D^{\alpha }f(x)=J^{m-\alpha }D^{m}f(x)= \frac{1}{\varGamma (m-\alpha )} \int _{0}^{x}(x-t)^{m-\alpha -1}f^{(m)}(t)\,dt, \\ m-1< \alpha \leq m,\qquad x>0, \end{gathered} \end{aligned}$$
(7)

where \(D^{m}\) is the classical differential operator of order m.

Let n be the smallest integer greater than α, the time fractional derivative operator of order α of \(u(x,t)\) is defined as [8]

$$\begin{aligned}& D_{t}^{\alpha }u(x,t)= \frac{\partial ^{\alpha }u(x,t)}{\partial t^{\alpha }}= \textstyle\begin{cases} \frac{1}{\varGamma (n-\alpha )}\int _{0}^{t}(t-\tau )^{n-\alpha -1} \frac{\partial ^{n}u(\tau ,t)}{\partial t^{n}}\,d\tau ,& n-1< \alpha \leq n, \\ \frac{\partial ^{n}u(x,t)}{\partial t^{n}},& \alpha =n\epsilon N. \end{cases}\displaystyle \end{aligned}$$
(8)

If \(n-1 <\alpha \leq n\), \(u(x,t) \in C_{\mu }^{n}\), \(n\epsilon N\) and \(\mu \geq -1\) then \(D_{t}^{\alpha }J_{t}^{\alpha }u(x,t) = u(x,t)\) and \(J_{t}^{\alpha }D_{t}^{\alpha }u(x,t) = u(x,t)- \sum_{j=0}^{n-1} \frac{\partial ^{j}u(x,s^{+})}{\partial t^{j}}\frac{(t-s)^{j}}{j!} \), where \(t > s\geq 0\). The power series expansions about \(t=t_{0}\) and \(x=x_{0}\),

$$\begin{aligned}& \sum_{k=0}^{\infty }\sum _{l=0}^{n-1}f_{kl}(x) (t-t_{0})^{k\alpha +l},\quad 0 \leq n-1< \alpha \leq n, t_{0}\leq t< t_{0}+R, \end{aligned}$$
(9)

and

$$\begin{aligned}& \sum_{k=0}^{\infty }\sum _{l=0}^{m-1}g_{kl}(t) (x-x_{0})^{k\beta +l},\quad 0 \leq m-1< \beta \leq m, x_{0}\leq x< x_{0}+R, \end{aligned}$$
(10)

are called multiple fractional power series, where \(f_{kl}(x)\) and \(g_{kl}(t)\) are called the coefficients of the series.

3 Solution for space-time fractional SE based on RPSM

In order to solve space-time fractional SE (1)–(4) by RPSM, the problem is first reduced to either a space fractional SE or time fractional SE, which leads to the following cases.

Case 1: Simplification of the space-time fractional SE via the transformation \(u=I_{x}^{\beta -1}v\)

To get rid of the space fractional derivative in Eq. (1) the transformation \(u=I_{x}^{\beta -1}v\) is taken into account. As a result the following problem is obtained:

$$\begin{aligned}& iD_{t}^{\alpha }\bigl(I_{x}^{\beta -1}v\bigr)+ \delta v_{xx}+\gamma \bigl\vert I_{x}^{ \beta -1}v \bigr\vert ^{2}I_{x}^{\beta -1}v+\phi (x)I_{x}^{\beta -1}v=0, \end{aligned}$$
(11)
$$\begin{aligned}& v(x,t_{0})=I_{x}^{1-\beta }\varphi (x), \end{aligned}$$
(12)
$$\begin{aligned}& v(x_{0},t)=0, \end{aligned}$$
(13)
$$\begin{aligned}& v_{x}(x_{0},t)=0. \end{aligned}$$
(14)

Now, the RPSM is implemented to construct multiple fractional power series solution subject to initial condition. To establish the approximate solution the real and imaginary parts of the function \(v(x,t)\) and the initial condition \(I_{x}^{1-\beta }\varphi (x)\) can be rewritten as follows:

$$\begin{aligned}& v(x,t)=w(x,t)+i z(x,t),v(x,t_{0})=I_{x}^{1-\beta }w_{0}(x,t)+i I_{x}^{1- \beta }z_{0}(x,t), \end{aligned}$$
(15)
$$\begin{aligned}& i \bigl[D_{t}^{\alpha }\bigl(I_{x}^{\beta -1}w \bigr)+\delta z_{xx}+\gamma \bigl(\bigl(I_{x}^{ \beta -1}w \bigr)^{2}+ \bigl(I_{x}^{\beta -1}z\bigr)^{2} \bigr)I_{x}^{\beta -1}z+\phi (x)I_{x}^{ \beta -1}z \bigr] \\& \quad {}- \bigl[D_{t}^{\alpha }\bigl(I_{x}^{\beta -1}z \bigr)-\delta w_{xx}-\gamma \bigl(\bigl(I_{x}^{ \beta -1}w \bigr)^{2}+ \bigl(I_{x}^{\beta -1}z\bigr)^{2} \bigr)I_{x}^{\beta -1}w-\phi (x)I_{x}^{ \beta -1}w \bigr]=0, \end{aligned}$$
(16)

while the initial condition of Eq. (12) can be separated in the following form:

$$\begin{aligned}& v(x,t_{0})=I_{x}^{1-\beta }w_{0}(x,t)+i I_{x}^{1-\beta }z_{0}(x,t)=f_{0}(x)+i g_{0}(x). \end{aligned}$$
(17)

According to the results of Eqs. (15), (16) and (17) the space-time fractional SE can be converted into an equivalent system of PDEs as follows:

$$\begin{aligned}& \begin{gathered} D_{t}^{\alpha }\bigl(I_{x}^{\beta -1}w \bigr)+\delta z_{xx}+\gamma \bigl(\bigl(I_{x}^{ \beta -1}w \bigr)^{2}+ \bigl(I_{x}^{\beta -1}z\bigr)^{2} \bigr)I_{x}^{\beta -1}z+\phi (x)I_{x}^{ \beta -1}z=0, \\ D_{t}^{\alpha }\bigl(I_{x}^{\beta -1}z\bigr)-\delta w_{xx}-\gamma \bigl(\bigl(I_{x}^{ \beta -1}w \bigr)^{2}+ \bigl(I_{x}^{\beta -1}z\bigr)^{2} \bigr)I_{x}^{\beta -1}w-\phi (x)I_{x}^{ \beta -1}w=0, \end{gathered} \end{aligned}$$
(18)

based on the initial conditions

$$\begin{aligned}& \begin{gathered} w(x,t_{0})=f_{0}(x), \\ z(x,t_{0})=g_{0}(x). \end{gathered} \end{aligned}$$
(19)

Let \(w_{k}(x,t)\) and \(z_{k}(x,t)\) be defined as follows:

$$\begin{aligned}& \begin{gathered} w_{k}(x,t)=\sum_{j=0}^{k}f_{j}(x) \frac{(t-t_{0})^{j\alpha }}{\varGamma (1+j\alpha )}, \\ z_{k}(x,t)=\sum_{j=0}^{k}g_{j}(x) \frac{(t-t_{0})^{j\alpha }}{\varGamma (1+j\alpha )}, \end{gathered} \end{aligned}$$
(20)

which are called the kth truncated series of \(w(x,t)\) and \(z(x,t)\). It is clear that the conditions \(w(x,t_{0})=f_{0}(x)\) and \(z(x,t_{0})=g_{0}(x)\) hold. To determine the coefficients \(f_{j}(x)\) and \(g_{j}(x)\), \(j = 1,2,3,\ldots,k\), in Eqs. (20), the residual functions are defined as follows:

$$\begin{aligned}& \begin{gathered} \mathrm{Res}^{1}(x,t)=D_{t}^{\alpha } \bigl(I_{x}^{\beta -1}w\bigr)+\delta z_{xx}+\gamma \bigl( \bigl(I_{x}^{\beta -1}w\bigr)^{2}+ \bigl(I_{x}^{\beta -1}z \bigr)^{2} \bigr)I_{x}^{ \beta -1}z+\phi (x)I_{x}^{\beta -1}z, \\ \mathrm{Res}^{2}(x,t)=D_{t}^{\alpha } \bigl(I_{x}^{\beta -1}z\bigr)-\delta w_{xx}-\gamma \bigl( \bigl(I_{x}^{\beta -1}w\bigr)^{2}+ \bigl(I_{x}^{\beta -1}z \bigr)^{2} \bigr)I_{x}^{ \beta -1}w-\phi (x)I_{x}^{\beta -1}w. \end{gathered} \end{aligned}$$
(21)

Hence the kth truncated residual functions are obtained in the following form:

$$\begin{aligned}& \begin{gathered} \mathrm{Res}^{1}_{k}(x,t)=D_{t}^{\alpha } \bigl(I_{x}^{\beta -1}w_{k}\bigr)+\delta (z_{k})_{xx}+ \gamma \bigl(\bigl(I_{x}^{\beta -1}w_{k} \bigr)^{2}+ \bigl(I_{x}^{\beta -1}z_{k} \bigr)^{2} \bigr)I_{x}^{\beta -1}z_{k}+\phi (x)I_{x}^{\beta -1}z_{k}, \\ \mathrm{Res}^{2}_{k}(x,t)=D_{t}^{\alpha } \bigl(I_{x}^{\beta -1}z_{k}\bigr)-\delta (w_{k})_{xx}- \gamma \bigl(\bigl(I_{x}^{\beta -1}w_{k} \bigr)^{2}+ \bigl(I_{x}^{\beta -1}z_{k} \bigr)^{2} \bigr)I_{x}^{\beta -1}w_{k}-\phi (x)I_{x}^{\beta -1}w_{k}. \end{gathered} \end{aligned}$$
(22)

Equating the equation including \(D_{t}^{(n-1)\alpha }\) of \(\mathrm{Res}_{j}^{1}(x,t)\) and \(\mathrm{Res}_{j}^{2}(x,t)\), \(j = 1,2,3,\ldots,k\), in Eqs. (22) to zero the following algebraic system is obtained:

$$\begin{aligned}& \begin{gathered} D_{t}^{(j-1)\alpha }\mathrm{Res}_{j}^{1}(x,t_{0})=0, \quad j = 1,2,3,\ldots,k, \\ D_{t}^{(j-1)\alpha }\mathrm{Res}_{j}^{1}(x,t_{0})=0, \quad j = 1,2,3,\ldots,k. \end{gathered} \end{aligned}$$
(23)

In order to determine the coefficients of \(f_{1}(x)\) and \(g_{1}(x)\) in Eq. (20), the truncated series \(w_{1}(x,t)\) and \(z_{1}(x,t)\) are plugged into the first truncated residual functions to obtain

$$\begin{aligned}& \begin{gathered} \mathrm{Res}^{1}_{1}(x,t)=D_{t}^{\alpha } \bigl(I_{x}^{\beta -1}w_{1}\bigr)+\delta (z_{1})_{xx}+ \gamma \bigl(\bigl(I_{x}^{\beta -1}w_{1} \bigr)^{2}+ \bigl(I_{x}^{\beta -1}z_{1} \bigr)^{2} \bigr)I_{x}^{\beta -1}z_{1}+\phi (x)I_{x}^{\beta -1}z_{1}, \\ \mathrm{Res}^{2}_{1}(x,t)=D_{t}^{\alpha } \bigl(I_{x}^{\beta -1}z_{1}\bigr)-\delta (w_{1})_{xx}- \gamma \bigl(\bigl(I_{x}^{\beta -1}w_{1} \bigr)^{2}+ \bigl(I_{x}^{\beta -1}z_{1} \bigr)^{2} \bigr)I_{x}^{\beta -1}w_{1}-\phi (x)I_{x}^{\beta -1}w_{1}, \end{gathered} \end{aligned}$$
(24)

But since \(w_{1}(x,t)=f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}\) and \(z_{1}(x,t)=g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}\), Eq. (24) leads to the following results:

$$\begin{aligned}& \mathrm{Res}^{1}_{1}(x,t)=I_{x}^{\beta -1}f_{1}(x) +\delta \biggl(g_{0}''(x)+g_{1}''(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \biggr) \\& \hphantom{\mathrm{Res}^{1}_{1}(x,t)=} {}+\gamma \biggl( \biggl(I_{x}^{\beta -1} \biggl(f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}\biggr) \biggr)^{2} \\& \hphantom{\mathrm{Res}^{1}_{1}(x,t)=} {}+ \biggl(I_{x}^{\beta -1}\biggl(g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}\biggr) \biggr)^{2} \biggr) \\& \hphantom{\mathrm{Res}^{1}_{1}(x,t)=}{}\times I_{x}^{\beta -1} \biggl(g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \biggr) \\& \hphantom{\mathrm{Res}^{1}_{1}(x,t)=} {}+\phi (x)I_{x}^{\beta -1} \biggl(g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \biggr), \\ & \\ & \mathrm{Res}^{1}_{2}(x,t)=I_{x}^{\beta -1}g_{1}(x) -\delta \biggl(f_{0}''(x)+f_{1}''(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \biggr) \\& \hphantom{\mathrm{Res}^{1}_{2}(x,t)=}{}-\gamma \biggl( \biggl(I_{x}^{\beta -1} \biggl(g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}\biggr) \biggr)^{2} \\& \hphantom{\mathrm{Res}^{1}_{2}(x,t)=}{}+ \biggl(I_{x}^{\beta -1}\biggl(f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}\biggr) \biggr)^{2} \biggr) \\& \hphantom{\mathrm{Res}^{1}_{2}(x,t)=}{}\times I_{x}^{\beta -1} \biggl(f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \biggr) \\& \hphantom{\mathrm{Res}^{1}_{2}(x,t)=}{}-\phi (x)I_{x}^{\beta -1} \biggl(f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \biggr), \end{aligned}$$
(25)

Substituting of \(t=t_{0}\) in Eq. (25) leads to the following:

$$\begin{aligned}& \begin{gathered} I_{x}^{\beta -1}f_{1}(x)=-\delta g_{0^{\prime \prime }}-\gamma \bigl(\bigl(I_{x}^{ \beta -1}f_{0} \bigr)^{2}+ \bigl(I_{x}^{\beta -1}g_{0} \bigr)^{2} \bigr)I_{x}^{\beta -1}g_{0}- \phi (x)I_{x}^{\beta -1}g_{0}, \\ I_{x}^{\beta -1}g_{1}(x)=\delta f_{0^{\prime \prime }}+\gamma \bigl(\bigl(I_{x}^{\beta -1}f_{0}\bigr)^{2}+ \bigl(I_{x}^{\beta -1}g_{0}\bigr)^{2} \bigr)I_{x}^{\beta -1}f_{0}+\phi (x)I_{x}^{ \beta -1}f_{0}. \end{gathered} \end{aligned}$$
(26)

In a similar way, the unknown coefficients \(f_{2}(x)\) and \(g_{2}(x)\) are computed by substituting \(w_{2}(x,t)=f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+f_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )}\) and \(z_{2}(x,t)=g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+g_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )}\) into the second truncated residual functions \(\mathrm{Res}^{1}_{2}(x,t)\) and \(\mathrm{Res}^{2}_{2}(x,t)\) of Eq. (22) so we have

$$\begin{aligned}& \mathrm{Res}^{2}_{1}(x,t)=I_{x}^{\beta -1} \biggl(f_{1}(x)+f_{2}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \biggr) \\ & \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+\delta \biggl(g_{0}''(x)+g_{1}''(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+g_{2}''(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )} \biggr) \\ & \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+\gamma \biggl( \biggl(I_{x}^{\beta -1} \biggl(f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+f_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )}\biggr) \biggr)^{2} \\ & \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+ \biggl(I_{x}^{\beta -1}\biggl(g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+g_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )}\biggr) \biggr)^{2} \biggr) \\ & \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}\times I_{x}^{\beta -1} \biggl(g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+g_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )} \biggr) \\ & \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+\phi (x)I_{x}^{\beta -1} \biggl(g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+g_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )} \biggr), \\ & \\ & \mathrm{Res}^{2}_{2}(x,t)=I_{x}^{\beta -1} \biggl(g_{1}(x)+g_{2}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \biggr) \\ & \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}-\delta \biggl(f_{0}''(x)+f_{1}''(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+f_{2}''(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )} \biggr) \\ & \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}-\gamma \biggl( \biggl(I_{x}^{\beta -1} \biggl(g_{0}(x)+g_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+g_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )}\biggr) \biggr)^{2} \\ & \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}+ \biggl(I_{x}^{\beta -1}\biggl(f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+f_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )}\biggr) \biggr)^{2} \biggr) \\ & \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}\times I_{x}^{\beta -1} \biggl(f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+f_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )} \biggr) \\ & \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}-\phi (x)I_{x}^{\beta -1} \biggl(f_{0}(x)+f_{1}(x) \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+f_{2}(x) \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )} \biggr), \end{aligned}$$
(27)

Now, applying the operator \(D_{t}^{\alpha }\) and substituting of \(t=t_{0}\), solving the resultant system for \(f_{2}(x)\) and \(g_{2}(x)\) one gets

$$\begin{aligned}& \begin{aligned} I_{x}^{\beta -1}f_{2}(x)&=-\delta g_{1}^{\prime \prime }-2\gamma I_{x}^{\beta -1}f_{0}I_{x}^{ \beta -1}g_{0}I_{x}^{\beta -1}f_{1}- \gamma \bigl(\bigl(I_{x}^{\beta -1}f_{0} \bigr)^{2} \bigr)I_{x}^{\beta -1}g_{1} \\ &\quad {}-3\gamma \bigl(\bigl(I_{x}^{\beta -1}g_{0} \bigr)^{2} \bigr)I_{x}^{\beta -1}g_{1}- \phi (x)I_{x}^{\beta -1}g_{1}, \end{aligned} \\ & \\ & \begin{aligned} I_{x}^{\beta -1}g_{2}(x)&=\delta f_{1}^{\prime \prime }+2\gamma I_{x}^{\beta -1}g_{0}I_{x}^{ \beta -1}f_{0}I_{x}^{\beta -1}g_{1}+ \gamma \bigl(\bigl(I_{x}^{\beta -1}g_{0} \bigr)^{2} \bigr)I_{x}^{\beta -1}f_{1} \\ &\quad {}+3\gamma \bigl(\bigl(I_{x}^{\beta -1}f_{0} \bigr)^{2} \bigr)I_{x}^{\beta -1}f_{1}+ \phi (x)I_{x}^{\beta -1}f_{1}. \end{aligned} \end{aligned}$$
(28)

As before, the same procedure for \(j = 3\) is applied to construct the following \(I_{x}^{\beta -1}f_{3}\), \(I_{x}^{\beta -1}g_{3}\):

$$\begin{aligned}& \begin{aligned} I_{x}^{\beta -1}f_{3}(x) & =-\delta g_{2}^{\prime \prime }-\phi (x)I_{x}^{\beta -1}g_{2} \\ &\quad {}-\gamma \bigl[ 2I_{x}^{\beta -1}f_{0}I_{x}^{\beta -1}g_{0}I_{x}^{ \beta -1}f_{2}+ \gamma \bigl(\bigl(I_{x}^{\beta -1}f_{0} \bigr)^{2} \bigr)I_{x}^{ \beta -1}g_{2} +3\gamma \bigl(\bigl(I_{x}^{\beta -1}g_{0}\bigr)^{2} \bigr)I_{x}^{ \beta -1}g_{2} \bigr] \\ &\quad {}-\gamma \bigl[2I_{x}^{\beta -1}f_{0}I_{x}^{\beta -1}g_{1}I_{x}^{\beta -1}f_{1}+ \bigl(\bigl(I_{x}^{\beta -1}f_{1}\bigr)^{2} \bigr)I_{x}^{\beta -1}g_{0} +3 \bigl(\bigl(I_{x}^{ \beta -1}g_{1} \bigr)^{2} \bigr)I_{x}^{\beta -1}g_{0} \bigr]\\ &\quad {}\times \frac{\varGamma (1+2\alpha )}{\varGamma (1+\alpha )^{2}}, \end{aligned} \\ & \\ & \begin{aligned} I_{x}^{\beta -1}g_{3}(x) & =\delta f_{2}^{\prime \prime }+\phi (x)I_{x}^{\beta -1}f_{2} \\ &\quad {}+\gamma \bigl[ 2I_{x}^{\beta -1}g_{0}I_{x}^{\beta -1}f_{0}I_{x}^{ \beta -1}g_{2}+ \gamma \bigl(\bigl(I_{x}^{\beta -1}g_{0} \bigr)^{2} \bigr)I_{x}^{ \beta -1}f_{2} +3\gamma \bigl(\bigl(I_{x}^{\beta -1}f_{0}\bigr)^{2} \bigr)I_{x}^{ \beta -1}f_{2} \bigr] \\ &\quad {}+\gamma \bigl[2I_{x}^{\beta -1}g_{0}I_{x}^{\beta -1}g_{1}I_{x}^{\beta -1}f_{1}+ \bigl(\bigl(I_{x}^{\beta -1}g_{1}\bigr)^{2} \bigr)I_{x}^{\beta -1}f_{0} +3 \bigl(\bigl(I_{x}^{ \beta -1}g_{1} \bigr)^{2} \bigr)I_{x}^{\beta -1}g_{0} \bigr]\\ &\quad {}\times \frac{\varGamma (1+2\alpha )}{\varGamma (1+\alpha )^{2}}. \end{aligned} \end{aligned}$$
(29)

The recurrence relation among the coefficients of the multiple fractional power series solution for space-time fractional SE is constructed by repeating this procedure:

$$\begin{aligned} u(x,t)&=\varphi (x)+ \biggl(I_{x}^{\beta -1}f_{1} \frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )}+I_{x}^{\beta -1}f_{2} \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )} \\ &\quad {}+I_{x}^{\beta -1}f_{3} \frac{(t-t_{0})^{3\alpha }}{\varGamma (1+3\alpha )}+\cdots \biggr) +i \biggl(I_{x}^{ \beta -1}g_{1}\frac{(t-t_{0})^{\alpha }}{\varGamma (1+\alpha )} \\ &\quad {}+I_{x}^{\beta -1}g_{2} \frac{(t-t_{0})^{2\alpha }}{\varGamma (1+2\alpha )}+I_{x}^{\beta -1}g_{3} \frac{(t-t_{0})^{3\alpha }}{\varGamma (1+3\alpha )}+\cdots \biggr), \end{aligned}$$
(30)

which is equivalent to the jth truncated series of \(u(x,t)\); that is,

$$\begin{aligned}& u_{k}(x,t)=\sum_{j=0}^{k} \varphi _{j}(x) \frac{(t-t_{0})^{j\alpha }}{\varGamma (1+j\alpha )} . \end{aligned}$$
(31)

Case 2: Simplification of the space-time fractional SE via the transformation\(u=I_{t}^{\alpha -1}v\)

To get rid of the time fractional derivative in Eq. (1) the transformation \(u=I_{t}^{\alpha -1}v\) is taken into account. As a result the following problem is obtained:

$$\begin{aligned}& iv_{t}+\delta D_{x}^{\beta +1}\bigl(I_{t}^{\alpha -1}v \bigr)+\gamma \bigl\vert I_{t}^{ \alpha -1}v \bigr\vert ^{2}I_{t}^{\alpha -1}v+\phi (x)I_{t}^{\alpha -1}v=0, \end{aligned}$$
(32)
$$\begin{aligned}& v(x,t_{0})=0, \end{aligned}$$
(33)
$$\begin{aligned}& v(x_{0},t)=I_{t}^{1-\alpha }\mu _{1}(t), \end{aligned}$$
(34)
$$\begin{aligned}& v_{x}(x_{0},t)=I_{t}^{1-\alpha }\mu _{2}(t). \end{aligned}$$
(35)

Now, the RPSM is implemented to construct a multiple fractional power series solution subject to boundary conditions. To establish the approximate solution the real and imaginary parts of the function \(v(x,t)\) and the initial condition \(I_{t}^{1-\alpha }\varphi (x)\) can be rewritten as follows:

$$\begin{aligned}& v(x,t)=w(x,t)+i z(x,t),v_{0}(x,t)=v(x_{0},t)+(x-x_{0})v_{x}(x_{0},t)=w_{0}(x,t)+iz_{0}(x,t), \end{aligned}$$
(36)
$$\begin{aligned}& i \bigl[w_{t}+\delta D_{x}^{\beta +1} \bigl(I_{t}^{\alpha -1}z\bigr)+\gamma \bigl(\bigl(I_{t}^{ \alpha -1}w \bigr)^{2}+\bigl(I_{t}^{\alpha -1}z\bigr)^{2} \bigr)I_{t}^{\alpha -1}z+ \phi (x)I_{t}^{\alpha -1}z \bigr] \\& \quad {}- \bigl[z_{t}-\delta D_{x}^{\beta +1} \bigl(I_{t}^{\alpha -1}w\bigr)-\gamma \bigl(\bigl(I_{t}^{ \alpha -1}w \bigr)^{2}+\bigl(I_{t}^{\alpha -1}z\bigr)^{2} \bigr)I_{t}^{\alpha -1}w- \phi (x)I_{t}^{\alpha -1}w \bigr] =0, \end{aligned}$$
(37)

while the initial condition of Eq. (36) can be separated in the following form:

$$\begin{aligned}& v_{0}(x,t)=I_{x}^{1-\beta }w_{0}(x,t)+i I_{x}^{1-\beta }z_{0}(x,t)=f_{0}(t)+(x-x_{0})f_{1}(t)+i \bigl(g_{0}(t)+(x-x_{0})g_{1}(t)\bigr). \end{aligned}$$
(38)

According to the results of Eqs. (36), (37) and (38) the space-time fractional SE can be converted into an equivalent system of PDEs as follows:

$$\begin{aligned}& \begin{gathered} w_{t}+\delta D_{x}^{\beta +1} \bigl(I_{t}^{\alpha -1}z\bigr)+\gamma \bigl(\bigl(I_{t}^{ \alpha -1}w \bigr)^{2}+\bigl(I_{t}^{\alpha -1}z\bigr)^{2} \bigr)I_{t}^{\alpha -1}z+ \phi (x)I_{t}^{\alpha -1}z=0, \\ z_{t}-\delta D_{x}^{\beta +1}\bigl(I_{t}^{\alpha -1}w \bigr)-\gamma \bigl(\bigl(I_{t}^{ \alpha -1}w\bigr)^{2}+ \bigl(I_{t}^{\alpha -1}z\bigr)^{2} \bigr)I_{t}^{\alpha -1}w- \phi (x)I_{t}^{\alpha -1}w=0, \end{gathered} \end{aligned}$$
(39)

based on boundary conditions:

$$\begin{aligned}& \begin{gathered} w_{0}(x,t)=f_{0}(t)+(x-x_{0})f_{1}(t), \\ z_{0}(x,t)=g_{0}(t)+(x-x_{0})g_{1}(t). \end{gathered} \end{aligned}$$
(40)

To determine the coefficients \(f_{j}(t)\) and \(g_{j}(t)\), \(j = 1,2,3,\ldots,k\), in Eqs. (39), the residual functions are defined as follows:

$$\begin{aligned}& \begin{gathered} \mathrm{Res}^{1}(x,t)=w_{t}+\delta D_{x}^{\beta +1}\bigl(I_{t}^{\alpha -1}\bigr)z+ \gamma \bigl(\bigl(I_{t}^{\alpha -1}w\bigr)^{2}+ \bigl(I_{t}^{\alpha -1}z\bigr)^{2} \bigr)I_{t}^{ \alpha -1}z+ \phi (x)I_{t}^{\alpha -1}z, \\ \mathrm{Res}^{2}(x,t)=z_{t}-\delta D_{x}^{\beta +1} \bigl(I_{t}^{\alpha -1}\bigr)w- \gamma \bigl(\bigl(I_{t}^{\alpha -1}w \bigr)^{2}+ \bigl(I_{t}^{\alpha -1}z\bigr)^{2} \bigr)I_{t}^{ \alpha -1}w-\phi (x)I_{t}^{\alpha -1}w, \end{gathered} \end{aligned}$$
(41)

and the kth truncated residual functions are

$$\begin{aligned}& \begin{gathered} \mathrm{Res}^{1}_{k}=(w_{k})_{t}+ \delta D_{x}^{\beta +1}\bigl(I_{t}^{\alpha -1} \bigr)z_{k}+ \gamma \bigl(\bigl(I_{t}^{\alpha -1}w_{k} \bigr)^{2}+ \bigl(I_{t}^{\alpha -1}z_{k} \bigr)^{2} \bigr)I_{t}^{\alpha -1}z_{k}+\phi (x)I_{t}^{\alpha -1}z_{k}, \\ \mathrm{Res}^{2}_{k}=(z_{k})_{t}- \delta D_{x}^{\beta +1}\bigl(I_{t}^{\alpha -1} \bigr)w_{k}- \gamma \bigl(\bigl(I_{t}^{\alpha -1}w_{k} \bigr)^{2}+ \bigl(I_{t}^{\alpha -1}z_{k} \bigr)^{2} \bigr)I_{t}^{\alpha -1}w_{k}-\phi (x)I_{t}^{\alpha -1}w_{k}. \end{gathered} \end{aligned}$$
(42)

In order to determine the coefficients of \(f_{1}(x)\) and \(g_{1}(x)\) in Eq. (20), the truncated series \(w_{1}(x,t)\) and \(z_{1}(x,t)\) are plugged into the first truncated residual functions to obtain

$$\begin{aligned}& \begin{gathered} \mathrm{Res}^{1}_{1}=(w_{1})_{t}+ \delta D_{x}^{\beta +1}\bigl(I_{t}^{\alpha -1} \bigr)z_{1}+ \gamma \bigl(\bigl(I_{t}^{\alpha -1}w_{1} \bigr)^{2}+ \bigl(I_{t}^{\alpha -1}z_{1} \bigr)^{2} \bigr)I_{t}^{\alpha -1}z_{1}+\phi (x)I_{t}^{\alpha -1}z_{1}, \\ \mathrm{Res}^{2}_{1}=(z_{1})_{t}- \delta D_{x}^{\beta +1}\bigl(I_{t}^{\alpha -1} \bigr)w_{1}- \gamma \bigl(\bigl(I_{t}^{\alpha -1}w_{1} \bigr)^{2}+ \bigl(I_{t}^{\alpha -1}z_{1} \bigr)^{2} \bigr)I_{t}^{\alpha -1}w_{1}-\phi (x)I_{t}^{\alpha -1}w_{1}. \end{gathered} \end{aligned}$$
(43)

But since \(w_{1}(x,t)=f_{0}(t)+f_{1}(t)(x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\) and \(z_{1}(x,t)=g_{0}(t)+g_{1}(t)(x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\), Eq. (43) leads to the following results:

$$\begin{aligned}& \mathrm{Res}^{1}_{1}(x,t)=f_{0}'(t)+f_{1}'(t) (x-x_{0})+f_{2}'(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+\delta I_{t}^{\alpha -1}g_{2}(t) \\& \hphantom{\mathrm{Res}^{1}_{1}(x,t)=}{}+\gamma \biggl(\biggl(I_{t}^{\alpha -1} \biggl(f_{0}(t)+f_{1}(t) (x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\biggr)\biggr)^{2} \\& \hphantom{\mathrm{Res}^{1}_{1}(x,t)=}{}+\biggl(I_{t}^{\alpha -1}\biggl(g_{0}(t)+g_{1}(t) (x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\biggr) \biggr)^{2} \biggr) \\& \hphantom{\mathrm{Res}^{1}_{1}(x,t)=}{}\times I_{t}^{\alpha -1}\biggl(g_{0}(t)+g_{1}(t) (x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\biggr) \\& \hphantom{\mathrm{Res}^{1}_{1}(x,t)=}{}+\phi (x)I_{t}^{\alpha -1}\biggl(g_{0}(t)+g_{1}(t) (x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\biggr), \\ & \\ & \mathrm{Res}^{2}_{1}(x,t)=g_{0}'(t)+g_{1}'(t) (x-x_{0})+g_{2}'(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}-\delta I_{t}^{\alpha -1}f_{2}(t) \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}-\gamma \biggl(\biggl(I_{t}^{\alpha -1} \biggl(f_{0}(t)+f_{1}(t) (x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\biggr)\biggr)^{2} \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+\biggl(I_{t}^{\alpha -1}\biggl(g_{0}(t)+g_{1}(t) (x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\biggr) \biggr)^{2} \biggr) \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}\times I_{t}^{\alpha -1}\biggl(f_{0}(t)+f_{1}(t) (x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\biggr) \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}-\phi (x)I_{t}^{\alpha -1}\biggl(f_{0}(t)+f_{1}(t) (x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}\biggr). \end{aligned}$$
(44)

Substituting of \(x=x_{0}\) in Eq. (44) leads to the following:

$$\begin{aligned}& \begin{gathered} I_{t}^{\alpha -1}g_{2}(t)= \bigl[- f_{0^{\prime }}-\gamma \bigl(\bigl(I_{t}^{ \alpha -1}f_{0} \bigr)^{2}+ \bigl(I_{t}^{\alpha -1}g_{0} \bigr)^{2} \bigr)I_{t}^{\alpha -1}g_{0}- \phi (x)I_{t}^{\alpha -1}g_{0} \bigr]/\delta , \\ I_{t}^{\alpha -1}f_{2}(t)= \bigl[ g_{0^{\prime \prime }}-\gamma \bigl(\bigl(I_{t}^{ \alpha -1}f_{0}\bigr)^{2}+ \bigl(I_{t}^{\alpha -1}g_{0}\bigr)^{2} \bigr)I_{t}^{\alpha -1}f_{0}- \phi (x)I_{t}^{\alpha -1}f_{0} \bigr]/\delta . \end{gathered} \end{aligned}$$
(45)

In a similar way, the unknown coefficients \(f_{3}(t)\) and \(g_{3}(t)\) are computed by substituting \(w_{3}(x,t)=f_{0}(t)+f_{1}(t)(x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+f_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\) and \(z_{3}(x,t)=g_{0}(t)+g_{1}(t)(x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+g_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\) into the second truncated residual functions, \(\mathrm{Res}^{1}_{2}(x,t)\) and \(\mathrm{Res}^{2}_{2}(x,t)\), of Eq. (45) to have

$$\begin{aligned}& \mathrm{Res}^{2}_{1}(x,t)=f_{0}'(t)+f_{1}'(t) (x-x_{0})+f_{2}'(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+f_{3}'(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )} \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+\delta I_{t}^{\alpha -1}\bigl(g_{2}(t)+g_{3}(t) (x-x_{0})\bigr) \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+\gamma \biggl(\biggl(I_{t}^{\alpha -1} \biggl(f_{0}(t)+f_{1}(t) (x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+f_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\biggr) \biggr)^{2} \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+ \biggl(I_{t}^{\alpha -1}\biggl(g_{0}(t)+g_{1}(t) (x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+g_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\biggr)\biggr)^{2} \biggr) \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}\times I_{t}^{\alpha -1}\biggl(g_{0}(t)+g_{1}(t)x+g_{2}(t) \frac{x^{\beta +1}}{\varGamma (2+\beta )}+g_{3}(t) \frac{x^{\beta +2}}{\varGamma (3+\beta )}\biggr) \\& \hphantom{\mathrm{Res}^{2}_{1}(x,t)=}{}+\phi (x)I_{t}^{\alpha -1}\biggl(g_{0}(t)+g_{1}(t) (x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+g_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\biggr), \\ & \\ & \mathrm{Res}^{2}_{2}(x,t)=g_{0}'(t)+g_{1}'(t) (x-x_{0})+g_{2}'(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+g_{3}'(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )} \\& \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}-\delta I_{t}^{\alpha -1}\bigl(f_{2}(t)+f_{3}(t) (x-x_{0})\bigr) \\& \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}-\gamma \biggl(\biggl(I_{t}^{\alpha -1} \biggl(f_{0}(t)+f_{1}(t) (x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+f_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\biggr) \biggr)^{2} \\& \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}+ \biggl(I_{t}^{\alpha -1}\biggl(g_{0}(t)+g_{1}(t) (x-x_{0})+g_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+g_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\biggr)\biggr)^{2} \biggr) \\& \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}\times I_{t}^{\alpha -1}\biggl(f_{0}(t)+f_{1}(t) (x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+f_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\biggr) \\& \hphantom{\mathrm{Res}^{2}_{2}(x,t)=}{}-\phi (x)I_{t}^{\alpha -1}\biggl(f_{0}(t)+f_{1}(t) (x-x_{0})+f_{2}(t) \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+f_{3}(t) \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}\biggr). \end{aligned}$$
(46)

Now, applying the operator \(D_{x}\) and substituting of \(x=x_{0}\) as follows:

$$\begin{aligned}& \begin{aligned} I_{t}^{\alpha -1}g_{3}(t)&= \bigl[- f_{1}^{\prime }-\gamma \bigl[ 3 \bigl(I_{t}^{ \alpha -1}g_{0} \bigr)^{2}I_{t}^{\alpha -1}g_{1}+2(I_{t}^{\alpha -1}f_{0}I_{t}^{ \alpha -1}f_{1}I_{t}^{\alpha -1}g_{0}+ \bigl(I_{t}^{\alpha -1}f_{0}\bigr)^{2}I_{t}^{ \alpha -1}g_{1} \bigr] \\ &\quad {}-\phi (x)I_{t}^{\alpha -1}g_{1} \bigr]/\delta , \end{aligned} \\ & \\ & \begin{aligned} I_{t}^{\alpha -1}f_{3}(t)&= \bigl[- g_{1}^{\prime }-\gamma \bigl[ 3 \bigl(I_{t}^{ \alpha -1}f_{0} \bigr)^{2}I_{t}^{\alpha -1}f_{1}+2(I_{t}^{\alpha -1}f_{0}I_{t}^{ \alpha -1}g_{1}I_{t}^{\alpha -1}g_{0}+ \bigl(I_{t}^{\alpha -1}g_{0}\bigr)^{2}I_{t}^{ \alpha -1}f_{1} \bigr] \\ &\quad {}-\phi (x)I_{t}^{\alpha -1}g_{1} \bigr]/\delta . \end{aligned} \end{aligned}$$
(47)

The recurrence relation among the coefficients of the multiple fractional power series solution for space-time fractional SE is constructed by repeating this procedure,

$$\begin{aligned} u(x,t)&=\mu _{1}(t)+\mu _{2}(t) (x-x_{0})+ \biggl(I_{t}^{\alpha -1}f_{2} \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+I_{t}^{\alpha -1}f_{3} \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}+\cdots \biggr) \\ &\quad {}+i \biggl(I_{t}^{\alpha -1}g_{2} \frac{(x-x_{0})^{\beta +1}}{\varGamma (2+\beta )}+I_{t}^{\alpha -1}g_{3} \frac{(x-x_{0})^{\beta +2}}{\varGamma (3+\beta )}+\cdots \biggr) , \end{aligned}$$
(48)

which is equivalent to the jth truncated series of \(u(x,t)\); that is,

$$\begin{aligned}& u_{k}(x,t)=\mu _{1}(t)+\mu _{2}(t) (x-x_{0})+\sum_{j=3}^{k}\mu _{j}(t) \frac{(x-x_{0})^{\beta +j-2}}{\varGamma (j-1+\beta )} . \end{aligned}$$
(49)

4 Numerical examples

This section is devoted to the following illustrative examples.

Example 1

Let us consider the problem including a space-time fractional SE

$$\begin{aligned}& iD_{t}^{\alpha }u-D_{x}^{\beta +1}u=0, \end{aligned}$$
(50)
$$\begin{aligned}& u(x,0)=e^{3ix}, \end{aligned}$$
(51)
$$\begin{aligned}& u(0,t)=e^{9it}, \end{aligned}$$
(52)
$$\begin{aligned}& u_{x}(0,t)=3ie^{9it}, \end{aligned}$$
(53)

Case 1: Eqs. (50)–(53) transform as follows:

$$\begin{aligned}& iD_{t}^{\alpha }\bigl(I_{x}^{\beta -1}v \bigr)-v_{xx}=0, \end{aligned}$$
(54)
$$\begin{aligned}& v(x,0)=I_{x}^{1-\beta }e^{3ix}, \end{aligned}$$
(55)
$$\begin{aligned}& v(0,t)=0, \end{aligned}$$
(56)
$$\begin{aligned}& v_{x}(0,t)=0. \end{aligned}$$
(57)

To establish the approximate solution, Eqs. (54)–(55) are converted into an equivalent system of the space-time fractional SE via \(u(x,t)=w(x,t)+iz(x,t)\) as follows:

$$\begin{aligned}& \begin{gathered} D_{t}^{\alpha }\bigl(I_{x}^{\beta -1}w \bigr)-z_{xx}=0, \\ D_{t}^{\alpha }\bigl(I_{x}^{\beta -1}z \bigr)-w_{xx}=0, \end{gathered} \end{aligned}$$
(58)

with the initial conditions

$$\begin{aligned}& \begin{gathered} w(x,0)=I_{x}^{1-\beta }\cos (3x)=3^{\beta -1} \cos \biggl(3x+\frac{\pi }{2}( \beta -1)\biggr), \\ z(x,0)=I_{x}^{1-\beta }\sin (3x)=3^{\beta -1}\sin \biggl(3x+ \frac{\pi }{2}( \beta -1)\biggr). \end{gathered} \end{aligned}$$
(59)

Here, \(\delta =1\), \(\gamma = 1\), \(\phi (x)=0\), \(f_{0}(x)=I_{x}^{1-\beta }\cos (3x)\), \(g_{0}(x)=I_{x}^{1-\beta }\sin (3x)\). The unknown coefficients \(I_{x}^{\beta -1}f_{j}\), \(I_{x}^{\beta -1}g_{j}\), \(j = 0,1,2,3\), are computed via the initial approximations \(w_{0}(x,t)=I_{x}^{1-\beta }\cos (3x)\), \(z_{0}(x,t)=I_{x}^{1-\beta }\sin (3x)\) and RPSM. We have

$$\begin{aligned}& \begin{gathered} I_{x}^{\beta -1}f_{0}(x)=\cos (3x), \\ I_{x}^{\beta -1}f_{1}(x)=D_{x}^{\beta +1} \sin (3x)=\frac{9i}{2}x^{1- \beta }\bigl[E_{1,2-\beta }(3ix)-E_{1,2-\beta }(-3ix) \bigr], \\ I_{x}^{\beta -1}f_{2}(x)=-D_{x}^{2\beta +2} \cos (3x)=\frac{-81}{2}x^{2-2 \beta }\bigl[E_{1,3-2\beta }(3ix)+E_{1,3-2\beta }(-3ix) \bigr], \\ I_{x}^{\beta -1}f_{3}(x)=-D_{x}^{3\beta +3} \sin (3x)=\frac{-729i}{2}x^{3-3 \beta }\bigl[E_{1,4-3\beta }(3ix)-E_{1,4-3\beta }(-3ix) \bigr] , \end{gathered} \end{aligned}$$
(60)
$$\begin{aligned}& \begin{gathered} I_{x}^{\beta -1}g_{0}(x)=\sin (3x), \\ I_{x}^{\beta -1}g_{1}(x)=-D_{x}^{\beta +1} \cos (3x)=\frac{9}{2}x^{1- \beta }\bigl[E_{1,2-\beta }(3ix)+E_{1,2-\beta }(-3ix) \bigr], \\ I_{x}^{\beta -1}g_{2}(x)=-D_{x}^{2\beta +2} \sin (3x)=\frac{81i}{2}x^{2-2 \beta }\bigl[E_{1,3-2\beta }(3ix)-E_{1,3-2\beta }(-3ix) \bigr], \\ I_{x}^{\beta -1}g_{3}(x)=D_{x}^{3\beta +3} \cos (3x)=\frac{-729}{2}x^{3-3 \beta }\bigl[E_{1,4-3\beta }(3ix)+E_{1,4-3\beta }(-3ix) \bigr] . \end{gathered} \end{aligned}$$
(61)

The third order RPS solutions can be constructed as follows:

$$\begin{aligned}& w_{3}(x,t)=\cos (3x)+D_{x}^{\beta +1}\sin (3x) \frac{t^{\alpha }}{\varGamma (1+\alpha )}- D_{x}^{2\beta +2}\cos (3x) \frac{t^{2\alpha }}{\varGamma (1+2\alpha )} \\& \hphantom{w_{3}(x,t)=}{}-D_{x}^{3\beta +3}\sin (3x)\frac{t^{3\alpha }}{\varGamma (1+3\alpha )}, \\ & \\ & z_{3}(x,t)=\sin (3x)-D_{x}^{\beta +1}\cos (3x) \frac{t^{\alpha }}{\varGamma (1+\alpha )}-D_{x}^{2\beta +2}\sin (3x) \frac{t^{2\alpha }}{\varGamma (1+2\alpha )} \\& \hphantom{z_{3}(x,t)=}{}+D_{x}^{3\beta +3}\cos (3x)\frac{t^{3\alpha }}{\varGamma (1+3\alpha )} . \end{aligned}$$
(62)

By making some algebraic properties of complex numbers, the general pattern coinciding with the exact solution can be established as follows:

$$\begin{aligned} u(x,t)&=e^{3ix}+iD_{x}^{\beta +1}e^{3ix} \frac{t^{\alpha }}{\varGamma (1+\alpha )}+i^{2}D_{x}^{2\beta +2}e^{3ix} \frac{t^{2\alpha }}{\varGamma (1+2\alpha )} \\ &\quad {}+i^{3}D_{x}^{3\beta +3}e^{3ix} \frac{t^{3\alpha }}{\varGamma (1+3\alpha )}+\cdots. \end{aligned}$$
(63)

Case 2: Eqs. (50)–(53) transform as follows:

$$\begin{aligned}& iv_{t}-D_{x}^{\beta +1}I_{t}^{\alpha -1}v=0, \end{aligned}$$
(64)
$$\begin{aligned}& v(x,0)=0, \end{aligned}$$
(65)
$$\begin{aligned}& v(0,t)=I_{t}^{1-\alpha }e^{9it}, \end{aligned}$$
(66)
$$\begin{aligned}& v_{x}(0,t)=3iI_{t}^{1-\alpha }e^{9it}. \end{aligned}$$
(67)

To construct the approximate solution, from Eq. (36), Eqs. (64)–(67) can be converted into an equivalent system of PDEs as follows:

$$\begin{aligned}& \begin{gathered} w_{t}-D_{x}^{\beta +1}I_{t}^{\alpha -1}z=0, \\ z_{t}-D_{x}^{\beta +1}I_{t}^{\alpha -1}w=0, \end{gathered} \end{aligned}$$
(68)

subject to the boundary conditions

$$\begin{aligned}& \begin{gathered} w_{0}(x,t)=I_{t}^{1-\alpha }\cos (9t)-3xI_{t}^{1-\alpha }\sin (9t), \\ z_{0}(x,t)=I_{t}^{1-\alpha }\sin (9t)+3xI_{t}^{1-\alpha } \cos (9t). \end{gathered} \end{aligned}$$
(69)

Here, \(\delta =1\), \(\gamma = 1 \), \(\phi (x)=0\), \(f_{0}(x)=I_{t}^{1-\alpha }\cos (9t)\), \(f_{1}(x)=-3I_{t}^{1-\alpha }\sin (9t)\) and \(g_{0}(x)=I_{t}^{1-\alpha }\sin (9t)\), \(g_{1}(x)=3I_{t}^{1-\alpha }\cos (9t)\). Anyhow, using RPS method, starting with the initial guesses approximations \(w_{0}(x,t)=I_{t}^{1-\alpha }\cos (9t)-3xI_{t}^{1-\alpha }\sin (9t)\) and \(z_{0}(x,t)=I_{t}^{1-\alpha }\sin (9t)+3xI_{t}^{1-\alpha }\cos (9t)\) with the kth truncated residual functions of Eq. (58) is used when \(j = 3\) throughout the computations; the following forms for the unknown coefficients \(I_{t}^{\alpha -1}f_{j}\), \(I_{t}^{\alpha -1}g_{j}\), \(j = 0,1,2,3\), are obtained:

$$\begin{aligned}& \begin{gathered} I_{t}^{\alpha -1}f_{0}(t)=\cos (9t), \\ I_{t}^{\alpha -1}f_{1}(t)=-3\sin (9t), \\ I_{t}^{\alpha -1}f_{2}(t)=-D_{t}^{\alpha } \sin (9t)=\frac{-9}{2}t^{1- \alpha }\bigl[E_{1,2-\alpha }(9it)+E_{1,2-\alpha }(-9it) \bigr], \\ I_{t}^{\alpha -1}f_{3}(t)=-3D_{t}^{\alpha } \cos (9t)=\frac{-27i}{2}t^{1- \alpha }\bigl[E_{1,2-\alpha }(9it)-E_{1,2-\alpha }(-9it) \bigr] , \end{gathered} \end{aligned}$$
(70)
$$\begin{aligned}& \begin{gathered} I_{t}^{\alpha -1}g_{0}(t)=\sin (9t), \\ I_{t}^{\alpha -1}g_{1}(t)=3\cos (9t), \\ I_{t}^{\alpha -1}g_{2}(t)=D_{t}^{\alpha } \cos (9t)=\frac{9i}{2}t^{1- \alpha }\bigl[E_{1,2-\alpha }(9it)-E_{1,2-\alpha }(-9it) \bigr], \\ I_{t}^{\alpha -1}g_{3}(t)=-3D_{t}^{\alpha } \sin (9t)=\frac{-27}{2}t^{1- \alpha }\bigl[E_{1,2-\alpha }(9it)+E_{1,2-\alpha }(-9it) \bigr]. \end{gathered} \end{aligned}$$
(71)

The third order RPS solutions can be constructed as follows:

$$\begin{aligned}& w_{3}(x,t)=\cos (9t)-3x\sin (9t)-D_{t}^{\alpha }\sin (9t) \frac{x^{\beta +1}}{\varGamma (2+\beta )} \\& \hphantom{w_{3}(x,t)=}{}-3D_{t}^{\alpha }\cos (9t)\frac{x^{\beta +2}}{\varGamma (3+\beta )}, \\ & \\ & z_{3}(x,t)=\sin (9t)+3x\cos (9t)+D_{t}^{\alpha }\cos (9t) \frac{x^{\beta +1}}{\varGamma (2+\beta )} \\& \hphantom{z_{3}(x,t)=}{}-3D_{t}^{\alpha }\sin (9t)\frac{x^{\beta +2}}{\varGamma (3+\beta )} . \end{aligned}$$
(72)

By making some algebraic properties of complex numbers, the general pattern form coinciding with the exact solution can be established as follows:

$$\begin{aligned}& u(x,t)=e^{9it}+3xe^{9it}+iD_{t}^{\alpha }e^{9it} \frac{x^{\beta +1}}{\varGamma (2+\beta )}+3i^{2}D_{t}^{\alpha }e^{9it} \frac{x^{\beta +2}}{\varGamma (3+\beta )}+\cdots \end{aligned}$$
(73)

It is clear from Figs. 16, the approximate solutions of Example 1 for case 1 and case 2 for different orders of fractional derivatives give better results for small values x and t.

Figure 1
figure 1

The approximate solution of Example 1 for Case 1 and \(\alpha=\beta=1\)

Figure 2
figure 2

The approximate solution of Example 1 for Case 1 and \(\alpha=\beta=0.75\)

Figure 3
figure 3

The approximate solution of Example 1 for Case 1 and \(\alpha=\beta=0.5\)

Figure 4
figure 4

The approximate solution of Example 1 for Case 2 and \(\alpha=\beta=1\)

Figure 5
figure 5

The approximate solution of Example 1 for Case 2 and \(\alpha=\beta=0.75\)

Figure 6
figure 6

The approximate solution of Example 1 for Case 2 and \(\alpha=\beta=0.5\)

Example 2

Let us consider the problem including space-time fractional SE

$$\begin{aligned}& iD_{t}^{\alpha }u+D_{x}^{\beta +1}u-2 \vert u \vert ^{2}u=0, \end{aligned}$$
(74)
$$\begin{aligned}& u(x,0)=e^{ix}, \end{aligned}$$
(75)
$$\begin{aligned}& u(0,t)=e^{-3it}, \end{aligned}$$
(76)
$$\begin{aligned}& u_{x}(0,t)=ie^{-3it}. \end{aligned}$$
(77)

Case 1: Eqs. (74)–(77) transform as follows:

$$\begin{aligned}& iD_{t}^{\alpha }\bigl(I_{x}^{\beta -1}v \bigr)+v_{xx}-2 \bigl\vert I_{x}^{\beta -1}v \bigr\vert ^{2}I_{x}^{ \beta -1}v=0, \end{aligned}$$
(78)
$$\begin{aligned}& v(x,0)=I_{x}^{1-\beta }e^{ix}, \end{aligned}$$
(79)
$$\begin{aligned}& v(0,t)=0, \end{aligned}$$
(80)
$$\begin{aligned}& v_{x}(0,t)=0. \end{aligned}$$
(81)

To establish the approximate solution, Eqs. (78)–(79) are converted into an equivalent system of space-time fractional SE via \(u(x,t)=w(x,t)+iz(x,t)\) as follows:

$$\begin{aligned}& \begin{gathered} D_{t}^{\alpha }\bigl(I_{x}^{\beta -1}w \bigr)+z_{xx}-2\bigl[\bigl(I_{x}^{\beta -1}w \bigr)^{2}+\bigl(I_{x}^{ \beta -1}z\bigr)^{2} \bigr]I_{x}^{\beta -1}z=0, \\ D_{t}^{\alpha }\bigl(I_{x}^{\beta -1}z \bigr)-w_{xx}+2\bigl[\bigl(I_{x}^{\beta -1}w \bigr)^{2}+\bigl(I_{x}^{ \beta -1}z\bigr)^{2} \bigr]I_{x}^{\beta -1}w=0, \end{gathered} \end{aligned}$$
(82)

with the initial conditions

$$\begin{aligned}& \begin{gathered} w(x,0)=I_{x}^{1-\beta }\cos (x)=\cos \biggl(x+ \frac{\pi }{2}(\beta -1)\biggr), \\ z(x,0)=I_{x}^{1-\beta }\sin (x)=\sin \biggl(x+\frac{\pi }{2}( \beta -1)\biggr). \end{gathered} \end{aligned}$$
(83)

Here \(\delta =1\), \(\gamma = 2 \), \(\phi (x)=0\), \(f_{0}(x)=I_{x}^{1-\beta }\cos (x)\), \(g_{0}(x)=I_{x}^{1-\beta }\sin (x)\). The unknown coefficients \(I_{x}^{\beta -1}f_{j}\), \(I_{x}^{\beta -1}g_{j}\), \(j = 0,1,2\), are computed via the initial approximations \(w_{0}(x,t)=I_{x}^{1-\beta }\cos (x)\) and \(z_{0}(x,t)=I_{x}^{1-\beta }\sin (x)\) and RPSM. We have

$$\begin{aligned}& \begin{gathered} I_{x}^{\beta -1}f_{0}(x)=\cos (x), \\ I_{x}^{\beta -1}f_{1}(x)=-D_{x}^{\beta +1} \sin (x)+2\sin (x), \\ I_{x}^{\beta -1}f_{2}(x)=-\bigl(D_{x}^{2\beta +2} \cos (x)-2D_{x}^{\beta +1} \cos (x)\bigr)\\ \hphantom{I_{x}^{\beta -1}f_{2}(x)=}{}+4\sin (x)\cos (x) \bigl(-D_{x}^{\beta +1}\sin (x)+2\sin (x)\bigr) \\ \hphantom{I_{x}^{\beta -1}f_{2}(x)=}{}+\bigl(2\cos ^{2}(x)+6\sin ^{2}(x)\bigr) \bigl(D_{x}^{\beta +1}\cos (x)-2\cos (x)\bigr), \end{gathered} \end{aligned}$$
(84)
$$\begin{aligned}& \begin{gathered} I_{x}^{\beta -1}f_{0}(x)=\sin (x), \\ I_{x}^{\beta -1}f_{1}(x)=D_{x}^{\beta +1} \cos (x)-2\cos (x), \\ I_{x}^{\beta -1}f_{2}(x)=-D_{x}^{2\beta +2} \sin (x)+2D_{x}^{\beta +1} \sin (x)-4\sin (x)\cos (x) \bigl(D_{x}^{\beta +1}\cos (x)-2\cos (x)\bigr) \\ \hphantom{I_{x}^{\beta -1}f_{2}(x)=}{}-\bigl(6\cos ^{2}(x)+2\sin ^{2}(x)\bigr) \bigl(-D_{x}^{\beta +1}\sin (x)+2\sin (x)\bigr) . \end{gathered} \end{aligned}$$
(85)

By making some algebraic properties of complex numbers, the general pattern coinciding with the exact solution can be established as follows:

$$\begin{aligned} u(x,t)&=e^{ix}+i\bigl(D_{x}^{\beta +1}e^{ix}-2e^{ix} \bigr) \frac{t^{\alpha }}{\varGamma (1+\alpha )} \\ &\quad {}+i^{2} \bigl[\bigl(D_{x}^{2\beta +2}e^{ix}-2D_{x}^{\beta +1}e^{ix} \bigr) \bigr] \frac{t^{2\alpha }}{\varGamma (1+2\alpha )} \\ &\quad {}+ \bigl[4\sin (x)\cos (x) \bigl(-D_{x}^{\beta +1}\sin (x)+2\sin (x)\bigr) \\ &\quad {}-4i\sin (x)\cos (x) \bigl(D_{x}^{\beta +1}\cos (x)-2\cos (x)\bigr) \\ &\quad {}+\bigl(2\cos ^{2}(x)+6\sin ^{2}(x)\bigr) \bigl(D_{x}^{\beta +1}\cos (x)-2\cos (x)\bigr) \\ &\quad {}-i\bigl(6\cos ^{2}(x)+2\sin ^{2}(x)\bigr)) \bigl(-D_{x}^{\beta +1}\sin (x)+2\sin (x)\bigr) \bigr] \frac{t^{2\alpha }}{\varGamma (1+2\alpha )}+\cdots . \end{aligned}$$
(86)

Case 2: Eqs. (74)–(77) transform as follows:

$$\begin{aligned}& iv_{t}+D_{x}^{\beta +1}I_{t}^{\alpha -1}v-2 \bigl\vert I_{t}^{\alpha -1}v \bigr\vert ^{2}I_{t}^{ \alpha -1}v=0, \end{aligned}$$
(87)
$$\begin{aligned}& v(x,0)=0, \end{aligned}$$
(88)
$$\begin{aligned}& v(0,t)=I_{t}^{1-\alpha }e^{-3it}, \end{aligned}$$
(89)
$$\begin{aligned}& v_{x}(0,t)=iI_{t}^{1-\alpha }e^{-3it}. \end{aligned}$$
(90)

To construct the approximate solution, then from Eq. (36), Eqs. (64)–(67) can be converted into an equivalent system of PDEs as follows:

$$\begin{aligned}& \begin{gathered} w_{t}+D_{x}^{\beta +1}I_{t}^{\alpha -1}z-2 \bigl[\bigl(I_{t}^{\alpha -1}w\bigr)^{2}+ \bigl(I_{t}^{ \alpha -1}z\bigr)^{2} \bigr]I_{t}^{\alpha -1}z=0, \\ z_{t}-D_{x}^{\beta +1}I_{t}^{\alpha -1}w+2 \bigl[\bigl(I_{t}^{\alpha -1}w\bigr)^{2}+ \bigl(I_{t}^{ \alpha -1}z\bigr)^{2} \bigr]I_{t}^{\alpha -1}w=0, \end{gathered} \end{aligned}$$
(91)

with the boundary conditions

$$\begin{aligned}& \begin{gathered} w_{0}(x,t)=I_{t}^{1-\alpha }\cos (3t)+xI_{t}^{1-\alpha }\sin (3t), \\ z_{0}(x,t)=-I_{t}^{1-\alpha }\sin (3t)+xI_{t}^{1-\alpha } \cos (3t). \end{gathered} \end{aligned}$$
(92)

Here \(\delta =1\), \(\gamma = 1 \), \(\phi (x)=0\), \(f_{0}(x)=I_{t}^{1-\alpha }\cos (3t)\), \(f_{1}(x)=I_{t}^{1-\alpha }\sin (3t)\) and \(g_{0}(x)=-I_{t}^{1-\alpha }\sin (3t)\), \(g_{1}(x)=I_{t}^{1-\alpha }\cos (3t)\). Anyhow, using the RPS method, starting with the initial guessed approximations \(w_{0}(x,t)=I_{t}^{1-\alpha }\cos (3t)+xI_{t}^{1-\alpha }\sin (3t)\) and \(z_{0}(x,t)=-I_{t}^{1-\alpha }\sin (3t)+xI_{t}^{1-\alpha }\cos (3t)\) with the kth truncated residual functions of Eq. (82) used when \(j = 3\) throughout the computations, the following forms for the unknown coefficients \(I_{t}^{\alpha -1}f_{j}\), \(I_{t}^{\alpha -1}g_{j}\), \(j = 0,1,2,3\), are obtained:

$$\begin{aligned}& \begin{gathered} I_{t}^{\alpha -1}f_{0}(t)=\cos (3t), \\ I_{t}^{\alpha -1}f_{1}(t)=\sin (3t), \\ I_{t}^{\alpha -1}f_{2}(t)=-D_{t}^{\alpha } \sin (3t)+2\cos (3t) \\ \hphantom{I_{t}^{\alpha -1}f_{2}(t)}=\frac{-3}{2}t^{1-\alpha }\bigl[E_{1,2-\alpha }(3it)+E_{1,2-\alpha }(-3it) \bigr]+2\cos (3t), \\ I_{t}^{\alpha -1}f_{3}(t)=D_{t}^{\alpha } \cos (3t)+2\bigl(\sin ^{3}(3t)+\sin (3t)\cos ^{2}(3t)\bigr) \\ \hphantom{I_{t}^{\alpha -1}f_{3}(t)}=\frac{3i}{2}t^{1-\alpha }\bigl[E_{1,2-\alpha }(3it)-E_{1,2-\alpha }(-3it) \bigr]+2\bigl(\sin ^{3}(3t)+\sin (3t)\cos ^{2}(3t)\bigr), \end{gathered} \end{aligned}$$
(93)
$$\begin{aligned}& \begin{gathered} I_{t}^{\alpha -1}g_{0}(t)=-\sin (3t), \\ I_{t}^{\alpha -1}g_{1}(t)=\cos (3t), \\ I_{t}^{\alpha -1}g_{2}(t)=-D_{t}^{\alpha } \cos (3t)-2\sin (3t), \\ \hphantom{I_{t}^{\alpha -1}g_{2}(t)}=\frac{3i}{2}t^{1-\alpha }\bigl[E_{1,2-\alpha }(3it)-E_{1,2-\alpha }(-3it) \bigr]-2\sin (3t), \\ I_{t}^{\alpha -1}g_{3}(t)=-D_{t}^{\alpha } \sin (3t)-2\bigl(\cos ^{3}(3t)-\cos (3t)\sin ^{2}(3t)\bigr), \\ \hphantom{I_{t}^{\alpha -1}g_{3}(t)}=\frac{-3}{2}t^{1-\alpha }\bigl[E_{1,2-\alpha }(3it)+E_{1,2-\alpha }(-3it) \bigr]-2\bigl(\cos ^{3}(3t)-\cos (3t)\sin ^{2}(3t)\bigr). \end{gathered} \end{aligned}$$
(94)

By using some algebraic properties of complex numbers, the general pattern coinciding with the exact solution can be established as follows:

$$\begin{aligned}& u(x,t)=e^{-3it}+ie^{-3it}x +3i^{2}e^{-3it} \frac{x^{\beta +1}}{\varGamma (2+\beta )} +9i^{3}e^{-3it} \frac{x^{\beta +2}}{\varGamma (3+\beta )}+\cdots . \end{aligned}$$
(95)

It is clear from Figs. 79, the approximate solutions of Example 2 for case 1 for different orders of fractional derivatives give better results for small values x and t. However, from Figs. 1012 the approximate solutions of Example 2 for case 2 give a better result for \(0\leq x\), \(t\leq 1\).

Figure 7
figure 7

The approximate solution of Example 2 for Case 1 and \(\alpha=\beta=1\)

Figure 8
figure 8

The approximate solution of Example 2 for Case 1 and \(\alpha=\beta=0.75\)

Figure 9
figure 9

The approximate solution of Example 2 for Case 1 and \(\alpha=\beta=0.5\)

Figure 10
figure 10

The approximate solution of Example 2 for Case 2 and \(\alpha=\beta=1\)

Figure 11
figure 11

The approximate solution of Example 2 for Case 2 and \(\alpha=\beta=0.75\)

Figure 12
figure 12

The approximate solution of Example 2 for Case 2 and \(\alpha=\beta=0.5\)