\documentclass[reqno]{amsart}
\usepackage{hyperref}

\AtBeginDocument{{\noindent\small
\emph{Electronic Journal of Differential Equations},
Vol. 2016 (2016), No. 197, pp. 1--19.\newline
ISSN: 1072-6691. URL: http://ejde.math.txstate.edu or http://ejde.math.unt.edu}
\thanks{\copyright 2016 Texas State University.}
\vspace{8mm}}

\begin{document}
\title[\hfilneg EJDE-2016/197\hfil Existence and multiplicity of solutions]
{Existence and multiplicity of solutions for a Dirichlet problem involving
perturbed $p(x)$-Laplacian operator}

\author[A. Abdou, A. Marcos \hfil EJDE-2016/197\hfilneg]
{Aboubacar Abdou, Aboubacar Marcos}

\address{Aboubacar Abdou \newline
Institut de Math\'ematiques et de Sciences Physiques,
Universit\'e d'Abomey Calavi, 01 BP: 613
Porto-Novo, B\'enin}
\email{aboubacar.abdou@imsp-uac.org, abdou.aboubacar@ymail.com}

\address{Aboubacar Marcos \newline
Institut de Math\'ematiques et de Sciences Physiques, Universit\'e
d'Abomey Calavi, 01 BP: 613 
Porto-Novo, B\'enin}
\email{abmarcos@imsp-uac.org, abmarcos@yahoo.fr}

\thanks{Submitted  December 18, 2015. Published July 24, 2016.}
\subjclass[2010]{35B38, 35J20, 35J60, 35J66, 58E05}
\keywords{$p(x)$-Laplacian operator; generalized Lebesgue-Sobolev spaces;
  \hfill\break\indent critical point; Fountain theorem; dual Fountain theorem}

\begin{abstract}
 In this article we study the existence of solutions for the
 Dirichlet problem
 \begin{gather*}
 -\operatorname{div}(| \nabla u |^{p(x)-2}\nabla u)+V(x)|u|^{q(x)-2}u
 =f(x,u)\quad \text{in }\Omega,\\
 u=0\quad \text{on }\partial \Omega,
 \end{gather*}
 where $\Omega$ is a smooth bounded domain in $\mathbb{R}^N$,
 $V$ is a given function in a generalized Lebesgue space $L^{s(x)}(\Omega)$
 and $f(x,u)$ is a Carath\'eodory function which satisfies some growth condition.
 Using variational arguments based on ``Fountain theorem"
 and ``Dual Fountain theorem", we shall prove under appropriate conditions on the
 above nonhomogeneous quasilinear problem the existence of two sequences of
 weak solutions for this problem.
\end{abstract}

\maketitle
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{definition}[theorem]{Definition}
\allowdisplaybreaks

\section{Introduction}

 In this work we study the existence of multiple solutions for a nonlinear
 Dirichlet problem involving the $p(x)$-Laplacian operator,
 \begin{equation}\label{s}
\begin{gathered}
 -\Delta_{p(x)}u+V(x)|u|^{q(x)-2}u=f(x,u) \quad \text{in } \Omega, \\
 u=0 \quad \text{on } \partial \Omega,
\end{gathered}
\end{equation}
 where $\Omega \subset \mathbb{R}^N$ is a smooth bounded domain,
$p,q,s:\overline {\Omega}\to \mathbb{R}$ are continuous functions,
$V\in L^{s(x)}(\Omega)$ and $f(x,u)$ is a Carath\'eodory function.
Here, the $p(x)$-Laplacian operator is given by
$\Delta_{p(x)}u=\operatorname {div}(| \nabla u |^{p(x)-2}
 \nabla u)$, which is a generalization of the usual $p$-Laplacian operator.

 Nonlinear boundary value problems with variable exponent have received considerable
 attention in recent years. This is partly due to their frequent appearance in
 applications such as the modeling of electrorheological fluids \cite{TG,MR,ZK},
 elastic mechanics, flow in porous media and image processing \cite{CL}, but these
 problems are very interesting from a purely mathematical point of view as well. The
 main interest in studying such problems arises from the presence of the
 $p(x)$-Laplacian operator which is a natural extension of the classical
 $p$-Laplacian operator
 $\operatorname {div}(| \nabla u |^{p-2}\nabla u)$ obtained in the case
 where $p(x)\equiv p$ is a positive constant. However, such generalizations are not
 trivial since the $p(x)$-Laplacian operator possesses a more complicated structure
 than the $p$-Laplacian operator, for example, it is inhomogeneous. Many authors have
 studied problems with variable exponent, we refer for example to the works in
 \cite{JY,FZ,FZH,FH,PSI1,PSI2,KK,LWZ} and references therein.

 When $p(x)\equiv p$ is a constant and $V\equiv0$, Dinca
 et al. \cite{GD}, using variational and topological methods, proved the
 existence and multiplicity of weak solutions for the following Dirichlet problem
 with $p$-Laplacian
 \[
 -\Delta_pu=f(x,u)\text{ in } \Omega,\quad u=0 \text{ on }\partial \Omega,
 \]
 where $f(x,u)$ is a Carath\'eodory function which satisfies some growth
 condition. The main tool in their work was the well known ``Mountain Pass
 theorem" of Ambrosetti and Rabinowitz.

 Fan and Zhang \cite{FZH} studied the variable exponent case with
 $V\equiv0$
 \[
 -\Delta_{p(x)}u=f(x,u)\text{ in } \Omega,\quad u=0\text{ on }\partial \Omega,
 \]
 where $f(x,u)$ is a Carath\'eodory function which satisfies some subcritical
 growth condition. By the ``Mountain Pass lemma", the authors showed that the
 considered problem admits at least one nontrivial weak solution and, by the
 ``Fountain theorem", the infinite many pairs of weak solutions.

 In \cite{PSI1}, Ilia\c{s} considered the Dirichlet problem as in \cite{FZH} under
 some more general conditions on the Carath\'eodory function. Using
 ``Fountain theorem" and ``Dual Fountain theorem", the existence of two different
 sequences of weak solutions was proved.

 Chabrowski and Fu \cite{JY} established in the superlinear and sublinear
 cases the existence of nontrivial nonnegative weak solutions for the Dirichlet
 problem
 \[
 -\operatorname {div}(a(x)| \nabla u |^{p(x)-2}\nabla u)
 +b(x)|u|^{p(x)-2}u=f(x,u)\text{ in } \Omega,\quad u=0\text{ on }\partial \Omega,
\]
 where $\Omega$ is a bounded domain in $\mathbb{R}^N$, $a(x)$ and $b(x)$
 are positive functions in $L^\infty(\Omega)$, the continuous function $p(x)$
 satisfies $1<p(x)<N$ and the Carath\'eodory function $f(x,u)$ satisfies two
 different subcritical growth conditions. Their argument was based on the
 ``Mountain Pass theorem".

 Recently, Liang et al. \cite{LWZ} studied the $p(x)$-Laplacian equation
 \[
 -\operatorname {div}(| \nabla u |^{p(x)-2}\nabla u)+|u|^{p(x)-2}u=f(x,u)
 \text{ in } \Omega,\quad u=0\text{ on }\partial \Omega.
 \]
 In this problem, contrarily to all previous, the Carath\'eodory function
 $f(x,u)$ satisfies some critical growth condition, which is rare in the literature.
 The existence of infinitely many pairs of weak solutions was proved by applying the
 ``Fountain theorem" and the ``Dual Fountain theorem".

 Inspired by the works as in \cite{JY,GD,FZ,PSI1,LWZ}, we want to study the nonlinear
 Dirichlet problem \eqref{s} with a perturbation term $V(x)|u|^{q(x)-2}u$ in the
 left-hand side of the first equation of \eqref{s}, where the function $V(x)$ has an
 indefinite sign and belongs to the generalized Lebesgue space $L^{s(x)}(\Omega)$,
 the nonlinearity $f(x,u)$ is superlinear and satisfies some subcritical growth
 condition. The discussions on the existence of multiple weak solutions will be based
 on the theory of generalized Lebesgue and Sobolev spaces with variable exponents by
 using the critical points theory, the ``Fountain Theorem" and the ``Dual Fountain
 Theorem". The results obtained here generalize some well known other results
 established in \cite{GD,FZH,PSI1}.

 The remainder of this paper is organized as follows, in section 2 we introduce some
 technical results and formulate the required hypotheses in order to solve our problem,
 finally, in section 3 we state some auxiliary results and prove the main results of
 this work.

 \section{Preliminaries and hypotheses}

 To study the Dirichlet problem \eqref{s}, we need to recall some properties of
 variable exponent Lebesgue and Sobolev spaces $L^{p(x)}(\Omega)$ and
$W^{1,p(x)} (\Omega)$, respectively, which will be used later.
We refer to \cite{DHR,FZ1,OJ}
 for the basic properties of these spaces.

 Suppose that $\Omega$ is a bounded domain of $\mathbb{R}^N$ with a smooth boundary
 $\partial \Omega$. Let us denote by
\begin{gather*}
C_+(\overline{\Omega})=\{ p\in C(\overline{\Omega}): p(x)>1 \text{ for every }
 x\in \overline{\Omega} \}, \\
 p^-=\min_{x\in \overline{\Omega}}p(x), \quad
 p^+=\max_{x\in \overline{\Omega} }p(x), \quad
\text{for }p\in C_+(\overline{\Omega}),\\
 M=\{ u:\Omega \to \mathbb{R} : u \text{ is a measurable real-valued
 function} \}.
\end{gather*}

 \begin{definition} \label{def2.1} \rm
 The variable exponent Lebesgue space $L^{p(x)}(\Omega)$ is defined by
 $$
L^{p(x)}(\Omega)=\big\{ u \in M: \int_\Omega | u |^{p(x)}dx <+\infty \big\},
$$
 endowed with the so-called Luxemburg norm
 $$
| u |_{p(x)}=\inf \big\{ \lambda>0: \int_\Omega | \frac{u}
 {\lambda}|^{p(x)}dx \leq 1 \big\}.
$$
 \end{definition}

 \begin{remark} \label{rmk} \rm
 Variable exponent Lebesgue spaces resemble to classical Lebesgue spaces in many
 respects, they are separable Banach spaces and the H\"{o}lder inequality holds.
 The inclusions between Lebesgue spaces are also naturally generalized, that is,
 if $0<mes(\Omega)<\infty$ and $p,q$ are variable exponents such that
 $p(x)<q(x)$ a.e. in $\Omega$, then there exists a continuous embedding
 $L^{q(x)}(\Omega) \hookrightarrow L^{p(x)}(\Omega).$
 \end{remark}

 \begin{definition} \label{def2.3} \rm
 The variable exponent Sobolev space is defined by
 $$
W^{1,p(x)}(\Omega)=\big\{ u\in L^{p(x)}(\Omega): | \nabla u | \in
 L^{p(x)}(\Omega) \big\},
$$
 with the norm
\begin{gather*}
\| u \|_{1,p(x)}=\inf \big\{ \lambda>0: \int_\Omega \Big(|
 \frac{\nabla u}{\lambda}|^{p(x)}+|\frac{u}{\lambda}|^{p(x)} \Big)
 dx \leq 1 \big\}, \\
\| u \|_{1,p(x)}=| |\nabla u| |_{p(x)}+| u |_{p(x)},
\end{gather*}
 where $ |\nabla u|=\sqrt{\sum_{i=1}^N\big(\frac{\partial u}{\partial x_i}\big)^2}$.
 \end{definition}

 \begin{proposition}[Fan and Zhao \cite{FZ1}] \label{prop2.4}
 Both $L^{p(x)}(\Omega)$ and $W^{1,p(x)}(\Omega)$ are separable, reflexive and
 uniformly convex Banach spaces.
 \end{proposition}

 We denote by $L^{p'(x)}(\Omega)$ the conjugate space of $L^{p(x)}(\Omega)$, with
 $\frac{1}{p(x)}+\frac{1}{p'(x)}=1$.

 \begin{proposition}[Fan and Zhao \cite{FZ1}]\label{HLD}
 The H\"{o}lder inequality holds, namely
 $$
\int_\Omega | uv | dx \leq \big(\frac{1}{p^-}+\frac{1}{p'^-} \big)
 | u |_{p(x)} | v |_{p'(x)} \leq 2| u |_{p(x)} |
 v |_{p'(x)},
$$
 for all $u\in L^{p(x)}(\Omega)\text{ and }v\in L^{p'(x)}(\Omega)$.
 \end{proposition}

 Moreover, if $h_1,h_2,h_3:\overline{\Omega}\to (1,\infty)$ are Lipschitz
 continuous functions such that $\frac{1}{h_1}+\frac{1}{h_2}+\frac{1}{h_3}=1$,
then for any $u\in L^{h_1(x)}(\Omega)$,
$v\in L^{h_2(x)}(\Omega)$, $w\in L^{h_3(x)}(\Omega)$, the
 following inequality holds (see \cite[Proposition 2.5]{FH})
 \begin{equation}\label{holder}
 \int_\Omega | uvw | dx \leq \big(\frac{1}{h_1^-}+\frac{1}{h_2^-}+\frac{1}
 {h_3^-} \big)| u |_{h_1(x)} | v |_{h_2(x)}| w |_{h_3(x)}.
 \end{equation}

 The modular is an important tool in studying generalized Lebesgue-Sobolev spaces,
 which is a mapping $\varphi_p:L^{p(x)}(\Omega)\to \mathbb{R}$ defined by
 $$
\varphi_p(u)= \int_\Omega | u |^{p(x)}dx.
$$
 The statements below establish the connection between $\varphi_p$ and $| \cdot
 |_{p(x)}$.

 \begin{proposition}[Fan and Zaho \cite{FZ1}]\label{connect}
 We have the relations:
 \begin{itemize}
 \item[(1)] The following assertions are equivalent
 \begin{itemize}
 \item[(i)] $| u |_{p(x)}<(>,=)1\Longleftrightarrow \varphi_p(u)<(>,=)1$,
 \item[(ii)] $| u |_{p(x)}=\alpha \Longleftrightarrow \varphi_p(u)=\alpha
 \text{ when }\alpha \neq 0$,
 \item[(iii)] $| u |_{p(x)}\to 0 \Longleftrightarrow \varphi_p(u)\to 0$,
 \item[(iv)] $| u |_{p(x)}\to \infty \Longleftrightarrow \varphi_p(u)\to
 \infty$.
 \end{itemize}
 \item[(2)] $\min(| u |_{p(x)}^{p^-},| u |_{p(x)}^{p^+})\leq
 \varphi_p(u)\leq \max(| u |_{p(x)}^
 {p^-},| u |_{p(x)}^{p^+}).$

 Let $u_n,\ u \subset L^{p(x)}(\Omega)$, with $n=1,2\cdots$.
 \item[(3)] The following assertions are equivalent
 \begin{itemize}
 \item[(i)] $ \lim_{n \to +\infty}| u_n-u |_{p(x)}=0$,
 \item[(ii)] $ \lim_{n \to +\infty}\varphi_p(u_n-u)=0$,
 \item[(iii)] $ u_n \to u $ in measure in $\Omega $ and
 $\lim_{n \to +\infty}\varphi_p(u_n)=\varphi_p(u)$.
 \end{itemize}
 \item[(4)] $ \lim_{n \to +\infty}| u_n |_{p(x)}=+\infty$
 if and only if $\lim_{n \to +\infty}\varphi_p(u_n)=+\infty$.
 \end{itemize}
 \end{proposition}

 \begin{proposition}[Edmunds and R\'{a}kosn\'{\i}k \cite{ER}]\label{NR}
 Let $p(x)$ and $q(x)$ be measurable functions such that
$p(x)\in L^{\infty}(\Omega)$ and
 $1\leq p(x)q(x)\leq \infty$, for a.e. $x\in \Omega$.
 Let $u\in L^{q(x)}(\Omega),\ u\neq 0$. Then
\begin{gather*}
| u |_{p(x)q(x)}\leq 1 \Rightarrow | u |_{p(x)q(x)}^{p^+}
 \leq | | u|^{p(x)}|_{q(x)}\leq | u |_{p(x)q(x)}^{p^-}, \\
 | u |_{p(x)q(x)}\geq 1 \Rightarrow | u |_{p(x)q(x)}^{p^-}\leq
 | | u|^{p(x)} |_{q(x)}\leq | u |_{p(x)q(x)}^{p^+}.
\end{gather*}
 In particular if $p(x)=p$ is a constant, then
 $$
| \, | u|^{p} |_{q(x)}=| u |_{pq(x)}^p.
$$
 \end{proposition}

 \begin{definition} \label{def2.8} \rm
 For $p\in C_+(\overline{\Omega})$, let us define the so-called critical Sobolev
 exponent of $p$ by
 $$
 p^*(x)=\begin{cases}
 \frac{Np(x)}{N-p(x)} & \text{if } p(x)<N,\\
 +\infty & \text{if } p(x)\geq N,
 \end{cases}
 $$
 for every $x\in \overline{\Omega}$.
 \end{definition}

 We also define the space $W_0^{1,p(x)}(\Omega)$ as the closure of the space of
 $C^\infty$-functions with compact support in $\Omega$ $C_0^{\infty}(\Omega)$ in
 the space $W^{1,p(x)}(\Omega)$ endowed with the norm
 $$
\| u \|=| |\nabla u| |_{p(x)}.
$$
 The dual space of $W_0^{1,p(x)}(\Omega)$ is denoted by $W^{-1,p'(x)}(\Omega)$,
 where
 $\frac{1}{p(x)}+\frac{1}{p'(x)}=1,$ for every $x\in \overline{\Omega}$.

 Next, we recall some embedding results regarding variable exponent
 Lebesgue-Sobolev spaces.

 \begin{proposition}[Fan and Zhao \cite{FZ1}]\label{emb}
 The following statements hold:
 \begin{itemize}
 \item[(i)] The space $(W_0^{1,p(x)}(\Omega),\| \cdotp \|)$ is a separable
 and reflexive Banach space.
 \item[(ii)] If $p,q\in C_+(\overline{\Omega})$ and $ q(x)<p^*(x)$ for every $x\in
 \overline{\Omega}$, then there is a compact and continuous embedding
 $$W^{1,p(x)}(\Omega)\hookrightarrow L^{q(x)}(\Omega).$$
 \item[(iii)] There is a constant $C>0$ such that $$|u|_{p(x)}\leq C|
 |\nabla u||_{p(x)}, \text{ for all }u\in W_0^{1,p(x)}(\Omega).$$
 \end{itemize}
 \end{proposition}

 \begin{remark} \label{rmk2.10} \rm
 Using the result of Fan and Zhao in Proposition \ref{emb} (iii), the norm
 $\| u \|_{1,p(x)}=| |\nabla u| |_{p(x)}+| u
 |_{p(x)}$ is equivalent to the norm
$\| u \|=| |\nabla u| |_{p(x)}$ in $W_0^{1,p(x)}(\Omega)$.
Hence from now, we will consider the space
 $W_0^{1,p(x)}(\Omega)$ equipped with the norm $\| u \|=| |\nabla u|
 |_{p(x)}$.
 \end{remark}

 \begin{remark} \label{rmk2.11} \rm
 If $p,q\in C_+(\overline{\Omega})$ and $ q(x)<p^*(x)$ for every
$x\in \overline{\Omega}$, then the embedding from $W_0^{1,p(x)}(\Omega)$
into $L^{q(x)}(\Omega)$ is compact.
 \end{remark}

 As in the case $p(x)\equiv p$ (constant), we consider the $p(x)$-Laplacian operator
 $$
-\Delta_{p(x)}:W_0^{1,p(x)}(\Omega)\to W^{-1,p'(x)}(\Omega),
$$
 defined by
 $$
\langle -\Delta_{p(x)}u,v \rangle
=\int_\Omega |\nabla u|^{p(x)-2}\nabla u \nabla vdx,\quad
 \text{for all } u,v\in W_0^{1,p(x)}(\Omega).
$$

 \begin{proposition}[Fan and Zhang \cite{FZH}]\label{type}
 We have the following properties:
 \begin{itemize}
 \item[(i)] $-\Delta_{p(x)}:W_0^{1,p(x)}(\Omega)\to W^{-1,p'(x)}(\Omega)$ is a
 homeomorphism.
 \item[(ii)] $-\Delta_{p(x)}:W_0^{1,p(x)}(\Omega)\to W^{-1,p'(x)}(\Omega)$ is a
 stictly monotone operator, that is,
 $$
-\langle \Delta_{p(x)}u-\Delta_{p(x)}v,u-v \rangle>0,\quad \text{ for all }
 u\neq v \in W_0^{1,p(x)}(\Omega). 
$$
 \item[(iii)] $-\Delta_{p(x)}:W_0^{1,p(x)}(\Omega)\to W^{-1,p'(x)}(\Omega)$ is
 a mapping of type $(S_+)$, that is,
 $$\text{ if } u_n \rightharpoonup u \text{ in }W_0^{1,p(x)}(\Omega)
 \text{ and } \limsup_{n\to \infty}\langle -\Delta_{p(x)}u_n,u_n-u \rangle
 \leq 0,$$
 then $u_n\to u$ in $W_0^{1,p(x)}(\Omega)$.
 \end{itemize}
 \end{proposition}

 \begin{proposition}[Chang \cite{KC}]\label{fcn}
 The functional $\Psi:W_0^{1,p(x)}(\Omega)\to \mathbb{R}$ defined by
 $$\Psi(u)=\int_\Omega \frac{1}{p(x)}|\nabla u|^{p(x)}dx$$
 is continuously Fr\'echet differentiable and $\Psi'(u)=-\Delta_{p(x)}u$, for
 all $u\in W_0^{1,p(x)}(\Omega)$.
 \end{proposition}

 We recall now some basic results concerning the Nemytskii operator. Note that,
 if $f:\Omega \times \mathbb{R}\to \mathbb{R}$ is a Carath\'eodory
 function and $u\in M$, then the function $N_fu:\Omega \to \mathbb{R}$
 defined by $(N_fu)(x)=f(x,u(x))$ for $x\in \Omega$ is measurable in $\Omega$.
 Thus, the Carath\'eodory function $f:\Omega \times \mathbb{R}\to \mathbb{R}$
 generates an operator $N_f:M\to M$, which is called the Nemytskii operator.
 The propositions below give the properties of $N_f$.

 \begin{proposition}[Zhao and Fan \cite{ZF}]\label{cara1}
 Suppose that $f:\Omega \times \mathbb{R}\to \mathbb{R}$ is a Carath\'eo\-dory
 function and satisfies the growth condition
 $$
|f(x,t)|\leq c|t|^{\frac{\alpha(x)}{\beta(x)}}+h(x),\quad \text{for every }x\in
 \Omega,\ t\in \mathbb{R},
$$
 where $\alpha,\beta \in C_+(\overline{\Omega})$, $c\geq 0$ is constant and
 $h\in L^{\beta(x)}(\Omega)$. Then
$N_f(L^{\alpha(x)}(\Omega))\subseteq L^{\beta(x)}
 (\Omega)$. Moreover, $N_f$ is continuous from $L^{\alpha(x)}(\Omega)$ into
 $L^{\beta(x)}(\Omega)$ and maps bounded set into bounded set.
 \end{proposition}

 \begin{proposition}[Zhao and Fan \cite{ZF}]\label{cara2}
 Suppose that $f:\Omega \times \mathbb{R}\to \mathbb{R}$ is a Carath\'eo\-dory
 function and satisfies the growth condition
 $$
|f(x,t)|\leq c|t|^{\alpha(x)-1}+h(x),\quad \text{for every }x\in \Omega,\; t\in
 \mathbb{R},
$$
 where $c\geq0$ is constant, $\alpha,\beta \in C_+(\overline{\Omega})$,
$h\in L^{\beta(x)}
 (\Omega)$ with $\beta$ the conjugate exponent of $\alpha$, i.e., $\beta(x)=\frac{\alpha(x)}
 {\alpha(x)-1}$. Let $F:\Omega \times \mathbb{R}\to \mathbb{R}$ defined by
 $$F(x,t)=\int_0^tf(x,s)ds .$$
 Then
 \begin{itemize}
 \item[(i)] $F$ is a Carath\'eodory function and there exist a constant
 $c_1\geq0$ and $\sigma \in L^1(\Omega)$ such that
 $$
|F(x,t)|\leq c_1|t|^{\alpha(x)}+\sigma(x),\quad \text{ for all }x\in \Omega,\
 t\in \mathbb{R}.
$$
 \item[(ii)] The functional $\Phi:L^{\alpha(x)}(\Omega)\to \mathbb{R}$
 defined by $\Phi(u)=\int_\Omega F(x,u(x))dx$ is continuously Fr\'echet
 differentiable and $\Phi'(u)=N_f(u),\text{ for all }u\in L^{\alpha(x)}(\Omega)$.
 \end{itemize}
 \end{proposition}

 \begin{remark} \label{rmk2.16} \rm
 In Proposition \ref{cara2} if we take $\alpha \in C_+(\overline{\Omega})$ with
 $\alpha(x)<p^*(x)$ for every $x\in \overline{\Omega}$, the embedding
 $W_0^{1,p(x)}(\Omega)\hookrightarrow L^{\alpha(x)}(\Omega)$ is compact. Hence the
 diagram
 $$
W_0^{1,p(x)}(\Omega)\stackrel{I}{\hookrightarrow} L^{\alpha(x)}(\Omega)
 \stackrel{N_f}{\to}L^{\beta(x)}(\Omega)\stackrel{I^*}{\hookrightarrow}
 W^{-1,p'(x)}(\Omega)
$$
 shows that $N_f:W_0^{1,p(x)}(\Omega)\to W^{-1,p'(x)}(\Omega)$ is
 strongly continuous on $W_0^{1,p(x)}(\Omega)$. Moreover, using the same argument,
 the functional $\Phi:W_0^{1,p(x)}(\Omega)\to \mathbb{R}$ defined by
 $\Phi(u)=\int_\Omega F(x,u(x))dx$ is strongly continuous on $W_0^{1,p(x)}(\Omega)$.
 \end{remark}

 Throughout this work, we make the following assumptions on the Dirichlet problem
 \eqref{s}:
 \begin{itemize}
 \item[(A1)] $p,q,s\in C_+(\overline{\Omega})$ such that
 $1<q(x)<p(x)\leq N<s(x)$ for every $x\in {\overline{\Omega}}$ and
 $V\in L^{s(x)}(\Omega)$.

 \item[(A2)] $f:\Omega \times \mathbb{R}\to \mathbb{R}$ satisfies the
 Carath\'eodory condition and the following subcritical growth condition
 $$
|f(x,t)|\leq c|t|^{\beta(x)-1}+h(x),\quad \text{ for all }x\in \Omega,\; t\in
 \mathbb{R},
$$
 where $c\geq0$ is constant, $\beta \in C_+(\overline{\Omega})$ with
 $\beta(x)<p^*(x)$, for every $x\in \overline{\Omega}$, $h\in L^{\beta'(x)}(\Omega)$
 where $\beta'$ is the conjugate exponent of $\beta$.

\item[(A3)] There exist $\theta \in (p^+,(p^*)^-)$ and $M>0$ such that
 $$
0<\theta F(x,s) \leq sf(x,s) ,\quad \text{for }x\in \Omega,\; s\in \mathbb{R}
 \text{ with } |s|\geq M,
$$
 where $ F(x,s)=\int_0^sf(x,t)dt$.

 \item[(A4)] $f(x,-t)=-f(x,t)$ for $x\in \Omega$, $s\in \mathbb{R}$.

 \item[(A5)] $\beta^->p^+$.
 \end{itemize}

\section{Proofs of main results and auxiliary results}

 In this section, we investigate some auxiliary results which allow us to prove
 our main results. Here and henceforth, we denote by $X$ the generalized Sobolev
 space $W_0^{1,p(x)}(\Omega)$ equipped with the norm $\| \cdotp \|$, $X^*$
 its dual space, $s'(x)$ the conjugate exponent of the function $s(x)$ and we
 define a continuous function
 $$
\alpha(x)=\frac{s(x)q(x)}{s(x)-q(x)}.
$$
 By assumptions (A1), (A2) on the functions $p, q, s$ and $\beta$, a straightforward
 computation gives
 $$
q(x)<p^*(x),\ \alpha(x)<p^*(x),\quad
 s'(x)q(x)<p^*(x)\text{ and }\beta(x)<p^*(x),
$$
 for every $x \in \overline{\Omega}$. Then, we have the following remark.

 \begin{remark} \label{INJ} \rm
 From Proposition \ref{emb} (i), the embeddings
$X\hookrightarrow L^{q(x)}(\Omega)$, $X\hookrightarrow L^{\alpha(x)}(\Omega)$,
$X \hookrightarrow L^{s'(x)q(x)}(\Omega)$ and
$X\hookrightarrow L^{\beta(x)}(\Omega)$
 are compact and continuous. Therefore, there exists a positive constant
 $C$ such that
 \begin{equation}\label{3cst}
 |u|_{q(x)}\leq C\| u\|,\quad |u|_{\alpha(x)}\leq C\| u\|,\quad
 |u|_{s'(x)q(x)}\leq C\| u\|, \quad |u|_{\beta(x)}\leq C\| u\|,
 \end{equation}
for all $u\in X$. Without any loss of generality, we can suppose that $C>1$.
 \end{remark}

 By a solution of problem \eqref{s}, we mean a weak solution which satisfies
the following condition.

 \begin{definition} \label{def3.2} \rm
 We say that $u\in X$ is a weak solution of \eqref{s} if
 \begin{equation}\label{WS}
 \int_\Omega |\nabla u|^{p(x)-2}\nabla u \nabla vdx
+\int_\Omega V(x)|u|^{q(x)-2}uvdx
 =\int_\Omega f(x,u)vdx,\ \forall \ v\in X.
 \end{equation}
 \end{definition}

 Let us consider the Euler-Lagrange functional or the energy functional
 $H:X\to \mathbb{R}$ associated with problem \eqref{s} defined by
 $$
H(u)= \int_\Omega \frac{1}{p(x)} |\nabla u|^{p(x)}dx
+\int_\Omega \frac{V(x)} {q(x)}|u|^{q(x)}dx-\int_\Omega F(x,u)dx .
$$
 Let us introduce the functionals $\Psi,J,\Phi:X\to \mathbb{R}$
 defined by
 $$
\Psi(u)= \int_\Omega \frac{1}{p(x)} |\nabla u|^{p(x)}dx,\quad
J(u)=\int_\Omega \frac{V(x)}{q(x)}|u|^{q(x)}dx, \quad
 \Phi(u)=\int_\Omega F(x,u)dx.
$$
 Then, the energy functional $H$ can be written as
 $$
H(u):=\Psi(u)+J(u)-\Phi(u).
$$
 The functional $J$ is well defined. Indeed, using H\"{o}lder inequality and
 Proposition \ref{NR}, for all $u\in X$, we have
 $$
|J(u)|\leq \frac{2}{q^-}|V|_{s(x)}||u|^{q(x)}|_{s'(x)}\leq \frac{2}{q^-}
 |V|_{s(x)}\max \{|u|_{s'(x)q(x)}^{q^-},|u|_{s'(x)q(x)}^{q^+}\}.
$$
We have the following result concerning the regularity of the functional $H$.

\begin{proposition}\label{reg}
 The functional $H \in C^1(X,\mathbb{R})$, i.e., $H$ is continuously Fr\'echet
 differentiable. Moreover, $u \in X$ is a critical point
 of $H$ if and only if $u$ is a weak solution of \eqref{s}.
 \end{proposition}

\begin{proof}
 By Proposition \ref{fcn} and Proposition \ref{cara2}, we know that $\Psi$
 respectively $\Phi$ are of class $C^1(X,\mathbb{R})$ and their derivative
 functions are given by
 $$
\langle d\Psi(u),v \rangle=\int_\Omega |\nabla u|^{p(x)-2}\nabla u \nabla
 vdx \text{ and } \langle d\Phi(u),v \rangle=\int_\Omega f(x,u)vdx,
$$
 for all $u,v\in X$. It is also well known (see \cite{BK,KK}) that the functional
 $J$ is of class $C^1(X,\mathbb{R})$ and its derivative is given by
 $$
\langle dJ(u),v\rangle=\int_\Omega V(x)|u|^{q(x)-2}uvdx,\quad \text{for all }
 u,v\in X.
$$
 Therefore, the functional $H \in C^1(X,\mathbb{R})$ and its derivative function
 is given by
 $$
\langle dH(u),v \rangle=\int_\Omega |\nabla u|^{p(x)-2}\nabla u \nabla vdx+
 \int_\Omega V(x)|u|^{q(x)-2}uvdx -\int_\Omega f(x,u)vdx,
$$
for all $u,v\in X$.
 Now, let $u$ be a critical point of $H$, then we have $dH(u)=0_{X^*}$, which
 implies that
 $$
\langle dH(u),v \rangle=0,\text{ for all }v\in X.
$$
 Consequently,
$$
\int_\Omega |\nabla u|^{p(x)-2}\nabla u\nabla vdx+\int_\Omega
 V(x)|u|^{q(x)-2}uvdx=\int_\Omega f(x,u)vdx,\ \forall \ v\in X.
$$
 It follows that $u$ is a weak solution of \eqref{s}. On the other
 hand, if $u$ is a weak solution of \eqref{s}, by definition, we have
 $$
\int_\Omega |\nabla u|^{p(x)-2}\nabla u\nabla vdx+\int_\Omega
 V(x)|u|^{q(x)-2}uvdx=\int_\Omega f(x,u)vdx,\ \forall \ v\in X,
$$
which implies that
 $$
\langle dH(u),v \rangle=0,\text{ for all }v\in X.
$$
 So, $dH(u)=0_{X^*}$ and hence $u$ is a critical point of $H$.
The proof is complete.
 \end{proof}

\begin{remark}[see \cite{JFZ}]\label{rem2} \rm
As the Sobolev space $X=W^{1,p(x)}_0(\Omega)$ is a reflexive and separable Banach
space, there exist $(e_n)_{n\in \mathbb{N}^*}\subseteq X$
and $(f_n)_{n\in \mathbb{N}^*}\subseteq X^*$ such that $f_n(e_m)=\delta_{nm}$ for
any $n,m\in \mathbb{N}^*$ and
 $$
X=\overline{\operatorname{span}\{ e_n: n\in \mathbb{N}^*
 \}},\quad X^*=\overline{\operatorname{span}\{ f_n: n\in \mathbb{N}^* \}}^{w^*}.
$$
 \end{remark}

 For $k\in \mathbb{N}^*$ denote by
 $$
X_k=\operatorname{span}\{ e_k \},\ Y_k=\oplus_{j=1}^k X_j, \quad
 Z_k=\overline{\oplus_k^\infty X_j}.
$$

 \begin{definition} \label{def3.5} \rm
We say that
 \begin{itemize}
 \item[(1)] The $C^1$-functional $H$ satisfies the Palais-Smale condition (in short
 $(PS)$ condition) if any sequence $(u_n)_{n\in \mathbb{N}}\subseteq X$ for which,
 $(H(u_n))_{n\in \mathbb{N}}\subseteq \mathbb{R}$ is bounded and $dH(u_n)\to 0$
 as $n\to \infty$, has a convergent subsequence.

\item[(2)] The $C^1$-functional $H$ satisfies the Palais-Smale condition at
 the level $c$ (in short $(PS)_c$ condition) for $c\in \mathbb{R}$ if any sequence
 $(u_n)_{n\in \mathbb{N}}\subseteq X$ for which, $H(u_n)\to c$ and $dH(u_n)\to 0$
 as $n\to \infty$, has a convergent subsequence.

\item[(3)] The $C^1$-functional $H$ satisfies the $(PS)_c^*$ condition for
 $c\in \mathbb{R}$ if any sequence $(u_n)_{n\in \mathbb{N}}\subseteq X$ for which,
 $u_n\in Y_n$ for each $n\in \mathbb{N}$, $H(u_n)\to c$ and $d(H_{|Y_n})(u_n)\to 0$
 as $n\to \infty$ with $Y_n,\ n\in \mathbb{N}$ as defined in Remark \ref{rem2},
 has a subsequence convergent to a critical point of $H$.
 \end{itemize}
 \end{definition}

 \begin{remark} \label{rmk3.6} \rm
 It is easy to see that if $H$ satisfies the $(PS)$ condition, then $H$ satisfies the
 $(PS)_c$ condition for every $c\in \mathbb{R}$.
 \end{remark}

 Now, we state our main results of this work.

 \begin{theorem}\label{cr1}
 Under assumptions {\rm (A1)--(A5)}, problem \eqref{s}
 has a sequence of weak solutions $(\pm u_n)_{n\in \mathbb{N}}\subseteq X$ such that
 $H(\pm u_n)\to +\infty$ as $n\to \infty$.
 \end{theorem}

 \begin{theorem}\label{cr2}
 Under assumptions {\rm (A1)--(A5)}, problem \eqref{s}
 has a sequence of weak solutions $(\pm u_n)_{n\in \mathbb{N}}\subseteq X$ such that
 $H(\pm u_n)\leq0$ for each $n\in \mathbb{N}$ and $H(\pm u_n)\to 0$ as $n\to \infty$.
 \end{theorem}

 The proofs of these above results will be based on a variational approach, using the
 critical points theory, we shall prove that the $C^1$-functional $H$ has two different
 sequences of critical values. The main tools for this end are ``Fountain theorem"
 and ``Dual Fountain theorem" (see Willem \cite[Theorem 6.5]{MW})
 which we give below.

\begin{theorem}[``Fountain theorem", \cite{MW}] \label{FT}
 Let $X$ be a reflexive and separable Banach space, $I\in C^1(X,\mathbb{R})$
be an even functional and the subspaces $X_k, Y_k, Z_k$ as defined in remark
 \ref{rem2}. If for each $k\in \mathbb{N}^*$ there exist $\rho_k>r_k>0$ such that
 \begin{itemize}
 \item[(1)] $\inf_{x\in Z_k, \| x\|=r_k}I(x)\to \infty \text{ as }k\to \infty$,
 \item[(2)] $\max_{x\in Y_k, \| x\|=\rho_k}I(x)\leq0$,
 \item[(3)] $I$ satisfies the $(PS)_c$ condition for every $c>0$.
 \end{itemize}
 Then $I$ has a sequence of critical values tending to $+\infty$.
\end{theorem}

\begin{theorem}[Dual Fountain theorem \cite{MW}]\label{DFT}
 Let $X$ be a reflexive and separable Banach space, $I\in C^1(X,\mathbb{R})$
 be an even functional and the subspaces $X_k, Y_k, Z_k$ as defined in remark
\ref{rem2}. Assume that there is a $k_0\in \mathbb{N}^*$ such that for each
$k\in \mathbb{N}^*$, $k\geq k_0$,
 there exist $\rho_k>r_k>0$ such that
\begin{itemize}
 \item[(1)] $\inf_{x\in Z_k,\ \| x\|=\rho_k}I(x)\geq0$,
 \item[(2)] $b_k=\max_{x\in Y_k,\ \| x\|=r_k}I(x)<0$,
 \item[(3)] $d_k=\inf_{x\in Z_k,\ \| x\| \leq \rho_k}I(x)\to 0 \text{ as }k\to
 \infty$,
 \item[(4)] $I$ satisfies the $(PS)_c^*$ condition for every $c\in [d_{k_0},0)$.
 \end{itemize}
 Then H has a sequence of negative critical values converging to 0.
\end{theorem}

 We first prove that the functional $H$ satisfies $(PS)$ and $(PS)_c^*$ conditions.

\begin{lemma}\label{lem1}
 Under assumptions {\rm(A1)--(A3)}, the functional $H$ satisfies the
 $(PS)$ condition.
 \end{lemma}

 \begin{proof}
 Let $(u_n)_{n\in \mathbb{N}}\subseteq X$ be a $(PS)$ sequence for $H$, i.e.,
 $(H(u_n))_{n\in \mathbb{N}}\subseteq \mathbb{R}$ is bounded and
 $dH(u_n)\to 0\text{ as }n\to \infty$. Then, there exists a positive constant
 $k\in \mathbb{R}$ such that
 \begin{equation}\label{bound}
 |H(u_n)|\leq k,\text{ for every }n\in \mathbb{N}.
 \end{equation}
 For $n\in \mathbb{N}$, we denote by
 $\Omega_n=\{x\in \Omega : |u_n(x)|\geq M \}\text{ and }\Omega'_n=\Omega
 \backslash \Omega_n$,
 with $M$ as in assumption (A3). Without any loss of generality, we can suppose
 that $M\geq1$. By Proposition \ref{cara2} (i), there exist $c_1\geq0$ and
 $\sigma \in L^1(\Omega)$ such that
\[
 F(x,u_n(x)) \leq c_1|u_n(x)|^{\beta(x)}+\sigma(x)
 \leq c_1M^{\beta^+}+\sigma(x),
\]
 for every $x\in \Omega'_n$. Hence,
 \begin{equation}\label{ps1}
 \begin{aligned}
 \int_{\Omega'_n} F(x,u_n(x))dx
& \leq \int_{\Omega'_n}(c_1M^{\beta^+}+\sigma(x))dx \\
& \leq \int_\Omega (c_1M^{\beta^+}+\sigma(x))dx \\
& = c_1M^{\beta^+}\operatorname{meas}(\Omega)+\int_\Omega \sigma(x)dx=k_1.
 \end{aligned}
 \end{equation}
 Using hypothesis (A3),
 $$
F(x,u_n(x))\leq \frac{1}{\theta}f(x,u_n(x))u_n(x),\quad \text{for all }x\in \Omega_n,
$$
 which gives
 \begin{equation}\label{ps2}
 \begin{aligned}
&\int_{\Omega_n} F(x,u_n(x))dx \\
&\leq \frac{1}{\theta}
 \int_{\Omega_n}f(x,u_n(x))u_n(x)dx \\
& = \frac{1}{\theta}\Big(\int_{\Omega}f(x,u_n(x))u_n(x)dx-
 \int_{\Omega'_n}f(x,u_n(x))u_n(x)dx \Big).
 \end{aligned}
 \end{equation}
Using the growth condition in (A2),
\begin{align*}
 \big| \int_{\Omega'_n}f(x,u_n(x))u_n(x)dx \big|
& \leq  \int_{\Omega'_n}
 (c|u_n(x)|^{\beta(x)}+h(x)|u_n(x)|)dx \\
& \leq  cM^{\beta^+}\operatorname{meas}(\Omega'_n)+M\int_{\Omega'_n} h(x)dx \\
& \leq  cM^{\beta^+}\operatorname{meas}(\Omega)+M\int_{\Omega}|h(x)|dx=k_2,
\end{align*}
which yields
 \begin{equation}\label{ps3}
 -\frac{1}{\theta}\int_{\Omega'_n}f(x,u_n(x))u_n(x)dx\leq \frac{k_2}{\theta}.
 \end{equation}
For $n\in \mathbb{N}$, using H\"{o}lder inequality, Proposition \ref{NR} and
 inequality \ref{3cst}, we can deduce that
 \begin{equation}\label{ps4}
 \begin{aligned}
 \int_\Omega |V(x)||u_n|^{q(x)}dx
& \leq 2|V|_{s(x)}
 \max \{|u_n|_{s'(x)q(x)}^{q^-},|u_n|_{s'(x)q(x)}^{q^+}\} \\
& \leq 2|V|_{s(x)}\max \{C^{q^-}\| u_n\|^{q^-},C^{q^+}\|
 u_n\|^{q^+}\},
 \end{aligned}
 \end{equation}
where $C>1$ is a constant which appears in \eqref{3cst}.

 Let us show that the sequence $(u_n)_{n\in \mathbb{N}}$ is bounded in $X$.
 By contradiction, assume that $\| u_n\| \to +\infty \text{ as }
 n \to \infty$. For each $n\in \mathbb{N}$ with $\| u_n\|>1$, using
 inequalities \eqref{bound}, \eqref{ps1}, \eqref{ps2}, \eqref{ps3}
 and \eqref{ps4}, the following holds
 \begin{align*}
 k+1
& \geq H(u_n)-\frac{1}{\theta}\langle dH(u_n),u_n \rangle+
 \frac{1}{\theta}\langle dH(u_n),u_n \rangle \\
& =  \int_\Omega \frac{1}{p(x)} |\nabla u_n|^{p(x)}dx+\int_\Omega
 \frac{V(x)}{q(x)}|u_n|^{q(x)}dx-\int_\Omega F(x,u_n)dx \\
& \quad -\frac{1}{\theta}\left[\int_\Omega|\nabla u_n|^{p(x)}dx
 +\int_\Omega V(x)|u_n|^{q(x)}dx -\int_\Omega f(x,u_n)u_ndx\right] \\
&\quad +\frac{1}{\theta}\langle dH(u_n),u_n \rangle \\
& = \int_\Omega \frac{1}{p(x)} |\nabla u_n|^{p(x)}dx+\int_\Omega
 \frac{V(x)}{q(x)}|u_n|^{q(x)}dx-\int_{\Omega'_n} F(x,u_n)dx \\
&\quad -\int_{\Omega_n} F(x,u_n)dx-\frac{1}{\theta}\int_\Omega|\nabla
 u_n|^{p(x)}dx-\frac{1}{\theta}\int_\Omega V(x)|u_n|^{q(x)}dx \\
 &\quad +\frac{1}{\theta}\int_\Omega f(x,u_n)u_ndx+\frac{1}{\theta}
 \langle dH(u_n),u_n \rangle \\
& \geq \frac{1}{p^+}\int_\Omega|\nabla u_n|^{p(x)}dx-\frac{1}{q^-}
 \int_\Omega |V(x)||u_n|^{q(x)}dx-\int_{\Omega'_n} F(x,u_n)dx \\
&\quad -\frac{1}{\theta}\int_\Omega|\nabla u_n|^{p(x)}dx-\frac{1}{\theta}
 \int_\Omega|V(x)||u_n|^{q(x)}dx+\frac{1}{\theta}\int_{\Omega'_n}
 f(x,u_n)u_ndx \\
&\quad +\frac{1}{\theta}\langle dH(u_n),u_n \rangle \\
& \geq \big(\frac{1}{p^+}-\frac{1}{\theta}\big)\varphi_p(\nabla u_n)
 -2C^{q^+}\big(\frac{1}{q^-}+\frac{1}{\theta}\big)
 |V|_{s(x)}\| u_n\|^{q^+} \\
&\quad -\frac{1}{\theta}\| dH(u_n) \|_{X^*}\| u_n\|-k_1-
 \frac{k_2}{\theta}\\
& \geq \big(\frac{1}{p^+}-\frac{1}{\theta}\big)\| u_n\|^{p^-}
 -2C^{q^+}\big(\frac{1}{q^-}+\frac{1}{\theta}\big)|V|_{s(x)}\| u_n\|^{q^+}\\
&\quad -\frac{1}{\theta}\| dH(u_n) \|_{X^*}\| u_n\|-k_3,
 \end{align*}
 where $k_3=k_1+\frac{k_2}{\theta}$. Since $\theta>p^+>q^+$, letting $n\to \infty$
 in the last inequality we obtain a contradiction. Therefore, the sequence
 $(u_n)_{n\in \mathbb{N}}$ is bounded in $X$. Consequently, we can extract a
 subsequence still denoted $(u_n)_{n\in \mathbb{N}}$ weakly convergent to some
 $u$ in $X$. Using the compact embedding $X\hookrightarrow L^{\alpha(x)}(\Omega)$,
 we deduce that the subsequence $(u_n)_{n\in \mathbb{N}}$ converges strongly to
 $u$ in $L^{\alpha(x)}(\Omega)$. To prove the strong convergence of
 $(u_n)_{n\in \mathbb{N}}$ in $X$, we need the following proposition.
 \begin{proposition}\label{limit0}
 If $(u_n)_{n\in \mathbb{N}}$ converges weakly to $u$ in $X$, then
 $$
\lim_{n\to \infty}\int_\Omega V(x)|u_n|^{q(x)-2}u_n(u_n-u)dx=0 .
$$
 \end{proposition}

 \begin{proof}
 \begin{align*}
 \big| \int_\Omega V(x)|u_n|^{q(x)-2}u_n(u_n-u)dx \big|
& \leq c_0|V|_{s(x)}|
 |u_n|^{q(x)-1}|_{\frac{q(x)}{q(x)-1}}|u_n-u|_{\alpha(x)}\\
& \leq c_0|V|_{s(x)}|u_n|^{k_0}_{q(x)}|u_n-u|_{\alpha(x)},
 \end{align*}
where $c_0$ and $k_0\in \{q^--1,q^+-1 \}$ are positive constants. Using the
 compact embeddings $X\hookrightarrow L^{q(x)}(\Omega)$,
$X\hookrightarrow L^{\alpha(x)}(\Omega)$ and the inequality
$ ||u_n|_{q(x)} -|u|_{q(x)} |\leq |u_n-u|_{q(x)}$, we obtain
$|u_n-u|_{q(x)}\to0$ in $L^{q(x)}(\Omega)$, $|u_n-u|_{\alpha(x)}\to0$
in $L^{\alpha(x)}(\Omega)$ and $|u_n|_{q(x)}\to |u|_{q(x)}$.
 The proof is complete.
 \end{proof}

 Since $dH(u_n)\to 0\text{ as }n\to \infty$, $(u_n)_{n\in \mathbb{N}}$ is
 bounded in $X$ and
 \begin{align*}
 |\langle dH(u_n),u_n-u \rangle|
& \leq |\langle dH(u_n),u_n\rangle|+ |\langle dH(u_n),u \rangle|\\
& \leq \| dH(u_n) \|_{X^*}\| u_n \|+\| dH(u_n) \|_{X^*}\| u \|,
 \end{align*}
 we infer that
 \begin{equation}\label{deriv}
 \lim_{n\to \infty}\langle dH(u_n),u_n-u \rangle=0.
 \end{equation}
 The Nemytskii operator $N_f$ being strongly continuous, so
 $ \lim_{n\to \infty}N_f(u_n)=N_f(u)$ in $X^*$, combine this
 fact and the weak convergence $u_n\rightharpoonup u$ in $X$, it follows that
 \begin{equation}\label{nemys}
 \lim_{n\to \infty}\langle N_f(u_n),u_n-u\rangle=0.
 \end{equation}
 By Proposition \ref{limit0}, expressions \eqref{deriv} and \eqref{nemys},
 we can conclude that
 $$
\lim_{n\to \infty}\langle -\Delta_{p(x)}u_n,u_n-u \rangle=0.
$$
 Now, by Proposition \ref{type} (iii), it is clear that the subsequence
 $u_n\to u$ in $X$ strongly, since $-\Delta_{p(x)}$ is a mapping of type
 $(S_+)$. The proof of Lemma \ref{lem1} is complete.
 \end{proof}

 \begin{lemma}\label{lem2}
 Under assumptions {\rm (A1)--(A3)}, the functional $H$
 satisfies the $(PS)_c^*$ condition for every $c\in \mathbb{R}$.
 \end{lemma}

 \begin{proof}
 Let $(u_n)_{n\in \mathbb{N^*}}\subseteq X$ be a $(PS)_c^*$ sequence for
$H$ with $c\in \mathbb{R}$, i.e., $u_n\in Y_n$ for each $n\in \mathbb{N^*}$,
$H(u_n)\to c$ and $d(H_{|Y_n})(u_n)\to 0$ as $n\to \infty$.
In a similar way to the proof of Lemma \ref{lem1}, we obtain the boundedness
 of the sequence $(u_n)_{n\in \mathbb{N^*}}\subseteq X$.
 Consequently, we can extract a subsequence
$(u_{n_k})_{k\in \mathbb{N^*}}$ of $(u_n)_{n\in \mathbb{N^*}}$ weakly convergent
 to some $u$ in $X$. The space $X$ can be written as
$ X=\overline{\cup_{n\in \mathbb{N^*}}Y_n}$, then we can choose a
 sequence $(v_n)_{n\in \mathbb{N^*}}$ such that $v_n\in Y_n$ for each
$n\in \mathbb{N^*}$ and $ \lim_{n\to \infty}v_n=u\text{ in }X$.
 We have the following expression
\begin{equation}\label{sum}
 \langle dH(u_{n_k}),u_{n_k}-u \rangle=\langle dH(u_{n_k}),u_{n_k}-v_{n_k}
 \rangle+\langle dH(u_{n_k}),v_{n_k}-u \rangle.
\end{equation}
 As $d(H_{|Y_{n_k}})(u_{n_k})\to 0\text{ as }k\to \infty,\ u_{n_k}-v_{n_k}
 \rightharpoonup 0 \text{ in }Y_{n_k}\text{ and }v_{n_k}\to u\in X$,
 we deduce that
 \begin{equation}\label{conv}
\langle dH(u_{n_k}),u_{n_k}-v_{n_k} \rangle \to 0 \text{ and }\langle
 dH(u_{n_k}),v_{n_k}-u \rangle \to 0\text{ as }k\to \infty.
 \end{equation}
Hence, \eqref{sum} and \eqref{conv} give us
 \begin{equation}\label{derlm}
 \langle dH(u_{n_k}),u_{n_k}-u \rangle \to 0\text{ as }k\to \infty.
 \end{equation}
We have seen that the Nemytskii operator $N_f:X\to X^*$ is strongly
 continuous while the $p(x)$-Laplacian operator is a mapping of type
 $(S_+)$. These facts combine with Proposition \ref{limit0}, yield
 that $dH:X\to X^*$ is a mapping of type $(S_+)$. Since the
 subsequence $(u_{n_k})_{k\in \mathbb{N^*}}$ converges weakly to $u$ in $X$,
 from \eqref{derlm} it is clear that
 $ \lim_{k\to \infty}u_{n_k}=u\text{ in }X$.
 Next, we show that $u$ is a critical point of $H$. Choosing an
 arbitrary $w_n\in Y_n$, for any $n_k\geq n$, we can write
 \begin{equation} \label{eqn}
\begin{aligned}
 \langle dH(u),w_n \rangle
& = \langle dH(u)-dH(u_{n_k}),w_n
 \rangle+\langle dH(u_{n_k}),w_n \rangle \nonumber \\
& = \langle dH(u)-dH(u_{n_k}),w_n
\rangle+\langle d(H_{|Y_{n_k}})(u_{n_k}),w_n \rangle.
 \end{aligned}
\end{equation}
 Since $H\in C^1(X,\mathbb{R})$ and $\lim_{k\to \infty}u_{n_k}=u$ in $X$, it follows
that
 $\lim_{k\to \infty}dH(u_{n_k})=dH(u)$. Therefore,  \eqref{eqn} letting
 $k\to \infty$ we deduce that $\langle dH(u),w_n \rangle=0$ for all $w_n \in Y_n$,
 hence $dH(u)=0$. In conclusion, $H$ satisfies the $(PS)_c^*$ condition for every
 $c\in \mathbb{R}$. The proof is complete.
 \end{proof}

Now, we state several Lemmas that will be useful in the sequel.

 \begin{lemma}[see \cite{FZH}]\label{sup1}
If $\alpha \in C_+(\overline{\Omega})$ with $\alpha(x)<p^*(x)$, for every
$x\in \overline{\Omega}$, for each $k\in \mathbb{N^*}$ denote
 $$
\beta_k=\sup \{|u|_{\alpha(x)}: u\in Z_k,\ \| u\|=1 \}.
$$
 Then, $ \beta_k<\infty \text{ and }\lim_{k\to \infty}\beta_k=0$.
 \end{lemma}

\begin{lemma}[see \cite{GAP}]\label{sup2}
Assume that $\Theta:X\to \mathbb{R}$ is a strongly continuous functional
and $\Theta(0)=0$, for each $\gamma>0$ and $k\in \mathbb{N^*}$
denote
$$
\alpha_k=\sup \{|\Theta(u)|: u\in Z_k,\ \| u\| \leq \gamma \}.
$$
Then,
$ \alpha_k<\infty \text{ and }\lim_{k\to \infty}\alpha_k=0$.
 \end{lemma}

\begin{lemma}\label{sup3}
 Assume that the Carath\'eodory function $f$ satisfies {\rm(A2), (A3)}.
 Then there exist $k_1,k_2>0$, $\sigma_0 \in L^1(\Omega)$ and
 $\chi \in L^\infty(\Omega)$ with $\chi(x)>0$ for every $x\in \Omega$ such that
 $$
F(x,t)\geq \chi(x)|t|^\theta-k_1-k_2\sigma_0(x),\text{ for }x\in \Omega,\ t\in
 \mathbb{R}.
$$
 \end{lemma}

Now, we are in a position to give the proofs of main theorems state above.

 \begin{proof}[Proof of Theorem \ref{cr1}]
 Let us verify the conditions of the Fountain theorem.
 It is clear that the $C^1$-functional $H:X\to \mathbb{R}$ defined by
 $$
H(u)= \int_\Omega \frac{1}{p(x)} |\nabla u|^{p(x)}dx+\int_\Omega
 \frac{V(x)}{q(x)}|u|^{q(x)}dx-\int_\Omega F(x,u)dx
$$
 is even and, by Lemma \ref{lem1}, it satisfies the $(PS)$ condition. So,
 the functional $H$ satisfies also the $(PS)_c$ condition for every $c>0$,
 which gives the condition (3) of Fountain theorem.

 Let us prove that for each $k\in \mathbb{N^*}$ there exists $r_k>0$ such that
 $$
\inf_{u\in Z_k,\ \| u \|=r_k}H(u)\to \infty \text{ as }k\to \infty.
$$
 By Proposition \ref{cara2}, we deduce that
 $$
\big|\int_\Omega F(x,u(x))dx \big|
\leq \int_{\Omega}\big(c_1|u|^{\beta(x)}
 +\sigma(x)\big)dx\leq c_1\varphi_{\beta}(u)+c_2,
$$
 where $ c_2=\int_{\Omega}\sigma(x)dx$. By Proposition \ref{connect}
 (1) and (2), $\varphi_\beta(u)\leq1$ if $|u|_{\beta(x)}\leq1$ and
$\varphi_\beta(u)\leq |u|^{\beta^+}_{\beta(x)}$ if $|u|_{\beta(x)}>1$,
respectively. Using Lemma \ref{sup1},
we also have $|u|_{\beta(x)}\leq \beta_k\| u\|$, for all $u\in Z_k$. Then,
for $u\in Z_k$ with $\| u\| \geq1$, it follows that
 \begin{equation} \label{Hin}
\begin{aligned}
H(u)
& \geq \frac{1}{p^+}\varphi_{p}(|\nabla u|)-\frac{1}{q^-}\int_{\Omega}|V(x)|
 |u(x)|^{q(x)}dx-c_1\varphi_{\beta}(u)-c_2\nonumber \\
& \geq \begin{cases}
\frac{1}{p^+}\| u\|^{p^-}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}
\| u\|^{q^+}-c_1-c_2 & \text{if }|u|_{\beta(x)} \leq1\\
 \frac{1}{p^+}\| u\|^{p^-}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}
 \| u\|^{q^+}-c_1\beta^{\beta^+}_k\| u
 \|^{\beta^+}-c_2 & \text{if }|u|_{\beta(x)}>1
 \end{cases} \\
 & \geq  \frac{1}{p^+}\| u\|^{p^-}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}\|
 u\|^{q^+}-c_1\beta^{\beta^+}_k\| u\|^{\beta^+}-c_3,
 \end{aligned}
\end{equation}
 where $c_3=c_1+c_2$. For each $k\in \mathbb{N^*}$, define the real numbers
 $r_k$ by
 $$
r_k=(c_1{\beta^+}\beta_k^{\beta^+})^{\frac{1}{p^--\beta^+}}.
$$
 From hypothesis (A5), we know that $\beta^+>p^-$, hence
 $ \lim_{k\to \infty}r_k=+\infty$. Without any loss of generality,
 we can suppose that $r_k\geq1$ for each $k\in \mathbb{N^*}$. Using the 
above inequality, for all $u\in Z_k$ with $\| u\|=r_k$, we infer that
 \begin{align*}
 H(u)
& \geq  \frac{1}{p^+}(c_1{\beta^+}\beta_k^{\beta^+})^{\frac{p^-}
 {p^--{\beta^+}}}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}(c_1{\beta^+}
 \beta_k^{\beta^+})^{\frac{q^+}{p^--{\beta^+}}} \\
 &\quad -c_1\beta^{\beta^+}_k(c_1{\beta^+}\beta_k^{\beta^+})^{\frac{{\beta^+}}
 {p^--{\beta^+}}}-c_3 \\
 & =  \frac{{\beta^+}-p^+}{{\beta^+}p^+}(c_1{\beta^+}\beta_k^{\beta^+})^
 {\frac{p^-}{p^--{\beta^+}}}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}(c_1
 {\beta^+}\beta_k^{\beta^+})^{\frac{q^+}{p^--{\beta^+}}}-c_3 \\
 & =  (c_1{\beta^+}\beta_k^{\beta^+})^{\frac{p^-}{p^--{\beta^+}}}
 \Big[\frac{{\beta^+}-p^+}{{\beta^+}p^+}
 -\frac{2C^{q^+}}{q^-}|V|_{s(x)}(c_1{\beta^+}\beta_k^{\beta^+})^
 {\frac{p^--q^+}{{\beta^+}-p^-}} \\
 & \quad -\frac{c_3}{(c_1{\beta^+}\beta_k^{\beta^+})^{\frac{p^-}
 {p^--{\beta^+}}}}\Big].
 \end{align*}
 Consequently,
 \begin{equation}\label{Hinf}
 \begin{aligned}
 \inf_{u\in Z_k,\, \| u \|=r_k}H(u)
& \geq   (c_1{\beta^+}\beta_k^{\beta^+})^{\frac{p^-}{p^--{\beta^+}}}
 \Big[\frac{{\beta^+}-p^+}
 {{\beta^+}p^+} \\
&\quad -\frac{2C^{q^+}}{q^-}|V|_{s(x)}  
  (c_1{\beta^+}\beta_k^{\beta^+})^
 {\frac{p^--q^+}{{\beta^+}-p^-}} 
 -\frac{c_3}{(c_1{\beta^+}\beta_k^{\beta^+})^
 {\frac{p^-}{p^--{\beta^+}}}}\Big].
 \end{aligned}
 \end{equation}
 Using inequality \eqref{Hinf} and hypothesis (A5), it is obvious that
 $$
\inf_{u\in Z_k,\ \| u \|=r_k}H(u)\to +\infty \text{ as }k\to
 \infty,
$$
so  condition (1) of Fountain theorem is satisfied.

It remain to prove that for each $k\in \mathbb{N^*}$ there exists
 $\rho_k>r_k>0$ such that
 $$
\max_{u\in Y_k,\ \| u\|=\rho_k}H(u)\leq0.
$$
The functional $\| \cdotp \|_\theta:X\to \mathbb{R}$ defined by
\[
 \| u\|_\theta=  \Big(\int_{\Omega}\chi(x)|u(x)|^\theta dx\Big)^{1/\theta}
\]
 being a norm on the Banach space $X$, with $\chi$ as defined in Lemma \ref{sup3}.
 Then, on the finite dimensional subspace $Y_k$ the norms $\| \cdotp \|$ and
 $\| \cdotp \|_\theta$ are equivalent, so there exists a constant
 $\delta>0$ such that $\| u\|_\theta \geq \delta \| u \|$,
 for all $u\in Y_k$. Using Lemma \ref{sup3}, we also obtain
 $ \int_\Omega F(x,u)dx\geq \| u \|^\theta_\theta-k_3,$
 where $ k_3=\int_\Omega(k_1+k_2\sigma_0(x))dx$. Then, for all
 $u\in Y_k$ with $\| u \| \geq1$, we have
 \begin{equation} \label{deflim0}
\begin{aligned}
 H(u) & \leq  \frac{1}{p^-}\varphi_{p}(|\nabla u|)+\frac{1}{q^-}
 \int_{\Omega}|V(x)||u(x)|^{q(x)}dx-\| u \|^\theta_\theta+k_3 \\
 & \leq  \frac{1}{p^-}\| u\|^{p^+}+\frac{2C^{q^+}}{q^-}
 |V|_{s(x)}\| u\|^{q^+}-\delta^\theta \| u \|^\theta  +k_3.
 \end{aligned}
\end{equation}
 Hypothesis $\theta>p^+>q^+$ implies that
$$
\lim_{t\to \infty}
 \Big(\frac{1}{p^-}t^{p^+}+\frac{2C^{q^+}}{q^-}|V|_{s(x)}t^{q^+}-\delta^\theta
 t^\theta+k_3\Big)=-\infty.
$$
 Then, there exists $t_0>0$ such that for all $t\in [1,+\infty)\cap[t_0,+\infty)$
 \begin{equation}\label{deflim1}
 \frac{1}{p^-}t^{p^+}+\frac{2C^{q^+}}{q^-}|V|_{s(x)}t^{q^+}-\delta^\theta
 t^\theta+k_3\leq-1.
 \end{equation}
 By Choosing $\rho_k=\max \{r_k,t_0\}+1$, inequality \eqref{deflim1} is fulfilled
 for $t=\rho_k$. Then, for all $u\in Y_k$ with $\| u\|=\rho_k$, it follows
 that
 \begin{equation}\label{deflim2}
 \frac{1}{p^-}\| u\|^{p^+}+\frac{2C^{q^+}}{q^-}|V|_{s(x)}\| u\|^
 {q^+}-\delta^\theta \| u \|^\theta+k_3\leq-1<0.
 \end{equation}
Combine \eqref{deflim0} and \eqref{deflim2}, it is obvious that
 $$
\max_{u\in Y_k,\,\| u\|=\rho_k}H(u)\leq0,
$$
 which shows that the condition (2) of Fountain theorem is satisfied.

 By applying Theorem \ref{FT} (``Fountain theorem"), the $C^1$-functional
$H$ has a sequence of  critical values tending to $+\infty$.
Therefore, there is a sequence
 $(\pm u_n)_{n\in \mathbb{N}}\subseteq X$ of critical points for the functional
$H$ such that  $H(\pm u_n)\to +\infty \text{ as }n\to \infty$. So, the proof
is complete.
 \end{proof}

 \begin{proof}[Proof of Theorem \ref{cr2}]
 Let us verify the conditions of the Dual Fountain theorem.
 The $C^1$-functional $H$ is even, because the function $f$ is odd in its
second argument  (see hypothesis (A4)). By Lemma \ref{lem2}, the functional
$H$ satisfies the  $(PS)_c^*$ condition for every $c\in \mathbb{R}$,
in particular for every $c\in [d_{k_0},0)$,  so condition (4) of Dual
Fountain theorem is satisfied.

 We first prove that for each $k\in \mathbb{N}^*$ there exists $r_k>0$
such that
 $$
\max_{u\in Y_k,\ \| u\|=r_k}H(u)<0.
$$
 The norm $\| \cdot \|_\theta$ defined previously being equivalent with the norm
 $\| \cdot \|$ on the finite dimensional subspace $Y_k$, there exists a constant
 $\delta>0$ such that $\| u \|_\theta \geq \delta \| u \|$, for all
 $u\in Y_k$. As in the proof of Theorem \ref{cr1}, for all $u\in Y_k$ with
 $\| u\|\geq1$, the following inequality holds
 \begin{equation}\label{prcr21}
 H(u)\leq \frac{1}{p^-}\| u\|^{p^+}+\frac{2C^{q^+}}{q^-}|V|_{s(x)}
 \| u\|^{q^+}-\delta^\theta \| u \|^\theta+k_3.
 \end{equation}
 Hypothesis $\theta>p^+>q^+$ implies that
 $$
\lim_{t\to \infty}\Big(\frac{1}{p^-}t^{p^+}+\frac{2C^{q^+}}
 {q^-}|V|_{s(x)}t^{q^+}-\delta^\theta t^\theta+k_3\Big)=-\infty.
$$
 So, there exists a constant $t_1\in (1,+\infty)$ such that for all
 $t\in [t_1,+\infty)$
 \begin{equation}\label{prcr22}
 \frac{1}{p^-}t^{p^+}+\frac{2C^{q^+}}{q^-}|V|_{s(x)}t^{q^+}-
 \delta^\theta t^\theta+k_3\leq-1.
 \end{equation}
 Inequalities \eqref{prcr21} and \eqref{prcr22} show that, for any $u\in Y_k$ with
 $\| u\|=t_1,\ H(u)\leq-1$. Choosing $r_k=t_1$ for each $k\in \mathbb{N^*}$,
 we deduce that
 $$
\max_{u\in Y_k,\ \| u\|=r_k}H(u)\leq-1<0,
$$
 so condition (2) of Dual Fountain theorem is satisfied.

 Second, we prove that there is $k_0\in \mathbb{N^*}$ such that for each
 $k\in \mathbb{N^*},\ k\geq k_0$, there exists $\rho_k>r_k>0$ for which
 $$
\inf_{u\in Z_k,\ \| u\|=\rho_k}H(u)\geq0.
$$
 In a similar way to the proof of Theorem \ref{cr1}, for all
 $u\in Z_k$ with $\| u\| \geq1$, the following inequality holds
 \begin{equation}\label{prcr23}
 H(u)\geq \frac{1}{p^+}\| u\|^{p^-}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}\|
 u\|^{q^+}-c_1\beta^{\beta^+}_k\| u\|^{\beta^+}
 -c_3.
 \end{equation}
 We also have
 \begin{align*}
&\lim_{k\to \infty}(c_1{\beta^+}\beta_k^{\beta^+})^{\frac{1}{p^--{\beta^+}}}\\
& = \lim_{k\to \infty}\big[\frac{{\beta^+}-p^+}{{\beta^+}p^+}(c_1{\beta^+}
 \beta_k^{\beta^+})^{\frac{p^-}{p^--{\beta^+}}}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}
(c_1{\beta^+}\beta_k^{\beta^+})^{\frac{q^+}{p^--{\beta^+}}}-
 c_3 \big]=+\infty.
 \end{align*}
 Then, there is $k_0\in \mathbb{N^*}$ such that for all $k\geq k_0$,
 $(c_1{\beta^+}\beta_k^{\beta^+})^{\frac{1}{p^--{\beta^+}}}>t_1$ and
 $$
\frac{{\beta^+}-p^+}{{\beta^+}p^+}(c_1{\beta^+}\beta_k^{\beta^+})
 ^{\frac{p^-}{p^--{\beta^+}}}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}(c_1{\beta^+}
 \beta_k^{\beta^+})^{\frac{q^+}{p^--{\beta^+}}}-c_3\geq0.
$$
 By Choosing $\rho_k=(c_1{\beta^+}\beta_{k_0}^{\beta^+})^{\frac{1}{p^--{\beta^+}}}$
 for $k\geq k_0$, it follows that $\rho_k>r_k=t_1>0$ for each $k\in \mathbb{N^*}$.
 Using \eqref{prcr23}, it is obvious that
 $$
H(u)\geq \frac{{\beta^+}-p^+}{{\beta^+}p^+}(c_1{\beta^+}\beta_{k_0}^{\beta^+})^
 {\frac{p^-}{p^--{\beta^+}}}-\frac{2C^{q^+}}{q^-}|V|_{s(x)}
 (c_1{\beta^+}\beta_{k_0}^{\beta^+})^{\frac{q^+}{p^--{\beta^+}}}-c_3\geq0,
$$
 for all $u\in Z_k,\ \| u\|=\rho_k$. Finally, this last inequality gives
 $$
\inf_{u\in Z_k,\ \| u\|=\rho_k}H(u)\geq0,
$$
 which shows that the condition (1) of Dual Fountain theorem is satisfied.
Next, we prove that
 $$
\inf_{u\in Z_k,\ \| u\| \leq \rho_k}H(u)\to 0\text{ as }k\to \infty.
$$
 Let us denote
 $$
b_k=\max_{u\in Y_k,\, \| u\|=r_k}H(u),\quad
d_k=\inf_{u\in Z_k,\, \| u\| \leq \rho_k}H(u).
$$
 It is easy to remark that $Y_k\cap Z_k\neq0$ for each $k\in \mathbb{N^*}$.
 For $k\geq k_0$, let $u_0\in Y_k\cap Z_k$, with $u_0\neq0$, and
$u_k=\frac{r_k} {\| u_0\|}u_0$, then $\| u_k\|=r_k$.
 Since $0<r_k<\rho_k$ for each $k\geq k_0$, it follows that
 $$
d_k\leq H(u_k)\leq b_k<0, \text{ for each }k\geq k_0.
$$
 From hypothesis (A2), a straightforward computation gives
 \begin{equation}\label{integration}
 |F(x,t)|\leq \frac{c}{\beta(x)×}|t|^{\beta(x)}+h(x)|t|, \quad
 \text{for }x\in \Omega,\; t\in \mathbb{R}.
 \end{equation}
Let us consider the functionals $\Psi_1,\ \Psi_2,\ \Psi_3:X\to \mathbb{R}$
defined by
\begin{gather*}
\Psi_1(u)=\int_\Omega \frac{|V(x)|}{q(x)×}|u(x)|^{q(x)}dx,\quad
\Psi_2(u)=  \int_\Omega \frac{c}{\beta(x)×}|u(x)|^{\beta(x)}dx, \\
\Psi_3(u)=\int_\Omega h(x)|u(x)|dx.
\end{gather*}
 Obviously, $\Psi_1(0)=\Psi_2(0)=\Psi_3(0)=0$.

 \begin{proposition}\label{3fnc}
 The functionals $\Psi_1,\ \Psi_2\text{ and } \Psi_3$ are strongly continuous.
 \end{proposition}

\begin{proof}
 Let $(u_n)_{n\in \mathbb{N}}\subseteq X$ be a sequence and $u\in X$ such that
 $u_n\to u$  weakly in $X$. We have to show that
 $\Psi_1(u_n)\to \Psi_1(u)$ in $\mathbb{R}$. Using the inequality
 $$
|\Psi_1(u_n)-\Psi_1(u)|\leq \frac{1}{q^-}\int_\Omega |V(x)|
 | |u_n|^{q(x)}-|u|^{q(x)}|dx,
$$
 and the well known inequality
 \begin{equation}\label{ineq}
 | |a|^p-|b|^p |\leq \gamma |a-b|\left(|a|+|b|\right)^{p-1},
\quad \text{for all } a,b\in \mathbb{R},
 \end{equation}
where $\gamma$ is a positive constant, we obtain
 \begin{align*}
 |\Psi_1(u_n)-\Psi_1(u)|
& \leq  \frac{\gamma}{q^-}\int_\Omega|V(x)|
 |u_n-u|\left(|u_n|+|u|\right)^{q(x)-1}dx \\
 & \leq  \frac{\gamma c_0}{q^-}\| V\|_{s(x)}|u_n-u|_{\alpha(x)}
 |\left(|u_n|+|u|\right)^{q(x)-1} |_{\frac{q(x)}{q(x)-1}}\\
 & \leq  \frac{\gamma c_0}{p^-}\| V\|_{s(x)}|u_n-u|_{q(x)}\left
 (|u_n|_{q(x)}+|u|_{q(x)}\right)^{r},
 \end{align*}
 where $c_0$ is a positive constant of H\"{o}lder inequality and
 $r\in \{q^--1,q^+-1\}$. Since the embedding
 $X \hookrightarrow L^{q(x)}  (\Omega)$ is compact and continuous, then
 $ \lim_{n\to \infty}|u_n-u|_{q(x)}=0$ and
 $ \lim_{n\to \infty}\left(|u_n|_{q(x)}+|u|_{q(x)}\right)^{r}=
 2^r|u|^r$. Hence,
 $$
\lim_{n\to \infty} \Psi_1(u_n)=\Psi_1(u).
$$
 The embedding $X \hookrightarrow L^{\beta(x)}(\Omega)$ being
 compact and continuous, similar computations show that
 $$
\lim_{n\to \infty} \Psi_2(u_n)=\Psi_2(u)\quad\text{and}\quad
 \lim_{n\to \infty} \Psi_3(u_n)=\Psi_3(u).$$
 \end{proof}
 Now, denote
 \begin{gather*}
 \lambda_k=\sup\{|\Psi_1(u)|: u\in Z_k,\ \| u\| \leq1 \},\\
 \gamma_k=\sup\{|\Psi_2(u)|: u\in Z_k,\ \| u\| \leq1 \},\\
 \varepsilon_k=\sup\{|\Psi_3(u)|: u\in Z_k,\ \| u\| \leq1 \}.
 \end{gather*}
By Lemma \ref{sup2} and Proposition \ref{3fnc}, we obtain
 \begin{equation}\label{dk0}
 \lim_{k\to \infty}\lambda_k=\lim_{k\to \infty}\gamma_k=
 \lim_{k\to \infty}\varepsilon_k=0.
 \end{equation}
 Choose $v\in Z_k$ with $\| v\| \leq1$ and $1<t\leq \rho_k$, using
 inequality \eqref{integration}, we get
 \begin{align*}
 H(tv) & =  \int_\Omega \frac{1}{p(x)×}|\nabla tv(x)|^{p(x)}+\int_\Omega
 \frac{V(x)}{q(x)×}|tv(x)|^{q(x)}dx-\int_\Omega F(x,tv(x))dx\\
 & \geq  -\int_\Omega \frac{|V(x)|}{q(x)×}|tv(x)|^{q(x)}dx-
 \int_\Omega \frac{c}{\beta(x)×}|tv(x)|^{\beta(x)}dx-\int_\Omega
 h(x)|tv(x)|dx\\
 & =  -\Psi_1(tv)-\Psi_2(tv)-\Psi_3(tv).
 \end{align*}
 Since $\Psi_1(tv)\leq \rho_k^{q^+}\lambda_k$,
$\Psi_2(tv)\leq \rho_k^  {\beta^+}\gamma_k$ and 
$\Psi_3(tv)\leq \rho_k\varepsilon_k$, it follows
 that
 $$
H(tv)\geq -\rho_k^{q^+}\lambda_k-\rho_k^{\beta^+}\gamma_k-\rho_k
 \varepsilon_k,\text{ for all }t\in ]1,\rho_k]\text{ and }v\in Z_k\text{
 with }\| v\| \leq1.
$$
 Hence, from the last inequality, we deduce that
 \begin{equation}\label{dk}
 -\rho_k^{q^+}\lambda_k-\rho_k^{\beta^+}\gamma_k-\rho_k\varepsilon_k
 \leq d_k<0, \quad \text{for all }k\geq k_0.
 \end{equation}
The real number $\rho_k=(c_1{\beta^+}\beta_{k_0}^{\beta^+})^{\frac{1}
 {p^--{\beta^+}}}$ being a positive constant, expressions \eqref{dk0} and
 \eqref{dk} yield
 $\lim_{k\to \infty}d_k=0$,
 so the condition (3) of Dual Fountain theorem is satisfied.

 By applying Theorem \ref{DFT} (``Dual Fountain theorem"), the $C^1$-functional
 $H$ has a sequence of negative critical values converging to $0$.
 Therefore, there is a sequence $(\pm u_n)_{n\in \mathbb{N}}\subseteq X$
 of critical points for the functional $H$ such that $H(\pm u_n)\leq0$ for
 each $n\in \mathbb{N}$ and $H(\pm u_n)\to 0$ as $n\to \infty$.
 The proof is complete.
 \end{proof}

 \subsection*{Acknowledgements}
 The authors would like to thank the referees for their
 careful reading and insightful comments of the manuscript.
 This work is supported by Deutscher Akademischer
 Austausch Dienst (DAAD--Germany), under grant
 Africa--ST32, No. 91560905.


 \begin{thebibliography}{00}

 \bibitem{AR}  A. Ambrosetti, P. H. Rabinowitz;
 {\emph Dual variational methods in critical point theory},
 J. Funct. Anal. 14 (1973), 349--381. MR0370183 (51:6412).

 \bibitem{BK}  K. Benali, K. Kefi;
 {\emph Mountain Pass and Ekeland's principle for eigenvalue
 problem with variable exponent},
 Complex Variables and Elliptic Equations 54, no. 8 (2009), 795--809.

 \bibitem{BK2}  K. Benali, M. Bezzarga;
 {\emph On a nonhomogeneous quasilinear eigenvalue problem in Sobolev
 spaces with variable exponent},
 Potential Theory and Stochastics in Albc, Aurel Cornea Memorial Volume,
 Conference Proceedings Albac, September 4--8, 2007, Theta, 2008,
 pp. 21--34.

 \bibitem{JY}  J. Chabrowski, Yongqiang Fu;
 {\emph Existence of solutions for $p(x)$-Laplacian problems
 on a bounded domain},
 J. Math. Anal. Appl. 306 (2005) 604--618.

 \bibitem{KC}  K. C. Chang;
 {\emph Critical point theory and applications},
 Shanghai Scientific and Technology Press, Shanghai, 1986.

 \bibitem{CL}  Y. M. Chen, S. Levine, M. Ra;
 {\emph Variable exponent, linear growth functionals in
 image restoration},
 SIAM J. Appl. Math., 66 (2006), 1383--1406.

 \bibitem{GD}  G. Dinca, P. Jebelean, J. Mawhin;
 {\emph Variational and topological methods for Dirichlet problems
 with $p$-Laplacian},
 Port. Math. (N.S) 58 (2001), 339--378.

 \bibitem{GD2}  G. Dinca;
 {\emph A Fredholm-type result for a couple of
 nonlinear operators},
 C.R. Math. Acad.Sci. Paris 333 (2001), 415--419.

 \bibitem{DHR} L. Diening, P. Harjulehto, P. H\"{a}st\"{o}, M. R\r{u}\v{z}i\v{c}ka;
 {\emph Lebesgue and Sobolev spaces with variable exponents},
 Springer--Verlag Berlin Heidelberg 2011.

 \bibitem{ER}  D. Edmunds, J. R\'{a}kosn\'{\i}k;
 {\emph Sobolev embeddings with variable exponent},
 Studia Math. 143 (2000), no. 3, 267--293. MR1815935 (2001m:46072).

 \bibitem{FNS}  S. Fu\v{c}ik, J. Ne\v{c}as, J. Sou\v{c}ek, V. Sou\v{c}ek;
 {\emph Spectral analysis of nonlinear operators},
 Lectures Notes in Math. 346. Springer--Verlag, Berlin, 1973.

 \bibitem{FZ}  X. L. Fan, Q. Zhang, D. Zhao;
 {\emph Eigenvalues for $p(x)$-Laplacian Dirichlet problem},
 Nonlinear Anal. 52 (2003), 1843--1852.

 \bibitem{FZH}  X. L. Fan, Q. H. Zhang;
 {\emph Existence of solutions for $p(x)$-Laplacian Dirichlet
 problem},
 Nonlinear anal. 52 (2003), 1843--1852.

 \bibitem{FZ1}  X. L. Fan, D. Zhao;
 {\emph On the spaces $L^{p(x)}$ and $W^{m,p(x)}$},
 J. Math. Anal. Appl., 263 (2001), 424--446.

 \bibitem{FH}  X. Fan, X. Han;
 {\emph Existence and multiplicity of solutions for
 $p(x)$-Laplacian equations in $\mathbb{R}^N$},
 Nonlinear Anal. 59 (2004), 173--188. MR2092084
 (2005h:35092).

 \bibitem{GAP}  J. P. Garcia Azorero, I. Peral Alonso;
 {\emph Hardy inequalities and some critical elliptic and
 parabolic problems},
 J. Differential Equations 144 (1998) 441--476.

 \bibitem{PSI1}  P. S. Ilia\c{s};
 {\emph Existence and multiplicity of solutions of a
 $p(x)$-Laplacian equation in a bounded domain},
 Rev. Roumaine Math. Pures Appl., 52 (2007), 6, 639--653.

 \bibitem{PSI2}  P. S. Ilia\c{s};
 {\emph Dirichlet problem with $p(x)$-Laplacian},
 Math. Reports 10 (60), 1 (2008), 43--56.

 \bibitem{KK}  K. Kefi;
 $p(x)$-{\emph Laplacian with indefinite weight},
 Proceedings of the American Mathematical Society 139 (2011),
 4351--4360.

 \bibitem{OJ}  O. Kovacik, J. Rakosnik;
 {\emph On spaces $L^{p(x)}$ and $W^{k,p(x)}$},
 Czechoslovak Mathematical Journal, Vol. 41 (1991), No. 4, 592--618.

 \bibitem{LWZ}  Y. Liang, X. Wu, Q. Zhang, C. Zhao;
 {\emph Multiple solutions of a $p(x)$-Laplacian equation
 involving critical nonlinearities},
 Taiwanese Journal of Mathematics Vol. 17, No. 6,
 pp. 2055--2082.

 \bibitem{TG}  T. G. Myers;
 {\emph Thin films with high surface tension},
 SIAM Review, 40(1998), 441--462.

 \bibitem{MV}  M. Mih\u{a}ilescu, V. R\u{a}dulescu;
 {\emph On a nonhomogeneous quasilinear eigenvalue problem in Sobolev
 spaces with variable exponent},
 Proceedings of the American Mathematical Society 135 (2007), 2929--2937.
 MR2317971 (2008i:35085).

 \bibitem{MR}  M. R\v{u}\v{z}icka;
 {\emph Electrorheological fluids: modeling and mathematical Theory},
 Lecture Notes in Mathematics, 1748. Springer-Verlag, Berlin, 2000.

 \bibitem{MW}  M. Willem;
 {\emph Minimax theorems},
 Birkh\"{a}user, Boston, 1996.

 \bibitem{ZF}  D. Zhao, X. L. Fan;
 {\emph On the Nemytskii operators from $L^{p_1(x)}(\Omega)$ to
 $L^{p_2(x)}(\Omega)$},
 J. Lanzhou Univ. 34 (1998), 1--5.

 \bibitem{JFZ}  J. F. Zhao;
 {\emph Structure theory of Banach spaces},
 Wuhan Univ. Press, Wuhan, 1991 (in Chinese).

 \bibitem{ZK}  V. V. Zhikov, S. M. Kozlov, O. A. Oleinik;
 {\emph Homogenization of differential operators and integral  functionals},
 Translated from the Russian by G. A. Yosifian. Springer--Verlag,
 Berlin, 1994.

\end{thebibliography}

\end{document}


