\documentclass[reqno]{amsart}
\usepackage{hyperref}

\AtBeginDocument{{\noindent\small
\emph{Electronic Journal of Differential Equations},
Vol. 2013 (2013), No. 225, pp. 1--9.\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/225\hfil Weak heteroclinic solutions]
{Weak heteroclinic solutions of anisotropic difference equations
 with variable exponent}

\author[A. Guiro, B. Kone, S. Ouaro \hfil EJDE-2013/225\hfilneg]
{Aboudramane Guiro, Blaise Kone, Stanislas Ouaro}  % in alphabetical order

\address{Aboudramane Guiro \newline
Laboratoire d'Analyse Math\'ematique des Equations (LAME)\\
UFR Sciences et Techniques, Universit\'e Polytechnique de Bobo Dioulasso\\
01 BP 1091 Bobo-Dioulasso 01\\
 Bobo Dioulasso, Burkina Faso}
\email{abouguiro@yahoo.fr, aboudramane.guiro@univ-ouaga.bf}

\address{Blaise Kone \newline
Laboratoire d'Analyse Math\'ematique des Equations (LAME)\\
Institut Burkinab\'e des Arts et M\'etiers, Universit\'e de Ouagadougou \\
03 BP 7021 Ouaga 03 \\Ouagadougou, Burkina Faso}
\email{leizon71@yahoo.fr, blaise.kone@univ-ouaga.bf}

\address{Stanislas Ouaro \newline
Laboratoire d'Analyse Math\'ematique des Equations (LAME)\\
UFR. Sciences Exactes et Appliqu\'ees, Universit\'e de Ouagadougou \\
03 BP 7021 Ouaga 03 \\
Ouagadougou, Burkina Faso}
\email{ouaro@yahoo.fr, souaro@univ-ouaga.bf}


\thanks{Submitted December 11, 2012. Published October 11, 2013.}
\subjclass[2000]{47A75, 35B38, 35P30, 34L05, 34L30}
\keywords{Difference equations; heteroclinic solutions; anisotropic problem;
\hfill\break\indent discrete H\"older type inequality}

\begin{abstract}
 In this article, we prove the existence of heteroclinic solutions
 for a family of anisotropic difference equations. The proof of the
 main result is based on a minimization method, a change of variables
 and a discrete H\"older type inequality.
\end{abstract}

\maketitle
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{remark}[theorem]{Remark}
\allowdisplaybreaks

\section{Introduction}

In this article we study the existence of heteroclinic solutions
for the nonlinear discrete anisotropic problem
\begin{equation} \label{eq}
\begin{gathered}
-\Delta (a(k-1,\Delta u(k-1)))+g(k,u(k))=f(k), \quad  k\in\mathbb{Z^*}\\
u(0)=0,\quad  \lim_{k\to -\infty}u(k)=-1,\quad
\lim_{k\to +\infty}u(k)=1,
\end{gathered}
\end{equation}
where $\Delta u(k)=u(k+1)-u(k)$ is the forward difference operator.

The study of heteroclinic connections for boundary value problems had
a certain impulse in recent years, motivated by applications in various
biological, physical and chemical models, such has phase-transition,
physical processes in which the variable transits from an unstable
equilibrium to a stable one, or front-propagation in reaction-diffusion
equations. Indeed, heteroclinic solutions are often called transitional
solutions (see \cite{CAB,MP} and the references therein).

In this article, we show that the solvability of \eqref{eq} is connected
to the behavior of $g(k,s)$ as $k\in\mathbb{Z}^{+}$ and as $k\in\mathbb{Z}^{-}$.
Problem \eqref{eq} involves variable exponents due to their use in image
restoration (see  \cite{CLR}), in electrorheological and thermorheological
fluids dynamic (see \cite{Di,RR,Ru}).
The paper is organized as follows: In section 2, we introduce hypotheses on
$f$, $g$ and $a$, we define the functional spaces and some of their
useful properties and in section 3, we prove the existence of heteroclinic
solutions of \eqref{eq}.

\section{Auxiliary results}

For the rest of this article,  we will use the  notation:
\begin{displaymath}
p^+=\sup_{k\in \mathbb{Z}}p(k),\quad p^-=\inf_{k\in \mathbb{Z}}p(k).
\end{displaymath}
We assume that
\begin{equation}\label{eq7}
p(.): \mathbb{Z}\to (1,+\infty) \quad\text{and}\quad
1<p^-\leq p(.)<p^+<+\infty.
\end{equation}
We introduce the spaces:
\begin{gather*}
l^{1}=\{u:\mathbb{Z}\to \mathbb{R}, \|u\|_{l^{1}}:=\sum_{k\in\mathbb{Z}}| u(k)|<\infty\},
\\
l_{0}^{1}=\{u:\mathbb{Z}\to \mathbb{R}; u(0)=0 \text{  and }
 \|u\|_{l_{0}^{1}}:=\sum_{k\in\mathbb{Z}}| u(k)|<\infty\},
\\
l_{0}^{p(.)}=\{u:\mathbb{Z}\to \mathbb{R}; u(0)=0\text{ and }
\rho_{p(.)}(u):=\sum_{k\in\mathbb{Z}}| u(k)|^{p(k)}<\infty\},
\\
l_{0,+}^{p(.)}=\{u:\mathbb{Z}^+\to \mathbb{R}; u(0)=0\text{ and }
\rho_{p_+(.)}(u):=\sum_{k\in\mathbb{Z}^{+}}| u(k)|^{p(k)}<\infty\},
\\
l_{0,-}^{p(.)}=\{u:\mathbb{Z}^-\to \mathbb{R}; u(0)=0\text{ and }
\rho_{p_-(.)}(u):=\sum_{k\in\mathbb{Z}^{-}}| u(k)|^{p(k)}<\infty\},
\\
\begin{aligned}
\mathcal{W}_{0,+}^{1,p(.)}
&=\{u:\mathbb{Z}^+\to \mathbb{R}; u(0)=0\text{ and } \rho_{1,p_+(.)}(u)
:=\sum_{k\in\mathbb{Z}^{+}}| u(k)|^{p(k)}\\
&\quad +\sum_{k\in\mathbb{Z}^{+}}| \Delta u(k)|^{p(k)}<\infty\}\\
&=\{u:\mathbb{Z}^+\to \mathbb{R}; u\in l_{+}^{p(.)},\; \Delta u(k)\in l_{+}^{p(.)}\text{ and }
u(0)=0\}
\end{aligned}
\\
\begin{aligned}
\mathcal{W}_{0,-}^{1,p(.)}
&= \{u:\mathbb{Z}^-\to \mathbb{R}; u(0)=0\text{ and }
\rho_{1,p_-(.)}(u):=\sum_{k\in\mathbb{Z}^{-}}| u(k)|^{p(k)}\\
&\quad +\sum_{k\in\mathbb{Z}^{-}}| \Delta u(k)|^{p(k)}<\infty\}\\
&= \{u:\mathbb{Z}^-\to \mathbb{R}; u\in l_{-}^{p(.)}, \; \Delta u(k)\in l_{-}^{p(.)} \text{ and }
u(0)=0\}.
\end{aligned}
\end{gather*}
On $l_{0,+}^{p(.)}$ we introduce the Luxemburg norm
\[
\| u\|_{p_{+}(.)}:=\inf\big\{\lambda>0:
 \sum_{k\in\mathbb{Z}^{+}}{| \frac{u(k)}{\lambda}|^{p(k)}\leq 1}\big\}
\]
and we deduce that
\begin{align*}
\| u\|_{1,p_+(.)}
&:=\inf\big\{\lambda>0; \sum_{k\in\mathbb{Z}^{+}}{| \frac{u(k)}{\lambda}|^{p(k)}}
 +\sum_{k\in\mathbb{Z}^{+}}{| \frac{\Delta u(k)}{\lambda}|^{p(k)}}\leq 1\big\}\\
&= \| u\|_{p_+(.)}+\| \Delta u\|_{p_+(.)}
\end{align*}
is a norm on the space $\mathcal{W}_{0,+}^{1,p(.)}$.
We replace $\mathbb{Z}^{+}$ by $\mathbb{Z}^{-}$ to get the norms on $l_{0,-}^{p(.)}$
and $\mathcal{W}_{0,-}^{1,p(.)}$ denoted respectively
$\| \cdot \|_{p_-(.)}$ and $\| \cdot \|_{1,p_-(.)}$.

For the data $f$, $g$ and $a$, we assume the following:
\begin{gather}\label{eq8}
\begin{gathered}
\text{$a(k,.):\mathbb{R}\to\mathbb{R}$  for all $k\in \mathbb{Z}$
and there exists a mapping
$A:\mathbb{Z}\times \mathbb{R} \to\mathbb{R}$}\\
\text{such that 
$a(k,\xi)=\frac{\partial}{\partial\xi}A(k,\xi)$ for all 
$k\in \mathbb{Z}$  and $A(k,0)=0$ for all $k\in \mathbb{Z}$.}
\end{gathered}
\\
\label{eq4}
|\xi|^{p(k)}\leq a(k,\xi)\xi\leq p(k)A(k,\xi) \quad
\forall k\in \mathbb{Z}  \text{ and } \xi\in\mathbb{R}.
\end{gather}
There exists a positive constant $C_1$ such that
\begin{equation}\label{eq5}
 |a(k,\xi)|\leq C_1(j(k)+|\xi|^{p(k)-1}),
\end{equation}
for all $k\in \mathbb{Z}$ and $\xi\in\mathbb{R}$ where $j\in l^{p'(.)}$
with $\frac{1}{p(k)}+\frac{1}{p'(k)}=1$.
\begin{gather}\label{eq6}
 f\in l^{1},\\
\label{eq6.1}
g(k,t)=|t-1|^{p(k)-2}(t-1)\chi_{\mathbb{Z}^{+}}(k)
+|t+1|^{p(k)-2}(t+1)\chi_{\mathbb{Z}^{-}}(k),
\end{gather}
where $\chi_{A}(k)=1$ if $k\in A$ and $\chi_{A}(k)=0$ if $k\notin A$.


\begin{remark}\label{r1} \rm
Note that
 $l_{0,+}^{p(.)}\subset l_0^{p(.)}$,
$l_{0,-}^{p(.)}\subset l_0^{p(.)}$,
 $\mathcal{W}^{1,p(.)}_{0,+}\subset\mathcal{W}_{0}^{1,p(.)}$ and
$\mathcal{W}^{1,p(.)}_{0,-}\subset\mathcal{W}_{0}^{1,p(.)}$.

 If $u\in l^{p(.)}_{0,+}$ (or $u\in l^{p(.)}_{0,-}$ or $u\in l_{0}^{p(.)}$)
then $\lim_{k\to+\infty}u(k)=0$ (or $\lim_{k\to-\infty}u(k)=0$ or
$\lim_{|k|\to+\infty}u(k)=0$). Indeed, for instance, if
$u\in l^{p(.)}_{0,+}$ then $\sum_{k\in\mathbb{Z}^+}|u(k)|^{p(k)}<\infty$. Let
$$
\sum_{k\in\mathbb{Z}^{+}}|u(k)|^{p(k)}
=\sum_{k\in S_1}|u(k)|^{p(k)}+\sum_{k\in S_2}|u(k)|^{p(k)},
$$
where
$S_1=\{k\in\mathbb{Z}^{+};|u(k)|<1\}$ and
$S_2=\{k\in\mathbb{Z}^{+};|u(k)|\geq 1\}$.
The set $S_2$ is necessarily  finite, and $|u(k)|<\infty$ for any $k\in S_2$
since $u\in l^{p(.)}_{0,+}$.
We also have that
$$
\sum_{k\in S_1}|u(k)|^{p^+}\leq \sum_{k\in\mathbb{Z}^{+}}|u(k)|^{p(k)},
$$
then $\sum_{k\in S_1}|u(k)|^{p^+}<\infty$. As $S_2$ is a finite set then
$\sum_{k\in S_2}|u(k)|^{p^+}<\infty$, which implies that
$$
\sum_{k\in\mathbb{Z}^{+}}|u(k)|^{p^{+}}<\infty.
$$
Thus, $\lim_{k\to+\infty}u(k)=0$.
\end{remark}

 We now give useful properties of the spaces defined above which
 are similar to those in \cite{AG}.

\begin{proposition}\label{P1.1}
Assume that \eqref{eq7} is fulfilled. Then $l_0^{1}\subset l_0^{p(.)}$.
\end{proposition}

\begin{proposition}\label{P2.1}
Under conditions \eqref{eq7}, $\rho_{p_{+}(.)}$ satisfies
\begin{itemize}
 \item[(a)] $\rho_{p_+(.)}(u+v)\leq 2^{p+}(\rho_{p_+(.)}(u)
+\rho_{p_+(.)}(v))$, for all $u,v\in l_{0,+}^{p(.)}$.

 \item[(b)] For $u\in l_{0,+}^{p(.)}$, if $\lambda >1$ we have
 \[
\rho_{p_+(.)}(u)\leq \lambda\rho_{p_+(.)}(u)
 \leq  \lambda^{p^-}\rho_{p_+(.)}(u)
 \leq \rho_{p_+(.)}(\lambda u)\leq \lambda^{p^+}\rho_{p_+(.)}(u)
 \]
 and if $0<\lambda<1$, we have
 \[
 \lambda^{p^+}\rho_{p_+(.)}(u)\leq \rho_{p_+(.)}(\lambda u)
\leq  \lambda^{p^-}\rho_{p_+(.)}(u)\leq \lambda\rho_{p_+(.)}(u)
\leq \rho_{p_+(.)}(u).
 \]

 \item[(c)] For every fixed $u\in l_{0,+}^{p(.)}\setminus \{0\}$,
$\rho_{p_+(.)}(\lambda u)$ is a continuous convex even function
in $\lambda$ and it increases strictly when $\lambda \in [0,\infty)$.
\end{itemize}
\end{proposition}

\begin{proposition}\label{norm}
Let $u\in l_{0,+}^{p(.)}\setminus \{0\}$, then
$\| u\|_{p_+(.)}=a$ if and only if $\rho_{p_+(.)}(\frac{u}{a})=1$.
\end{proposition}

\begin{proposition}\label{prop1}
If $u\in l_{0,+}^{p(.)}$ and $p^{+}<+\infty$, then the following properties hold:
\begin{itemize}
\item[(1)]   $\| u\|_{p_+(.)}<1$  $(=1;\;>1)$ if and only if
$\rho_{p_+(.)}(u)<1$ $(=1;>1)$;

\item[(2)] $\| u\|_{p_+(.)}>1$ implies
$\| u\|_{p_+(.)}^{p^-}\leq \rho_{p_+(.)}(u) \leq \| u\|_{p_+(.)}^{p+}$;

\item[(3)]  $\| u\|_{p_+(.)}<1$ implies
$\| u\|_{p_+(.)}^{p^+}\leq \rho_{p_+(.)}(u) \leq \| u\|_{p_+(.)}^{p-}$;

\item[(4)] $\| u_{n}\|_{p_+(.)}\to 0$ if and only if $\rho_{p_+(.)}(u_{n})\to 0$
as $n\to+\infty$.
\end{itemize}
\end{proposition}

\begin{proposition}
Let $u\in \mathcal{W}_{0,+}^{1,p(.)}\setminus \{0\}$. Then
$\| u\|_{1,p_+(.)}=a$ if and only if $\rho_{1,p_+(.)}(u/a)=1$.
\end{proposition}

\begin{proposition}\label{prop2}
If $u\in \mathcal{W}_{0,+}^{1,p(.)}$ and $p^{+}<+\infty$, then the
following properties hold:
\begin{itemize}
\item[(1)]    $\| u\|_{1,p_+(.)}<1$  $(=1;\;>1)$ if and only if
$\rho_{1,p_+(.)}(u)<1$  $(=1;>1)$;

\item[(2)] $\| u\|_{1,p_+(.)}>1$ implies
$\| u\|_{1,p_+(.)}^{p^-}\leq \rho_{1,p_+(.)}(u) \leq \| u\|_{1,p_+(.)}^{p^+}$;

\item[(3)]  $\| u\|_{1,p_+(.)}<1$ implies
$\| u\|_{1,p_+(.)}^{p^+}\leq \rho_{1,p_+(.)}(u) \leq \| u\|_{1,p_+(.)}^{p^-}$;

\item[(4)] $\| u_n\|_{1,p_+(.)}\to 0$ if and only if
$\rho_{1,p_+(.)}(u_n)\to 0$ as $n\to+\infty$.
\end{itemize}
\end{proposition}


\begin{theorem}[Discrete H\"older type inequality]\label{hold}
Let $u\in l_+^{p(.)}$ and $v\in l_+^{q(.)}$ be such that
$\frac{1}{p(k)}+\frac{1}{q(k)}=1$ for all $k\in \mathbb{Z}+$, then
\[
\sum_{k=0}^{+\infty}| uv|
\leq (\frac{1}{p^-}+\frac{1}{q^-})\| u\|_{p_{+}(.)}\| v\|_{q_{+}(.)}.
\]
\end{theorem}


\begin{remark} \rm
All the properties above hold for the spaces $l^{p(.)}$, $l_-^{p(.)}$
and $ \mathcal{W}_{0,-}^{1,p(.)}$.
\end{remark}


\section{Existence of weak heteroclinic solutions}

In this section, we study the existence of weak heteroclinic solutions
of  problem \eqref{eq}.

\begin{definition}\rm
A weak heteroclinic solution of \eqref{eq} is a function $u:\mathbb{Z}\to\mathbb{R}$
such that
\begin{equation}
\sum_{k\in\mathbb{Z}}a(k-1,\Delta u(k-1))\Delta v(k-1)
+\sum_{k\in\mathbb{Z}}g(k,u(k))v(k)=\sum_{k\in\mathbb{Z}}f(k)v(k),
\end{equation}
for any $v:\mathbb{Z}\to\mathbb{R}$, with $u(0)=0$, $\lim_{k\to+\infty}u(k)=1$ and
$\lim_{k\to-\infty}u(k)=-1$.
\end{definition}

\begin{theorem}\label{MainT}
 Assume that \eqref{eq7}--\eqref{eq6.1} hold. Then, there exists at
least one weak heteroclinic solution of \eqref{eq}.
\end{theorem}

To prove Theorem \ref{MainT}, we first prove that the  problem
\begin{equation} \label{pb1}
\begin{gathered}
-\Delta (a(k-1,\Delta u(k-1)))+|u(k)|^{p(k)-2}u(k)=f(k), \quad
  k\in\mathbb{Z_{*}^+}\\
u(0)=0,\quad \lim_{k\to +\infty}u(k)=0,
\end{gathered}
\end{equation}
admits a weak solution in the following sense.

\begin{definition} \rm
A weak solution of \eqref{pb1} is a function $u\in \mathcal{W}_{0,+}^{1,p(.)}$
such that
\begin{equation}
\sum_{k=1}^{+\infty}a(k-1,\Delta u(k-1))\Delta v(k-1)
+\sum_{k=1}^{+\infty}|u(k)|^{p(k)-2}u(k)v(k)
=\sum_{k=1}^{+\infty}f(k)v(k),
\end{equation}
for any $v\in \mathcal{W}_{0,+}^{1,p(.)}$.
\end{definition}

 We have the following result.

\begin{theorem}\label{MainR}
 Assume that \eqref{eq7}--\eqref{eq6} hold. Then, there exists at
least one weak solution of problem \eqref{pb1}.
 \end{theorem}

The energy functional corresponding to problem \eqref{pb1} is
$J: \mathcal{W}_{0,+}^{1,p(.)}\to\mathbb{R}$ defined by
\begin{equation}\label{J}
J(u)=\sum_{k=1}^{+\infty}A(k-1,\Delta u(k-1))
+\sum_{k=1}^{+\infty}\frac{1}{p(k)}|u(k)|^{p(k)}
-\sum_{k=1}^{+\infty}f(k)u(k).
\end{equation}
We first present some basic properties of $J$.

\begin{proposition}\label{propJ}
The functional $J$ is well-defined on the space $ \mathcal{W}_{0,+}^{1,p(.)}$
and is of class $C^{1}( \mathcal{W}_{0,+}^{1,p(.)},\mathbb{R})$,
with the derivative given by
\begin{equation}\label{J(u)}
\begin{aligned}
\langle J'(u),v\rangle
&=\sum_{k=1}^{+\infty}a(k-1,\Delta u(k-1)) \Delta v(k-1)\\
&\quad +\sum_{k=1}^{+\infty}|u(k)|^{p(k)-2}u(k)v(k)
-\sum_{k=1}^{+\infty}f(k)v(k),
\end{aligned}
\end{equation}
for all $u,v\in  \mathcal{W}_{0,+}^{1,p(.)}$.
\end{proposition}

\begin{proof}
 We denote
$$
I(u)=\sum_{k=1}^{+\infty}A(k-1,\Delta u(k-1)),\quad
L(u)= \sum_{k=1}^{+\infty}\frac{1}{p(k)}|u(k)|^{p(k)},\quad
\Lambda(u)=\sum_{k=1}^{+\infty}f(k)u(k).
$$
Using Young inequality, from assumptions \eqref{eq8} and \eqref{eq5} it follows
that
\begin{gather*}
\begin{aligned}
| I(u)|&=|\sum_{k=1}^{+\infty}A(k-1,\Delta u(k-1))|\\
&\leq \sum_{k=1}^{+\infty}| A(k-1,\Delta u(k-1))|\\
&\leq \sum_{k=1}^{+\infty}C_1\biggl(j(k-1)
 +\frac{1}{p(k-1)}| \Delta u(k-1)|^{p(k-1)-1}\biggr)| \Delta u(k-1)|\\
&\leq  \sum_{k=1}^{+\infty}C_1j(k-1)| \Delta u(k-1)|
+\sum_{k=1}^{+\infty}\frac{C_1}{p(k-1)}| \Delta u(k-1)|^{p(k-1)}
< \infty,
\end{aligned}
\\
 |L(u)|\leq \frac{1}{p_{-}}\sum_{k=1}^{+\infty}|u(k)|^{p(k)}<\infty,
\\
|\Lambda(u)|=\big| \sum_{k=1}^{+\infty}f(k)u(k)\big|
\leq  \sum_{k=1}^{+\infty}| f(k)| | u(k)|<\infty.
\end{gather*}
Therefore, $J$ is well-defined.

Clearly $I$, $L$ and $\Lambda$ are in
$C^{1}(\mathcal{W}_{0,+}^{1,p(.)},\mathbb{R})$.
Let us now choose $u,v\in \mathcal{W}_{0,+}^{1,p(.)}$. We have
\begin{gather*}
\langle I'(u),v\rangle=\lim_{\delta\to 0^{+}}\frac{I(u+\delta v)-I(u)}{\delta},\quad
\langle L'(u),v\rangle=\lim_{\delta\to 0^{+}}
 \frac{L(u+\delta v)-L(u)}{\delta}, \\
\langle \Lambda'(u),v\rangle=\lim_{\delta\to 0^{+}}
 \frac{\Lambda(u+\delta v)-\Lambda(u)}{\delta}.
\end{gather*}
Let us denote $g_{\delta}=\frac{A(k-1,\Delta u(k-1)
+\delta\Delta v(k-1))-A(k-1,\Delta u(k-1))}{\delta}$.
Using Young inequality,
\[
\sum_{k=1}^{+\infty}|g_{\delta}|
\leq \frac{1}{\delta}\sum_{k=1}^{+\infty}|A(k-1,\Delta u(k-1)
+\delta\Delta v(k-1))|+\frac{1}{\delta}\sum_{k=1}^{+\infty}|A(k-1,\Delta u(k-1))|
<+\infty.
\]
Thus,
\begin{align*}
&\lim_{\delta\to 0^{+}}\frac{I(u+\delta v)-I(u)}{\delta}\\
&=\lim_{\delta\to 0^{+}}\sum_{k=1}^{+\infty}\frac{A(k-1,\Delta u(k-1)
 +\delta\Delta v(k-1))-A(k-1,\Delta u(k-1))}{\delta}\\
&=\sum_{k=1}^{+\infty}\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}^{+\infty}a(k-1,\Delta u(k-1))\Delta v(k-1).
\end{align*}
By the same method, we deduce that
\begin{align*}
\lim_{\delta\to 0^{+}}\frac{L(u+\delta v)-L(u)}{\delta}
&=\lim_{\delta\to0^{+}}\sum_{k=1}^{+\infty}
 \frac{|u(k)+\delta v(k)|^{p(k)}-|u(k)|^{p(k)}}{p(k)\delta}\\
&=\sum_{k=1}^{+\infty}\lim_{\delta\to0^{+}}
 \frac{|u(k)+\delta v(k)|^{p(k)}-|u(k)|^{p(k)}}{p(k)\delta}\\
&=\sum_{k=1}^{+\infty}|u(k)|^{p(k)-2}u(k)v(k)
\end{align*}
and
\begin{align*}
\lim_{\delta\to 0^{+}}\frac{\Lambda(u+\delta v)-\Lambda(u)}{\delta}
&= \lim_{\delta\to0^{+}}\sum_{k=1}^{+\infty}\frac{f(k)(u(k)
 +\delta v(k))-f(k)u(k)}{\delta}\\
&= \sum_{k=1}^{+\infty}\lim_{\delta\to0^{+}}\frac{f(k)(u(k)
 +\delta v(k))-f(k)u(k)}{\delta}\\
&= \sum_{k=1}^{+\infty}f(k)v(k)
\end{align*}
\end{proof}

\begin{lemma} \label{Icoer}
The functional $I$ is weakly lower semi-continuous.
\end{lemma}

\begin{proof} From \eqref{eq8}, $I$ is convex with respect to the
second variable. Thus, by \cite[corollary III.8]{Br},
it is sufficient to show that $I$ is lower semi-continuous.
For this, we fix $u\in \mathcal{W}_{0,+}^{1,p(.)}$ and $\epsilon>0$.
Since $I$ is convex, we deduce that for any $v\in \mathcal{W}_{0,+}^{1,p(.)}$,
\begin{align*}
I(v)
&\geq  I(u)+\langle I'(u),v-u\rangle\\
&\geq  I(u)+\sum_{k=1}^{+\infty}a(k-1,\Delta u(k-1))(\Delta v(k-1)-\Delta u(k-1))\\
&\geq  I(u)-C(\frac{1}{p^-}+\frac{1}{p'^-})\| g\|_{p'_{+}(.)}
 \| \Delta (u-v)\|_{p_{+}(.)}, \\
&\quad \text{with } g(k)=j(k)+|\Delta u(k)|^{p(k)-1}\\
&\geq  I(u)-K\Big(\| u-v\|_{p_+(.)}+\| \Delta(u-v)\|_{p_+(.)}\Big)\\
&\geq  I(u)-K\| u-v\|_{1,p_+(.)}\\
&\geq  I(u)-\epsilon,
\end{align*}
for all $v\in \mathcal{W}^{1,p(.)}_{0,+}$ with
$\| u-v\|_{1,p_+(.)}<\delta=\epsilon/K$.
Hence, we conclude that $I$ is weakly lower semi-continuous.
\end{proof}

\begin{proposition} \label{Jb}
The functional $J$ is bounded from below, coercive and weakly lower
semi-continuous.
\end{proposition}

\begin{proof} By Lemma \ref{Icoer}, $J$ is weakly lower semi-continuous.
 We shall only prove the coerciveness of the energy functional $J$ and
its boundedness from below.
\begin{align*}
J(u)&=\sum_{k=1}^{+\infty}A(k-1,\Delta u(k-1))
+\sum_{k=1}^{+\infty}\frac{1}{p(k)}|u(k)|^{p(k)}-\sum_{k=1}^{+\infty}f(k)u(k)\\
&\geq  \sum_{k=1}^{+\infty}\frac{1}{p(k-1)}|\Delta u(k-1)|^{p(k-1)}
 +\sum_{k=1}^{+\infty}\frac{1}{p(k)}|u(k)|^{p(k)}-\sum_{k=1}^{+\infty}|f(k)u(k)|\\
&\geq  \frac{1}{p^{+}}(\sum_{s=1}^{+\infty}|\Delta u(s)|^{p(s)}
 +\sum_{k=1}^{+\infty} | u(k)|^{p(k)})-\sum_{k=1}^{+\infty} | f(k)|| u(k)|\\
&\geq  \frac{1}{p^{+}}\rho_{1,p_+(.)}(u)-c_0\|f\|_{p'_{+}(.)}\|u\|_{p_{+}(.)} \\
&\geq  \frac{1}{p^+}\rho_{1,p_+(.)}(u)-K\| u\|_{1,p_+(.)}.
\end{align*}
To prove the coerciveness of $J$, we may assume that $\|u\|_{1,p_+(.)}> 1$
and we get from the above inequality that
$$
J(u)\geq\frac{1}{p^+}\|u\|_{1,p_+(.)}^{p^-}-K\| u\|_{1,p_+(.)}.
$$
Thus,
$$
J(u)\to +\infty \quad \text{as }\|u\|_{1,p_+(.)}\to+\infty.
$$
As $J(u)\to+\infty$ when $\|u\|_{1,p_+(.)}\to+\infty$, then for
 $\|u\|_{1,p_+(.)}>1$, there exists $c\in\mathbb{R}$ such that
$J(u)\geq c$. For $\|u\|_{1,p_+(.)}\leq 1$, we have
\[
J(u)\geq  \frac{1}{p^+}\rho_{1,p_+(.)}(u)-K\| u\|_{1,p_+(.)}
\geq -K\| u\|_{1,p_+(.)}
\geq -K>-\infty.
\]
Thus $J$ is bounded below.
\end{proof}

 We can now give the proof of the main result.

\begin{proof}[Proof of Theorem \ref{MainR}]
By Proposition \ref{Jb}, $J$ has a minimizer which is a weak solution
of \eqref{pb1}
\end{proof}

Now, we consider the problem
\begin{equation}
\begin{gathered}\label{pb1.1}
-\Delta (a(k-1,\Delta u(k-1)))+|u(k)|^{p(k)-2}u(k)=f(k), \quad
k\in\mathbb{Z^{-}}\\
 u(0)=0,\quad \lim_{k\to -\infty}u(k)=0.
\end{gathered}
\end{equation}
A weak solution of problem \eqref{pb1.1} is defined as follows.

\begin{definition} \rm
A weak solution of \eqref{pb1.1} is a function $u\in \mathcal{W}_{0,-}^{1,p(.)}$
such that
\begin{equation}
\sum_{k=-\infty}^{0}a(k-1,\Delta u(k-1))\Delta v(k-1)
+\sum_{k=-\infty}^{0}|u(k)|^{p(k)-2}u(k)v(k)=\sum_{k=-\infty}^{0}f(k)v(k),
\end{equation}
for any $v\in \mathcal{W}_{0,-}^{1,p(.)}$.
\end{definition}

 By mimicking the proof of Theorem \ref{MainR}, we prove the following result.

\begin{theorem}\label{MainR2}
 Assume that \eqref{eq7}--\eqref{eq6} hold. Then, there exists at least
one weak solution of problem \eqref{pb1.1}.
 \end{theorem}

 Let us now show the existence of weak heteroclinic solutions of
 problem \eqref{eq}.

\begin{proof}[Proof of Theorem \ref{MainT}]
 We define $v_1=u_1+1$, where $u_1$ is a weak solution of problem \eqref{pb1}
and $v_2=u_2-1$, where $u_2$ is a weak solution of problem \eqref{pb1.1}.
Therefore, we deduce that
$$
u=v_1\chi_{\mathbb{Z}^{+}}+v_2\chi_{\mathbb{Z}^{-}}
$$
is an heteroclinic solution of problem \eqref{eq}.
\end{proof}

\subsection*{Acknowledgments}
This work was done while the authors were visiting the Abdus Salam International
Centre for  Theoretical Physics (ICTP), Trieste, Italy.
The authors want to thank the mathematics section of ICTP for their hospitality
for providing financial support.

\begin{thebibliography}{00}
\bibitem{Br} H. Brezis;
\emph{Analyse fonctionnelle: théorie et applications}. Paris, Masson (1983).

\bibitem{CAB} Alberto Cabada, Stepan Tersian;
\emph{Existence of Heteroclinic solutions for discrete p-laplacian problems
with a parameter}, Nonlinear Anal. RWA \textbf{12} (2011), 2429-2434.

\bibitem{CLR} Y. Chen, S. Levine, M. Rao;
\emph{Variable exponent, linear growth functionals in image processing},
SIAM J. Appl. Math. \textbf{66(4)} (2006), 1383-1406.

\bibitem{Di} L. Diening;
\emph{Theoretical and numerical results for electrorheological fluids},
Ph.D. thesis, University of Freiburg, Germany, 2002.

\bibitem{AG} A. Guiro, B. Kon\'e, S. Ouaro;
\emph{Weak Homoclinic solutions of anisotropic difference equations
with variable exponents}. Adv. Differ. Equ.  \textbf{154} (2012), 1-13.

\bibitem{MP} C. Marcelli, F. Papalini;
\emph{Heteroclinic connections for fully non-linear non-autonomous
second-order differential equations}.
 J. Differential Equations. \textbf{241} (2007), 160-183.

\bibitem{RR} K. R. Rajagopal, M. Ruzicka;
\emph{Mathematical Modeling of Electrorheological materials},
 Contin. Mech. Thermodyn. \textbf{13} (2001), 59--78.

\bibitem{Ru} M. Ruzicka;
\emph{Electrorheological fluids: modelling and mathematical theory},
Lecture Notes in Mathematics 1748, Springer-Verlag, Berlin, 2002.

\end{thebibliography}

\end{document}
