\documentclass[reqno]{amsart}
\usepackage{hyperref}
\usepackage{amssymb}

\AtBeginDocument{{\noindent\small
\emph{Electronic Journal of Differential Equations},
Vol. 2017 (2017), No. 109, pp. 1--16.\newline
ISSN: 1072-6691. URL: http://ejde.math.txstate.edu or http://ejde.math.unt.edu}
\thanks{\copyright 2017 Texas State University.}
\vspace{8mm}}

\begin{document}
\title[\hfilneg EJDE-2017/109\hfil Discrete potential boundary value problems]
{Classical solutions for discrete potential boundary value problems with
 generalized Leray-Lions type operator and  variable exponent}

\author[B. A. Kyelem, S. Ouaro, M. Zoungrana \hfil EJDE-2017/109\hfilneg]
{Bila Adolphe Kyelem, Stanislas Ouaro, Malick Zoungrana}

\address{Bila Adolphe Kyelem \newline
Universit\'e Ouaga I-Professeur Joseph Ki-Zerbo,
Unit\'e de Formation et de Recherche en Sciences Exactes et Appliqu\'ees,
D\'epartement de Math\'ematiques,
B.P. 7021 Ouagadougou 03, Burkina Faso}
\email{kyeleadoc@yahoo.fr}

\address{Stanislas Ouaro \newline
Universit\'e Ouaga I-Professeur Joseph Ki-Zerbo,
Unit\'e de Formation et de Recherche en Sciences Exactes et Appliqu\'ees,
D\'epartement de Math\'ematiques,
B.P. 7021 Ouagadougou 03, Burkina Faso}
\email{ouaro@yahoo.fr, souaro@univ-ouaga.bf}

\address{Malick Zoungrana \newline
Universit\'e Ouaga I-Professeur Joseph Ki-Zerbo,
Unit\'e de Formation et de Recherche en Sciences Exactes et Appliqu\'ees,
D\'epartement de Math\'ematiques,
B.P. 7021 Ouagadougou 03, Burkina Faso}
\email{zoungmalick@yahoo.fr}

\dedicatory{Communicated by Vicentiu Radulescu}

\thanks{Submitted November 21, 2016. Published April 25, 2017.}
\subjclass[2010]{47A75, 35B38}
\keywords{Potential boundary type condition; variational method;
\hfill\break\indent critical point; ground state method; Palais-Smale condition;
mountain pass theorem}

\begin{abstract}
 In this article, we prove the existence of solutions for some discrete
 nonlinear difference equations subjected to a potential boundary type
 condition. We use a variational technique that relies on Szulkin's critical
 point theory, which ensures the existence of solutions by ground state
 and mountain pass methods.
\end{abstract}

\maketitle
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{definition}[theorem]{Definition}
\allowdisplaybreaks

\section{Introduction}

Let us consider the positive integer $T$ and the discrete integer domain function
$p: [|0,T|]\to (1,\infty)$.
 We study the existence of solutions for the following class of potential
boundary value problems
 \begin{equation}\label{equa1.1}
\begin{gathered}
 -\Delta (a(k-1,\Delta u(k-1)))= f(k,u(k))\quad\text{for } k\in[|1,T|], \\
(a(0,\Delta u(0)),-a(T,\Delta u(T))\in \partial j(u(0),u(T+1)),
\end{gathered}
\end{equation}
where $\Delta u(k)= u(k+1)-u(k)$ is the forward difference operator. The function
 $ f:\mathbb{R}\times\mathbb{R}\to \mathbb{R}$ is Carath\'eodory
 and $a(k,\cdot)$: $\mathbb{R}\to \mathbb{ R}$ is a continuous function for
all $k\in[|0,T|]$. Also, $j:\mathbb{R}\times\mathbb{R}\to (-\infty;+\infty]$
is convex, proper (i.e., $D(j):=\{ z \in \mathbb{R} \times \mathbb{R}:j(z)
< +\infty \} \neq \emptyset$), lower semicontinuous (in short, l.s.c.)
function and $\partial j$ denotes the subdifferential of $j$. Recall that
for $z\in \mathbb{R}\times\mathbb{R}$, the set $\partial j(z)$ is defined by
\begin{equation}
\partial j(z)= \{ m\in\mathbb{R}\times\mathbb{R}:j(t)-j(z)
\geqslant \langle m ; t-z\rangle; \forall t
\in \mathbb{R}\times\mathbb{R} \},
\end{equation}
where $\langle\cdot;\cdot\rangle$ stands for the usual inner product in
 $\mathbb{R}\times\mathbb{R}$.
 $u: X \to \mathbb{R}$ is a function, where the space $X$ will be defined later.

Many potential boundary type condition problems arise from physical phenomena
(see \cite{MRR1} and the references therein). In electrostatics, for example,
in a system involving conductor electrodes, the potential is often specified on
 electrode surfaces and one is asked to find the potential in the space of the
 electrodes. Such problems are called potential boundary value problems.

 It is usual to note that nonlinear multivalued boundary conditions include
particular cases of classical boundary conditions; these are obtained by
appropriate choices of $j$ (see, e.g., \cite[Ch.2]{b20}).
 For other choices of $j$ yielding various boundary conditions, we refer the
reader to Gasinski and Papageorgiou \cite{b7} and Jebelean and Serban \cite{b11}.

 The study of boundary value problems with a discrete laplacian using variational
approaches was developed a few years ago. Most of the papers deal with classical
boundary conditions such as Dirichlet boundary conditions (see, e.g. Agarwal et al.\
 \cite{b1}, Cabada et al.\ \cite{b3}), Neumann boundary condition (see,
e.g. Candito and D'agui \cite{b4}, Tian and Ge \cite{b19}) and Periodic boundary
 conditions (see, e.g. He and Chen \cite{b9}, Jebelean and Serban \cite{b11}).
Recently, boundary value problems with the discrete laplacian subjected
to Dirichlet, Neumann or Periodic boundary conditions have been studied
 by Molica Bisci and Repov\v{s} \cite{MR1,MR2}, Galewski and Glab
\cite{b5}, Guiro et al.\ \cite{b8}, Kon\'e and Ouaro \cite{b13}, Mashiyev et al.\
 \cite{b14}, Mihailescu et al.\ \cite{b15,b16}.
 In \cite{b2.1}, Bereanu et al.\ have made use of variational approach to obtain
ground state and mountain pass solutions for the following problem
\begin{gather*}
 -\Delta_{p(k-1)}\big(u(k-1)\big)= f(k,u(k))\quad\text{for } k\in[|1,T|], \\
(h_{p(0)}(\Delta u(0)),-h_{p(T)}(\Delta u(T))\in \partial j(u(0),u(T+1)),
\end{gather*}
where $\Delta u(k)= u(k+1)-u(k)$ is the forward difference operator and
$\Delta_{p(\cdot)}$ is a discrete $p(\cdot)$-Laplacian operator that is
\[
-\Delta_{p(k-1)}(u(k-1)):= \Delta (h_{p(k-1)}(\Delta u(k-1))),
\]
 with $h_{p(k)}: \mathbb{R}\to\mathbb{R}$ is defined by
$h_{p(k)}(u(k))=| u(k)|^{p(k)-2}u(k)$.

 In this paper, we consider a more general forward operator which involves a
Leray-Lions type operator. Therefore, a variational approach underlying ground
state and mountain pass techniques for problem \eqref{equa1.1} is essentially used.
In this view, we use some ideas and technics originated by Radulescu and
Repov\v{s} \cite{RR1} (see also Molica Bisci and Repov\v{s}\cite{MR1, MR2}
 and Szulkin \cite{b18}) , and combined with specific tools, due to the discrete
and anisotropic character of the problem.
Our paper is organized as follows: the useful preliminary results are presented
 in Section 2. In Section 3, we deal with the existence of a solution
to problem \eqref{equa1.1} using ground state methods. The last Section is
 devoted to the existence of non trivial solutions by using mountain pass techniques.


 \section{Preliminaries}

 Our approach for the boundary value problem \eqref{equa1.1} relies on the
critical point theory developed by Szulkin \cite{b18}. We introduce the
function
$p:[|0,T|] \to (1,+\infty)$, where $[| 0, T |]:= \{ 0,1,2,\dots ,T\}$
 and the space of functions
\[
 X:= \{u: u: [| 0, T+1 |] \to \mathbb{R} \}
 \]
 which can be endowed with the Luxemburg norm
 \[
 \| u \|_{\sigma,p(\cdot)} = \inf\Big\{ \lambda > 0: \sigma
\sum_{k=1}^{T}\frac{1}{p(k)}| \frac{u(k)}{\lambda}|^{p(k)}\leq 1\Big\}.
 \]
 Let us denote
$$
 p^+:=\max_{k\in [|0,T|]}p(k)\quad\text{and}\quad
 p^-:=\min_{k\in [|0,T|]}p(k).
$$
 For the function $a$, we assume the following.
\begin{itemize}
\item[(H1)] There exists $A:[|0,T|] \times \mathbb{R} \to \mathbb{R}$ with
$a(k,\xi)=\partial A(k,\xi)/\partial\xi$ for all $k \in [|0,T|]$ and
$A(k,0)=0$ for all $k\in [| 0,T|]$.

\item[(H2)] There exists $C_1 > 0$ such that $| a(k,\xi) | \leqslant
C_1(1+ |\xi|^{p(k)-1})$ for all $k \in [|0,T|]$ and all $\xi \in \mathbb{R}$.

\item[(H3)] $(a(k,\xi)-a(k,\eta))\cdot (\xi-\eta)> 0$ for all
$(\xi,\eta)\in\mathbb{R}^{2}$ such that $\xi \neq \eta$.

\item[(H4)] $|\xi|^{p(k)} \leq a(k,\xi)\cdot\xi \leq p(k)A(k,\xi)$, with
$p:[|0,T|] \to (1,+\infty)$.
\end{itemize}

Let $\varphi:X\to \mathbb{R}$ be defined by
 \begin{equation}\label{equa-func1}
\varphi(u)=\sum_{k=1}^{T+1}A(k-1,\Delta u(k-1))\quad\text{for all } u \in X .
 \end{equation}
 Using the functional $j$, we introduce the functional
$J:X \to (-\infty,+\infty]$ given by
\begin{equation}\label{equa-func2}
J(u)= j(u(0),u(T+1))\quad\text{for all } u \in X.
\end{equation}
Note that, as $j$ is proper, convex and l.s.c, the same properties hold for $J$.
 Let us set
\begin{equation} \label{equa-func3}
\psi= \varphi+ J.
\end{equation}
 Let us also define
\[
F(k,t)= \int_{0}^{t}f(k,\tau)d\tau \quad\text{for all } k \in [|1,T|] \text{ and all }
 t \in \mathbb{R}.
\]
Let us now introduce
 \begin{equation}\label{equa-func4}
\Phi(u):= -\sum_{k=1}^{T}F(k,u(k))\quad \text{for all } u \in X.
\end{equation}
The energy functional associated with the problem \eqref{equa1.1} is
 \begin{equation}\label{equa-func6}
 I= \Phi + \psi,
\end{equation}
where $\Phi \in C^{1}(X,\mathbb{R})$ and $\psi: X \to (-\infty, +\infty]$ are convex,
proper and lower semicontinuous.

\begin{lemma}
Let $u \in X$ and $p^{+}< +\infty$ then $\| u \|_{\sigma,p(\cdot)}$
is equivalent to the norm defined by
\[
\| u \|_{p(\cdot)}= \inf\Big\{\lambda > 0; \sum_{k=1}^{T}|\frac{u(k)}{\lambda}|^{p(k)}
\leq 1 \Big\}.
\]
\end{lemma}

\begin{proof}
We have
 \[
\sigma \sum_{k=1}^{T}\frac{1}{p(k)}
|\frac{u(k)}{\lambda}|^{p(k)}\geq \frac{\sigma}{p^{+}}
\sum_{k=1}^{T}|\frac{u(k)}{\lambda}|^{p(k)};
\]
thus,
\begin{gather*}
\| u \|_{\sigma,p(\cdot)}\geq \kappa_1\| u \|_{p(\cdot)},\\
\sigma \sum_{k=1}^{T}\frac{1}{p(k)}|\frac{u(k)}{\lambda}|^{p(k)}
\leq \frac{\sigma}{p^{-}} \sum_{k=1}^{T}|\frac{u(k)}{\lambda}|^{p(k)};
\end{gather*}
hence,
\[
\| u \|_{\sigma,p(\cdot)}\leq \kappa_2\| u \|_{p(\cdot)}.
\]
Therefore,
\[
\kappa_1\| u \|_{p(\cdot)}\leq \| u \|_{\sigma,p(\cdot)}
\leq \kappa_2\| u \|_{p(\cdot)}.
\]
\end{proof}

 Now, let us present some basic properties of the general critical point theory.
Let $I: X\to\mathbb{R}\cup \{+\infty\}$ be the functional satisfying
 the structural hypothesis
\begin{itemize}
\item[(H5)] $I=\Phi+\psi$,
with $\Phi: X\to\mathbb{R}$ is a $C^1$ function and
 $\psi: X\to\mathbb{R}\cup\{+\infty\}$ a is convex, lower semicontinuous
and proper function.
\end{itemize}

\begin{definition}\rm
An element $u\in X$ satisfying (H5) is called a critical point of the functional
$I: X\to\mathbb{R}\cup \{+\infty\}$ if
\[
\langle \Phi'(u); v-u\rangle+\psi(v)-\psi(u)\geq 0,\quad\text{for all }
v\in X.
\]
\end{definition}

\begin{definition} \rm
The functional $I: X\to\mathbb{R}\cup \{+\infty\}$ satisfying (H5) is said to
satisfy the Palais-Smale (in short, (PS)) condition in the sense of Szulkin,
if, every sequence $\{ u_{n}\} \subset X$ for which
 $I(u_{n})\to c \in \mathbb{R}$ and
\begin{equation}\label{equa-ps}
\langle \Phi'(u_{n});v-u_{n} \rangle + \psi(v)- \psi(u_{n})
\geq -\epsilon \| v- u_{n} \|\quad\text{for all } v \in X
\end{equation}
 where $ \epsilon \to 0$, possesses a convergent subsequence.
\end{definition}

\begin{proposition}[{\cite[Proposition 1.1]{b18}}] \label{prop2.1}
 If $I$ satisfies {\rm (H5)} then, each local minimum point of $I$ is
necessarily a critical point of $I$.
\end{proposition}


\begin{theorem}[{\cite[Theorem 23.2]{b17}}] \label{theo2.1}
 Let $f$ be a convex function and let $x$ be a point where $f$ is finite.
Then $x^{\ast}$ is a subgradient of $f$ at $x$ if and only if
$f'(x,y) \geq \langle x^{\ast}; y \rangle$ for all $y \in X$.
In fact, the closure of $f'(x,y)$ as a convex function of $y$ is the
support function of the closed convex set $\partial f(x)$.
\end{theorem}

\begin{theorem}[{\cite[Theorem 3.2]{b18}}] \label{theo2.2}
Assume that $I$ satisfies {\rm (H5)}, the (PS) condition and
\begin{itemize}
\item[(i)] $I(0)= 0$ and there exist $\alpha$, $\rho$ $> 0$ such that
$I(u) \geq \alpha$ if $\| u \| = \rho$,

\item[(ii)] $I(e) \leq 0$ for some $e \in X$ with $\| e \| \geq \rho$.
\end{itemize}
Then, $I$ has a critical value $c \geq \alpha$ which can be characterized by
 \[
c = \inf_{f \in\Gamma}\sup_{t\in [0,1]} I(f(t)),
\]
where $\Gamma= \{ f \in C([0,1],X): f(0)= 0, f(1)= e \}$.
\end{theorem}

\begin{proposition}\label{prop2.2}
Assume that {\rm (H1)--(H3)} hold.
 Then
 \begin{itemize}
\item[(i)] $\varphi$ is convex and is in $C^{1}(X;\mathbb{R})$;
 \item[(ii)] $J$ is proper, convex and l.s.c;
 \item[(iii)] $ \psi$ is proper, convex and l.s.c;
 \item[(iv)] $\Phi \in C^{1}(X;\mathbb{R})$.
\end{itemize}
 \end{proposition}

\begin{proof}
(i) $\varphi$ is well defined since, according to (H1) and (H2),
\begin{align*}
|\varphi(u)|
 &= |\sum_{k=1}^{T+1}A(k-1,\Delta u(k-1))|\\
 &\leq \sum_{k=1}^{T+1} |A(k-1,\Delta u(k-1))| \\
 &\leq C\sum_{k=1}^{T+1} \| \Delta u(k-1)\|
 < +\infty.
 \end{align*}
$A$ is convex with respect to the second variable according to (H1) and (H3).
 Let $\lambda \in [0,1]$. For all $u, v \in X$,
 \[
\varphi((1-\lambda)u+\lambda v)= \sum_{k=1}^{T+1} A(k-1,(1-\lambda)\Delta u(k-1)
+\lambda\Delta v(k-1)).
 \]
 Then
\begin{align*}
\varphi((1-\lambda)u+\lambda v)
&\leq \sum_{k=1}^{T+1}(1-\lambda) A(k-1,\Delta u(k-1))
 +\lambda A(k-1,\Delta v(k-1))\\
&\leq (1-\lambda) \varphi(u)+ \lambda \varphi(v).
\end{align*}
Therefore $\varphi$ is convex.
For $u,v \in X$ we have
 \begin{align*}
&\lim_{\delta\to 0^{+}}\frac{\varphi(u+\delta v)-\varphi(u)}{\delta}\\
&= \lim_{\delta\to 0^{+}}\sum_{k=1}^{T+1}\frac{A(k-1,\Delta u(k-1)
+\delta \Delta v(k-1))- A(k-1,\Delta u(k-1))}{\delta}\\
 &= \sum_{k=1}^{T+1}\lim_{\delta\to 0^{+}}\frac{A(k-1,\Delta u(k-1)
+\delta \Delta v(k-1))- A(k-1,\Delta u(k-1))}{\delta}\\
 &=\sum_{k=1}^{T+1}a(k-1,\Delta u(k-1))\Delta v(k-1).
 \end{align*}
 Therefore,
\[
\langle \varphi'(u); v \rangle = \sum_{k=1}^{T+1}a(k-1,\Delta u(k-1))\Delta v(k-1).
\]
 Every limit is finite because of the continuity of $A(k,\cdot)$. 
The continuity of the derivative comes from the continuity of $a(k,\cdot)$.
 Hence, $\varphi$ is in $C^{1}(X;\mathbb{R})$. 

(ii) Note that as $j$ is proper, convex and l.s.c, the same properties hold for $J$.

(iii) Since $\varphi$ and $J$ are convex then, $\psi$ is convex.
 Suppose that $\psi$ can take the value $-\infty$; then, in this case, 
$J= \psi-\varphi$ can take the value $-\infty$, which is not possible. 
Therefore, $\psi$ cannot take the value $-\infty$. Hence, $\psi$ is proper. 
Also,
 \begin{equation*}
 J(u) \leq \lim_{y\to u}\inf J(y).
\end{equation*}
 Then
\[
 \varphi(u)+J(u)
\leq \lim_{y\to u}\inf J(y)+ \varphi(u)
\leq \lim_{y\to u}\inf J(y)+\lim_{y\to u}\inf \varphi(y)
\leq \lim_{y\to u}\inf \psi(y).
 \]
 Therefore $\psi (u) \leq \lim_{y\to u}\inf \psi(y)$. Hence, $\psi$ is l.s.c.

(iv) $| \Phi(u) |= | \sum_{k=1}^{T}F(k,u(k)) | < \infty$ since $F$ is continuous. 
Then $\Phi$ is well defined.
By definition, $\Phi$ is derivable and its derivative is continuous; hence 
$\Phi \in C^{1}(X;\mathbb{R})$. Moreover,
 \begin{align*}
\langle \Phi'(u); y \rangle 
& = \lim_{\delta\to 0^{+}}\frac{\phi(u+\delta y)-\phi(u)}{\delta}\\
&= -\lim_{\delta\to 0^{+}}\sum_{k=1}^{T}\frac{F(k,u(k)+\delta y(k))
 - F(k,u(k))}{\delta}\\
&= -\sum_{k=1}^{T}\lim_{\delta\to 0^{+}}\frac{F(k,u(k)+\delta y(k))
 - F(k,u(k))}{\delta}\\
&= -\sum_{k=1}^{T}f(k, u(k)) y(k)\quad\text{for all } u , y \in X.
\end{align*}
\end{proof}

 Now, let us  claim the following important result.

\begin{proposition}\label{prop2.3}
If $u \in X$ is a critical point of the functional $I$ in the sense that
\begin{equation} \label{e2.7}
\langle \Phi'(u); y-u \rangle + \psi (y)- \psi (u) \geqslant 0,\quad\text{for all } 
y \in X; 
\end{equation} 
then $u$ is a classical solution of \eqref{equa1.1}.
\end{proposition}

\begin{proof}
Since $\langle \Phi'(u); y-u \rangle + \psi (y)- \psi (u) \geqslant 0$, we can take 
$ y= u+sw$ for all $s > 0$ in \eqref{e2.7}. 
Dividing \eqref{e2.7} by $s$ and letting $s\to 0^{+}$, we obtain
\begin{equation} \label{e2.8}
 \langle \Phi'(u); w \rangle+ \langle \varphi'(u); w \rangle 
+ J'(u;w) \geq 0 \quad \forall w\in X ,
\end{equation}
where $J'(u;w)$ is the directional derivative of the convex function 
$J$ at $u$ in the direction of $w$.
 Since
\[
J(u)= j(u(0),u(T+1)),
\]
 we obtain from \eqref{e2.8},
\[
\langle \Phi'(u); w \rangle + \langle \varphi'(u); w \rangle + j'((u(0),u(T+1))
;(w(0),w(T+1)))\geqslant 0,  \quad\text{for all } w \in X.
\]
Since
\[
\langle \Phi'(u); w \rangle = -\sum_{k=1}^{T}f(k, u(k)) w(k) 
\quad\text{for all } u, w \in X
\]
 and
\[
\langle \varphi'(u); w \rangle = \sum_{k=1}^{T+1}a(k-1,\Delta u(k-1))
\Delta w(k-1)\quad\text{for all } u, w \in X,
 \]
 it follows that
\begin{align*}
&-\sum_{k=1}^{T}f(k, u(k)) w(k) + \sum_{k=1}^{T+1}a(k-1,\Delta u(k-1))\Delta w(k-1)\\
&+ j'((u(0),u(T+1));(w(0),w(T+1)))\geqslant 0.
\end{align*}
 Therefore,
\begin{align*}
&-\sum_{k=1}^{T}f(k, u(k)) w(k) + \sum_{k=1}^{T+1}
 a(k-1,\Delta u(k-1))[w(k)-w(k-1)]\\
&+ j'((u(0),u(T+1));(w(0),w(T+1))) \geqslant 0.
\end{align*}
Then
\begin{align*}
&-\sum_{k=1}^{T}f(k, u(k)) w(k)+\sum_{k=1}^{T+1}a(k-1,\Delta u(k-1))w(k)\\
&- \sum_{k=1}^{T+1}a(k-1,\Delta u(k-1))w(k-1)
+j'((u(0),u(T+1));(w(0),w(T+1)))
\geqslant 0
\end{align*}
such that
\begin{align*}
&-\sum_{k=1}^{T}f(k, u(k)) w(k) + a(T,\Delta u(T))w(T+1)
 +\sum_{k=1}^{T}a(k-1,\Delta u(k-1))w(k)\\
&-\sum_{k=0}^{T}a(k,\Delta u(k))w(k) +j'((u(0),u(T+1));(w(0),w(T+1)))
\geqslant 0,
\end{align*}
 which leads to
\begin{align*}
&-\sum_{k=1}^{T}f(k, u(k)) w(k)+ a(T,\Delta u(T))w(T+1)
- a(0,\Delta u(0))w(0)\\
&+\sum_{k=1}^{T}a(k-1,\Delta u(k-1))w(k) \\
&-\sum_{k=1}^{T}a(k,\Delta u(k))w(k) + j'((u(0),u(T+1));(w(0),w(T+1)))
\geqslant 0.
\end{align*}
 Therefore,
\begin{align*}
&-\sum_{k=1}^{T}f(k, u(k)) w(k) + a(T,\Delta u(T))w(T+1) - a(0,\Delta u(0))w(0)\\
&-\sum_{k=1}^{T}[a(k,\Delta u(k))- a(k-1,\Delta u(k-1))]w(k) \\
&+ j'((u(0),u(T+1));(w(0),w(T+1))) \geqslant 0.
\end{align*}
Consequently,
\begin{align*}
&-\sum_{k=1}^{T}f(k, u(k)) w(k) - \sum_{k=1}^{T}\Delta a(k-1,\Delta u(k-1))w(k)\\
&+a(T,\Delta u(T))w(T+1) - a(0,\Delta u(0))w(0) \\
&+ j'((u(0),u(T+1));(w(0),w(T+1)))
\geqslant 0.
\end{align*}
As $w\in X$ is arbitrarily chosen, we can take $w(0)$=$w(T+1)$=0 to obtain
\[
\sum_{k=1}^{T}\Big(-\Delta a(k-1,\Delta u(k-1))\Big)w(k)
= \sum_{k=1}^{T}f(k, u(k))w(k).
\]
 Hence, it follows that
\begin{equation}
-\Delta a(k-1,\Delta u(k-1))=f(k, u(k))\quad\text{for all } k \in [| 1,T|].
\end{equation}

 It remains to show that 
$(a(0,\Delta u(0)),-a(T,\Delta u(T)))\in \partial j(u(0),u(T+1))$. One has
\begin{align*}
&-\sum_{k=1}^{T}f(k, u(k)) w(k) - \sum_{k=1}^{T}\Delta a(k-1,\Delta u(k-1))w(k) 
+ a(T,\Delta u(T))w(T+1) \\
&-  a(0,\Delta u(0))w(0) + j'((u(0),u(T+1)),(w(0),w(T+1)))\geqslant 0
\end{align*}
 and
\[
\sum_{k=1}^{T}\Big(-\Delta a(k-1,\Delta u(k-1))\Big)= \sum_{k=1}^{T}f(k, u(k)).
\]
Therefore,
\[
j'((u(0),u(T+1));(w(0),w(T+1)))\geqslant -a(T,\Delta u(T))w(T+1) 
+ a(0,\Delta u(0))w(0),
\]
 for all $w \in X$.
 Taking $w \in X$ with $w(0)= p$ and $w(T + 1) = q$, where $p, q \in \mathbb{R}$ 
are arbitrarily chosen, it follows that 
\[
j'((u(0),u(T+1));(p,q))\geqslant -a(T,\Delta u(T))q + a(0,
\Delta u(0))p,\quad\text{for all } (p,q) \in \mathbb{R}^2
\]
 which by Theorem \ref{theo2.1} implies
\[
(a(0,\Delta u(0)),-a(T,\Delta u(T))\in \partial j(u(0);u(T+1))).
\]
\end{proof}

\begin{lemma}\label{lem2.2}
Let $u \in X$ and $p^{+} < +\infty$. Then, the following properties hold:
\begin{itemize}
\item[(i)] $\|u \|_{\sigma,p(\cdot)} < 1$ implies
\[
 \| u \|_{\sigma,p(\cdot)}^{p^{+}}
\leq \sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)}
\leq \| u \|_{\sigma,p(\cdot)}^{p^{-}}; 
\]

\item[(ii)] $\| u \|_{\sigma,p(\cdot)} > 1$ implies
\[
\| u \|_{\sigma,p(\cdot)}^{p^{-}}
\leq \sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)} 
\leq \| u \|_{\sigma,p(\cdot)}^{p^{+}}.
\]
\end{itemize}
\end{lemma}

\begin{proof}
Suppose that $\| u \|_{\sigma,p(\cdot)} > 1$. Then
\begin{align*}
\sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)}
&= \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big| \frac{u(k)}{\| u \|_{\sigma,p(\cdot)}}
\| u \|_{\sigma,p(\cdot)} \Big|^{p(k)}\\
&\leq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big| \frac{u(k)}{\| u \|_{\sigma,p(\cdot)}}
\Big|^{p(k)}\| u \|_{\sigma,p(\cdot)}^{p^{+}}.
\end{align*}
Therefore, 
$$
\frac{\sigma}{\| u \|^{p^{+}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k|^{p(k)}}{p(k)}\leq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big| \frac{u(k)}{ |
\| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}.
$$
 Using the same arguments, one has
$$
\sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)}
\geq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big|
 \frac{u(k)}{\| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}
\| u \|_{\sigma,p(\cdot)}^{p^{-}}.
$$
 Then
$$
\frac{\sigma}{\| u \|^{p^{-}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}\geq \sigma
 \sum_{k=1}^{T}\frac{1}{p(k)}\Big|\frac{u(k)}{ \| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}.
$$
 Finally,
$$
\frac{\sigma}{\| u \|^{p^{+}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}\leq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}
\Big| \frac{u(k)}{ \| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}
\leq \frac{\sigma}{\| u \|^{p^{-}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)},
$$
 which is equivalent to 
$$
\frac{\sigma}{\| u \|^{p^{+}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}\leq 1 
\leq \frac{\sigma}{\| u \|^{p^{-}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}.
$$
 Thus,
$$
\| u \|_{\sigma,p(\cdot)}^{p^{-}}\leq \sigma \sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)} \leq \| u \|_{\sigma,p(\cdot)}^{p^{+}}.
$$
 Suppose now that $\| u \|_{\sigma,p(\cdot)} < 1$. Then
\begin{align*}
\sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)}
&= \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big|\frac{u(k)}{\| u \|_{\sigma,p(\cdot)}}
 \| u \|_{\sigma,p(\cdot)} \Big|^{p(k)}\\
&\leq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big|
 \frac{u(k)}{\| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}\| u \|_{\sigma,p(\cdot)}^{p^{-}}.
\end{align*}
 Therefore,
 $$
\frac{\sigma}{\| u \|^{p^{-}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}\leq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big|
\frac{u(k)}{ \| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}.
$$
 One also has
$$
\sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)}
\geq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}
\Big| \frac{u(k)}{\| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}
\| u \|_{\sigma,p(\cdot)}^{p^{+}}.
$$
 Thus,
$$
\frac{\sigma}{\| u \|^{p^{+}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}\geq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big| 
\frac{u(k)}{ \| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}.
$$
 So,
$$
\frac{\sigma}{\| u \|^{p^{-}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}\leq \sigma \sum_{k=1}^{T}\frac{1}{p(k)}\Big| 
\frac{u(k)}{\| u \|_{\sigma,p(\cdot)}}\Big|^{p(k)}
\leq \frac{\sigma}{\| u \|^{p^{+}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)},
$$
which is equivalent to 
$$
\frac{\sigma}{\| u \|^{p^{-}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}\leq 1 
\leq \frac{\sigma}{\| u \|^{p^{+}}_{\sigma,p(\cdot)}}\sum_{k=1}^{T} 
\frac{|u(k)|^{p(k)}}{p(k)}.
$$
 We  conclude that
$$
\| u \|_{\sigma,p(\cdot)}^{p^{+}}
\leq \sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)} 
\leq \| u \|_{\sigma,p(\cdot)}^{p^{-}}.
$$
\end{proof}

\section{Proof of the existence of classical solutions by ground state methods}

 We begin with a result which states that the energy functional $I$ has a minimum 
point in $X$ provided that the potential of the nonlinearity $f$ lies 
asymptotically on the left of the first eigenvalue like constant
\begin{align*} %\label{equa3.1}
\lambda_1:= \inf\Big\{&
\Big(\sum_{k=1}^{T+1}\frac{1}{p(k-1)}
|\Delta u(k-1)|^{p(k-1)}\Big)/\Big(\sum_{k=1}^{T}\frac{1}{p(k)}|u(k)|^{p(k)} \Big):\\
& u \in X-\{ 0 \}\text{ and }
\big(u(0),u(T+1)\big) \in D(j)\Big\}.
\end{align*}
 The existence result will be obtained under the assumption that 
$\lambda_1 > 0$.

\begin{theorem}
Assume that {\rm (H1)--(H4)} hold and $\lambda_1 > 0$. Also assume  that
\begin{equation}\label{equa3.2}
\lim_{| t | \to \infty} \sup\frac{p(k) F(k,t)}{| t |^{p(k)}} < \lambda_1,
\quad\text{for all } k \in [|1, T| ].
\end{equation}
 Then, problem \eqref{equa1.1} has at least one classical solution which minimizes 
$I$ on $X$.
\end{theorem}

\begin{proof}
\textbf{Step 1:} We first show that $I$ is sequentially lower semicontinuous on $X$.
 Indeed, from Proposition \ref{prop2.2}, the functional $\psi$ is lower 
semicontinuous and the function $\Phi$ is $C^1$ on $X$. 
Therefore, the functional $I$ is sequentially lower semicontinuous on $X$.
\smallskip

\noindent\textbf{Step 2:} We prove that $I$ is bounded from below and coercive on 
$X$. One the one hand, using \eqref{equa3.2}, one obtains the existence of 
some constants $\alpha > 0$ and $\rho > 1$ such that
 \[
 F(k,t)\leq \frac{\lambda_1-\alpha}{p(k)}|t|^{p(k)}\quad\text{for all }
k \in [| 1,T|]\text{ and  all } t \in \mathbb{R} \mbox{ with } |t| > \rho.
 \]
 On the other hand, by the continuity of $F(k,.)$ over $[-\rho, \rho]$,
 there is a constant $M_{\rho} > 0$ such that
\[
 | F(k,t) | \leq M_{\rho},\quad\text{for all } k \in [|1,T|]\text{ and all }
 t \in [-\rho, \rho].
 \]
 Hence, we infer that
 \[
 F(k,t) \leq M_{\rho}+ \frac{\lambda_1-\alpha}{p(k)}|t|^{p(k)}, \quad\text{for all }
(k, t) \in [|1,T|]\times\mathbb{R}.
 \]
 To prove the coercivity of $I$, we use the above inequality to obtain for all 
$(k, t) \in [1;T]\times\mathbb{R}$,
\[
 -\sum_{k=1}^{T}F(k,u(t))\geq -M_{\rho}T- (\lambda_1-\alpha)\sum_{k=1}^{T}
\frac{|u(k)|^{p(k)}}{p(k)}.
 \]
 It follows that
\begin{align*}I(u) 
&\geq \varphi(u)-M_{\rho}T- (\lambda_1-\alpha)\sum_{k=1}^{T}
 \frac{| u(k)|^{p(k)}}{p(k)}+ J(u)\\
&\geq \varphi(u)-M_{\rho}T-\lambda_1\sum_{k=1}^{T}
 \frac{|u(k)|^{p(k)}}{p(k)}+\alpha \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)} + J(u)\\
&\geq \varphi(u)-M_{\rho}T - \sum_{k=1}^{T+1}\frac{1}{p(k-1)}
| \Delta u(k-1) |^{p(k-1)}+ \alpha \sum_{k=1}^{T} \frac{ |u(k)|^{p(k)}}{p(k)}+ J(u).
\end{align*}
 From hypothesis (H4),
\[
 A(k-1,\Delta u(k-1)) \geq \frac{1}{p(k-1)} |\Delta u(k-1)|^{p(k-1)},
\]
 which leads to
 \begin{equation}\label{equa3.3}
 \varphi(u) \geq \sum_{k=1}^{T+1}\frac{1}{p(k-1)} |\Delta u(k-1)|^{p(k-1)}.
 \end{equation}
 Hence, if $ \| u \|_{\sigma,p(\cdot)} > 1$, one makes use of Lemma 
\ref{lem2.2} and \eqref{equa3.3} to obtain
\begin{align*}
I(u) 
&\geq \sum_{k=1}^{T+1}\frac{1}{p(k-1)} |\Delta u(k-1)|^{p(k-1)} -M_{\rho}T \\
&\quad  - \sum_{k=1}^{T+1}\frac{1}{p(k-1)}|\Delta u(k-1)|^{p(k-1)}
 + \sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)}+ J(u) \\
&\geq -M_{\rho}T+ \sigma \sum_{k=1}^{T} \frac{|u(k)|^{p(k)}}{p(k)}+ J(u)\\
&\geq -M_{\rho}T + \| u \|_{\sigma,p(\cdot)}^{p^{-}}+ J(u).
\end{align*}
 Since $j$ is convex and l.s.c, it is bounded from below by an affine functional. 
Therefore, using $J(u)= j(u(0),u(T))$, there are constants $m_1$, $m_2$,
$m_3$ $\geq 0$ such that
\begin{align*}
I(u) 
&\geq -M_{\rho}T + \| u \|_{\sigma,p(\cdot)}^{p^{-}}- m_1|u(0)|
- m_2|u(T+1)|-m_3\\
&\geq \| u \|_{\sigma,p(\cdot)}^{p^{-}}- m_1|u(0)| - m_2|u(T+1)|-C_1, \quad
\text{where } C_1= M_{\rho}T+m_3\\
&\geq \| u \|_{\sigma,p(\cdot)}^{p^{-}}-C_2\| u \|_{\infty} -C_1,\quad
\text{where } C_2= m_1+m_2.
\end{align*}
 Also, any norm on $X$ is equivalent to $\|\cdot \|_{\sigma,p(\cdot)}$. 
Then, there exists $C_3 > 0$ such that
\[
I(u) \geq \| u \|_{\sigma,p(\cdot)}^{p^{-}}-C_3\| u \|_{\sigma,p(\cdot)}-C_1.
\]
 Consequently, $I(u)\to +\infty$ as $\| u \|_{\sigma,p(\cdot)}\to \infty$.
 Therefore, $I$ is coercive on $X$.
\smallskip

\noindent\textbf{Step 3:}
 We now show that the functional $I$ is bounded from below.
 For that, let $\| u \|_{\sigma,p(\cdot)} < 1$. By (H4) and 
Lemma \ref{lem2.2}, we obtain
\begin{align*}
 I(u)
&\geq\varphi(u)-M_{\rho}T+J(u)\\ &\geq -M_{\rho}T 
 + \| u \|_{\sigma,p(\cdot)}^{p^{+}}+ J(u)\\
&\geq -M_{\rho}T + \| u \|_{\sigma,p(\cdot)}^{p^{+}}- m_1|u(0)| - m_2|u(T+1)|-m_3\\
&\geq \| u \|_{\sigma,p(\cdot)}^{p^{+}}- K_1 \| u \|_{\infty}- K', 
\end{align*}
where $K'=M_{\rho}T +m_3$.
 Since any norm on $X$ is equivalent to $ \|\cdot\|_{\sigma,p(\cdot)}$, 
 there exists $K''$ such that
 \begin{align*}
 I(u) 
&\geq \| u \|_{\sigma,p(\cdot)}^{p^{+}}- K'' \| u \|_{\sigma,p(\cdot)}- K'\\
&\geq -K''\| u \|_{\sigma,p(\cdot)}- K'\\
&\geq -K'' - K' > -\infty.
\end{align*}
 Therefore, $I$ is bounded from below. Finally, we conclude that $I$ 
is sequentially lower semicontinuous, bounded from below and coercive 
on the real Banach space $X$. Thus, $I$ attains its infimum at some 
$u\in X$. Using now Proposition \ref{prop2.1} and the Proposition \ref{prop2.3}, 
on obtains that the problem \eqref{equa1.1} has at least one solution on $X$.
\end{proof}


\section{Existence of classical solutions using mountain pass methods}

In this section we are concerned with the existence of non trivial solutions 
to problem \eqref{equa1.1}. The main tool in obtaining such results will be 
\cite[Theorem 3.2]{b18}.

 \begin{theorem} \label{thm4.1}
 Assume {\rm  (H1)--(H5)} hold. Also assume that $\lambda_1 > 0$ and that there 
exist constants $\theta > p^+$, $K$, $M$ $>0$ such that
\begin{itemize}
\item[(H6)]  $j(0,0)= 0$;
\item[(H7)] $j'(z,z) \leq \theta j(z)+K, \forall z \in D(j)$;
\item[(H8)] $\lim_{| t | \to 0} \sup\frac{p(k) F(k,t)}{|t|^{p(k)}} < \lambda_1$,
 for all $k \in [|1, T| ]$;
\item[(H9)] $0 < \theta F(k,t) \leq t f(k,t)$ for all $k \in [| 1,T|]$ with
 $| t | > M$.
\end{itemize}
Then, there exists a non trivial solution $u \in X$ to problem \eqref{equa1.1}.
\end{theorem}

\begin{proof} 
\textbf{Step 1:} We show that the functional $I$ satisfying (H5) satisfies the
 (PS) condition in the sense of Szulkin on $(X, \| \cdot \|_{\sigma,p(\cdot)})$.
So, let $\{ u_{n} \} \subset X$ be a sequence for which,
$ I(u_{n})\to c \in \mathbb{R}$ and \eqref{equa-ps} hold, with
$\epsilon_{n} \to 0$.
 For this purpose, since $X$ is a finite dimensional space, it is sufficient
to prove that $\{ u_{n} \}$ is bounded. We may assume that
$\{ u_{n} \} \subset D(I)= D(J)$ and $\| u_{n} \|_{\sigma,p(\cdot)} > 1$
for all $n\in \mathbb{N}$. By (H7) and \eqref{equa-func2},
it follows that
 \begin{equation}\label{equa-moun1}
J(v)- \frac{1}{\theta} J'(v;v) \geq -K_1,\quad\text{for all } v \in D(J),
 \end{equation} 
with $ K_1= \frac{K}{\theta}$. Using the relation (H9), 
one deduces that for all $n \in \mathbb{N}$,
\begin{equation*} 
\sum_{k=1,|u(k)|>M}^{T}[\theta F(k, u_{n}(k))-u_{n}(k) f(k, u_{n}(k))]\leq 0.
\end{equation*}
 Consequently,
 \begin{align*}
-\Phi(u_{n})+ \frac{1}{\theta}\langle \Phi'(u_{n}); u_{n} \rangle 
& = \frac{1}{\theta}\sum_{k=1}^{T}[\theta F(k, u_{n}(k))-u_{n}(k) f(k, u_{n}(k))]\\
&=\frac{1}{\theta}\sum_{k=1, |u_n(k)|>M}^{T}[\theta F(k, u_{n}(k))-u_{n}(k) 
f(k, u_{n}(k))]\\
&\quad +\frac{1}{\theta}\sum_{k=1,|u_n(k)|\leq M}^{T}
 [\theta F(k, u_{n}(k))-u_{n}(k) f(k, u_{n}(k))]\\
& \leq \frac{1}{\theta}\sum_{k=1,|u_{n}(k)| \leq M}^{T}
 [\theta F(k, u_{n}(k))-u_{n}(k) f(k, u_{n}(k))]\\
&\leq \frac{1}{\theta}\sum_{k=1}^{T}\max_{|x| \leq M} |\theta F(k, x)- x f(k;x)|
=: C_3,
 \end{align*}
where $C_3$ is a positive constant. Therefore, one can write
 \begin{equation}\label{equa-moun2} 
-\Phi(u_{n})+ \frac{1}{\theta}\langle \Phi'(u_{n}); u_{n} \rangle\leq C_3.
\end{equation}

Since the real sequence $(I(u_n))_{n \in \mathbb{N}}$ converges to the real number 
$c$, it is clear that, there is a constant $C_4 > 0$, such that
 \begin{equation}\label{equa-moun3} 
| I(u_{n}) | \leq C_4,\quad\text{for all } n \in \mathbb{N}. 
\end{equation}
Furthermore, setting $v= u_{n}+ s u_{n}$ in \eqref{equa-ps}, dividing by
 $s > 0$ and letting $s \to 0^{+}$, one obtains 
\begin{equation}\label{equa-moun4}
\langle \Phi'(u_{n}); u_{n} \rangle + \langle \varphi'(u_{n}); u_{n} \rangle
 + J'(u_{n};u_{n})\geq -\epsilon_{n} \| u_{n} \|\quad\text{for all } 
n \in \mathbb{N}.
\end{equation} 
Using \eqref{equa-moun3} and \eqref{equa-moun4}, we deduce that
 \begin{align*} 
&C_4+ \frac{\epsilon_{n}}{\theta}\| u_{n} \|_{\sigma,p(\cdot)} \\
& \geq \Phi(u_{n})+ \varphi(u_{n})+J(u_{n})
 +\frac{\epsilon_{n}}{\theta}\| u_{n} \|_{\sigma,p(\cdot)}\\
& \geq \Phi(u_{n})-\frac{1}{\theta}\langle \Phi'(u_{n}); u_{n} \rangle
+ \varphi(u_{n})-\frac{1}{\theta}\langle  \varphi'(u_{n}); u_{n} \rangle
+ J(u_{n})-\frac{1}{\theta}J'(u_{n}; u_{n})
\end{align*}
and by  \eqref{equa-moun1}, \eqref{equa-moun2} and \eqref{equa-moun3}, 
it follows that
 $$
K_1+ C_3+ C_4+ \frac{\epsilon_{n}}{\theta} \| u_{n}\|_{\sigma,p(\cdot)} 
\geq \varphi(u_{n})-\frac{1}{\theta}\langle \varphi'(u_{n}); u_{n} \rangle,
$$
 while
\begin{align*}
&\varphi(u_{n})-\frac{1}{\theta}\langle \varphi'(u_{n}); u_{n} \rangle\\
&=\sum_{k=1}^{T+1}A(k-1,\Delta u_{n}(k-1))-\frac{1}{\theta}
 \sum_{k=1}^{T+1}a(k-1,\Delta u_{n}(k-1))\Delta u_{n}(k-1).
\end{align*}
 We use (H4) to obtain
\[
\varphi(u_{n})-\frac{1}{\theta}\langle \varphi'(u_{n}); u_{n} \rangle
\geq \Big(\frac{-1}{\theta}+\frac{1}{p^{+}}\Big) 
\sum_{k=1}^{T+1}|\Delta u_{n}(k-1)|^{p(k-1)}.
\]
 So,
\begin{equation}\label{equa-moun5}
K_1+ C_3+ C_4+ \frac{\epsilon_{n}}{\theta}\| u_{n} \|_{\sigma,p} 
\geq (\frac{-1}{\theta}+\frac{1}{p^{+}}) \sum_{k=1}^{T+1}|\Delta u_{n}(k-1)|^{p(k-1)}.
\end{equation}
 Since
$$
\lambda_1 \leq \frac{\sum_{k=1}^{T+1}\frac{1}{p(k-1)}|\Delta u(k-1)|^{p(k-1)}}
{\sum_{k=1}^{T}\frac{1}{p(k)}|u(k)|^{p(k)} },
$$
we have
$$
\lambda_1 \sum_{k=1}^{T}\frac{1}{p(k)}|u(k)|^{p(k)} 
\leq \sum_{k=1}^{T+1}\frac{1}{p(k-1)}|\Delta u(k-1)|^{p(k-1)}.
$$
 Hence,
$$
K_1+ C_3+ C_4+ \frac{\epsilon_{n}}{\theta}\| u_{n} \|_{\sigma,p} 
\geq (\frac{-1}{\theta}+\frac{1}{p^{+}})\lambda_1
\sum_{k=1}^{T}\frac{1}{p(k)}|u(k)|^{p(k)}
$$
 and, from Lemma \ref{lem2.2}, we deduce that
$$
K_1+ C_3+ C_4+ \frac{\epsilon_{n}}{\theta} \| u_{n} \|_{\sigma,p(\cdot)} 
\geq \Big(\frac{-1}{\theta}+\frac{1}{p^{+}}\Big)
\frac{\lambda_1}{\sigma} \| u \|_{\sigma,p(\cdot)}^{p^{-}}.
$$
 Moreover, $\theta > p^{+}$. Then, we infer that the sequence 
$( u_{n})_{n \in \mathbb{N}}$ is bounded.
\smallskip

\noindent\textbf{Step 2:}
 We show that $I$ has a ``mountain pass geometry''.
 From (H6), it is clear that
$$
I(0)= \Phi(0)+ \varphi(0)+ J(0)=0.
$$
 Using (H8), we have
$$
\lim_{ |u| \to 0} \sup\frac{p(k) F(k,u(k))}{ |u(k)|^{p(k)}} < \lambda_1.
$$
 This leads to the existence of $\epsilon, \beta > 0$ such that
$$ 
F(k,t) < \frac{\lambda_1-\epsilon}{p(k)} |t|^{p(k)}\quad\text{with } |t| < \beta.
$$
 Consequently,
\begin{equation}\label{equa-moun6}
\Phi(u) \geq -(\lambda_1-\epsilon)\sum_{k=1}^{T}\frac{1}{p(k)}|u(k)|^{p(k)},
\end{equation}
for all $ u \in X-\{ 0 \}$, $u(0)= u(T+1)$ and $ |u| < \beta$.
 Using again hypothesis (H4) and \eqref{equa-moun6}, we can write
\begin{align*}
\Phi(u)+\varphi(u) 
&\geq -(\lambda_1-\epsilon)\sum_{k=1}^{T}\frac{1}{p(k)} |u(k)|^{p(k)}
 +\sum_{k=1}^{T+1}\frac{1}{p(k-1)} |\Delta u(k-1)|^{p(k-1)}\\
&\geq \epsilon \sum_{k=1}^{T}\frac{1}{p(k)}|u(k)|^{p(k)}.
\end{align*}
According to \eqref{equa-moun6} and (H6) we have 
$J(u)= j(u(0),u(T+1))=j(0,0)=0$.
Therefore, for $\beta<1$,
\[
\Phi(u)+\varphi(u)+ J(u) 
\geq \epsilon \sum_{k=1}^{T}\frac{1}{p(k)}|u(k)|^{p(k)}\\
\geq \frac{\epsilon}{\sigma} \| u \|_{\sigma,p(\cdot)}^{p^+}.
\]
 Hence, choosing $ \| u \|_{\sigma,p(\cdot)}^{p^+}= \beta$ which is equivalent 
to $ \| u \| _{\sigma,p(\cdot)}=\beta^{\frac{1}{p^+}}$, then $ I(u) \geq \alpha$
with $\alpha = \frac{\epsilon}{\sigma} \beta$.

 Coming back to relation (H9) and taking $ |u|$ big enough, we have 
$$
\frac{f(k,u(k))}{F(k,u(k))} \geq \frac{\theta}{u}.
$$
 So, $F(k,u(k))\geq c u^{\theta}$ for $ |u|$ big enough. Thus, 
$F(k,u(k))\geq c u^{\theta}- K$, for all $u> 0$.

One can use (H1) to say that
$$
A(k,\xi)= \int_{0}^{\xi}a(k,\lambda)d\lambda.
$$
Using (H2), we have the existence of a real $C_1 > 0$ such that
$$ 
|a(k,\xi)| \leqslant C_1(1+ |\xi|^{p(k)-1})\quad\text{for all }
k \in [|0,T|]\text{ and  all }\xi \in \mathbb{R}.
$$
 Therefore,
\begin{align*}
 \int_{0}^{\xi} |a(k,\lambda)| d\lambda 
& \leq C_1 \int_{0}^{\xi}(1+ |\lambda |^{p(k)-1})d\lambda\\
& \leq C_1[\lambda]_{0}^{\xi}+ C_1[\frac{\lambda^{p(k)}}{p(k)}]^{\xi}_{0}\\
& \leq C_1|\xi|+C_1\frac{|\xi|^{p(k)}}{p(k)}.
\end{align*}
 One deduces that
\begin{align*}
\varphi(u)
&= \sum_{k=1}^{T+1}A(k-1,\Delta u(k-1))\\
& \leq C_1\sum_{k=1}^{T+1} |\Delta u(k-1)| 
 + C_1\sum_{k=1}^{T+1}\frac{ |\Delta u(k-1)|^{p(k)}}{p(k)}.
\end{align*}
 Let $u_{0} \in X -\{ 0 \}$ be such that $u_{0}(0)= u_{0}(T+1)=0$ and 
$\| u_{0}\|_{\sigma;p(\cdot)} >1$.
 From (H6), we have that $J(su_{0})= 0$ for all $s \in \mathbb{R}$. Then
\begin{align*}
I(su_{0}) 
&= \Phi(su_{0})+\varphi(su_{0})+J(su_{0})\\
&= -\sum_{k=1}^{T}F(k,su_{0}(k))+ \sum_{k=1}^{T+1}A(k-1,\Delta su_{0}(k-1))+0\\
&\leq \sum_{k=1}^{T}(K-c|su_{0}(k)|^{\theta})
 + \sum_{k=1}^{T+1}C_1\Big( |s\Delta u_{0}(k-1)|
 + \frac{ |s\Delta u_{0}(k-1)|^{p(k)}}{p(k)}\Big)\\
 &= TK+ \sum_{k=1}^{T}\Big[C_1' |su_{0}(k)|-c|su_{0}(k)|^{\theta}\Big]
 +\frac{C_2'}{\sigma}\| su_{0}\|^{p^{+}}_{\sigma,p(\cdot)}\\
 &\leq TK+ C_1''\| su_{0} \|_{\infty}-cs^{\theta}
 \| u_{0}\|_{\infty}^{\theta}+C_2''s^{p+}\| u_{0} \|_{\infty}\to -\infty
 \end{align*}
as $s\to +\infty$ because $\theta > p^{+}$.
 Hence, we can choose $s$ large enough such that $I(su_{0})\leq 0$ and
 $\| su_{0}\|_{\sigma,p(\cdot)} >\beta$. Using \cite[Theorem 3.2]{b18} 
deduce that  problem \eqref{equa1.1} has at least one non trivial solution.
\end{proof}

\begin{thebibliography}{00}

\bibitem{b1} Agarwal, R. P.; Perera, K.; O'Regan, D.; 
\emph{Multiple positive solutions of singular discrete $p$-Laplacian problems 
via variational methods}, Adv. Differ. Equ., \textbf{(2)} (2005), 93-99.

\bibitem{b2.1} Bereanu, C.; Jebelean, P.; Serban, C.; 
\emph{Ground state and mountain pass solutions for discrete $p(\cdot)$-Laplacian}. 
Bound. Value Probl., \textbf{104} (2012), pp. 1-13.

\bibitem{b3} Cabada, A.; Iannizzotto, A.; Tersian, S.;
\emph{Multiple solutions for discrete boundary value problems}. J. 
Math. Anal. Appl. \textbf{356} (2009), 418-428.

\bibitem{b4} Candito, P.; D'Agui, G.;
\emph{Three solutions for a discrete nonlinear Neumann problem involving 
$p$-Laplacian}. Adv. Differ.Equ. \textbf{2010} (2010), 862016.

\bibitem{b5} Galewski, M.; Glab, S.;
\emph{On the discrete boundary value problem for anisotropic equation},
 J. Math. Anal. Appl., \textbf{386} (2012), 956-965.

\bibitem{b7} Gasinski, L.; Papageorgiou, N.S.;
\emph{Nonlinear second-order multivalued boundary value problems}. 
Proc. Indian Acad. Sci. Math. Sci., \textbf{113} (2003), 293-319.

\bibitem{b8} Guiro, A.; Nyanquini, I.; Ouaro, S.;
\emph{On the solvability of discrete nonlinear Neumann problems involving the 
$p(x)$-Laplacian}. Adv. Differ. Equ. \textbf{2011}, 32 (2011).

\bibitem{b9} He, T.; Chen, W.;
\emph{Periodic solutions of second order discrete convex systems involving 
the $p$-Laplacian}. Appl. Math. Comput. \textbf{206} (2008), 124-132.

\bibitem{b20} Hokkanen, V.-M.; Morosanu, G.;
\emph{Functional Methods in Differential Equations},
Chapmann and Hall/CRC, 2002.

\bibitem{b11} Jebelean, P.; Serban, C;
\emph{Ground state periodic solutions for difference equations with 
discrete $p$-Laplacian}. Appl. Math. Comput., \textbf{217} (2011), 9820-9827.

\bibitem{b13} Kon\'e, B.; Ouaro, S.;
\emph{Weak solutions for anisotropic discrete boundary value problems}. 
J. Differ. Equ. Appl. \textbf{16} (2) (2010), 1-11.

\bibitem{b14} Mashiyev, R.; Yucedag, Z.; Ogras, S.;
\emph{Existence and multiplicity of solutions for a Dirichlet problem 
involving the discrete $p(x)$-Laplacian operator}.
 Electron. J. Qual. Theory Differ. Equ. \textbf{67} (2011), 1-10.

\bibitem{MRR1} Mihailescu, M,; Radulescu, V.; Repov\v{s}, D.;
\emph{ On a non-homogeneous eigenvalue problem involving a potential:
an Orlicz-Sobolev space setting}, J. Math. Pures Appl., \textbf{93} (9) (2010),
 no. 2, 132-148.

\bibitem{b15} Mihailescu, M,; Radulescu, V.; Tersian, S.;
\emph{Eigenvalue problems for anisotropic discrete boundary value problems}.
J. Differ. Equ. Appl. \textbf{15} (6) (2009), 557-567.

\bibitem{b16} Mihailescu, M,; Radulescu, V.; Tersian, S.;
\emph{Homoclinic solutions of difference equations with variable exponents}. 
Topol. Methods Nonlinear Anal., \textbf{38} (2011), 277-289.

\bibitem{MR1} Molica Bisci, G.; Repov\v{s}, D.;
\emph{Existence of solutions for $p$-Laplacian discrete equations}, 
Appl. Math. Comput., \textbf{242} (2014), 454-461.

\bibitem{MR2} Molica Bisci, G.; Repov\v{s}, D.;
\emph{On sequences of solutions for discrete anisotropic equations}, 
Expo. Math. \textbf{32} (2014), no. 3, 284-295.

\bibitem{RR1} Radulescu, V.; Repov\v{s}, D.;
\emph{Partial differential equations with variable exponents. 
Variational methods and qualitative analysis}, Monographs and Research Notes 
in Mathematics. CRC Press, Boca Raton, FL, 2015.

\bibitem{b17} Rockafellar, R. T.;
\emph{Convex Analysis}, Princeton University Press, 1972.

\bibitem{b18} Szulkin, A.;
\emph{Minimax principles for lower semicontinuous functions and applications 
to nonlinear boundary value problems}. Ann. Inst. Henri Poincar\'e, Anal. 
Non Lin\'eaire \textbf{3} (2) (1986), 77-109.

\bibitem{b19} Tian, Y.; Ge, W.; 
\emph{The existence of solutions for a second-order discrete Neumann 
problem with a p-Laplacian}. J. Appl.Math. Comput. \textbf{26} (2008), 
333-340.

\end{thebibliography}




















\end{document}
