In this section, we introduce some numerical examples for fractional order differential equation to illustrate the above results. All results are obtained by using Mathematica 7 program.
Example 1
Consider the second-order linear fractional differential equation (mixed type delay-advanced):
$$ y^{\prime\prime}(3x+2)+y^{\prime\prime}(x)+(x^{2}+1)D^{\nu}y(x-0.3)+D^{\alpha}y(x)+y^{}(x)=g(x), $$
(31)
the connected conditions are y(0)=0, y′(0)=1, g(x)=20.+0.445697x0.3+1.12706x0.4+x+1.71422x1.3+1.61009x1.4+x2+0.445697x2.3+1.71422x3.3and the exact solution when ν=0.7, α=0.6 is y(x)=x2+x. By using the truncated Chebyshev series (17) with the present method, we get algebraic equations using the following residual:
$$ {}\begin{aligned} R(x)=\left[X H^{2}B_{2}{(E_{3}M) }^{T}+XH^{2}M^{T}+Q_{0}\,X_{\nu}\,H_{\nu}B_{-0.3}M^{T}+ X_{\alpha}H_{\alpha} M^{T}+XM^{T}\right]A-G, \end{aligned} $$
(32)
where
$${}{\begin{aligned} X&=\left(\begin{array}{c} 1 \\ x \\ x^{2} \\ x^{3} \\ x^{4} \\ x^{5} \end{array} \right),X_{0.7}=\left(\begin{array}{c} 1 \\ x^{0.3} \\ x^{2.3} \\ x^{3.3} \\ x^{4.3} \\ x^{5.3} \end{array} \right),X_{0.6}=\left(\begin{array}{c} 1 \\ x^{0.4} \\ x^{2.4} \\ x^{3.4} \\ x^{4.4} \\ x^{5.4} \end{array} \right),B_{2}=\left(\begin{array}{cccccc} 1 & 2 & 4 & 8 & 16 & 32 \\ 0 & 1 & 4 & 12 & 32 & 80 \\ 0 & 0 & 1 & 6 & 24 & 80 \\ 0 & 0 & 0 & 1 & 8 & 40 \\ 0 & 0 & 0 & 0 & 1 & 10 \\ 0 & 0 & 0 & 0 & 0 & 1 \end{array} \right)\\ E_{3}&=\left(\begin{array}{cccccc} 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 3 & 0 & 0 & 0 & 0 \\ 0 & 0 & 9 & 0 & 0 & 0 \\ 0 & 0 & 0 & 27 & 0 & 0 \\ 0 & 0 & 0 & 0 & 81 & 0 \\ 0 & 0 & 0 & 0 & 0 & 243 \end{array} \right),Q_{0}=\left(\begin{array}{cccccc} 1+x^{2} & 0 & 0 & 0 & 0 & 0 \\ 0 & 1+x^{2} & 0 & 0 & 0 & 0 \\ 0 & 0 & 1+x^{2} & 0 & 0 & 0 \\ 0 & 0 & 0 & 1+x^{2} & 0 & 0 \\ 0 & 0 & 0 & 0 & 1+x^{2} & 0 \\ 0 & 0 & 0 & 0 & 0 & 1+x^{2} \end{array} \right),\\ H_{0.7}&=\left(\begin{array}{cccccc} 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1.11424 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1.71422 & 0 & 0 & 0 \\ 0 & 0 & 0 & 2.23594 & 0 & 0 \\ 0 & 0 & 0 & 0 & 2.71023 & 0 \\ 0 & 0 & 0 & 0 & 0 & 3.15143 \end{array} \right),M=\left(\begin{array}{cccccc} 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 \\ -1 & 0 & 2 & 0 & 0 & 0 \\ 0 & -3 & 0 & 4 & 0 & 0 \\ 1 & 0 & -8 & 0 & 8 & 0 \\ 0 & 5 & 0 & -20 & 0 & 16 \end{array} \right),\\ H_{0.6}&=\left(\begin{array}{cccccc} 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1.12706 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1.61009 & 0 & 0 & 0 \\ 0 & 0 & 0 & 2.01261 & 0 & 0 \\ 0 & 0 & 0 & 0 & 2.36777 & 0 \\ 0 & 0 & 0 & 0 & 0 & 2.69065 \end{array} \right),A^{'}=\left(\begin{array}{c} 12.0055-0.00901411 i \\ 5.92462+0.101376 i \\ 1.1573-0.216974 i \\ 0.510798+0.172611 i \\ -0.100338-0.0118752 i \\ 0.0154373-0.0681158 i \\ 0.0503126+0.0151133 i \end{array} \right).\\ H&=\left(\begin{array}{cccccc} 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 2 & 0 & 0 & 0 \\ 0 & 0 & 0 & 3 & 0 & 0 \\ 0 & 0 & 0 & 0 & 4 & 0 \\ 0 & 0 & 0 & 0 & 0 & 5 \\ 0 & 0 & 0 & 0 & 0 & 0 \end{array} \right),B_{-0.3}=\left(\begin{array}{cccccc} 1 & -0.3 & 0.09 & -0.027 & 0.0081 & -0.00243 \\ 0 & 1 & -0.6 & 0.27 & -0.108 & 0.0405 \\ 0 & 0 & 1 & -0.9 & 0.54 & -0.27 \\ 0 & 0 & 0 & 1 & -1.2 & 0.9 \\ 0 & 0 & 0 & 0 & 1 & -1.5 \\ 0 & 0 & 0 & 0 & 0 & 1 \end{array} \right). \end{aligned}} $$
Also, by using the conditions, we can generate two algebraic equations as:
$$ y(0)=X(0)M^{T}A=0, $$
(33)
$$ y'(0)=X(0)BM^{T}A=1, $$
(34)
by solving this algebraic equations, we have
$$ A=\left[ \begin{array}{ccccccc} \frac{1}{2}& 1& \frac{1}{2}& 0& 0 & 0&0\\ \end{array}\right]. $$
(35)
Then the solution of the problem (31) is
$$ y_{6} (x) =\frac{1}{2}T_{0}(x)+1\,T_{1}(x)+\frac{1}{2}\,T_{2}(x)+0\,T_{3}(x)+0\,T_{4}(x)+0\,T_{4}(x)+0\,T_{6}(x)=x^{2}+x, $$
(36)
which is the exact solution of the problem (31).
Example 2
Consider the linear fractional order delay differential equation [31]
$$ D^{\frac{1}{2}}y(x) +y(x)-y(x-1)=2x+\frac{\Gamma(3)}{\Gamma(1.5)}x^{1.5}-1, $$
(37)
the given condition is y(0)=0 and the exact solution is y(x)=x2, in [31] the solution obtained by using the shifted Jacobi polynomial scheme, the results are shown by deriving operational matrix for the fractional differentiation and integration. We will employ the present method to (37) at N=5.
We get algebraic equations by using the following residual:
$$ \begin{aligned} R(x)=\left[\,X_{0.5} H_{0.5} M^{T}+\,XM^{T} -\,X B_{-1}M^{T}\right]A-G. \end{aligned} $$
(38)
Also, by using the given condition, we can generate algebraic equation as:
$$ y(0)=X(0)M^{T}A=0. $$
(39)
By solving this algebraic equations, we have
$$ A=\left[ \begin{array}{cccccc} \frac{1}{2}& 0& \frac{1}{2}& 0& 0 & 0\\ \end{array}\right]. $$
(40)
Then, the solution is
$$ y_{5} (x) =\frac{1}{2}T_{0}(x)+\frac{1}{2}T_{2}(x)=x^{2}. $$
(41)
Comparison of the values of the exact and approximate solutions of the problem (37) is given in Table 1 and Fig. 1; in addition, comparison of the residual errors (depended on Eq. 30) by using the proposed method at different N is obtained in Table 2 and Fig. 2.
Table 1 Comparison of the values of exact and approximate solutions of the problem (37) for x values for example 2
Table 2 Comparison of the residual errors by using proposed method at different N for x values for example 2
Example 3
Consider the following fractional delay differential equation [32, 33]:
$$ D^{\alpha}y(x)+y(x)+y(x-0.3)=e^{-x+0.3},\,\,\,\ 2<\alpha\leq3, $$
(42)
with the conditions y(0)=1, y′(0)=−1, ξ0=−0.3 and the exact solution when α=3 is y(x)=e−x. By the same way, we get the following residual:
$$ \begin{aligned} R(x)=\left[X_{\alpha} H_{\alpha} M^{T}+X M^{T} +XB_{-0.3} M^{T}\right]A-G. \end{aligned} $$
(43)
Also, by using the subjected conditions we can generate two algebraic equations as:
$$ y(0)=X(0)M^{T}A=1, $$
(44)
$$ y'(0)=X(0)BM^{T}A=-1, $$
(45)
by solving these algebraic equations at α=3, we have the solution as:
$$ A=\left[ \begin{array}{ccccccccc} 1.26604&-1.12997& 0.27146& -0.04426& 0.00546& -0.00056 & 0.00004\\ \end{array}\right]. $$
(46)
Table 4 displays the residual errors at different N, while the approximate solutions obtained for various values of x by using the present method with N=6, the Hermite wavelet method [33] for N=7 and the Bernoulli wavelet method [32] together with the exact solution are listed in Table 3. Table 3 also contains the numerical results for (42) at α=2.8 and 2.6. In addition, Fig. 3 shows the approximate solutions at different α and the exact solution (α=3) and Fig. 4 shows the residual errors at different N (Table 4).
Table 3 Comparison of the approximate solutions Hermite wavelet method [33], Bernoulli wavelet method [32], and the present method with the exact solution for example 3
Table 4 Comparison of the residual errors by using proposed method at different N and α=3 for x values for example 3
Example 4
Consider the fractional delay differential equation [32, 33]:
$$ D^{\alpha}y(x)-y(x-\tau)+y(x)=\frac{2}{\Gamma({3-\alpha})}x^{2-\alpha}-\frac{1}{\Gamma({2-\alpha})}x^{1-\alpha}+2\tau x-\tau^{2}-\tau, $$
(47)
with the conditions y(0)=0,y′(0)=0 and the exact solution is y(x)=x2−x when α=1,τ=0.001, by using (17) at N=7, then the fundamental matrix equation of the problem is defined by
$$ \begin{aligned} &\left[ Q_{0}{(x)}\,X_{\alpha} H_{\alpha} M^{T}+Q^{*}_{0}{(x)}\,XM^{T} -P^{*}_{0}{(x)}\,X H_{-\tau}M^{T}\right]A-G. \end{aligned} $$
(48)
The numerical results are presented in Table 5, and the absolute errors also listed and compared with Hermite wavelet method [33].
Table 5 Comparison of the values of exact, approximate solutions for different values of x and the absolute errors at τ=0.001 for example 4
Figure 5 displays the approximate solutions obtained for values of α=1, 0.8, 0.7, 0.6, and the exact solution with N=7 and τ=0.001. From these results, it is seen that the approximate solutions converge to the exact solution.
Example 5
Consider the fractional order delay differential equation [34]:
$$ D^{\frac{3}{10}}y(x)-y(x-1)+y(x)=1-3x+3x^{2}+\frac{2000x^{2.7}}{1071\Gamma{(0.7)}}. $$
(49)
The subjected condition y(0)=0 and the exact solution is y(x)=x3. By using the truncated Chebyshev series (17), then the fundamental matrix equation of the problem is defined by
$$ \begin{aligned} R(x)=\left[ X_{\nu}H_{\nu} M^{T}+X B_{-1}M^{T}+XM^{T}\right]A-G. \end{aligned} $$
(50)
After the augmented matrices of the system and condition are computed, we obtain the coefficient matrix on the form:
$$ A=\left[ \begin{array}{ccccccccc} 0& \frac{3}{4}& 0& \frac{1}{4}& 0 & 0& 0\\ \end{array}\right]. $$
(51)
Then, the solution is of Eq. 49
$$ y_{6} (x) =\frac{3}{4} T_{1}(x)+\frac{1}{4} T_{3}(x)=x^{3}, $$
(52)
which is the exact solution of the problem (49).
Example 6
Consider the linear fractional order delay differential equation [35]:
$$ D^{\nu}y(x)-\frac{1}{2}y'(x-\pi)+\frac{1}{2}y(x)=0, $$
(53)
with the initial condition y(0)=0,y′(0)=1 and the exact solution when ν=2 is y(x)= sin(x), which is second-order delay differential equation with oscillatory in nature. By using (17) with N=6, we get algebraic equations by using the following residual:
$$ \begin{aligned} R(x)=\left[ X_{\nu} H_{\nu} M^{T}+Q_{1}\,X H B_{-\pi}M^{T} +Q_{0}\,X M^{T}\right]A. \end{aligned} $$
(54)
Also, by using the initial condition, we can generate two algebraic equations as:
$$ y(0)=X(0)M^{T}A=0, $$
(55)
$$ y'(0)=X(0)BM^{T}A=1, $$
(56)
by solving this algebraic system at ν=2, we have the solution as:
$$ A=\left[ \begin{array}{ccccccccc} 0& 0.880196& 0& -0.039119& 0 & 0.000488& 0\\ \end{array}\right], $$
(57)
then, the solution of Eq. (49) is:
$$ y_{6} (x) =0.880196 T_{1}(x)-0.039119T_{3}(x)+ 0.000488T_{5}(x). $$
(58)
Table 6 compares the values of exact and approximate solutions, x∈[0,1], while Table 7 lists the residual errors by using the proposed method at different N and ν=2.
Table 6 Comparison of the values of exact and approximate solutions for x values for example 6
Table 7 Comparison of the residual errors by using the proposed method at different Nand ν=2 for example 6