Theory and Modern Applications

# Numerical solutions of fractional optimal control with Caputo–Katugampola derivative

## Abstract

In this paper, we present a numerical technique for solving fractional optimal control problems with a fractional derivative called Caputo–Katugampola derivative. This derivative is a generalization of the Caputo fractional derivative. The proposed technique is based on a spectral method using shifted Chebyshev polynomials of the first kind. The Clenshaw and Curtis scheme for the numerical integration and the Rayleigh–Ritz method are used to estimate the state and control variables. Moreover, the error bound of the fractional derivative operator approximation of Caputo–Katugampola is derived. Illustrative examples are provided to show the validity and applicability of the presented technique.

## Introduction

In recent years, many engineering and science problems have arisen in fractional differential equations (FDEs). Torvik and Bagley  utilized a fractional derivative to depict the behavior of viscoelastic materials. The fractional logistic model with feedback control has been suggested and analyzed in . Characterization and synthesis of the frequency-band complex noninteger differentiator are studied in . A rational approximation technique is used to approximate the fractional order optimal control problems (FOCPs) in .

The main idea of FDEs is the order of the derivative is replaced with a noninteger order. Various definitions of a fractional derivative have been presented in the literature such as Riemann–Liouville, Caputo (see [22, 23, 25, 27, 29]). Recently, several definitions of fractional operators and generalized fractional derivatives have been presented [5, 30, 40]. Katugampola proposed a generalization of the Caputo fractional derivative (see [1, 19, 20]). Furthermore, Abdeljawad et al. evolved them in various research papers [1, 18].

Optimal control problems (OCPs) appear widely in various applications such as aerospace, atmospheric reentry, quantum systems, and space shuttle. Bonnard et al. in  used the smooth continuation method in optimal control and performed the analysis of a dissipative two-level quantum system. In , the homotopy method combined with the shooting method is used to solve an optimal control problem of the atmospheric reentry of a space shuttle .

Nowadays, numerous researchers have widespread OCPs to the fractional case where the dynamic of systems involves a fractional derivative term. Fractional optimal control problems (FOCPs) have been widely investigated in the literature. Agrawal  provided a general formulation for a class of FOCPs, and this formulation is similar to the classical OCPs. In , the authors used a modified hat function to solve a class of FOCPs. FOCPs with free terminal time are considered in . In , time-fractional optimal control problems with Caputo–Fabrizio fractional derivative are presented. In all these papers, FOCPs have been defined with respect to different definitions of fractional derivatives such as Riemann–Liouville and Caputo. However, FOCPs with Caputo–Katugampola derivative have not been investigated yet, and to the best of our knowledge, it is the first time that FOCPs with Caputo–Katugampola derivative are studied in the literature. The Caputo–Katugampola derivative is highly influenced by the value of α and another parameter ρ which is beneficial in graphical simulations associated with real data, see . The motivation of this paper is to investigate the nature of a class of FOCPs with various fractional-order values and an additional parameter ρ. Therefore, in this paper, we deal with the numerical solutions of FOCPs with Caputo–Katugampola derivative, and we derive an estimation of the Caputo–Katugampola definition in terms of Chebyshev polynomials.

In order to find the numerical solutions of FOCPs, the spectral method which tries to approximate the unknown functions by means of orthogonal polynomials, namely Chebyshev polynomials, is used ([8, 21]). Furthermore, the Clenshaw and Curtis technique (see [12, 35]) has been utilized to discretize the objective function, and the optimality conditions have been obtained by the Rayleigh–Ritz method.

The main aim of this paper is to study the numerical solution for the FOCP in the following form:

$$\text{minimize } \mathcal{J}(x,u,t_{f})= \int _{a}^{t_{f}}G\bigl(t,x(t),u(t)\bigr)\,dt,$$
(1)

subject to

\begin{aligned}& \mathcal{Q}_{1}\dot{x}(t)+\mathcal{Q}_{2}{}^{C}D_{a^{+}}^{\alpha , \rho }x(t) = \psi \bigl(t,x(t)\bigr)+\chi \bigl(t,x(t)\bigr)u(t), \end{aligned}
(2)
\begin{aligned}& x(a)=x_{a},\qquad x(t_{f})=x_{f}, \end{aligned}
(3)

where $${}^{C}D_{a^{+}}^{\alpha ,\rho }$$ is the Caputo–Katugampola derivative operator, $$\mathcal{Q}_{1},\mathcal{Q}_{2}\neq 0$$, $$t_{f}$$, $$x_{a}$$, $$x_{f}$$ are fixed real numbers and $$\chi (t,x(t))\neq 0$$, $$\forall t\in [a,t_{f}]$$.

The rest of the paper is given as follows: In Sect. 2, the properties of shifted Chebyshev polynomials of the first kind and various definitions of the fractional derivatives and integrals are given. In Sect. 3, the Caputo–Katugampola derivative is approximated in terms of Chebyshev polynomials, and the error bound of the Caputo–Katugampola derivative operator is derived. The structure of the proposed numerical scheme is provided in Sect. 4. Section 5 deals with applying the presented scheme to some FOCPs to show its validity and applicability. The conclusions are stated in Sect. 6.

## Basic notations and preliminaries

This section provides some definitions of fractional derivatives and integrals that have been presented in the literature and some properties of the Chebyshev polynomials of the first kind.

### Fractional derivatives and integrals

In the following, we recall some definitions regarding fractional integrals and derivatives.

### Definition 2.1

([25, 27, 32])

The Riemann–Liouville fractional integral of order $$\alpha >0$$ is given by

$${ }_{0} I^{\alpha } y(t)=\frac{1}{\Gamma (\alpha )} \int _{0}^{t}(t-s)^{ \alpha -1} y(s) \,d s,\quad t>0,$$

where $$\Gamma (\cdot )$$ is the gamma function defined by

$$\Gamma (z) := \int _{0}^{\infty }e^{-u}u^{z-1} \,du, \quad Re\{z\} >0.$$

The Riemann–Liouville fractional derivative of order $$\alpha >0$$ is defined by

$${ }_{0} D^{\alpha } y (t)= \biggl(\frac{d}{d t} \biggr)^{n}{ }_{0} I^{n- \alpha } y(t), \quad n=[\alpha ]+1.$$

### Definition 2.2

()

The Caputo fractional of order $$\alpha >0$$ has the following form:

$${ }_{0} D^{\alpha } y (t)={ }_{0} I^{n-\alpha } y^{(n)}(t), \quad n=[ \alpha ]+1.$$

### Definition 2.3

(see [4, 7, 18, 19])

Suppose that y is an integrable function on $$[a,b]$$, where $$0 < a < b < \infty$$. For $$0<\alpha < 1$$ and $$\rho > 0$$, the Caputo–Katugampola fractional derivative of order α is defined by

$${}^{C}D_{a^{+}}^{\alpha ,\rho }y(t) = \frac{\rho ^{\alpha }}{\Gamma (1-\alpha )}t^{1-\rho }\frac{d}{dt} \int _{a}^{t} \frac{s^{\rho -1}}{(t^{\rho }-s^{\rho })^{\alpha }}\bigl[y(s) - y(a) \bigr]\,ds.$$
(4)

Also, we give the following theorem that gives an equivalent form of Caputo–Katugampola fractional derivatives in Definition 2.3, when $$y \in C^{1}[a, b]$$.

### Theorem 1

()

Assume that $$y \in C^{1}[a, b]$$, then

$${}^{C}D_{a^{+}}^{\alpha ,\rho }y(t)= \frac{\rho ^{\alpha }}{\Gamma (1-\alpha )} \int _{a}^{t} \frac{y'(s)}{(t^{\rho }-s^{\rho })^{\alpha }} \,ds.$$
(5)

### Remark 2.1

In case $$\rho = 1$$, the Caputo–Katugampola fractional derivative is reduced to the classical Caputo fractional derivative, and for $$\rho \to 0^{+}$$, we get the Caputo–Hadamard fractional derivative [15, 18].

### Definition 2.4

([19, 31])

The Caputo–Katugampola fractional integral is defined by

$${ }_{0} I^{\alpha , \rho } y(t)=\frac{1}{\Gamma (\alpha )} \int _{0}^{t} \biggl(\frac{t^{\rho }-s^{\rho }}{\rho } \biggr)^{\alpha -1} y(s) \frac{d s}{s^{1-\rho }}.$$

### Definition 2.5

([3, 29])

Let $$\alpha \in \mathbb{R^{+}}$$, $$I=[a,b]$$, y be an integrable function on I, $$\psi \in C^{n}(I)$$ be increasing, and $$\psi ^{\prime }(x) \neq 0$$ for all $$x \in I$$. The ψ-Riemann–Liouville fractional integral and fractional derivative are defined by

$$I_{a+}^{\alpha , \psi } y(t):=\frac{1}{\Gamma (\alpha )} \int _{a}^{t} \psi ^{\prime }(s) \bigl(\psi (t)-\psi (s)\bigr)^{\alpha -1} y(s) \,d s$$

and

$$D_{a+}^{\alpha , \psi } y(t):= \biggl(\frac{1}{\psi ^{\prime }(t)} \frac{d}{d x} \biggr)^{n} I_{a+}^{n-\alpha , \psi } y(t) ,$$

where $$n=[\alpha ]+1$$.

### Shifted Chebyshev polynomials of the first kind

The Chebyshev polynomials of the first kind with degree n, $$n\geq 0$$, are defined as follows:

$$T_{n}(x)=\cos (n\arccos x), \quad x\in [-1,1].$$

These polynomials satisfy the following recurrence relation:

$$T_{n+1}(x)= 2x T_{n}(x)-T_{n-1}(x),$$

with starting values $$T_{0}(x)=1$$ and $$T_{1}(x)=x$$. The explicit analytic form of $$T_{n}(x)$$ is given by

$$T_{n}(x)=\sum_{i=0}^{\lfloor n/2 \rfloor }(-1)^{i} 2^{n-2 i-1} \frac{n (n-i-1)!}{(i)! (n-2 i)!} x^{n-2 i},$$
(6)

where $$\lfloor n/2 \rfloor$$ denotes the greatest integer less than or equal to $$n/2$$. It is known that the Chebyshev polynomials of the first kind satisfy the following orthogonality relations:

$$\int _{-1}^{1}\frac{T_{i}(x) T_{j}(x)}{\sqrt{1-x^{2}}} \,dx= \textstyle\begin{cases} \pi & \text{for }i=j=0; \\ \frac{\pi }{2} & \text{for }i=j\neq 0; \\ 0 & \text{for }i\neq j. \end{cases}$$
(7)

Some of useful properties of Chebyshev polynomials  are the following:

$$\bigl\vert T_{n}(x) \bigr\vert \leq 1, \qquad \bigl\vert T'_{n}(x) \bigr\vert \leq n^{2}.$$

The shifted Chebyshev polynomials of the first kind $$T^{*}_{n}(t)$$ are defined on $$[0,\tau ]$$ as follows:

$$T_{n}^{*}(t) = T_{n} \biggl( \frac{2t}{\tau }-1 \biggr).$$

Again, it is known that the explicit analytic form of the shifted Chebyshev polynomials of the first kind is given by

$$T^{*}_{n}(t)=n\sum _{k=0}^{n}(-1)^{n-k} \frac{2^{2k} (n+k-1)!}{(2k)! (n-k)!\tau ^{k}} t^{k},\quad n=1,2, \ldots ,$$
(8)

and $$T_{n}^{*}(t)$$ are orthogonal polynomials on the interval $$[0, \tau ]$$ with respect to the weight function $$\frac{1}{\sqrt{\tau t-t^{2}}}$$, that is,

$$\int _{0}^{\tau }\frac{T^{*}_{j}(t)T^{*}_{k}(t)}{\sqrt{\tau t-t^{2}}}\,dt= \textstyle\begin{cases} \pi & \text{for }j=k=0; \\ \frac{\pi }{2} & \text{for }j=k\neq 0; \\ 0 & \text{for }j\neq k. \end{cases}$$
(9)

## Numerical approximations

A function $$f\in L^{2}([0,\tau ])$$ can be expanded in terms of shifted Chebyshev polynomials as follows:

$$f(t)=\sum_{m=0}^{\infty }a_{m}T^{*}_{m}(t) \quad \text{with } a_{m}= \frac{2}{\pi c_{m}} \int _{0}^{\tau } \frac{f(t)T^{*}_{m}(t)}{\sqrt{\tau t-t^{2}}}\,dt,$$
(10)

with $$c_{0}=2$$ and $$c_{i}=1$$ for all $$i\geq 1$$.

Let $$f\in C[0,\tau ]$$ and $$\mathcal{N}$$ be a positive integer. Denote

$$f_{\mathcal{N}}(t)=\sum_{n=0}^{\mathcal{N}}{}^{\prime \prime } \tilde{a}_{n}T_{n}^{*}(t), \quad \text{with } \tilde{a}_{n}=\frac{2}{\mathcal{N}}\sum_{r=0}^{ \mathcal{N}}{}^{\prime \prime }f(t_{r})T_{n}^{*}(t_{r}),$$
(11)

where $$f_{\mathcal{N}}(t)$$ is the Chebyshev–Gauss–Lobatto (CGL) interpolation of $$f(t)$$ on $$[0,\tau ]$$ and the CGL points ([11, 34])

\begin{aligned} t_{r}=\frac{\tau }{2}-\frac{\tau }{2}\cos \biggl( \frac{\pi r}{\mathcal{N}} \biggr),\quad r=0,1,\dots ,\mathcal{N}. \end{aligned}

It is important to mention that the double-primed summation means halving the first and the last terms.

To compute an approximate solution for a definite integral of a continuous function $$g:[-1,1]\rightarrow \mathbb{R}$$ over the interval $$[-1, 1]$$, we use the Clenshaw and Curtis formula (see [12, 35])

$$\int _{-1}^{1}g(t)\,dt\simeq \sum _{j=0}^{\mathcal{N}}\omega _{j}g(t_{j}),$$
(12)

where $$\omega _{j}$$, $$j=0,1,\dots ,\mathcal{N}$$, are weights and $$t_{j}$$, $$j=0,1,\dots ,\mathcal{N}$$, are the roots of $$(1-t^{2})\frac{dT_{\mathcal{N}}(t)}{dt}$$. For $$\mathcal{N}$$ even, the weights are:

\begin{aligned}& \omega _{0}=\omega _{\mathcal{N}}=\frac{1}{\mathcal{N}^{2}-1}, \\& \omega _{s}=\omega _{\mathcal{N}-s}=\frac{4}{\mathcal{N}}\sum _{j=0}^{ \frac{\mathcal{N}}{2}}{}^{\prime \prime }\frac{1}{4-j^{2}}\cos \biggl( \frac{2\pi js}{\mathcal{N}} \biggr), \quad s=1,\dots , \frac{\mathcal{N}}{2}, \end{aligned}

while the weights for $$\mathcal{N}$$ odd are determined by

\begin{aligned}& \omega _{0}=\omega _{\mathcal{N}}=\frac{1}{\mathcal{N}^{2}}, \\& \omega _{s}=\omega _{\mathcal{N}-s}=\frac{4}{\mathcal{N}}\sum _{j=0}^{ \frac{\mathcal{N}-1}{2}}{}^{\prime \prime }\frac{1}{4-j^{2}}\cos \biggl( \frac{2\pi js}{\mathcal{N}} \biggr), \quad s=1,\dots , \frac{\mathcal{N}-1}{2}. \end{aligned}

Next, we study the convergence of the proposed technique.

### Theorem 2

The series in Eq. (10) converges to the exact solution.

### Proof

Consider the exact and the truncated series such that $$\mathcal{M} \geq \mathcal{N}$$ are given as follows:

$$f(t)=\sum_{i=0}^{\infty } a_{i} T^{*}_{i}(t), \qquad f_{\mathcal{M}}(t) \simeq \sum_{i=0}^{\mathcal{M}} a_{i} T^{*}_{i}(t), \qquad f_{ \mathcal{N}}(t) \simeq \sum _{i=0}^{\mathcal{N}} a_{i} T^{*}_{i}(t).$$
(13)

Then we have

$$\bigl\langle f(t), f_{\mathcal{M}}(t) \bigr\rangle _{w(t)}= \Biggl\langle f(t), \sum_{i=0}^{ \mathcal{M}} a_{i} T^{*}_{i}(t) \Biggr\rangle _{w(t)}=\sum_{i=0}^{ \mathcal{M}} \bar{a}_{i} \bigl\langle f(t), T^{*}_{i}(t) \bigr\rangle _{w(t)}= \sum_{i=0}^{\mathcal{M}} \bar{a}_{i} a_{i}=\sum_{i=0}^{\mathcal{M}} \vert a_{i} \vert ^{2}.$$

In what follows, we show that $$f_{\mathcal{M}}(t)$$ is a Cauchy sequence in $$L_{w}^{2}[0,1]$$ and consequently it converges. From Eq. (13), we have

$$\bigl\Vert f_{\mathcal{M}}(t)-f_{\mathcal{N}}(t) \bigr\Vert _{w(t)}^{2}= \sum_{i=\mathcal{N}+1}^{\mathcal{M}} \vert a_{i} \vert ^{2}.$$

Using Bessel’s inequality, $${\sum_{i=\mathcal{N}+1}^{\mathcal{M}} \vert a_{i} \vert ^{2} \to 0}$$ as $$\mathcal{M,N} \to \infty$$, therefore $$f_{\mathcal{M}}$$ is a Cauchy, and by the completeness of $$L_{w}^{2}$$, $$f_{\mathcal{M}}$$ converges to $$\vartheta (t) \in L_{w}^{2}$$. Now, we prove that $$f(t) = \vartheta (t)$$,

\begin{aligned} \bigl\langle f(t)-\vartheta (t), T^{*}_{k}(t) \bigr\rangle _{w(t)}&= \bigl\langle f(t), T^{*}_{k}(t) \bigr\rangle _{w(t)}- \bigl\langle \vartheta (t), T^{*}_{k}(t) \bigr\rangle _{w(t)} \\ &=a_{k}- \Bigl\langle {\lim_{\mathcal{M} \rightarrow \infty } f_{ \mathcal{M}}(t)}, T^{*}_{k}(t) \Bigr\rangle _{w(t)}\\ &=a_{k}- { \lim_{\mathcal{M} \rightarrow \infty } \bigl\langle f_{\mathcal{M}}(t), T^{*}_{k}(t) \bigr\rangle _{w(t)}}=a_{k}-a_{k}=0. \end{aligned}

□

### Approximation of the Caputo–Katugampola fractional derivative

In what follows, we give some fundamental results for the fractional derivative $${}^{C}D_{0^{+}}^{\alpha ,\rho }f(t)$$. First, we present a lemma which helps us in the proofs that follow.

### Lemma 3.1

If $$f,f^{(1)},\dots ,f^{(\nu )} \in AC[0,1]$$ and $$|f^{(\nu +1)}(t)|\leq W_{\nu }<\infty$$, $$\forall t \in [0,1]$$, for some $$\nu \geq 0$$, then for each $$m\geq \nu +1$$,

$$\vert a_{m} \vert \leq \frac{W_{\nu }}{2^{\nu }m(m-1)\cdots (m-\nu )}.$$
(14)

### Proof

Using the substitution $$x=\frac{1}{2}(1+\cos \theta )$$, we have

\begin{aligned} a_{m}&=\frac{2}{\pi c_{m}} \int _{0}^{1} \frac{f(x)T^{*}_{m}(x)}{\sqrt{x-x^{2}}}\,dx \\ &=\frac{2}{\pi c_{m}} \int _{0}^{\pi }f \biggl(\frac{1+\cos\theta}{2} \biggr)T_{m}(\cos \theta )\,d\theta \\ &=\frac{2}{\pi c_{m}} \int _{0}^{\pi }f \biggl(\frac{1+\cos\theta}{2} \biggr)\cos (m\theta ) \,d\theta . \end{aligned}

Integrating by parts,

\begin{aligned} a_{m}&=\frac{1}{m\pi c_{m}} \int _{0}^{\pi }f' \biggl(\frac{1+\cos\theta}{2} \biggr) \sin \theta \sin (m\theta )\,d \theta \\ &=\frac{1}{m\pi c_{m}} \int _{0}^{\pi }f' \biggl(\frac{1+\cos\theta}{2}\biggr) \biggl(\frac{\cos ((m-1)\theta )}{2}- \frac{\cos ((m+1)\theta )}{2} \biggr)\,d\theta . \end{aligned}
(15)

For $$\nu =0$$,

\begin{aligned} \vert a_{m} \vert & \leq \frac{1}{m \pi c_{m}} \int _{0}^{\pi } \biggl\vert f' \biggl(\frac{1+\cos\theta}{2} \biggr) \biggr\vert \biggl\vert \frac{\cos ((m-1)\theta )}{2}-\frac{\cos ((m+1)\theta )}{2} \biggr\vert \,d \theta \\ & \leq \frac{1}{m} W_{0}. \end{aligned}

Moreover, integration by parts for (15) brings higher derivatives of f and shows more cosine terms. It is noticeable that there is a factor m in the denominator of (15). The second integration by parts gives factors $$m-1$$ and $$m+1$$, the third provides factors $$m-2$$, m, and $$m+2$$, and so on. For simplicity, we replace all various denominators with $$m-1$$ at the second differentiation, $$m-2$$ at the third differentiation, and so on until $$m - \nu$$ at the $$(\nu + 1)\text{st}$$ differentiation, hence we fulfilled the desired result. □

Now, we give an estimation of $${}^{C}D_{0^{+}}^{\alpha , \rho }f_{\mathcal{N}}(t)$$ in terms of Chebyshev polynomials.

### Theorem 3

The Caputo–Katugampola fractional derivatives of the function $$f_{\mathcal{N}}(t)$$ defined in Eq. (11) can be obtained as follows:

$${}^{C}D_{0^{+}}^{\alpha , \rho }f_{\mathcal{N}}(t) = \sum_{n=1}^{ \mathcal{N}}{}^{\prime } n \tilde{a}_{n} \sum_{k=1}^{n} \frac{(-1)^{n-k} 2^{2k} (n+k-1)!}{(2k)! (n-k)! \tau ^{k}} \frac{\rho ^{\alpha }\Gamma (\frac{k}{\rho } + 1)}{\Gamma (\frac{k}{\rho }+1-\alpha )}t^{k- \alpha \rho },$$
(16)

where the primed summation means that the last term is halved.

### Proof

Let us assume that $$y(t) = t^{n}$$ in (5) and take $$\theta =\frac{s^{\rho }}{t^{\rho }}$$, then we get

\begin{aligned} {}^{C}D_{0^{+}}^{\alpha , \rho } t^{n} &= \frac{n\rho ^{\alpha - 1}}{\Gamma (1-\alpha )}t^{n-\alpha \rho } \int _{0}^{1} \frac{\theta ^{\frac{n-\rho }{\rho }}}{(1-\theta )^{\alpha }}\,d\theta \\ &= \frac{n\rho ^{\alpha - 1}}{\Gamma (1-\alpha )}t^{n-\alpha \rho } \int _{0}^{1}\theta ^{\frac{n}{\rho }-1}(1-\theta )^{(1-\alpha )-1}\,d \theta \\ &= \frac{n\rho ^{\alpha - 1}}{\Gamma (1-\alpha )}t^{n-\alpha \rho } B\biggl(1- \alpha , \frac{n}{\rho } \biggr) \\ &= \frac{n\rho ^{\alpha - 1}}{\Gamma (1-\alpha )}t^{n-\alpha \rho } \frac{\Gamma (1-\alpha ) \Gamma (\frac{n}{\rho })}{\Gamma (\frac{n}{\rho }+1-\alpha )} \\ &= \frac{n\rho ^{\alpha - 1}\Gamma (\frac{n}{\rho })}{\Gamma (\frac{n}{\rho }+1-\alpha )}t^{n- \alpha \rho }, \end{aligned}

where $$B(\cdot,\cdot)$$ is the beta function. Then, from Eq. (8) and Eq. (11), we have

$${}^{C}D_{0^{+}}^{\alpha , \rho }f_{\mathcal{N}}(t) = \sum _{n=1}^{ \mathcal{N}}{}^{\prime } n \tilde{a}_{n} \sum_{k=1}^{n} \frac{(-1)^{n-k} 2^{2k} (n+k-1)!}{(2k)! (n-k)! \tau ^{k}} \frac{\rho ^{\alpha }\Gamma (\frac{k}{\rho } + 1)}{\Gamma (\frac{k}{\rho }+1-\alpha )}t^{k- \alpha \rho }.$$

□

In the following theorem, based on the proof of Theorem 2.1 , we show an estimation of the error bound of the fractional derivative operator of Caputo–Katugampola.

### Theorem 4

Suppose that f satisfies conditions of Lemma 3.1, $$\nu >2$$. Then, for $$\mathcal{N} \geq \nu +1$$,

\begin{aligned} &\bigl\vert {}^{C}D_{0^{+}}^{\alpha , \rho }f(t)-{}^{C}D_{0^{+}}^{\alpha , \rho }f_{\mathcal{N}}(t) \bigr\vert \\ &\quad \leq \frac{W_{\nu } (\mathcal{N}+1) \Gamma (\frac{1}{\rho }+1) \rho ^{\alpha } t^{1-\alpha \rho }}{\Gamma (\frac{1}{\rho }+1-\alpha ) 2^{\nu -2}\mathcal{N}(\nu -2)(\mathcal{N}-2)(\mathcal{N}-3)\cdots (\mathcal{N}-\nu +1)}. \end{aligned}
(17)

### Proof

From the Caputo–Katugampola derivative definition given in (5), we obtain

$$\bigl\vert {}^{C}D_{0^{+}}^{\alpha , \rho }f(t)-{}^{C}D_{0^{+}}^{\alpha , \rho }f_{\mathcal{N}}(t) \bigr\vert = \biggl\vert \frac{\rho ^{\alpha }}{\Gamma (1-\alpha )} \int _{0}^{t} \bigl(f'(s)-f'_{ \mathcal{N}}(s) \bigr) \bigl(t^{\rho }-s^{\rho } \bigr)^{-\alpha }\,ds \biggr\vert$$
(18)

and

\begin{aligned} \bigl\vert f'(s)-f'_{\mathcal{N}}(s) \bigr\vert &= \Biggl\vert \sum_{j=1}^{ \infty }a_{j}T^{*'}_{j}(s)- \sum_{j=1}^{\mathcal{N}-1}\tilde{a}_{j}T^{*'}_{j}(s)- \frac{1}{2}{\tilde{a}}_{\mathcal{N}}T^{*'}_{\mathcal{N}}(s) \Biggr\vert \\ & \leq \sum_{j=1}^{\mathcal{N}-1} \vert a_{j}-\tilde{a}_{j} \vert \bigl\vert T^{*'}_{j}(s) \bigr\vert + \biggl\vert a_{\mathcal{N}}- \frac{\tilde{a}_{\mathcal{N}}}{2} \biggr\vert \bigl\vert T^{*'}_{\mathcal{N}}(s) \bigr\vert \\ & \quad {}+\sum_{j=\mathcal{N}+1}^{\infty } \vert a_{j} \vert \bigl\vert T^{*'}_{j}(s) \bigr\vert . \end{aligned}

Then

$$\bigl\vert f'(s)-f'_{\mathcal{N}}(s) \bigr\vert \leq 2 \sum_{j=1}^{ \mathcal{N}-1} \vert a_{j}-\tilde{a}_{j} \vert j^{2}+2 \biggl\vert a_{ \mathcal{N}}-\frac{\tilde{a}_{\mathcal{N}}}{2} \biggr\vert \mathcal{N}^{2}+2 \sum_{j=\mathcal{N}+1}^{\infty } \vert a_{j} \vert j^{2},$$
(19)

since $$\vert T^{*'}_{j}(s) \vert \leq 2 j^{2}$$ for all $$j=0,1,\dots$$. The relation between $$\tilde{a}_{j}$$ and $$a_{j}$$ given in [10, 12]

$$\tilde{a}_{n} =a_{n} +\sum_{j=1}^{\infty }(a_{n+2j\mathcal{N}} + a_{-n+2j \mathcal{N}})$$

yields the following inequality :

$$\sum_{j=1}^{\mathcal{N}-1} \vert a_{j}- \tilde{a}_{j} \vert + \biggl\vert a_{ \mathcal{N}}- \frac{\tilde{a}_{\mathcal{N}}}{2} \biggr\vert \leq \sum_{j= \mathcal{N}+1}^{\infty } \vert a_{j} \vert .$$

Therefore,

\begin{aligned} \sum_{j=1}^{\mathcal{N}-1} \vert a_{j}-\tilde{a}_{j} \vert j^{2}+ \biggl\vert a_{\mathcal{N}}- \frac{\tilde{a}_{\mathcal{N}}}{2} \biggr\vert \mathcal{N}^{2}& \leq \sum_{j=1}^{ \mathcal{N}-1} \vert a_{j}-\tilde{a}_{j} \vert \mathcal{N}^{2}+ \biggl\vert a_{\mathcal{N}}-\frac{\tilde{a}_{\mathcal{N}}}{2} \biggr\vert \mathcal{N}^{2} \\ &\leq \mathcal{N}^{2}\sum_{j=\mathcal{N}+1}^{\infty } \vert a_{j} \vert \leq \sum_{j=\mathcal{N}+1}^{\infty } \vert a_{j} \vert j^{2}. \end{aligned}

Thus, from (18) and (19),

\begin{aligned} \bigl\vert {}^{C}D_{0^{+}}^{\alpha , \rho }f(t)- {}^{C}D_{0^{+}}^{ \alpha , \rho }f_{\mathcal{N}}(t) \bigr\vert & \leq \frac{4 \rho ^{\alpha }}{\Gamma (1-\alpha )} \sum_{j=\mathcal{N}+1}^{ \infty } \vert a_{j} \vert j^{2} \int _{0}^{t} \bigl(t^{\rho }-s^{ \rho } \bigr)^{-\alpha }\,ds \\ & \leq \sum_{j=\mathcal{N}+1}^{\infty } \frac{W_{\nu } j^{2} \Gamma (\frac{1}{\rho }+1) \rho ^{\alpha } t^{1-\alpha \rho }}{\Gamma (\frac{1}{\rho }+1-\alpha ) 2^{\nu -2}j(j-1)\cdots (j-\nu )} \\ & \leq \sum_{j=\mathcal{N}+1}^{\infty } \frac{W_{\nu } (\mathcal{N}+1) \Gamma (\frac{1}{\rho }+1) \rho ^{\alpha } t^{1-\alpha \rho } }{\Gamma (\frac{1}{\rho }+1-\alpha ) 2^{\nu -2}\mathcal{N}(j-2)\cdots (j-\nu )} \\ &= \frac{W_{\nu } (\mathcal{N}+1) \Gamma (\frac{1}{\rho }+1) \rho ^{\alpha } t^{1-\alpha \rho }}{\Gamma (\frac{1}{\rho }+1-\alpha ) 2^{\nu -2}\mathcal{N}(\nu -2)(\mathcal{N}-2)(\mathcal{N}-3)\cdots (\mathcal{N}-\nu +1)}. \end{aligned}

The proof is complete. □

### Remark 3.1

The error bound in Theorem 4 converges to zero as $$\mathcal{N} \to \infty$$ for all $$t>0$$

## The structure of the numerical scheme

In what follows, we list the main steps to find the solution of Eqs. (1)–(3). It is important to mention that this technique is generally known as a “direct method”. The basic steps are given as follows:

Step 1::

Use Eq. (2) to write Eq. (1) without the control function u.

Step 2::

Approximate both the unknown function x and its Caputo–Katugampola fractional derivative by using Eq. (11) and Eq. (16).

Step 3::

In order to use the integration on the interval $$[-1,1]$$, we take the transformation $$t=a+\frac{t_{f}-a}{2}(\eta +1)$$.

Step 4::

Approximate the integral whose limits are −1 to 1 by using the Clenshaw and Curtis formula given by Eq. (12).

Step 5::

Determine the critical points of Eq. (1) using the Rayleigh–Ritz approach as follows:

\begin{aligned} \frac{\partial \mathcal{J}}{\partial x(t_{i})}=0,\quad i = 1,2, \ldots ,\mathcal{N}-1, \end{aligned}

which yields a system of nonlinear algebraic equations.

Step 6::

Use Newton’s iterative method to solve the nonlinear system and get the values $$x(t_{i})$$, $$i=1,2,\ldots ,\mathcal{N}-1$$.

Step 7::

Compute the solutions x of the FOPC by

$$x(t) = \frac{2}{\mathcal{N}}\sum_{n=0}^{\mathcal{N}}{}^{\prime \prime } \sum_{r=0}^{ \mathcal{N}}{}^{\prime \prime }x(t_{r})T^{*}_{n}(t_{r})T^{*}_{n}(t),$$

where $$x(t_{0})$$ and $$x(t_{\mathcal{N}})$$ are calculated from the boundary conditions. Moreover, we use Eq. (2) to find the control function u.

## Numerical results

In this section, we apply the proposed numerical approach in Sect. 4 to illustrative examples.

### Example 1

Consider a FOCP as follows:

\begin{aligned}& \min \mathcal{J}(x,u)= \int _{0}^{1}\bigl(tu(t)-(\alpha \rho +2)x(t) \bigr)^{2}\,dt, \\& \dot{x}(t)+{}^{C}D_{0^{+}}^{\alpha , \rho }x(t)=u(t)+ \frac{2\rho ^{\alpha }\Gamma (\alpha +\frac{2}{\rho }+1)}{\Gamma (\alpha \rho +3)\Gamma (\frac{2}{\rho }+1)}t^{2}, \\& x(0)=0,\quad x(1)=\frac{2}{\Gamma (\alpha \rho +3)}. \end{aligned}

The exact solution is provided by

$$\bigl(x(t),u(t)\bigr)= \biggl( \frac{2t^{\alpha \rho +2}}{\Gamma (\alpha \rho +3)}, \frac{2t^{\alpha \rho +1}}{\Gamma (\alpha \rho +2)} \biggr).$$

Table 1 shows the maximum absolute errors for the proposed technique and other published results in the literature at $$\rho = 1$$ and $$\alpha = 0.5$$ with different values of $$\mathcal{N}$$. It is obvious that the accuracy of the proposed technique is better than that of other methods. In addition, Tables 2, 3, and 4 show the maximum absolute errors $$E_{x}$$ and $$E_{u}$$ of the state and control with various choices of α, ρ, and $$\mathcal{N}$$, respectively. Moreover, the approximate value of the objective function $$\mathcal{J}$$ is given. Figures 1 and 2 elucidate the approximate of the state and control at $$\mathcal{N}=3$$, with different values of ρ, $$\alpha = 0.5$$ and $$\alpha = 0.9$$, respectively. Figure 3 shows the exact and the approximate solutions of $$x(t)$$ and $$u(t)$$ using $$\rho = 1.5$$ and $$\alpha = 0.5$$. Finally, in Table 5, we compute $$E_{x}$$ and $$E_{u}$$ at $$\alpha = 1$$ and $$\rho = 1$$ with various choices of $$\mathcal{N}$$. It is clear that the numerical results agree with the analytical solutions and the proposed technique gives accurate numerical results.

### Example 2

We consider an FOCP in the form

\begin{aligned}& \min \mathcal{J}(x,u)= \int _{0}^{1}\bigl(u(t)-x(t)\bigr)^{2} \,dt, \\& \dot{x}(t)+{}^{C}D_{0^{+}}^{\alpha , \rho }x(t)=u(t)-x(t)+ \frac{6t^{\alpha \rho +2}}{\Gamma (\alpha \rho +3)}+ \frac{6\rho ^{\alpha }\Gamma (\alpha +\frac{3}{\rho }+1)}{\Gamma (\alpha \rho +4)\Gamma (\frac{3}{\rho }+1)}t^{3}, \\& x(0)=0,\qquad x(1)=\frac{6}{\Gamma (\alpha \rho +4)}. \end{aligned}

The exact solution is provided by

$$\bigl(x(t),u(t)\bigr)= \biggl( \frac{6t^{\alpha \rho +3}}{\Gamma (\alpha \rho +4)}, \frac{6t^{\alpha \rho +3}}{\Gamma (\alpha \rho +4)} \biggr).$$

In Tables 6, 7, and 8, we obtain the computational results of $$E_{x}$$, $$E_{u}$$, and $$\mathcal{J}$$ with different values of ρ, α when the value of $$\mathcal{N}$$ increases. The approximate state and control with various choices of ρ and α are displayed in Figs. 4 and 5. Furthermore, Fig. 6 displays the approximate solutions of $$x(t)$$ and $$u(t)$$ with their exact solutions. It is evident from the results of Examples 5.1 and 5.2 that the approximate solutions converge to the exact solutions by increasing the value of $$\mathcal{N}$$.

## Conclusions

In this work, the numerical solutions of FOCPs involving the Caputo–Katugampola derivative have been presented. The numerical scheme used in this paper is called a direct method, and it is based on expanding the unknown function in terms of shifted Chebyshev polynomials of the first kind and using the Clenshaw and Curtis formula to approximate the integration. Then, we have deduced an estimation of the error bound of a fractional derivative operator of Caputo–Katugampola. Finally, some numerical examples are supplied to show the capability and accuracy of the proposed scheme.

## Availability of data and materials

Data sharing is not applicable to this study.

## References

1. Abdeljawad, T., Madjidi, F., Jarad, F., Sene, N.: On dynamic systems in the frame of singular function dependent kernel fractional derivatives. Mathematics 7(10), 946 (2019)

2. Agrawal, O.P.: A general formulation and solution scheme for fractional optimal control problems. Nonlinear Dyn. 38(1), 323–337 (2004)

3. Almeida, R.: A Caputo fractional derivative of a function with respect to another function. Commun. Nonlinear Sci. Numer. Simul. 44, 460–481 (2017)

4. Almeida, R., Malinowska, A.B., Odzijewicz, T.: Fractional differential equations with dependence on the Caputo-Katugampola derivative. J. Comput. Nonlinear Dyn. 11(6), 061017 (2016)

5. Atangana, A.: Fractal-fractional differentiation and integration: connecting fractal calculus and fractional calculus to predict complex system. Chaos Solitons Fractals 102, 396–406 (2017)

6. Bagley, R.L., Torvik, P.J.: On the appearance of the fractional derivative in the behavior of real materials. Appl. Mech. 51, 294–298 (1984)

7. Ben Makhlouf, A., Nagy, A.M.: Finite-time stability of linear Caputo-Katugampola fractional-order time delay systems. Asian J. Control 22(1), 297–306 (2020)

8. Bhrawy, A.H., Ezz-Eldien, S.S., Doha, E.H., Abdelkawy, M.A., Baleanu, D.: Solving fractional optimal control problems within a Chebyshev-Legendre operational technique. Int. J. Control 90(6), 1230–1244 (2017)

9. Bonnard, B., Shcherbakova, N., Sugny, D.: The smooth continuation method in optimal control with an application to quantum systems. ESAIM Control Optim. Calc. Var. 17(1), 267–292 (2011)

10. Boyd, J.P.: Chebyshev and Fourier Spectral Methods. Dover, New York (2000)

11. Clenshaw, C.W., Curtis, A.R.: A method for numerical integration on an automatic computer. Numer. Math. 2(1), 197–205 (1960)

12. Davis, P.J., Rabinowitz, P.: Methods of Numerical Integration. Academic Press, New York (1975)

13. Diethelm, K.: The Analysis of Fractional Differential Equations. An Application-Oriented Exposition Using Differential Operators of Caputo Type. Lecture Notes in Mathematics. Springer, Berlin (2010)

14. Erturk, V.S., Kumar, P.: Solution of a COVID-19 model via new generalized Caputo-type fractional derivatives. Chaos Solitons Fractals 139, 110280 (2020)

15. Gambo, Y.Y., Jarad, F., Baleanu, D., Abdeljawad, T.: On Caputo modification of the Hadamard fractional derivatives. Adv. Differ. Equ. 2014, 10, 1–12 (2014)

16. Hermant, A.: Optimal control of the atmospheric reentry of a space shuttle by an homotopy method. Optim. Control Appl. Methods 32(6), 627–646 (2011)

17. Hoang, M.T., Nagy, A.M.: Uniform asymptotic stability of a logistic model with feedback control of fractional order and nonstandard finite difference schemes. Chaos Solitons Fractals 123, 24–34 (2019)

18. Jarada, F., Abdeljawadb, T., Baleanua, D.: On the generalized fractional derivatives and their Caputo modification. J. Nonlinear Sci. Appl. 10, 2607–2619 (2017)

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

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

21. Khalifa, A.K., Elbarbary, E.M.E., Abd-Elrazek, M.A.: Chebyshev expansion method for solving second and fourth-order elliptic equations. Appl. Math. Comput. 135, 307–318 (2003)

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

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

24. Nemati, S., Lima, P.M., Torres, D.F.M.: A numerical approach for solving fractional optimal control problems using modified hat functions. Commun. Nonlinear Sci. Numer. Simul. 78, 104849 (2019)

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

26. Oustaloup, A., Levron, F., Mathieu, B., Nanot, F.M.: Frequency-band complex noninteger differentiator: characterization and synthesis. IEEE Trans. Circuits Syst. 47, 25–39 (2000)

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

28. Pooseh, S., Almeida, R., Torres, D.F.M.: Fractional order optimal control problems with free terminal time. J. Ind. Manag. Optim. 10(2), 363–381 (2014)

29. Samko, S., Kilbas, A., Marichev, O.: Fractional Integrals and Derivatives: Theory and Applications. Gordon & Breach, London (1993)

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

31. Sene, N.: Generalized Mittag-Leffler input stability of the fractional-order electrical circuits. IEEE Open J. Circuits Syst. 1, 233–242 (2020)

32. Sene, N.: Introduction to the fractional-order chaotic system under fractional operator in Caputo sense. Alex. Eng. J. 60, 3997–4014 (2021)

33. Shen, J., Tang, T., Wang, L.L.: Spectral Methods Algorithms, Analysis and Applications. Springer Series in Computational Mathematics (2011)

34. Sweilam, N.H., Al-Ajami, T.M., Hoppe, R.H.W.: Numerical solution of some types of fractional optimal control problems. Sci. World J. 2013, Article ID 306237 (2013)

35. Trefethen, L.N.: Spectral Methods in MATLAB. SIAM, Philadelphia (2000)

36. Trèlat, E.: Optimal control of a space shuttle and numerical simulations. Discrete Contin. Dyn. Syst. 2003(suppl), 842–851 (2003)

37. Tricaud, C., Chen, Y.-Q.: An approximation method for numerically solving fractional order optimal control problems of general form. Comput. Math. Appl. 59, 1644–1655 (2010)

38. Xiang, S., Chen, X., Wang, H.: Error bounds for approximation in Chebyshev points. Numer. Math. 116(3), 463–491 (2010)

39. Yıldız, T.A., Jajarmi, A., Yıldız, B., Baleanu, D.: New aspects of time fractional optimal control problems within operators with nonsingular kernel. Discrete Contin. Dyn. Syst., Ser. S 13(3), 407–428 (2020)

40. Zafar, Z.U.A., Sene, N., Rezazadeh, H., Esfandian, N.: Tangent nonlinear equation in context of fractal fractional operators with nonsingular kernel. Math. Sci. (2021). https://doi.org/10.1007/s40096-021-00403-7

## Acknowledgements

Authors would like to thank the anonymous reviewers for their valuable suggestions that improved the quality of the manuscript.

## Funding

No funding sources to be declared.

## Author information

Authors

### Contributions

All authors contributed equally to the writing of this paper. All authors read and approved the final manuscript.

### Corresponding author

Correspondence to A. M. Nagy.

## Ethics declarations

### Competing interests

The authors declare that they have no competing interests.

## Rights and permissions 