\documentclass[reqno]{amsart}
\usepackage{hyperref}

\AtBeginDocument{{\noindent\small
\emph{Electronic Journal of Differential Equations},
Vol. 2013 (2013), No. 80, pp. 1--11.\newline
ISSN: 1072-6691. URL: http://ejde.math.txstate.edu or http://ejde.math.unt.edu
\newline ftp ejde.math.txstate.edu}
\thanks{\copyright 2013 Texas State University - San Marcos.}
\vspace{9mm}}

\begin{document}
\title[\hfilneg EJDE-2013/80\hfil Optimal control problems]
{Optimal control problems for impulsive systems with integral boundary
conditions}

\author[A. Ashyralyev, Y. A. Sharifov  \hfil EJDE-2013/80\hfilneg]
{Allaberen Ashyralyev, Yagub A. Sharifov}  % in alphabetical order

\address{Allaberen Ashyralyev \newline
Department of Mathematics, Fatih University, 34500 Buyukcekmece, Istanbul,
Turkey. \newline
ITTU, Ashgabat, Turkmenistan}
\email{aashyr@fatih.edu.tr}

\address{Yagub A. Sharifov \newline
Baku State University, Institute of Cybernetics of ANAS, Baku,
Azerbaijan}
\email{sharifov22@rambler.ru}

\thanks{Submitted February 2, 2013. Published March 22, 2013.}
\subjclass[2000]{34B10, 34A37, 34H05}
\keywords{Nonlocal boundary conditions; impulsive systems;
\hfill\break\indent optimal control problem}

\begin{abstract}
 In this article, the optimal control problem is considered when the
 state of the system is described by the impulsive differential equations
 with integral boundary conditions. Applying the Banach contraction principle
 the existence and uniqueness of the solution is proved for the corresponding
 boundary problem by the fixed admissible control. The first and second
 variation of the functional is calculated. Various necessary conditions of
 optimality of the first and second order are obtained by the help of the
 variation of the controls.
\end{abstract}

\maketitle
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\allowdisplaybreaks


\section{Introduction}

Impulsive differential equations have become important in recent years as
mathematical models of phenomena in both the physical and social sciences.
There has been a significant development in impulsive theory especially in the
area of impulsive differential equations with fixed moments; see for
instance the monographs \cite{b1,b2,l1,s1} and the references therein.

 Many of the physical systems can better be described by integral
boundary conditions. Integral boundary conditions are encountered in various
applications such as population dynamics, blood flow models, chemical
engineering and cellular systems. Moreover, boundary value problems with
integral conditions constitute a very interesting and important class of
problems. They include two point, three point, multi-point and nonlocal
boundary value problems as special cases; see \cite{a1,b3,b5}. 
For boundary-value problems with nonlocal boundary conditions and
 comments on their importance,
we refer the reader to the papers \cite{b4,c1,k1} and the references therein.

The optimal control problems with boundary conditions have been investigated
by several authors (see,e.g., \cite{m2,s2,v1,v2,v3}). 
Note that optimal control problems
with integral boundary condition are considered in \cite{m3,m4}
and the first-order necessary conditions are obtained. 
In certain cases the first order
optimality conditions are ``left degenerate'';
i.e., they are fulfilled trivially on a series of admissible controls. In
this case it is necessary to obtain the second order optimality conditions.

In the present paper, we investigate an optimal control problem in which the
state of the system is described by differential equations with integral
boundary conditions. Note that this problem is a natural generalization of
the Cauchy problem. The matters of existence and uniqueness of solutions of
the boundary value problem are investigated, first and second variations of
the functional are calculated. Using the variations of the controls, various
optimality conditions of the second order are obtained.

Consider the following impulsive system of differential equations with
integral boundary condition
\begin{gather}
\frac{dx}{dt}=f(t,x,u(t)),\quad 0<t<T,  \label{e1} \\
x(0)+\int_0^Tm(t)x(t)dt=C,  \label{e2} \\
x(t_i^{+})-x(t_i)
=I_i(x(t_i)),\quad i=1,2,\dots ,p,\; 0<t_1<t_2<\dots <t_p<T,
\label{e3} \\
u(t)\in U,\quad t\in [0,T] ,  \label{e4}
\end{gather}
where $x(t)\in\mathbb{R}^n$; $f(t,x,u)$ and $I_i(x)$, $i=1,2,\dots ,p$
are $n$-dimensional continuous vector functions. Suppose that $f$ has the
second order derivative with respect to $(x,u)$ and $I_i$ has
the second order derivative with respect to $x$. $C\in\mathbb{R}^n$ is a given
constant vector and $m(t)$ is $n\times n$ matrix function; $u$
is a control parameter; $U\in\mathbb{R}^{r}$ is an open set.

It is required to minimize the functional
\begin{equation}
J(u)=\varphi (x(0),x(T)) +\int_0^TF(t,x,u)dt  \label{e5}
\end{equation}
on the solutions of boundary value problem \eqref{e1}--\eqref{e4}.

Here, it is assumed that the scalar functions $\varphi (x,y)$
and $F(t,x,u)$ are continuous by their own arguments and have
continuous and bounded partial derivatives with respect to $x,y$ and $u$ up
to second order, inclusively. Under the condition of boundary value problem 
\eqref{e1}--\eqref{e3} corresponding to the fixed control parameter
$u(\cdot )\in U$ we have the function $x(t):[0,T]\to \mathbb{R}^n$ that
is absolutely continuous on $[0,T]$,
$t\neq t_i$, $i=1,2,\dots ,p$
and continuous from left for $t=t_i$, for which there exists a finite
right limit $x(t_i^{+})$ for $i=1,2,\dots ,p$. Denote the space
of such functions by $PC([0,T] ,\mathbb{R}^n)$. It is
obvious that such a space is Banach with the norm $\| x\|
_{PC}=\operatorname{vrai\,max }_{t\in [ 0,T]}|
x(t)| $, where $| \cdot | $ is the norm in
space $\mathbb{R}^n$.

The admissible process $\{ u(t),x(t,u)\} $ being the solution of
 problem \eqref{e1}-\eqref{e5}; i.e.,
delivering minimum to functional \eqref{e5} under restrictions 
\eqref{e1}-\eqref{e4}, is said to be an optimal process, and $u(t)$ is called an
optimal control.

 The organization of the present paper is as follows. First, we
provide necessary background. Second, theorems on existence and uniqueness
of a solution of problem \eqref{e1}-\eqref{e3} are established under some
sufficient conditions on nonlinear terms. Third, the functional increment
formula is presented. Fourth, variations of the functional are given. Fifth,
Legendre-Klebsh conditions are obtained. Finally, the conclusion is given.

\section{Existence of solutions to \eqref{e1}-\eqref{e3}}

We will use the following assumptions:
\begin{itemize}

\item[(H1)] $\| B\| <1$ \ for the matrix $B$ defined by the
formula $B=\int_0^Tm(t)dt$.

\item[(H2)] The functions $f:[0,T]\times \mathbb{R}^n\times \mathbb{R}^r
\to \mathbb{R}^n$ and $I_i:\mathbb{R}^n\to \mathbb{R}^n$, $i=1,2,\dots ,p$ 
are continuous functions and there exist constants $K\geq 0$ and $l_i\geq 0$, 
$i=1,2,\dots ,p $, such that
\begin{gather*}
| f(t,x,u)-f(t,y,u)| \leq K| x-y|,\quad t\in [ 0,T],\; 
x,y\in\mathbb{R}^n,\; u\in\mathbb{R}^r,\\
| I_i(x)-I_i(y)| \leq l_i| x-y|,\quad x,y\in\mathbb{R}^n.
\end{gather*}

\item[(H3)]
\[
L=(1-\| B\| )^{-1}\big[KTN+ \sum_{i=1}^{p}l_i\big] <1,
\]
where
\[
N=\max_{0\leq t,s\leq T}\| N(t,s)\| ,\quad N(t,s)
=\begin{cases}
E+\int_0^{s}m(\tau )d\tau ,& 0\leq t\leq s, \\
-\int_{s}^Tm(\tau )d\tau , & s\leq t\leq T.
\end{cases}
\]
\end{itemize}
Note that under condition (H1) the matrix $E+B$ is invertible and the
estimate $\| (E+B)^{-1}\| <(1-\|B\| )^{-1}$ holds.


\begin{theorem} \label{thm2.1} 
 Assume that condition {\rm (H1)} is satisfied. Suppose
that the functions 
$f:[0,T]\times \mathbb{R}^n\times \mathbb{R}^r\to \mathbb{R}^n$ and 
$I_i:\mathbb{R}^n\to \mathbb{R}^n$, $i=1,2,\dots ,p$ are continuous functions. 
Then the function $x(\cdot )\in PC([0,T],\mathbb{R}^n)$ is an absolutely
continuous solution of boundary-value problem \textbf{\eqref{e1}-\eqref{e3}}
if and only if it is a solution of the integral equation
\begin{equation}
x(t)=(E+B)^{-1}C+\int_0^TK(t,\tau )f(\tau ,x(\tau ),u(\tau )
)d\tau +\sum_{0<t_{k}<T}Q(t,t_{k})I_{k}(x(
t_{k})),  \label{e5a}
\end{equation}
where
\[
K(t,\tau )=(E+B)^{-1}N(t,\tau ),Q(t,t_{k})
= \begin{cases}
(E+B)^{-1}, & 0\leq \tau _{k}\leq t, \\
-(E+B)^{-1}B, &t\leq \tau _{k}\leq T.
\end{cases}
\]
\end{theorem}

\begin{proof}
 Assume that $x=x(t)$ is a solution of \eqref{e1}, then integrating this
 equation for $t\in (t_{j},t_{j+1})$, we obtain
\begin{align*}
&\int_0^{t}f(s,x(s),u(s))ds\\
&=\int_0^{t}x'(s)ds\\
&=[
x(t_1)-x(0^{+})] +[x(t_2)-x(t_1^{+})] 
+\dots +[x(t)-x(t_{j}^{+})] \\
&=-x(0)-[x(t_1^{+})-x(t_1)] -[x(t_2^{+})-x(t_2)] 
-\dots -[x(t_{j}^{+})-x(t_{j})] +x(t).
\end{align*}
From what it follows that
\begin{equation}
x(t)=x(0)+\int_0^{t}f(s,x(s),u(s))ds+\sum_{0<t_{j}<t}(
x(t_{j}^{+})-x(t_{j})),  \label{6a}
\end{equation}
where $x(0)$ is an arbitrary constant. Now, we obtain 
$x(0)$. Applying equality \eqref{6a} and conditions \eqref{e2}-\eqref{e3},
we obtain
\[
(E+B)x(0)=C-\int_0^Tm(t)\int_0^{t}f(\tau ,x(\tau
),u(\tau ))d\tau dt-B\sum_{0<t_{k}<T}I_{k}(x(t_{k})).
\]
Since $\det (E+B)\neq 0$, we have 
\begin{equation}
\begin{aligned}
x(0)&=(E+B)^{-1}C-(E+B)^{-1}\int_0^Tm(t)\int_0^{t}f(\tau
,x(\tau ),u(\tau ))d\tau dt \\
&-(E+B)^{-1}B\sum_{0<t_{k}<T}I_{k}(x(t_{k})).
\end{aligned}  \label{6aa}
\end{equation}
Applying formulas \eqref{6a} and \eqref{6aa}, we obtain the
integral equation \eqref{e5a}. By direct verification we can show
that the solution of integral equation \eqref{e5a} also satisfies
equation \eqref{e1} and nonlocal boundary condition \eqref{e2}. 
Also, it is easy to verify
that it satisfies the condition \eqref{e3}. The proof is comlete.
\end{proof}

 Define the operator
$P:PC([0,T],\mathbb{R}^n)\to PC([0,T],\mathbb{R}^n)$,
by
\begin{equation}
(Px)(t)=(E+B)^{-1}C+\int_0^TK(t,\tau )f(\tau
,x(\tau ),u(\tau ))d\tau +\sum_{0<t_{k}<T}Q(
t,t_{k})I_{k}(x(t_{k})).  \label{xx}
\end{equation}

\begin{theorem} \label{thm2.2}
Assume that conditions {\rm (H1)--(H3)} are satisfied.
Then for any $C\in\mathbb{R}^n$ and for each fixed admissible control, the
boundary value problem \eqref{e1}-\eqref{e3} has a unique solution that
satisfies the integral equation \eqref{e5a}.
\end{theorem}

 \begin{proof} 
Let $C\in\mathbb{R}^n$ and $u(\cdot)\in U$ be fixed, and let the 
mapping $P:PC([0,T],\mathbb{R}^n) \to PC([0,T],\mathbb{R}^n)$ be defined
 by \eqref{xx}. Clearly,
the fixed points of the operator $P$ are solution of the problem 
\eqref{e1}, \eqref{e2} and \eqref{e3}.
 We will use the Banach contraction principle to prove that $P$ has
a fixed point. First, we will show that $P$ is a contraction.

Let $v,w\in PC([0,T],\mathbb{R}^n)$. Then, for each $t\in [0,T] $ we have that
\begin{align*}
| (Pv)(t)-(Pw)(t)| 
&\leq \int_0^T| K(t,s)| | f(s,v(s),u(s))-f(s,w(s),u(s))| ds \\
&\quad +\sum_{i=1}^{p}| Q(t,t_i)| | I_i(v(t_i))-I_i(w(t_i))| \\
&\leq (1-\| B\| )^{-1}[KN\int_0^T | v(s)-w(s)| ds+\sum_{i=1}^{p}l_i|
v(t_i)-w(t_i)| ] \\
&\leq (1-\| B\| )^{-1}[KNT+\sum _{i=1}^{p}l_i] \| v(\cdot )-w(\cdot )\|_{PC}.
\end{align*}
Therefore,
\[
\| Pv-Pw\| _{PC}\leq L\| v-w\| _{PC}.
\]
Consequently, by assumption (H3) operator $P$ is a contraction. As
a consequence of Banach's fixed point theorem, we deduce that operator $P$
has a fixed point which is a solution of problem \eqref{e1}-\eqref{e3}.
The proof is complete.
\end{proof}

\textbf{The functional increment formula}

Let $\{ u,x=x(t,u)\} $ and 
$\{ \tilde{u} =u+\Delta u,\;\tilde{x}=x+\Delta x=x(t,\tilde{u})\} $
be two admissible processes. Applying \eqref{e1}-\eqref{e2}, we obtain the
 boundary-value problem
\begin{gather}
\Delta \dot{x}=\Delta f(t,x,u),\quad t\in (0,T), \label{11}\\
\Delta x(0)+\int_0^Tm(t)\Delta x(t)dt=0, \label{12}
\end{gather}
where $\Delta f(t,x,u)=f(t,\tilde{x},\tilde{u})-f(t,x,u)$ denotes t
he total increment of the function $f(t,x,u)$. Then we can represent 
the increment of the functional in the form
\begin{equation}
\Delta J(u)=J(\tilde{u})-J(u)
=\Delta \varphi (x(0),x(T))+\int_0^T\Delta F(x,u,t)dt.  \label{13}
\end{equation}
Let us introduce some non-trivial vector-function 
$\psi (t),\psi (t)\in\mathbb{R}^n$, and numerical vector
 $\lambda \in\mathbb{R}^n$.
Then the increment of performance index \eqref{e5} may be represented as
\begin{align*}
\Delta J(u)&=J(\tilde{u})-J(u)\\
&=\Delta \varphi (x(0),x(T)) +\int_0^T\Delta F(x,u,t)dt 
+\int_0^T\langle \psi (t),\Delta \dot{x}(
t)-\Delta f(t,x,u)\rangle dt\\
&\quad +\langle \lambda ,\Delta x(0)+\int_0^Tm(t)\Delta x(t)dt\rangle .
\end{align*}
After some standard computations usually used in deriving
optimality conditions of the first and second orders for the increment of
the functional, we obtain the formula
\begin{equation}
\begin{aligned}
\Delta J(u)
&=J(\tilde{u})-J(u)\\
&=-\int_0^T\langle \frac{\partial H(t,\psi ,x,u)}{
\partial u},\Delta u(t)\rangle dt 
\\
&\quad -\int_0^T\langle \frac{\partial H(t,\psi ,x,u)}{
\partial x}+n'(t)\lambda +\dot{\psi}(t),\Delta x(t)\rangle dt 
\\
&\quad +\langle [\frac{\partial \varphi }{\partial x(0)}
-\psi (0)+\lambda ] ,\Delta x(0)
\rangle +\langle [\frac{\partial \varphi }{\partial x(
T)}+\psi (T)] ,\Delta x(T)\rangle  
\\
&\quad -\int_0^T\langle \frac{\partial ^2H(t,\psi ,x,u)}{
\partial x\partial u}\Delta u(t)+\frac{1}{2}\Delta x'(t)
\frac{\partial ^2H(t,\psi ,x,u)}{\partial x^2},\Delta x(t)\rangle dt
\\
&\quad -\frac{1}{2}\int_0^T\langle \Delta u(t)'
\frac{\partial ^2H(t,\psi ,x,u)}{\partial u^2},\Delta
u(t)\rangle dt 
\\
&\quad +\frac{1}{2}\langle \Delta x(0)'\frac{
\partial ^2\varphi }{\partial x(0)^2}+\Delta x(
T)'\frac{\partial ^2\varphi }{\partial x(
0)\partial x(T)},\Delta x(0)\rangle 
\\
&\quad +\frac{1}{2}\langle \Delta x(0)'\frac{
\partial ^2\varphi }{\partial x(T)\partial x(0)}
+\Delta x(T)'\frac{\partial ^2\varphi }{
\partial x(T)^2},\Delta x(T)\rangle
\\
&\quad +\sum_{i=1}^{p}\langle \psi (t_i^{+})-\psi (
t_i)+\frac{\partial I_i'(x(t_i)
)}{\partial x}[\frac{\partial I_i'(
x(t_i))}{\partial x}+E] ^{-1}\psi (
t_i),\Delta x(t_i)\rangle +\eta _{\tilde{u}},
\end{aligned}  \label{14}
\end{equation}
where
\begin{gather*}
H(t,\psi ,x,u)=\langle \psi ,f(t,x,u) \rangle -F(t,x,u),\\
\begin{aligned}
\eta _{\tilde{u}}
&=-\int_0^To_{H}(\| \Delta x( t)\| ^2+\| \Delta u(t)\|^2)dt \\
&\quad +o_{\varphi }(\| \Delta x(t_0)\|
^2,\| \Delta x(t_1)\| ^2)
+\sum_{i=1}^{p}o_{I}(\| \Delta x(t_i)\| ^2).
\end{aligned}
\end{gather*}
Here, the vector function $\psi (t)\in\mathbb{R}^n$ and vector 
$\lambda \in\mathbb{R}^n$ is solution of the following adjoint problem (the
stationary condition of the Lagrangian function by state)
\begin{gather}
\dot{\psi}(t)=-\frac{\partial H(t,\psi ,x,u)}{
\partial x}-m'(t)\lambda ,\quad t\in (0,T),  \label{15}\\
\psi (t_i^{+})-\psi (t_i)=-I_{ix}'(x(t_i))(I_{ix}'(x(
t_i))+E)^{-1}\psi (t_i),i=1,2,\dots ,p, \\
\frac{\partial \varphi }{\partial x(0)}-\psi (0)
+\lambda =0,\frac{\partial \varphi }{\partial x(T)}+\psi (T)=0.  \label{16}
\end{gather}
From this  and \eqref{14} it follows that
\begin{equation}
\begin{aligned}
\Delta J(u)
&=-\int_0^T\langle \frac{\partial H(t,\psi ,x,u)}{\partial u},
\Delta u(t)\rangle dt- \frac{1}{2}\int_0^T\langle \Delta u(t)'
\frac{\partial ^2H(t,\psi ,x,u)}{\partial u^2},\Delta
u(t)\rangle dt
\\
&\quad -\int_0^T\langle \Delta u(t)'\frac{
\partial H^2(t,\psi ,x,u)}{\partial x\partial u}+\frac{1}{2}
\Delta x'(t)\frac{\partial ^2H(t,\psi
,x,u)}{\partial x^2},\Delta x(t)\rangle dt
\\
&\quad +\frac{1}{2}\langle \Delta x(0)'\frac{
\partial ^2\varphi }{\partial x(0)^2}+\Delta x(
T)'\frac{\partial ^2\varphi }{\partial x(
0)\partial x(T)},\Delta x(0)\rangle 
\\
&\quad +\frac{1}{2}\langle \Delta x(0)'\frac{
\partial ^2\varphi }{\partial x(T)\partial x(0)}
+\Delta x(T)'\frac{\partial ^2\varphi }{
\partial x(T)^2},\Delta x(T)\rangle +\eta
_{\tilde{u}}.
\end{aligned}   \label{17}
\end{equation}

\section{Variations of the functional}

Let $\Delta u(t)=\varepsilon \delta u(t)$, where 
$\varepsilon >0$ is a rather small number and $\delta u(t)$ is
some piecewise continuous function. Then the increment of the functional 
$\Delta J(u)=J(\tilde{u})-J(u)$ for
the fixed functions $u(t),\Delta u(t)$ is the
function of the parameter $\varepsilon $. If the representation
\begin{equation}
\Delta J(u)=\varepsilon \delta J(u)+\frac{1}{2}
\varepsilon ^2\delta ^2J(u)+o(\varepsilon ^2)
\label{18}
\end{equation}
is valid, then $\delta J(u)$ is called the first variation of
the functional and $\delta ^2J(u)$ is called the second
variation of the functional. Further, we obtain an obvious expression for
the first and second variations. To achieve the object we have to select in $
\Delta x(t)$ the principal term with respect to $\varepsilon $.

Assume that
\begin{equation}
\Delta x(t)=\varepsilon \delta x(t)+o(
\varepsilon ,t),  \label{19}
\end{equation}
where $\delta x(t)$ is the variation of the trajectory. Such a
representation exists and for the function $\delta x(t)$ one
can obtain an equation in variations. Indeed, by definition of $\Delta
x(t)$, we have
\begin{equation}
\begin{aligned}
\Delta x(t)
&=(E+B)^{-1}C+\int_0^TK(t,\tau )\Delta f(\tau,x(\tau ),u(\tau ))d\tau 
\\
&\quad +\sum_{0<t_{k}<T}Q(t,t_{k})\Delta I_{k}(x(t_{k})).
\end{aligned}  \label{20}
\end{equation}
Applying the Taylor formula to the integrand expression, we obtain
\begin{align*}
&\varepsilon \delta x(t)+o(\varepsilon ,t)\\
&=\int_0^TK(t,\tau )\big\{ \frac{\partial f(\tau ,x,u)}{
\partial x}[\varepsilon \delta x(\tau )+o(\varepsilon ,\tau )]
 +\varepsilon \frac{\partial f(\tau ,x,u)}{\partial u}\delta
u+o_1(\varepsilon ,\tau )\big\} d\tau \\
&\quad +\sum_{i=1}^{p}Q(t,t_i)\big\{ \frac{\partial I_i(
x(t_i))}{\partial x}[\varepsilon \delta x(t_i)+o(\varepsilon ,t_i)] \big\} .
\end{align*}
Since this formula is true for any $\varepsilon $, 
\begin{equation}
\begin{aligned}
\delta x(t)
&=\int_0^TK(t,\tau )\{ \frac{\partial f(\tau ,x,u)}{\partial x}\delta x(t)
+\frac{\partial f(\tau ,x,u)}{\partial u}\delta u(t)\} d\tau 
\\
&\quad +\sum_{i=1}^{p}Q(t,t_i)\frac{\partial I_i(x(t_i))}{\partial x}
 \delta x(t_i).
\end{aligned}  \label{21}
\end{equation}
Equation \eqref{21} is called the equation in variations. Obviously,
integral equation \eqref{21} is equivalent to the following nonlocal
boundary-value problem
\begin{gather}
\delta \dot{x}(t)=\frac{\partial f(t,x,u)}{
\partial x}\delta x(t)+\frac{\partial f(t,x,u)}{
\partial u}\delta u(t),  \label{22} \\
\delta x(t_i^{+})-\delta x(t_i)=I_{ix}(x(t_i))\delta x(t_i),\quad
i=1,2,\dots ,p,\\
\delta x(0)+\int_0^Tm(t)\delta x(t)dt=0.  \label{23}
\end{gather}
By \cite[p.52]{s1}, any solution of differential equation \eqref{22} may be
represented in the form
\begin{equation}
\delta x(t)=\Phi (t)\delta x(0)+\Phi
(t)\int_0^{t}\Phi ^{-1}(\tau )\frac{\partial
f(\tau ,x,u)}{\partial u}\delta u(\tau )d\tau ,
\label{24}
\end{equation}
where $\Phi (t)$ is a solution of the  differential equation
\begin{gather*}
\frac{d\Phi (t)}{dt}=\frac{\partial f(t,x,u)}{
\partial x}\Phi (t),\quad \Phi (0)=E,\\
\Phi (t_i^{+})-\Phi (t_i)=I_{ix}(x(t_i))\Phi (x(t_i)).
\end{gather*}
Then for the solutions $\delta x(t)$ of the boundary-value
problem we obtain the  explicit formula
\begin{equation}
\delta x(t)=\int_0^TG(t,\tau )\frac{\partial
f(\tau ,x,u)}{\partial u}\delta (\tau )d\tau ,
\label{25}
\end{equation}
where
\begin{gather*}
G(t,\tau )=\begin{cases}
\Phi (t)(E+B_1)^{-1}[E+\int_0^{s}m
(\tau )\Phi (\tau )d\tau ] \Phi ^{-1}(
\tau ),&0\leq \tau \leq t,
\\
-\Phi (t)(E+B_1)^{-1}\int_{s}^Tm(\tau
)\Phi (\tau )d\tau \Phi ^{-1}(\tau ),&t\leq
\tau \leq T,
\end{cases}\\
B_1=\int_0^Tm(t)\Phi (t)dt.
\end{gather*}
Now, using identity \eqref{19}, formula \eqref{17} can be rewritten as
\begin{equation}
\begin{aligned}
\Delta J(u)
&=-\varepsilon \int_0^T\langle \frac{\partial H(t,\psi
,x,u)}{\partial u},\delta u(t)\rangle dt
-\frac{\varepsilon ^2}{2} \Big\{ \int_0^T\langle \delta x'(t)
\frac{\partial ^2H(t,\psi ,x,u)}{\partial x^2}, \delta x(t)\rangle 
\\
&\quad +2\langle \delta u'(t)
\frac{\partial ^2H(t,\psi ,x,u)}{\partial x\partial u},
\delta x(t)\rangle + \langle \delta u'(t)
\frac{\partial ^2H(t,\psi ,x,u)}{\partial u^2},\delta u(t)\rangle ] dt 
\\
&\quad -\langle \delta x'(0)
\frac{\partial ^2\varphi }{\partial x(0)^2}
+\Delta x'(T)\frac{\partial ^2\varphi }{\partial x(0)\partial x(T)},
\delta x(0)\rangle  \\
&\quad - \langle \delta x'(0)\frac{\partial ^2\varphi }{
\partial x(T)\partial x(0)}+\delta x'(T)\frac{\partial ^2\varphi
}{\partial x(T)^2},\delta x(T)\rangle \} +o(\varepsilon ^2).
\end{aligned} \label{26}
\end{equation}
Applying \eqref{18}, we obtain
\[
\delta J(u)=-\int_0^T\langle \frac{\partial H(t,\psi ,x,u)}{
\partial u},\delta u(t)\rangle dt,
\]
\begin{equation}
\begin{aligned}
\delta ^2J(u)
&=-\int_0^T\Big[\langle \delta x'(t)\frac{
\partial ^2H(t,\psi ,x,u)}{\partial x^2},\delta x(t)\rangle
\\
&\quad +2\langle \delta u'(t)\frac{\partial ^2H(t,\psi ,x,u)}{
\partial x\partial u},\delta x(t)\rangle + \langle \delta
u'(t)\frac{\partial ^2H(t,\psi ,x,u)}{\partial u^2},\delta
u(t)\rangle \Big] dt 
\\
&\quad +\langle \delta x'(0)\frac{\partial ^2\varphi }{\partial
x(0)^2}+\Delta x'(T)\frac{\partial ^2\varphi }{\partial
x(0)\partial x(T)},\delta x(0)\rangle 
\\
&\quad +\langle \delta x'(0)\frac{\partial ^2\varphi }{\partial
x(T)\partial x(0)}+\delta x'(T)\frac{\partial ^2\varphi }{
\partial x(T)^2},\delta x(T)\rangle .
\end{aligned} \label{27}
\end{equation}

\section{Derivation of the Legendre-Klebsh Conditions}

Applying \eqref{18}, we obtain the following conditions
\begin{equation}
\delta J(u^{0})=0,\quad \delta ^2J(u^{0})\geq 0  \label{28}
\end{equation}
on the optimal control $u^{0}(t)$. From the first condition of 
\eqref{28} it follows that
\begin{equation}
\int_0^T\langle \frac{\partial H(t,\psi ^{0},x^{0},u^{0})}{\partial
u},\delta u(t)\rangle dt=0.  \label{29}
\end{equation}
Hence, we can prove that
\begin{equation}
\frac{\partial H(t,\psi ^{0},x^{0},u^{0})}{\partial u}=0,\quad
t\in (0,T)\label{30}
\end{equation}
is satisfied along the optimal control (see \cite[p. 54]{g1}).
 Equation \eqref{30} is called the Euler equation.
 From the second condition of \eqref{28}
it follows that the following inequality
\begin{equation}
\begin{aligned}
\delta ^2J(u)
&=-\int_0^T\Big[\langle \delta x'(t)\frac{
\partial ^2H(t,\psi ,x,u)}{\partial x^2},\delta x(t)\rangle
  \\
&\quad +2\langle \delta u'(t)
\frac{\partial ^2H(t,\psi ,x,u)}{\partial x\partial u},
\delta x(t)\rangle +\langle \delta
u'(t)\frac{\partial ^2H(t,\psi ,x,u)}{\partial u^2},\delta
u(t)\rangle \Big] dt 
\\
&\quad +\langle \delta x'(0)\frac{\partial ^2\varphi }{\partial
x(0)^2}+\Delta x'(T)\frac{\partial ^2\varphi }{\partial
x(0)\partial x(T)},\delta x(0)\rangle 
\\
&\quad +\langle \delta x'(0)\frac{\partial ^2\varphi }{\partial
x(T)\partial x(0)}+\delta x'(T)\frac{\partial ^2\varphi }{
\partial x(T)^2},\delta x(T)\rangle \geq 0
\end{aligned}  \label{31}
\end{equation}
holds along the optimal control. The inequality \eqref{31} is an implicit
necessary optimality condition of first order. However, the practical value
of conditions \eqref{31} in such a form is not applicable, since it requires
bulky calculations. For obtaining effectively verifiable optimality
conditions of second order, following  \cite[p. 16]{m1}, we take
into account \eqref{25} in \eqref{31} and introduce the matrix function
\begin{align*}
R(\tau ,s)
&=-G'(0,\tau )\frac{\partial
^2\varphi }{\partial x(0)^2}G(0,s)-G'(T,\tau )
\frac{\partial ^2\varphi }{\partial x(T)\partial x(0)}G(0,s)
\\
&\quad -G'(0,\tau )\frac{\partial ^2\varphi }{\partial
x(0)\partial x(T)}G(T,s)-G'(T,\tau )\frac{\partial ^2\varphi }{\partial x(
T)^2}G(T,s)\\
&\quad +\int_0^TG'(t,\tau)\frac{\partial ^2H}{\partial x^2}G(t,s)dt.
\end{align*}
Then for the second variation of the functional, we obtain the  final
formula
\begin{equation}
\begin{aligned}
\delta ^2J(u)
&=-\Big\{ \int_0^T\int_0^T\langle \delta 'u(\tau )
 \frac{\partial 'f(\tau ,x,u)}{\partial u}R(\tau,s)
\frac{\partial f(s,x,u)}{\partial u},\delta u(s)\rangle \,dt\,ds
\\
&\quad +\int_0^T\langle \delta 'u(\tau )
\frac{\partial ^2H(t,\psi ,\,x,u)}{\partial u^2},\delta u(t)\rangle dt
\\
&\quad + 2\int_0^T\int_0^T\langle \delta u'(t)\frac{
\partial ^2H(t,\psi ,x,u)}{\partial x\partial u}G(t,s)
\frac{\partial f(s,x,u)}{\partial u}, \delta u(s)\rangle \,dt\,ds\Big\} .
\end{aligned}  \label{32}
\end{equation}

\begin{theorem} \label{thm5.1}
If the admissible control $u(t)$ satisfies  condition \eqref{30}, 
then for its optimality in problem \ref{e1}--\eqref{e4}, the inequality
\begin{equation}
\begin{aligned}
\delta ^2J(u)
&=-\Big\{ \int_0^T\int_0^T\langle \delta
'u(\tau )\frac{\partial 'f(\tau ,x,u)}{\partial u}R(\tau
,s)\frac{\partial f(s,x,u)}{\partial u},\delta u(s)\rangle d\tau\,ds
\\
&\quad +\int_0^T\langle \delta 'u(\tau )
\frac{\partial ^2H(t,\psi ,\,x,u)}{\partial u^2},\delta u(t)\rangle dt
\\
&\quad +2\int_0^T\int_0^T \langle \delta u'(t)\frac{
\partial ^2H(t,\psi ,x,u)}{\partial x\partial u}G(t,s)\frac{
\partial f(s,x,u)}{\partial u},\delta u(s)\rangle \,dt\,ds\Big\} \geq 0
\end{aligned} \label{33}
\end{equation}
is satisfied for all $\delta u(t)\in L_{\infty }[0,T]$.
\end{theorem}

 The analogous to the Legandre-Klebsh condition for the considered
problem follows from condition \eqref{33}.

\begin{theorem} \label{thm5.2}
Along the optimal process $(u(t),x(t))$ for all 
$\nu \in\mathbb{R}^{r}$ and $\theta \in [0,T] $
\begin{equation}
\nu '\frac{\partial ^2H(\theta ,\psi (\theta ),x(\theta
),u(\theta ))}{\partial u^2}\nu \leq 0.  \label{34}
\end{equation}
\end{theorem}

\begin{proof} 
 For the proof of estimate \eqref{34}, we will construct
the variation of the control by
\begin{equation}
\delta u(t)=\begin{cases}
v & t\in [ \theta ,\theta +\varepsilon)\,,\\
0 & t\notin [ \theta ,\theta+\varepsilon ),
\end{cases}  \label{35}
\end{equation}
where $\varepsilon >0$, $v$ is some $r$-dimensional vector.

By  \eqref{25} the corresponding variation of the trajectory is
\begin{equation}
\delta x(t)=a(t)\varepsilon +o(\varepsilon ,t),\quad t\in (0,T),  \label{36}
\end{equation}
where $a(t)$ is a continuous bounded function.

 Substitute variation \eqref{35} in to \eqref{33} and select the
principal term with respect to $\varepsilon $. Then
\begin{align*}
\delta ^2J(u)
&=-\int_{\theta }^{\theta +\varepsilon }v'\frac{
\partial ^2H(t,\psi (t),x(t),u(t))}{\partial u^2}vdt+o(\varepsilon )
\\
&=-\varepsilon v'\frac{\partial ^2H(\theta ,\psi (\theta
),x(\theta ),u(\theta ))}{\partial u^2}v+o_1(\varepsilon ).
\end{align*}
Thus, considering the second condition of \eqref{28}, we obtain the
Legandre-Klebsh criterion \eqref{34}. The proof is complete.
\end{proof}

The condition \eqref{34} is the second-order optimality condition. It is
obvious that when the right-hand side of system \eqref{e1} and function 
$F(t,x,u)$ are linear with respect to control parameters,
condition \eqref{34} also degenerates; i.e., it is fulfilled trivially.
Following \cite[p. 27]{g1} and \cite[p. 40]{m1}, 
if for all $\theta \in (0,T)$, $\nu \in\mathbb{R}^{r}$,
\[
\frac{\partial H(\theta ,\psi (\theta ),x(\theta ),u(\theta ))}{\partial u}
=0,\quad 
\nu '\frac{\partial ^2H(\theta ,\psi (\theta
),x(\theta ),u(\theta ))}{\partial u^2}\nu =0,
\]
then the admissible control $u(t)$ is said be a singular
control in the classical sense.

\begin{theorem} \label{thm5.3}
For optimality of the singular control $u(t)$ in the classical sense,
\begin{equation}
\begin{aligned}
&\nu '\Big\{ \int_0^T\int_0^T\langle \frac{\partial
f(t,x,u)}{\partial u}R(t,s),\frac{\partial f(s,x,u)}{\partial u}
\rangle \,dt\,ds 
\\
&+ 2\int_0^T\int_0^T\langle \frac{\partial ^2H(t,\psi
,\,x,u)}{\partial x\partial u}G(t,s),\frac{\partial f(s,x,u)}{
\partial u}\rangle \,dt\,ds\Big\} \nu \leq 0
\end{aligned}  \label{37}
\end{equation}
is satisfied for all $\nu \in\mathbb{R}^{r}$.
\end{theorem}

Condition \eqref{37} is a necessary condition of optimality of an
integral type for singular controls in the classical sense. Choosing special
variation in different way in formula \eqref{36}, we can get various
necessary optimality conditions.


\subsection*{Conclusion}

In this work, the optimal control problem is considered when the state of
the system is described by the impulsive differential equations with
integral boundary conditions. Applying the Banach contraction principle the
existence and uniqueness of the solution is proved for the corresponding
boundary problem by the fixed admissible control. The first and second
variation of the functional is calculated. Various necessary conditions of
optimality of the first and second order are obtained by the help of the
variation of the controls. These statements are formulated in 
\cite{a2} without proof. Of course, such type of existence and uniqueness 
results hold under the same sufficient conditions on nonlinear terms for 
the system of nonlinear impulsive differential equations \eqref{e1}, 
subject to multi-point nonlocal and integral boundary conditions
\begin{equation}
Ex(0)+\int_0^Tm(t)x(t)
dt+\sum_{j=1}^{J}B_{j}x(\lambda _{j})
=\int_0^Tg(s,x(s))ds,  \label{uu}
\end{equation}
and impulsive conditions
\begin{equation}
x(t_i^{+})-x(t_i)
=I_i(x(t_i)),\quad i=1,2,\dots ,p,\; 0<t_1<t_2<\dots<t_p<T,  \label{uu1}
\end{equation}
where $B_{j}\in\mathbb{R}^{n\times n}$ are given matrices and
$$
\|\int_0^Tm(t)dt\| +\sum_{j=1}^{J}\| B_{j}\| <1.
$$
 Here, $0<\lambda _1<\dots <\lambda_J\leq T$.
Moreover, method in monographs \cite{f1,f2} and the method
present paper permit us investigate optimal control problem for 
infinite dimensional impulsive systems with integral boundary conditions.

\begin{thebibliography}{00}

\bibitem{a1} B. Ahmad, J. Nieto;
\emph{Existence results for nonlinear boundary
value problems of fractional integro-differential equations with integral
boundary conditions,} Boundary Value Problems, vol. \textbf{2009}, Article
ID 708576, 11 pages, 2009.

\bibitem{a2} A. Ashyralyev, Y. A. Sharifov;
\emph{Optimal control problem for
impulsive systems with integral boundary conditions}, AIP Conference
Proceedings, vol. 1470, ICAAM 2012, pp. 12-15, 2012.

\bibitem{b1} D. D. Bainov, P. S. Simeonov;
\emph{Systems with Impulsive Effect}, Horwood. Chichister, 1989.

\bibitem{b2} M. Benchohra, J. Henderson, S. K. Ntouyas; 
\emph{Impulsive Differential Equations and Inclusion},
 Hindawi Publishing Corparation, vol. 2, New York, 2006.

\bibitem{b3} M. Benchohra, J. J. Nieto, A. Quahab;
\emph{Second-order boundary
value problem with integral boundary conditions,} Boundary Value Problems,
vol. 2011, Article ID 260309, 9 pages, 2011.

\bibitem{b4} A. Belarbi, M. Benchohra, A. Quahab;
\emph{Multiple positive
solutions for nonlinear boundary value problems with integral boundary
conditions,} Archivum Mathematicum, vol. 44, no. 1, pp. 1-7, 2008.

\bibitem{b5} A. Bouncherif;
\emph{Second order boundary value problems with
integral boundary conditions,} Nonlinear Analysis, 70, no. 1 pp.
368-379, 2009.

\bibitem{c1} G. Chen, J. Shen;
\emph{Integral boundary value problems for first
order impulsive functional differential equations,} Int. Journal of Math.
Analysis, vol. 1, no 20, pp. 965-974, 2007.

\bibitem{f1} H. O. Fattorini;
\emph{Infinite  Dimensional Optimization and
Control Theory,} Cambridge University Press: Cambridge. New York, 1999.

\bibitem{f2} H. O. Fattorini;
\emph{Infinite Dimensional Linear Control Systems :
the Time Optimal and Norm Optimal Problems,}
Elsevier: Amsterdam. Boston, 2005.

\bibitem{g1} R. Gabasov, F. M. Kirillova;
\emph{Singular Optimal Controls,}
Nauka: Moscow, 1973 (in Russian).

\bibitem{k1} R. A. Khan;
\emph{Existence and approximation of solutions of
nonlinear problems with integral boundary conditions,} Dynamic Systems and
Applications, \textbf{14, } pp. 281-296, 2005.

\bibitem{l1} V. Lakshmikantham, D. D. Bainov, P. S. Semeonov; 
\emph{Theory of Impulsive Differential Equations,} Worlds Scientific, 
Singapore, 1989.

\bibitem{m1} K. B. Mansimov;
\emph{Singular Controls in Systems with Delay,} Elm:
Baku, 1990  (in Russian).

\bibitem{m2} M. F. Mekhtiyev, Sh. I. Djabrailov, Y. A. Sharifov;
\emph{Necessary optimality conditions of second order in classical
sense in optimal control problems of three-point conditions,}
J. of Automation and Information
Sciences, vol. 42, no.3, pp. 47-57, 2010.

\bibitem{m3} M. F. Mekhtiyev, H. Molaei, Y. A. Sharifov;
\emph{On an optimal control problem for nonlinear systems with integral
conditions,} Transactions of NAS of Azerbaijan, vol. 25, no 4, pp. 191-198, 2005.

\bibitem{m4} H. Molaei;
\emph{Optimal control and problem with integral
boundary conditions,} Int. J. Contemp. Math. Sciences, vol.6, no. 48, pp.
2385-2390, 2011.

\bibitem{v1} O. Vasilieva, K. Mizukami; 
\emph{Optimal control of boundary value
problem,} Russian Izv. Ser., Mathematica, no. 12 (391), pp. 33-41, 1994.

\bibitem{v2} O. Vasilieva, K. Mizukami;
\emph{Dynamical processes described by
a boundary value problem: necessary optimality conditions and solution
methods}, Izv. RAN. Teoriya i Sistemy Upravleniya. no. 1, pp. 95-100, 2000
(in Russian).

\bibitem{v3} O. Vasilieva, K. Mizukami; 
\emph{Optimality criterion for singular
controllers: linear boundary conditions,} J. of Mathematical Analysis and
Applications, vol. 213, pp. 620-641, 1997.

\bibitem{s1} A. M. Samoilenko, N. A. Perestyuk;
\emph{Impulsive Differential Equations,} Worlds Scientific, Singapore, 1995.

\bibitem{s2} Y. A. Sharifov, N. B. Mammadova;
\emph{On second-order necessary
optimality conditions in the classical sense for systems with nonlocal
conditions,} Differential Equations, vol.48, no 4, pp. 605-608, 2012.

\end{thebibliography}

\end{document}
