1 Introduction

Let \(\mathcal {U} \subset \mathbb {R}^{N} \) be an open-bounded set (\(N\ge 2\)). Our objective in this work is to discuss the existence of infinitely many solutions for \(p(\textrm{x},\cdot )\)-fractional Kirchhoff-type elliptic equation involving logarithmic-type nonlinearities. The approach is based on Morse’s theory. More precisely, we combine Morse’s relation with the computation of critical groups to study the following equation:

$$\begin{aligned} \begin{gathered} \left\{ \begin{array}{lll} M\left( J_{s, p\left( \texttt{x}, \cdot \right) }\left( \textrm{u}\right) \right) \Delta ^{s} _{ p(\texttt{x}, \cdot )} \textrm{u}(\texttt{x})= \lambda \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})-2}\textrm{u}(\texttt{x})\log \vert \textrm{u}(\texttt{x})\vert + \lambda f(\texttt{x}, \textrm{u}(\texttt{x})) \text{ in } \mathcal {U}, \\ \hspace{2cm} \textrm{u}=0 \text{ in } \mathbb {R}^{N} \backslash \mathcal {U}, \end{array}\right. \end{gathered} \end{aligned}$$
(1)

where \(\lambda \) is a positive parameter, \(r\in C\left( \mathcal {U}, \left( 1, \infty \right) \right) ,\) \(p: \mathcal {U}\times \mathcal {U} \rightarrow (1, \infty )\) is a continuous function that verifies the following conditions:

$$\begin{aligned} p(y-{m}, z-{m})= & {} p(y, z), \ \text{ for } \text{ all } (y, z, {m}) \in \mathbb {R}^{N}\times \times \mathbb {R}^{N},\end{aligned}$$
(2)
$$\begin{aligned} p(z,{a})= & {} p({a}, z), \ \text{ for } \text{ all } (z,{a}) \in \mathbb {R}^{N}\times \mathbb {R}^{N}, \end{aligned}$$
(3)
$$\begin{aligned} 1< p^{-}= & {} \min _{(y, z)\in \mathbb {R}^{N} \times \mathbb {R}^{N}} p(y, z)\le p(y, z)<p^{+} = \sup _{(y, z)\in \mathbb {R}^{N}\times \mathbb {R}^{N}} p(y, z),\nonumber \\ \end{aligned}$$
(4)

\(f: \mathcal {U}\times \mathbb {R}\rightarrow \mathbb {R}\) is Carathéodory function with \( f(\texttt{x}, 0)=0\) and satisfies below conditions:

\((\mathcal {B}_{1})\):

There exist \(\alpha >0\) and a continuous function \(q:\mathbb {R}^{N} \rightarrow (1, +\infty )\), such that

$$\begin{aligned} 1< q(\texttt{x})< p^{\star }_{s}(\texttt{x})=\frac{N p(\texttt{x},\texttt{x})}{N- sp(\texttt{x},\texttt{x})}, \end{aligned}$$

and

$$\begin{aligned} f(\texttt{x}, \texttt{y}) \le \alpha \left( 1+ \vert \texttt{y}\vert ^{q({\texttt{x}})-1}\right) , ~ \text{ a.e. } ~ \texttt{x} \in \mathbb {R}^{N}, ~ \texttt{y}\in \mathbb {R}. \end{aligned}$$
\((\mathcal {B}_{2})\):

There exists \(R>0\), such that \(\frac{f(\texttt{x}, t)}{\vert t\vert ^{p(\texttt{x}, \texttt{y})-2}t}\) is increasing for \(t\ge R\) and is decreasing for \(t\le -R\) for all \(\texttt{x}\in \mathcal {U}.\)

\((\mathcal {B}_{3})\):

\( \lim _{t\rightarrow \infty } \frac{F(\texttt{x}, t)}{\vert t\vert ^{r^+}}=+\infty ,\) where \(F(\texttt{x}, t) = \int _{0}^{t} f(\texttt{x}, s)\textrm{d}s \) is the primitive of function f, and \(~ r^{+} = \sup _{\texttt{x}\in \mathbb {R}^{N}} r(\texttt{x}) \le q^{-}< p^{\star }_{s}(\texttt{x})\).

\((\mathcal {B}_{4})\):

There are small constants and R with \(0<r<R\), such that

$$\begin{aligned} C_{2}\vert t\vert ^{\alpha (\texttt{x})}\le \beta (\texttt{x})F(\texttt{x}, t) \le C_{3}\vert t\vert ^{\beta (\texttt{x})} \text { for all }r\le t\le R, \text{ a.e } \texttt{x}\in \mathcal {U}, \end{aligned}$$

where \(C_{2}, \) \(C_{3}\) are positive constants with \(0<C_{2}<C_{3}<1,\) and \(\alpha , \) \(\beta \in C(\bar{\mathcal {U}})\) with \(1<\alpha (\texttt{x})<\beta (\texttt{x})<p^{\star }_{s}(\texttt{x}). \)

\((\mathcal {B}_{5})\):

There exist \(\beta > p^{+}\) and some \(I > 0\), such that, for each \(\vert \alpha \vert > I,\) we have

$$\begin{aligned} 0 < \int _{ \mathcal {U}} F(\texttt{y},\texttt{x}) \textrm{d}\texttt{y} \le \int _{ \mathcal {U}} f(\texttt{y},\texttt{x})\frac{\alpha }{\beta } \textrm{d}\texttt{y}, \end{aligned}$$

\(\Delta ^{s} _{ p(\texttt{x}, \cdot )}\) is the fractional \(p(\texttt{x},.)\)-Laplace operator which (up to normalization factors) may be defined as

$$\begin{aligned} \Delta ^{s} _{ p(\texttt{x}, \cdot )} \textrm{u}(\texttt{x})=2 \lim _{\varepsilon \rightarrow 0^{+}} \int _{\mathbb {R}^{N} \backslash \mathfrak {B}_{\varepsilon }(\texttt{x})} \frac{\vert \textrm{u}(\texttt{x})-\textrm{u}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})-2}(\textrm{u}(\texttt{x})-\textrm{u}(\texttt{y}))}{\vert \texttt{x}-\texttt{y}\vert ^{N+s p(\texttt{x}, \texttt{y})}} \textrm{d}\texttt{x}, \end{aligned}$$
(5)

for all \(\texttt{y} \in \mathbb {R}^{N}\), where \(\mathfrak {B}_{\varepsilon }(\texttt{x})\) denotes the Ball of center \(\texttt{x}\), and radius \(\epsilon ,\) \(M: \mathbb {R}^{+}\rightarrow \mathbb {R}^{+}\) is a continuous function called Kirchhoff’s function that satisfies the following conditions:

\((\mathcal {B}_{6})\):

There exists \(m>0,\) such that

$$\begin{aligned} m\le M(t), \text { for all } t\in \mathbb {R}. \end{aligned}$$
\((\mathcal {B}_{7})\):

There exists \(\theta \in (0, 1)\), such that

$$\begin{aligned} \theta t M(t) \le \widehat{M(t)} \text { for all } t\in \mathbb {R}, \end{aligned}$$

where \(\widehat{M(t)} = \int _{0}^{t} M(s)\textrm{d}s \) is the primitive of function M, and

$$\begin{aligned} J_{s, p(\texttt{x}, \cdot )}(\textrm{u})= \int _{\mathcal {U}\times \mathcal {U} } \frac{1}{p(\texttt{x}, \texttt{y})} \frac{\vert \textrm{u}(\texttt{x})-\textrm{u}(\texttt{y}) \vert ^{p(\texttt{x}, \texttt{y})}}{\vert \texttt{x}-\texttt{y}\vert ^{N+s p(\texttt{x}, \texttt{y})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y}, \end{aligned}$$

for all \(\textrm{u} \in W^{s, q(\textrm{x}), p(\textrm{x,y})}(\mathcal {U}).\)

The operator defined in (5) is used in many branches of mathematics, including calculus of variations and partial differential equations. It has also been applied in a wide range of physical and engineering contexts, including fluid filtration in porous media, image processing, optimal control, constrained heating, elastoplasticity, image processing, financial mathematics, and elsewhere; for more details, see [7, 12, 31] and the references therein.

The Kirchhoff-type problem was primarily introduced in [23] to generalize the classical D’Alembert wave equation for free vibrations of elastic strings. Some interesting research by variational methods can be found in [13, 14, 24, 25, 28] for Kirchhoff-type problems. More precisely, Kirchhoff introduced a famous equation defined as

$$\begin{aligned} \rho \frac{\partial ^2 u}{\partial t^2}-\left( \frac{P_0}{h}+\frac{E}{2 L} \int _0^L\left| \frac{\partial u}{\partial x}\right| ^2 \textrm{d} x\right) \frac{\partial ^2 u}{\partial x^2}=0, \end{aligned}$$
(6)

that it is related to the problem (1). In (6), L is the length of the string, h is the area of the cross-section, E is the Young modulus of the material, \(\rho \) is the mass density, and \(P_0\) is the initial tension. See the paper [23] for more details.

Recently, results on fractional Sobolev spaces and fractional \(p(\textrm{x}, \cdot )\)-Kirchhoff-type problem and their applications have received a lot of attention.

Kaufmann, Rossi, and Vidal [22] first introduced the new class \(W^{s, q(\texttt{x}), p(\texttt{x}, \texttt{y})}(\mathcal {U})\) defined by

$$\begin{aligned} W^{s, q(\texttt{x}), p(\texttt{x}, \texttt{y})}(\mathcal {U})=\left\{ \textrm{u}\in L^{q(\texttt{x})} (\mathcal {U}): \int _{\mathcal {U} \times \mathcal {U}} \frac{\vert \textrm{u}(\texttt{x})-\textrm{u}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})}}{\mathcal {K}(\texttt{x},\texttt{y}) }\textrm{d}\texttt{x}\textrm{d}\texttt{y}< +\infty \right\} , \end{aligned}$$

where \(q\in C(\overline{\mathcal {U}}, (1, \infty ))\) and \(\mathcal {K}(\texttt{x},\texttt{y})=\vert \texttt{x}-\texttt{y}\vert ^{N+s p(\texttt{x}, \texttt{y})}\) and proved the existence of a compact embedding

$$\begin{aligned} \displaystyle W^{s, q(\texttt{x}), p(\texttt{x}, \texttt{y})}(\mathcal {U})\hookrightarrow \hookrightarrow L^{r(\texttt{x})} (\mathcal {U}),~\hbox { for all}~r\in C(\mathcal {U}), \end{aligned}$$

such that \( 1< r(\texttt{x})<p^{\star }_{s} (\texttt{x}),~\hbox {for all}~ \texttt{x}\in \overline{\mathcal {U}}.\)

For more results on the functional framework, we refer to Bahrouni and Rădulescu [4, 5] who proved the solvability of the following problems:

$$\begin{aligned} \begin{gathered} \left\{ \begin{array}{lll} \left( -\Delta _{p(\texttt{x})}\right) ^{s} \textrm{u}(\texttt{x})+\vert \textrm{u}(\texttt{x})\vert ^{q(\texttt{x})-2}\textrm{u}(\texttt{x})=h(\texttt{x}, \textrm{u}(\cdot ))+\lambda \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})-2}\textrm{u}(\texttt{x}) &{} \text{ in } \mathcal {U},\\ \hspace{2cm} \textrm{u}=0 &{} \text{ in } \mathbb {R}^{N}\backslash \mathcal {U}, \end{array}\right. \end{gathered} \end{aligned}$$

using Ekeland’s variational method, and the sub-supersolution method.

For more results concerning the framework, we refer the readers to [1, 2, 4, 5, 21, 22]. The approaches for ensuring the existence of weak solutions for a class of nonlocal fractional problems with variable exponents were addressed in greater depth in [1,2,3,4,5, 8, 9, 11, 12, 21, 22, 25, 30, 32] and the references therein.

In recent years, wide research has been done on fractional \(p(\textrm{x}, \cdot )\)-Kirchhoff-type problem with variable growth. In the case of the p-Laplacian operator, Li et al. used the concentration compactness principle and Ekelend’s variational principle to study the existence of multiple solutions for the below equation

$$\begin{aligned} \begin{gathered} \left\{ \begin{array}{llll} M\left( \Vert \textrm{u}\Vert ^p\right) \Delta _p u(x)&{}=\lambda u^{p^*}+\rho (x) u^{-\gamma } &{} \text{ in } &{} \Omega , \\ u&{}=0 &{} \text{ in } &{} \partial \Omega , \end{array}\right. \end{gathered} \end{aligned}$$

where \(M(t)=a+b t^k\) and \(0<\gamma<1<p\). Recently, in the case \(p=2\), Cabanillas Lapa in [10] proved an existence result with exponential decay. In addition, the authors [18] studied the following problem:

$$\begin{aligned} \begin{gathered} \left\{ \begin{array}{llll} \displaystyle M\left( \int _{\Omega } A(x, \nabla u) d x\right) {\text {div}}(a(x, \nabla u))&{}=\lambda h(x) \frac{\partial F}{\partial u}(x, u) &{} \text{ in } &{} \Omega , \\ u&{}=0 &{} \text{ in } &{} \partial \Omega . \end{array}\right. \end{gathered} \end{aligned}$$

In [16], the authors used the Nehari manifold method to prove the below singular Kirchhoff problem

$$\begin{aligned} \begin{gathered} \left\{ \begin{array}{llll} M\left( \iint _{\mathbb {R}^{2 N}} \frac{|u(x)-u(y)|^2}{\vert x-y\vert ^{N+2 s}} d x d y\right) (-\Delta )^s u &{} =\lambda f(x) u^{-\gamma }+g(x) u^{2 *}-1 &{} \text{ in } &{} \Omega , \\ u&{}>0 &{} \text{ in } &{} \Omega , \\ u&{}=0 &{} \text{ in } &{} \mathbb {R}^N\backslash \Omega . \end{array}\right. \end{gathered} \end{aligned}$$

For more recent works, we refer to [17, 19] and references therein.

Motivated by the above research, we prove the existence of infinitely many solutions of the generalized fractional p(x, .)-Kirchhoff-type problem (1) on the framework of fractional Sobolev spaces with variable exponent. Our approach uses the variational tools based on the critical point theory together with Morse theory (critical groups and local linking argument), in which we consider the energy functional \(\zeta \) (9) satisfies the Cerami condition “(C) condition” (2), which leads to a deformation theorem, then we compute the critical groups at infinity and critical points 0 associated to \(\zeta .\) Our first major result is the following theorem:

Theorem 1

Under assumption \((\mathcal {B}_{1}){-}(\mathcal {B}_{7}).\) Then, the problem (1) has a weak solution in \(W^{s, q(\textrm{x}), p(\textrm{x,y})}(\mathcal {U}).\)

Theorem 2

Under assumption \((\mathcal {B}_{1}){-}(\mathcal {B}_{7}).\) Then, the problem (1) has an infinitely many weak solutions in \(W^{s, q(\textrm{x}), p(\textrm{x,y})}(\mathcal {U}).\)

The paper is organized as follows: In Sect. 2, we collect the main definitions and properties of generalized Lebesgue spaces and generalized Sobolev spaces and provide crucial background on Morse’s theory. In Sect. 3, we give the proofs of Theorem  1 by computing the critical groups at infinity and critical points 0 associated with the functional energy. Moreover, we use Morse’s relation to establish the problem (1) has an infinitely many weak solutions.

2 Preliminaries

2.1 Fractional Sobolev space

This section contains results that will be used throughout the document concerning the Sobolev and generalized Lebesgue spaces. We consider the set

$$\begin{aligned} C^{+}(\bar{\mathcal {U}})=\left\{ m: \bar{\mathcal {U}} \rightarrow \mathbb {R}^{+}: m \text{ is } \text{ a } \text{ continuous } \text{ function } \text{ and } 1< m^{-}< m(y)< m^{+} <+\infty \right\} , \end{aligned}$$

where \(q^{-}= \min _{\texttt{x} \in \bar{\mathcal {U}} } q(\texttt{x}), ~ \displaystyle q^{+}= \max _{\texttt{x} \in \bar{\mathcal {U}} } q(\texttt{x}).\)

Definition 1

(see [15]) Let \(\displaystyle q\in C^{+}(\bar{\mathcal {U}}). \) We define the generalized Lebesgue space \(L^{q(\texttt{x})}(\mathcal {U})\) as usual

$$\begin{aligned} L^{q(\texttt{x})}(\mathcal {U})=\left\{ u:\mathcal {U}\rightarrow \mathbb {R} \text{ is } \text{ a } \text{ measurable } \text{ function } : \exists \lambda >0: \int _{\mathcal {U}} \vert \frac{u(\texttt{x})}{\lambda } \vert ^{q(\texttt{x}) } \textrm{d}\texttt{x}<\infty \right\} . \end{aligned}$$

We equip this space with the so-called Luxemburg norm defined as follows:

$$\begin{aligned} \vert \textrm{u}\vert _{L^{q(\texttt{x})}(\mathcal {U})}=\inf \left\{ \xi >0: \int _{\mathcal {U}} \vert \frac{\textrm{u}(\texttt{x})}{\xi } \vert ^{q(\texttt{x}) } \textrm{d}\texttt{x}\le 1 \right\} . \end{aligned}$$

Lemma 1

(Hölder’s inequality, see [15]) For every \(q \in C^{+}(\mathbb {R}^{N}),\) the following inequality holds:

$$\begin{aligned} \displaystyle \vert \int _{\mathbb {R}^{N}}{v}(\texttt{x})w(\texttt{x})\textrm{d}\texttt{x}\vert \le \left( \frac{1}{q^{-}}+ \frac{1}{{q^{'}}^{-}}\right) \vert {v}\vert _{L^{q(\texttt{x})}(\mathbb {R}^{N})}\vert w\vert _{L^{{q^{'}}(x)}(\mathbb {R}^{N})}, \end{aligned}$$

for all \( ({v}, w) \in L^{q(\texttt{x})}(\mathbb {R}^{N})\times L^{{q^{'}}(x)}(\mathbb {R}^{N}),\) where \(\frac{1}{q(\texttt{x})}+ \frac{1}{{q^{'}}(x)}=1.\)

Lemma 2

(see [15]) Let \(\mathcal {U}\subset \mathbb {R}^{N}\) be a Lipschitz-bounded domain, and \(q \in C^{+}(\mathbb {R}^{N}).\) Then, we have the following statements:

  1. (i)

    the space \(\left( L^{q\left( \texttt{x}\right) }\left( \mathbb {R}^{N}\right) , \vert .\vert _{L^{q(\texttt{x})}(\mathbb {R}^{N})}\right) \) is a separable, reflexive, and Banach space,

  2. (ii)

    the space \(C^{\infty }(\mathcal {U})\) is dense in the space \(\left( L^{q(\texttt{x})}(\mathcal {U}), \vert .\vert _{L^{q(\texttt{x})}(\mathcal {U})}\right) .\)

We start by fixing the fractional exponent \(s\in (0,1).\) Let \(\mathcal {U}\) be an open-bounded set of \( \mathbb {R}^{N},\) \(q\in C^{+}(\mathcal {U}), \) and \( p:\bar{\mathcal {U}}\times \bar{\mathcal {U}}\rightarrow (1, \infty )\) is a continuous function satisfies the conditions (2)–(4). We introduce the generalized fractional Sobolev space \( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) as follows:

$$\begin{aligned} \displaystyle W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y}}(\mathcal {U})= \displaystyle \left\{ \textrm{w}\in L^{q(\textrm{x})}(\mathcal {U}): \frac{\textrm{w}(\textrm{x})-\textrm{w}(\textrm{y})}{ \beta \vert \textrm{x}-\textrm{y}\vert ^{s+\frac{N}{p(\textrm{x}, \textrm{y})}}} \in L^{p(\textrm{x}, \textrm{y})}(\mathcal {U}\times \mathcal {U} ) \text{ for } \text{ some } \beta >0 \right\} . \end{aligned}$$

Let \( [\textrm{w}]^{s, p(\textrm{x}, \textrm{y})}= \inf \left\{ \beta >0: \int _{\mathcal {U}\times \mathcal {U}} \frac{ \vert \textrm{w}(\textrm{x})-\textrm{w}(\textrm{y})\vert ^{p(\textrm{x}, \textrm{y})}}{\beta ^{p(\textrm{x}, \textrm{y})} \vert \textrm{x}-\textrm{y} \vert ^{N+sp(\textrm{x}, \textrm{y})}} \textrm{dxdy}<1 \right\} \) be the corresponding variable exponent Gagliardo semi-norm. We equip the space \( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y}}(\mathcal {U})\) with the norm

$$\begin{aligned} \displaystyle \Vert \textrm{w}\Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y}}(\mathcal {U})}= \displaystyle [\textrm{w}]^{s, p(\textrm{x}, \textrm{y})}+ \vert \textrm{w}\vert _{q(\textrm{x})}, \end{aligned}$$

where \( (L^{q(\textrm{x})}(\mathcal {U}), \vert .\vert _{q(\textrm{x})}\) is the generalized Lebesgue space.

Lemma 3

(see [5]) Let \( \mathcal {U}\subset \mathbb {R}^{N}\) be a Lipschitz-bounded domain, \( p:\mathcal {U} \times \mathcal {U} \rightarrow (1, +\infty )\) be a continuous function that satisfies conditions (2)–(4), and \( q\in C^{+}(\bar{\mathcal {U}})\). Then, \( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y}}(\mathcal {U}) \) is a separable and reflexive Banach space.

Theorem 3

(see [5]) Let \( \mathcal {U}\subset \mathbb {R}^{N}\) be a Lipschitz-bounded domain, \( p:\mathcal {U}\times \mathcal {U} \rightarrow (1, +\infty )\) be a continuous function satisfies conditions (2)–(4), \( q\in C^{+}(\mathcal {U}), \) and

$$\begin{aligned} \displaystyle sp(\textrm{x,y})<N, ~ p(\textrm{x}, \textrm{x})< q(\textrm{x}),~\hbox { for all} ~ (\textrm{x}, \textrm{y})\in \mathcal {U}^{2}, \end{aligned}$$

and \( \mathfrak {\ell }:\overline{\mathcal {U}} \rightarrow (1,+ \infty )\) is a continuous variable exponent, such that

$$\begin{aligned} \displaystyle p^{*}_{s}(\textrm{x})= \frac{Np(\textrm{x},\textrm{x})}{N-sp(\textrm{x},\textrm{x})}>\mathfrak {\ell }(\textrm{x})\ge \mathfrak {\ell }^{-}=\min _{\textrm{x} \in \overline{\mathcal {U}}}\mathfrak {\ell }(\textrm{x})>1. \end{aligned}$$

Then, the space \( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y}}(\mathcal {U})\) is continuously embedded in \( L ^{\mathfrak {\ell }(y)}(\mathcal {U})\) and there exists a positive constant \( C= C(N, s, p, q, \mathcal {U} )\), such that

$$\begin{aligned} \displaystyle \vert \textrm{w}\vert _{L ^{{l}(\textrm{x})}(\mathcal {U})}\le C \Vert \textrm{w}\Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y}}(\mathcal {U})},\ \text {for all}\quad w\in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y}}(\mathcal {U}). \end{aligned}$$

Moreover, this embedding is compact.

Definition 2

[26] Let X be a Banach space and \(J \in C^1(X, \mathbb {R})\). Given \(c \in \mathbb {R}\), we say that \(\Phi \) satisfies the Cerami c condition (we denote condition \(\left( C_c\right) \) ), if

\(\left( C_1\right) \): any bounded sequence \(\left\{ u_n\right\} \subset X\) such that \(\Phi \left( u_n\right) \rightarrow c\) and \(\Phi ^{\prime }\left( u_n\right) \rightarrow 0\) has a convergent subsequence,

\(\left( C_2\right) \): there exist constants \(\delta , R, \beta >0\), such that

$$\begin{aligned} \left\| \Phi ^{\prime }(u)\right\| \Vert \textrm{u}\Vert \ge \beta \quad \forall u \in \Phi ^{-1}([c-\delta , c+\delta ]) \quad \text{ with } \quad \Vert \textrm{u}\Vert \ge R. \end{aligned}$$

2.2 Critical groups

In this paragraph, we briefly give the basic properties and notions of Morse theory. Let W be a real Banach space, \( \psi \in C^{1}(W, \mathbb {R}),\) satisfies the Palais–Smale condition, and \( c\in \mathbb {R}.\) We consider the following sets:

$$\begin{aligned} \psi ^{c}=\left\{ \textrm{w}\in W: \psi (\textrm{w})\le c \right\} \end{aligned}$$

and

$$\begin{aligned} K_{\psi }= \left\{ \textrm{w}\in W: \psi ^{'}(\textrm{w})=0 \right\} . \end{aligned}$$

The critical groups of \(\psi \) at \(\textrm{w}\) are defined by

$$\begin{aligned} C_{k}\left( \psi , \textrm{w}\right) = H_{k}\left( \psi ^{c} \cap U, \psi ^{c} \cap U \backslash \lbrace \textrm{w} \rbrace \right) , \end{aligned}$$

where \( k\in \mathbb {N}, \) U is a neighborhood of \( \textrm{w}\), such that \( K_{\psi }\cap U= \left\{ \textrm{w} \right\} ,\) and \( H_{k}\) is the singular relative homology with coefficient in an Abelian group G; see [26] for more details.

Definition 3

(see [6]) If \(\phi \) satisfies the condition (C) and the critical values of \(\phi \) are bounded from below by some \(a < \inf \phi (K),\) then the critical groups of \(\phi \) at infinity as

$$\begin{aligned} C_{k}(\phi , \infty ):= H_{k}(W, \phi ^{a}), \text { for all } k\in \mathbb {N}. \end{aligned}$$

Theorem 4

(see [27]) Given W is a real Banach space, \(\phi \in C^{1}(W, \mathbb {R}) \) satisfies the Palais–Smale condition and is bounded from below. If at least one of its critical groups is nontrivial, then \(\phi \) has at least three critical points.

Definition 4

(see [27]) Given Y is a Banach space, \( \psi \in C(Y, \mathbb {R}),\) and 0 is an isolated critical point of \( \psi \) such that \( \psi (0)=0.\) We say that \(\psi \) has a local linking at 0 with respect to \( Y= V\bigoplus W, \) \(k = \dim V < \infty ,\) if there exists \( \rho > 0\) small, such that

$$\begin{aligned} {\left\{ \begin{array}{ll} \psi (\textrm{u})\le 0, \hspace{0.2cm} \textrm{u}\in V; \hspace{0.2cm} \Vert \vert \textrm{u}\vert \Vert \le \rho ;\\ \psi (\textrm{u})> 0, \hspace{0.2cm} \textrm{u}\in W; \hspace{0.2cm}0< \Vert \vert \textrm{u}\vert \Vert \le \rho . \end{array}\right. } \end{aligned}$$

Theorem 5

(see [27]) Given Y is a Banach space, \( \psi \in C(Y, \mathbb {R}).\) If \(\psi \) has a local linking at 0 with respect to Y. Then, we get \(C_{k}(\psi , 0)\ne 0.\)

Lemma 4

(Morse’s relation) (see [26]) If Y is a Banach space, \(\psi \in C^{1}(Y, \mathbb {R}), a, b \in \mathbb {R} \backslash \psi \left( \left\{ K_{\psi }\right) , a<b\right. \), \(\psi ^{-1}((a, b))\) contains a finite number of critical points \(\left\{ \textrm{w}_{i}\right\} _{i=1}^{n}\) and \(\psi \) satisfies the Palais–Smale condition, then

  1. (1)

    for all \(k \in \mathbb {N}_0\), we have \( \sum _{i=1}^{n}{\text {rank}}C_{k}\left( \psi , u_{i}\right) \geqslant {\text {rank}} H_{k}\left( \psi ^{b}, \psi ^{a}\right) \);

  2. (2)

    if the Morse-type numbers \(\sum _{i=1}^{n} {\text {rank}} C_{k}\left( \psi , u_{i}\right) \) are finite for all \(k \in \mathbb {N}_0\) and vanish for all large \(k \in \mathbb {N}_{0}\), then so do the Betti numbers \({\text {rank}} H_{k}\left( \psi ^{b}, \psi ^{a}\right) \) and we have

    $$\begin{aligned} \sum _{\textrm{k} \geqslant 0} \sum _{i=1}^n {\text {rank}} C_{k}\left( \psi , u_{i}\right) t^{k}=\sum _{\textrm{k} \geqslant 0} {\text {rank}} H_{k}\left( \psi ^{b}, \psi ^{a}\right) t^{k}+(1+t) Q(t) \text{ for } \text{ all } t \in \mathbb {R}, \end{aligned}$$

    where Q(t) is a polynomial in \(t \in \mathbb {R}\) with non-negative integer coefficients.

3 Main results

Lemma 5

For every \(a>0.\) Then, we have

  1. (1)

    \(t^{a}\vert \log ( t)\vert \le \frac{1}{a\exp (1)},\) for all \(t\in (0, 1];\)

  2. (2)

    \(\log (t)\le \frac{t^{a}}{a\exp (1)},\) for all \(t>1.\)

Proof

For (1). We consider the function by \(g:(0,1]\rightarrow \mathbb {R} \) as \(g(t)= t^{a}\vert \log (t)\vert .\) The function is continuous on (0, 1],  and \(\lim _{t\rightarrow 0}t^{a}\vert \log (t)\vert =0. \) Using a direct computation, we show that the function g achieves the maximum at \(t_{0}= \exp (\frac{-1}{a}).\) Finally, we have \(t^{a}\vert \log ( t)\vert \le \frac{1}{a\exp (1)},\) for all \(t\in (0, 1].\) Now, we prove (2). We construct the following function:

$$\begin{aligned} f(t)= \log (t)- \frac{1}{a\exp (1)}t^{a}, \text{ for } \text{ all } t \in [1, \infty ). \end{aligned}$$

Obvious, we prove that the function f achieves the maximum at \(t^{*}=\exp (\frac{1}{a}), \) for all \(t\in [1, \infty ).\) Therefore, we get \(f(t)\le f(t^{*}).\) \(\square \)

Lemma 6

Let \(r:\mathcal {U}\rightarrow (1, \infty )\) be a continuous function, such that \(1< r^{-}\le r(\textrm{x}) \le r^{+}< p_{s}^{*}(\texttt{x}),\) for each \(\texttt{x}\in \mathcal {U}.\) Then, we have the following estimate:

$$\begin{aligned} \int _{\mathcal {U}} \frac{1}{r(\textrm{x})} \vert \textrm{u}(\textrm{x})\vert ^{r(\textrm{x})} \log \vert \textrm{u}(\textrm{x})\vert \textrm{dx}\le C \max \left\{ \vert \textrm{u}\vert ^{r^{-}},\vert \textrm{u}\vert ^{r^{+}}\right\} +\log \vert \textrm{u}\vert \int _{\mathcal {U}} \frac{1}{r(\textrm{x})}\vert \textrm{u}\vert ^{r(\textrm{x})} d \textrm{x}, \end{aligned}$$

for all \( \textrm{u} \in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\backslash \{0\},\) where \(C=C\left( \vert \mathcal {U} \vert , r, p_{s}^{*}(\texttt{x})\right) \) is a suitable constant.

Proof

Let \(\mathcal {U}_{1}=\left\{ \texttt{x}\in \mathcal {U}: \vert \textrm{u}(\texttt{x})\vert \le \Vert \textrm{u}\Vert \right\} , \) and \(\mathcal {U}_{2}=\left\{ \texttt{x}\in \mathcal {U}: \vert \textrm{u}(\texttt{x})\vert \ge \Vert \textrm{u}\Vert \right\} \). From Lemma 5 (1) with \(a=r^{-},\) we obtain that

$$\begin{aligned} \begin{aligned} \int _{\mathcal {U}_1} \frac{1}{r(\texttt{x})}\vert \textrm{u}\vert ^{r(\texttt{x})} \log \frac{\vert \textrm{u}\vert }{\Vert \textrm{u}\Vert } \textrm{d} \texttt{x}&\le \frac{1}{r^{-}} \max \left\{ \Vert \textrm{u}\Vert ^{r^{-}},\Vert \textrm{u}\Vert ^{r^{+}}\right\} \int _{\mathcal {U}_1}\left( \frac{\vert \textrm{u}\vert }{\Vert \textrm{u} \Vert }\right) ^{r(\texttt{x})}\left| \log \frac{\vert \textrm{u}\vert }{\Vert \textrm{u}\Vert }\right| \textrm{d} \texttt{x} \\&\le \frac{\vert \mathcal {U}\vert }{\left( r^{-}\right) ^2\exp (1)} \max \left\{ \Vert \textrm{u}\Vert ^{r^{-}},\Vert \textrm{u}\Vert ^{r^{+}}\right\} . \end{aligned} \end{aligned}$$
(7)

Estimating the second integral expression. Combining Lemma 3 (2) with Lemma 5, such that \(a= \left( p_{s}^{*}\right) ^{-}-\epsilon - r^{+}, \) for some sufficiently small \(\epsilon >0,\) we have that

$$\begin{aligned} \begin{aligned}&\int _{\mathcal {U}{_2}} \frac{1}{r(\texttt{x})}\vert \textrm{u}\vert ^{r(\texttt{x})} \log \frac{\vert u\vert }{\Vert \textrm{u}\Vert } \textrm{d} \texttt{x} \le \frac{1}{r^{-}} \int _{\mathcal {U}{_2}}\vert \textrm{u}\vert ^{r(\texttt{x})} \log \frac{\vert \textrm{u}\vert }{\Vert \textrm{u}\Vert } \textrm{d} \texttt{x} \\&\quad \le \frac{1}{r^{-}\exp \left( \left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}\right) } \int _{\mathcal {U}{_2}}\vert \textrm{u}\vert ^{r(\texttt{x})}\left( \frac{\vert \textrm{u}\vert }{\Vert \textrm{u}\Vert }\right) ^{\left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}} \textrm{d} \texttt{x} \\&\quad \le \frac{1}{\exp \left( \left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}\right) r^{-}} \int _{\mathcal {U}{_2}}\vert \textrm{u}\vert ^{r(x)}\left( \frac{\vert \textrm{u}\vert }{\Vert \textrm{u}\Vert }\right) ^{ \left( p_{s}^{*}\right) ^{-}-\epsilon -r(\texttt{x})} \textrm{d} \texttt{x} \\&\quad \le \frac{1}{\min \left( \Vert \textrm{u}\Vert ^{\left( p_{s}^{*}\right) ^{-}-\epsilon -r^{-}},\Vert \textrm{u}\Vert ^{\left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}}\right) \exp \left( \left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}\right) r^{-}} \int _{\mathcal {U}{_2}}\vert \textrm{u}\vert ^{\left( p_{s}^{*}\right) ^{-}-\epsilon } \textrm{d} \texttt{x} \\&\quad \le \frac{C_{p_{s}^{*-}-\epsilon }}{\min \left( \Vert \textrm{u}\Vert ^{\left( p_{s}^{*}\right) ^{-}-\epsilon -r^{-}},\Vert \textrm{u}\Vert ^{\left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}}\right) \exp \left( \left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}\right) r^{-}}\Vert \textrm{u}\Vert ^{\left( p_{s}^{*}\right) ^{-}-\epsilon } \\&\quad =\frac{C_{p_{s}^{*-}-\epsilon }}{\exp \left( \left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}\right) r^{-}} \min \left( \Vert \textrm{u}\Vert ^{r^{-}},\Vert \textrm{u}\Vert ^{r^{+}}\right) \\&\quad \le \frac{C_{p_{s}^{*-}-\epsilon }}{\exp \left( \left( p_{s}^{*}\right) ^{-}-\epsilon -r^{+}\right) r^{-}} \max \left( \Vert \textrm{u}\Vert ^{r^{-}},\Vert \textrm{u}\Vert ^{r^{+}}\right) , \end{aligned} \end{aligned}$$
(8)

where \(C_{p_{s}^{*-}-\epsilon }>0\) is constant. From (7), and (8, we deduce that

$$\begin{aligned} \int _{\mathcal {U}} \frac{1}{r(\texttt{x})} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \log \vert \textrm{u}(\texttt{x})\vert \textrm{d}\texttt{x}\le C \max \left\{ \Vert \textrm{u}\Vert ^{r^{-}},\Vert \textrm{u}\Vert ^{r^{+}}\right\} +\log \Vert \textrm{u}\Vert \int _{\mathcal {U}} \frac{1}{r(\texttt{x})}\vert \textrm{u}\vert ^{r(\texttt{x})} \textrm{d} \texttt{x}. \end{aligned}$$

\(\square \)

Definition 5

A measurable function \(\textrm{u} \in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) is said to be a weak solution of (1) if

$$\begin{aligned}&M\left( J_{s, p\left( \texttt{x}, \cdot \right) }(\textrm{u})\right) \int _{\mathcal {U}\times \mathcal {U}}\frac{\vert \textrm{u}(\texttt{x})-\textrm{u}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})-2}(\textrm{u}(\texttt{x})-\textrm{u}(\texttt{y}))(\textrm{v}(\texttt{x})-\textrm{v}(\texttt{y})}{\vert \texttt{x}-\texttt{y}\vert ^{N+s p(\texttt{x}, \texttt{y})}} \textrm{d}\texttt{x}\textrm{d}\texttt{y}\\&\quad =\lambda \int _{\mathcal {U}} \vert \textrm{u}(\texttt{x}) \vert ^{r(\texttt{x})-2} \log \vert \textrm{u}(\texttt{x}) \vert \textrm{u}(\texttt{x}) \textrm{v}(\texttt{x})\textrm{d}\texttt{x}+\lambda \int _{\mathcal {U}} f(\texttt{x}, \textrm{u}(\texttt{x})) \textrm{v}(\texttt{x})\textrm{d}\texttt{x}, \end{aligned}$$

for all \(\textrm{v}\in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}).\)

We consider the functional \(\zeta :W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\rightarrow \mathbb {R} \) defined by

$$\begin{aligned} \begin{aligned} \zeta (\textrm{u})&:=\widehat{M}\left( J_{s, p(\texttt{x}, \cdot )} (\textrm{u}) \right) -\lambda \int _{\mathcal {U}} \frac{1}{r(\texttt{x})}\left( \vert \textrm{u}(\texttt{x}) \vert ^{r(\texttt{x})} \log \vert \textrm{u}(\texttt{x}) \vert - \frac{1}{r(\texttt{x})}\vert \textrm{u}(\texttt{x}) \vert ^{r(\texttt{x})}\right) \textrm{d}\texttt{x} \\&\quad -\lambda \int _{\mathcal {U}} F(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d} \texttt{x}\\&= L_{1}(\textrm{u})- L_{2}(\textrm{u})-L_{3}(\textrm{u}). \end{aligned} \end{aligned}$$
(9)

Then, it follows from [5, 22] that \( L_{1}-L_{3}\in C^{1}\left( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}), \mathbb {R}\right) \) and:

$$\begin{aligned}&\left\langle \left( L_{1}-L_{3}\right) ^{'}(\textrm{u}), \textrm{v}\right\rangle \\&\quad =M\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u})\right) \int _{\mathcal {U}\times \mathcal {U}} \frac{\vert \textrm{u}(\texttt{x})-\textrm{u}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})-2}(\textrm{u}(\texttt{x})-\textrm{u}(\texttt{y}))(\textrm{v}(\texttt{x})-\textrm{v}(\texttt{y}))}{\vert \texttt{x}-\texttt{y}\vert ^{N+sp(\texttt{x}, \texttt{x})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y}\\&\qquad -\lambda \int _{\mathcal {U}} f(\texttt{x}, \textrm{u}(\texttt{x})) \textrm{v}(\texttt{x}) \textrm{d}\texttt{x}. \end{aligned}$$

Our first result is the following Lemma.

Lemma 7

Let \( \mathcal {U}\subset \mathbb {R}^{N}\) be a Lipschitz-bounded domain, \(\lambda \) be a parameter positive, and \(r:\mathcal {U}\rightarrow (1,\infty )\) be a continuous function. Then, we have \(L_{2}\in C^{1}\left( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}), \mathbb {R}\right) ,\) and

$$\begin{aligned} \left\langle L_{2} ^{'}(\textrm{u}), \textrm{v}\right\rangle = \lambda \int _{\mathcal {U}} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})-2} \textrm{u}(\texttt{x}) \log \vert \textrm{u}(\texttt{x})\vert \textrm{v}(\texttt{x})\textrm{d}\texttt{x}, \end{aligned}$$

for all \(\textrm{u}, \textrm{v}\in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}).\)

Proof

Let \(\textrm{v}, \textrm{u}\in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}).\) For each \(\textrm{x}\in \mathcal {U},\) and \(0<t<1.\) By the definition of Gâteaux-differentiable, we get

$$\begin{aligned} \begin{aligned}&\left\langle L_{2} ^{'}(\textrm{u}), \textrm{v}\right\rangle \\ {}&\quad =\lim _{t\rightarrow 0} \frac{L_{2} (\textrm{u}+t\textrm{v}) - L_{2} (\textrm{u})}{t}\\&\quad =\lim _{t\rightarrow 0} \lambda \int _{\mathcal {U}}\frac{1}{r(\texttt{x})} \frac{\left( \vert \textrm{u}+t\textrm{v}\vert ^{r(\texttt{x})} \log \vert \textrm{u}+t\textrm{v}\vert -\vert \textrm{u}\vert ^{r(\texttt{x})} \log \vert \textrm{u}\vert + \frac{1}{r(\texttt{x})} \left( \vert \textrm{u}+t\textrm{v}\vert ^{r(\texttt{x})}-\vert \textrm{u}\vert ^{r(\texttt{x})}\right) \right) }{t} \textrm{d}\texttt{x}. \end{aligned} \end{aligned}$$

We consider the function defined by \(K:[0, 1]\rightarrow \mathbb {R}\) as

$$\begin{aligned} K(y)=\frac{ \vert \textrm{u}+y t\textrm{v} \vert ^{r(\texttt{x})} \log \vert \textrm{u}+y t\textrm{v} \vert }{r(\texttt{x})}-\frac{ \vert \textrm{u}+y t\textrm{v} \vert ^{r(\texttt{x})}}{r^{2}(\texttt{x})}. \end{aligned}$$

According to the mean value Theorem, there exists \(\theta \in (0, 1) \), such that

$$\begin{aligned} K^{'}(y)(\theta )= K(1)-K(0). \end{aligned}$$

Combining the Lebesgue’s dominated converge theorem with a direct computation, we have

$$\begin{aligned} \left\langle L_{2} ^{'}(\textrm{u}), \textrm{v}\right\rangle =\lambda \int _{\mathcal {U}} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})-2} \textrm{u}(\texttt{x}) \log \vert \textrm{u}(\texttt{x})\vert \textrm{v}(\texttt{x})\textrm{d}\texttt{x}. \end{aligned}$$

Using the same method as appear in paper [20], we can easily prove that \( L_{2}\in C^{1}\left( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}), \mathbb {R}\right) . \) \(\square \)

Lemma 8

We assume that the conditions \((\mathcal {B}_{5}){-}(\mathcal {B}_{7})\) are fulfilled. Then, the functional \(\zeta \) satisfies the Palais–Smale condition at level \(c\in \mathbb {R}.\)

Proof

Let \( \{\textrm{u}_{n}\}_{n\in \mathbb {N}} \subset W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) with \( \zeta (\textrm{u}_{n}) \rightarrow c \) as \( n \rightarrow +\infty \) and \( \zeta ^{'}(\textrm{u}_{n}) \rightarrow 0 \) as \( n \rightarrow +\infty \) in \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}).\) Without loss of generality, we assume that \(\Vert \textrm{u}_{n} \Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}\ge 1.\) By contradiction, we prove the sequence \(\{\textrm{u}_{n}\}_{n\in \mathbb {N}}\) is bounded in \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}).\) Therefore, there exists \(C>0\), such that

$$\begin{aligned} \left\langle \zeta \textrm{u}_{n}, \textrm{u}_{n} \right\rangle \le C \Vert \textrm{u}_{n} \Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})} \text{ and } \zeta (\textrm{u}_{n} ) \le C. \end{aligned}$$

We combine condition \((\mathcal {B}_{5})\) with condition \((\mathcal {B}_{7}),\) and we have

$$\begin{aligned}&C+C\Vert \textrm{u}_{n}\Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}\\&\quad \ge \zeta (\textrm{u}_{n})-\frac{1}{r^{-}} \left\langle \zeta ^{'}(\textrm{u}_{n}) , \textrm{u}_{n}\right\rangle \\&\quad =\widehat{M}\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u}_{n}) \right) -\lambda \int _{\mathcal {U}} \frac{1}{r(\texttt{x})}\left( \vert \textrm{u}_{n}(\texttt{x})\vert ^{r(\texttt{x})} \log \vert \textrm{u}_{n}(\texttt{x})\vert - \frac{1}{r(\texttt{x})}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})}\right) \textrm{d}\texttt{x}\\&\qquad -\lambda \int _{\mathcal {U}} F(\texttt{x}, \textrm{u}_{n}(\texttt{x}))\textrm{d}\texttt{x}-\frac{1}{r^{-}} M\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u}_{n})\right) \int _{\mathcal {U}\times \mathcal {U}}\frac{\vert \textrm{u}_{n}(\texttt{x})-\textrm{u}_{n}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})}}{\vert \texttt{x}-\texttt{y}\vert ^{N+sp(\texttt{x}, \texttt{x})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y} \\&\qquad + \frac{\lambda }{r^{-}} \int _{\mathcal {U}} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \log \vert \textrm{u}_{n}(\texttt{x})\vert \textrm{d}\texttt{x}+\frac{\lambda }{r^{-}} \int _{\mathcal {U}} f(\texttt{x}, \textrm{u}_{n}(\texttt{x})) \textrm{u}_{n}(\texttt{x}) \textrm{d}\texttt{x}\\&\quad \ge (1-\alpha )M\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u}_{n}) \right) J_{s, p(\texttt{x}, \cdot )}(\textrm{u}_{n})-\frac{1}{r^{-}} M\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u}_{n}) \right) \\&\qquad \times \int _{\mathcal {U}\times \mathcal {U}}\frac{\vert \textrm{u}_{n}(\texttt{x})-\textrm{u}_{n}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})}}{\vert \texttt{x}-\texttt{y}\vert ^{N+sp(\texttt{x}, \texttt{x})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y}\\&\qquad + \frac{\lambda }{r^{-}} \int _{\mathcal {U}} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \log \vert \textrm{u}_{n}(\texttt{x})\vert \textrm{d}\texttt{x}-\lambda \int _{\mathcal {U}} \frac{1}{r(\texttt{x})} \vert \textrm{u}_{n}(\texttt{x})\vert ^{r(\texttt{x})} \log \vert \textrm{u}_{n}(\texttt{x})\vert \textrm{d}\texttt{x}\\&\qquad +\frac{\lambda }{r^{-}} \int _{\mathcal {U}} f\left( \texttt{x}, \textrm{u}_{n}(\texttt{x})\right) \textrm{u}_{n}(\texttt{x}) \textrm{d}\texttt{x}- \lambda \int _{\mathcal {U}} F(\texttt{x}, \textrm{u}_{n}(\texttt{x}))\textrm{d}\texttt{x}\\&\quad \ge m\left[ \int _{\mathcal {U}\times \mathcal {U}}\frac{1}{p(\textrm{x}, \textrm{y})} \frac{\vert \textrm{u}_{n}(\texttt{x})-\textrm{u}_{n}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})}}{\vert \texttt{x}-\texttt{y}\vert ^{N+sp(\texttt{x}, \texttt{x})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y}\right. \\&\left. \qquad -\frac{1}{r^{-}} \int _{\mathcal {U}\times \mathcal {U}} \frac{\vert \textrm{u}_{n}(\texttt{x})-\textrm{u}_{n}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})}}{\vert \texttt{x}-\texttt{y}\vert ^{N+sp(\texttt{x}, \texttt{x})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y}\right] \\&\qquad + \frac{\lambda }{r^{-}} \int _{\mathcal {U}}\vert \textrm{u}_{n}(\texttt{x})\vert ^{r(\texttt{x})} \log \vert \textrm{u}_{n}(\texttt{x})\vert \textrm{d}\texttt{x} -\frac{\lambda }{r^{-}} \int _{\mathcal {U}}\vert \textrm{u}_{n}(\texttt{x})\vert ^{r(\texttt{x})} \log \vert \textrm{u}_{n}(\texttt{x})\vert \textrm{d}\texttt{x}\\&\quad \ge m\left( \frac{1}{p^{-}} -\frac{1}{r^{-}}\right) \Vert \textrm{u}_{n}\Vert ^{p^{+}}_{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}. \end{aligned}$$

This is a contradiction as \(\Vert \textrm{u}_{n}\Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}\rightarrow \infty .\) From Lemma 3, we get that there exists \(\textrm{u}\in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) and a subsequence of \(\textrm{u}_{n}\) still denoted by \(\textrm{u}_{n}\) that satisfies the following inequality:

$$\begin{aligned} \begin{gathered} \left\{ \begin{array}{llll} \textrm{u}_{n}\rightarrow \textrm{u} \text{ a.e } \text{ in } \mathcal {U}, \\ \textrm{u}_{n} \rightharpoonup \textrm{u} \text{ weakly } \text{ in } W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}),\\ \textrm{u}_{n}\rightarrow \textrm{u} \text{ strongly } \text{ in } L^{ \sigma (\textrm{x})}(\mathcal {U}) \text{ for } 1\le \sigma (\textrm{x})< p^{*}_{s}(\textrm{x}). \end{array}\right. \end{gathered} \end{aligned}$$
(10)

Since \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) is a reflexive space, we deduce that

$$\begin{aligned} \left\langle \zeta ^{'}(\textrm{u}_{n}), \textrm{u}_{n}-\textrm{u}\right\rangle \rightarrow 0 \quad \text{ as } n\rightarrow \infty . \end{aligned}$$

Thus, we get that

$$\begin{aligned}&\left\langle \zeta ^{'}(\textrm{u}_{n}) , \textrm{u}_{n}-\textrm{u}\right\rangle \\&\quad = -\lambda \int _{\mathcal {U}} \vert \textrm{u}_{n}(\texttt{x})\vert ^{r(\texttt{x})-2} \log \vert \textrm{u}_{n}(\texttt{x})\vert \textrm{u}_{n}(\texttt{x}) \left( \textrm{u}_{n}(\texttt{x})-\textrm{u}(\texttt{x})\right) \textrm{d}\texttt{x}\\&\qquad -\lambda \int _{\mathcal {U}} f\left( \texttt{x}, \textrm{u}_{n}(\texttt{x})\right) \left( \textrm{u}_{n}(\texttt{x})- \textrm{u}(\texttt{x})\right) \textrm{d}\texttt{x} + +M\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u}_{n})\right) \\&\qquad \times \int _{\mathcal {U}\times \mathcal {U}} \frac{\vert \textrm{u}_{n}(\texttt{x})-\textrm{u}_{n}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})-2}(\textrm{u}_{n}(\texttt{x})-\textrm{u}_{n}(\texttt{y}))( \textrm{u}_{n}(\texttt{x})-\textrm{u}_{n}(\texttt{y}) -(\textrm{u}(\texttt{x})-\textrm{u}(\texttt{y}))}{\vert \texttt{x}-\texttt{y}\vert ^{N+sp(\texttt{x}, \texttt{x})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y} \end{aligned}$$

as \( n\rightarrow \infty .\)

Now, we show that

$$\begin{aligned}&\lim _{n \rightarrow \infty } \int _{\mathcal {U}} \left| \textrm{u}_{n}(\texttt{x})\right| ^{r(x)-2} \textrm{u}_{n}(\texttt{x})\left( \textrm{u}_{n}(\texttt{x})-\textrm{u}_{n}(\texttt{x})\right) \log \left| \textrm{u}_{n}(\texttt{x})\right| \textrm{d} \texttt{x}\\&\quad =\lim _{n \rightarrow \infty } \int _{\mathcal {U}} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})-2} \textrm{u}(\texttt{x})\left( \textrm{u}_{n}(\texttt{x}) -\textrm{u}(\texttt{x})\right) \log \vert \textrm{u}(\texttt{x})\vert \textrm{d} \texttt{x}. \end{aligned}$$

From (10), it is easy to see that

$$\begin{aligned} \begin{aligned} \lim _{n\rightarrow \infty } \left| \textrm{u}_{n}(\texttt{x})\right| ^{r(\texttt{x})}\vert \log \vert \textrm{u}_{n} (\texttt{x})\vert \vert =\left| \textrm{u}(\texttt{x})\right| ^{r(\texttt{x})}\vert \log \vert \textrm{u} (\texttt{x})\vert \vert \text { a.e in } \mathcal {U}. \end{aligned} \end{aligned}$$
(11)

Let \(\gamma \in (0, p_{s}^{*-}-r^{+}).\) From Lemma 5, and Theorem 3, we have that

$$\begin{aligned} \begin{aligned} \int _{\mathcal {U}}\left| \textrm{u}_{n}(\texttt{x})\right| ^{r(\texttt{x})}\vert \log \vert \textrm{u}_{n} (\texttt{x})\vert \vert \textrm{d} \texttt{x}&=\int _{\mathcal {U} \cap \left\{ \left| \textrm{u}_{n}(\texttt{x})\right| \le 1\right\} } \left| \textrm{u}_{n}(\texttt{x})\right| ^{r(\texttt{x})}\vert \log \vert \textrm{u}_{n }(\texttt{x})\vert \vert \textrm{d} \texttt{x}\\&\quad +\int _{\mathcal {U}\cap \left\{ \left| \textrm{u}_{n}(\texttt{x})\right| >1\right\} } \left| \textrm{u}_{n}(\texttt{x})\right| ^{r(\texttt{x})}\vert \log \vert \textrm{u}_{n}(\texttt{x})\vert \vert \textrm{d} \texttt{x} \\&\le \frac{\left| \mathcal {U}\right| }{ r^{-}\exp (1)}+\frac{1}{ \gamma \exp (1)} \int _{\mathcal {U}} \left| \textrm{u}_{n}(\texttt{x})\right| ^{r^{+}+\gamma } \textrm{d} \texttt{x} \\&\le \frac{\left| \mathcal {U}\right| }{ r^{-}\exp (1)}+M \frac{\left| \mathcal {U}\right| C_{r^{+}+\gamma }^{r^{+}+\gamma }}{ \gamma \exp (1)}, \end{aligned}\nonumber \\ \end{aligned}$$
(12)

where \(L=\sup \Vert \textrm{u}_{n}\Vert ^{r^{+}+\gamma }<\infty .\) Therefore, the sequence \(\left\{ \left| \textrm{u}_{n}(\texttt{x})\right| ^{r(\texttt{x})}\vert \log \vert \textrm{u}_{n}(\texttt{x})\vert \vert \right\} _{n\ge 1} \) is equi-integral in \(L^{1}(\mathcal {U}),\) and uniformly bounded. Combining (12), (11) with Vitali’s convergence theorem, we have that

$$\begin{aligned} \lim _{n\rightarrow \infty }\int _{\mathcal {U}}\left| \textrm{u}_{n}(\texttt{x})\right| ^{r(\texttt{x})}\vert \log \vert \textrm{u}_{n} (\texttt{x})\vert \vert \textrm{d} \texttt{x}= \int _{\mathcal {U}}\left| \textrm{u}(\texttt{x}) \right| ^{r(\texttt{x})}\vert \log \vert \textrm{u} (\texttt{x})\Vert \textrm{d} \texttt{x}. \end{aligned}$$
(13)

Similarly, we prove

$$\begin{aligned} \lim _{n\rightarrow \infty }\int _{\mathcal {U}}\textrm{u} \left| \textrm{u}_{n}(\texttt{x})\right| ^{r(\texttt{x})-2} \textrm{u}_{n}(\texttt{x})\vert \log \vert \textrm{u}_{n} (\texttt{x})\vert \vert \textrm{d} \texttt{x}= \int _{\mathcal {U}}\left| \textrm{u}(\texttt{x}) \right| ^{r(\texttt{x})}\vert \log \vert \textrm{u} (\texttt{x})\vert \vert \textrm{d} \texttt{x}, \end{aligned}$$
(14)

and

$$\begin{aligned} \lim _{n\rightarrow \infty }\int _{\mathcal {U}}\textrm{u}_{n}(\texttt{x}) \left| \textrm{u}_{n}(\texttt{x})\right| ^{r(\texttt{x})-2}\vert \log \vert \textrm{u} (\texttt{x})\vert \vert \textrm{u}(\texttt{x}) \textrm{d} \texttt{x}= \int _{\mathcal {U}}\left| \textrm{u}(\texttt{x})\right| ^{r(\texttt{x})}\vert \log \vert \textrm{u} (\texttt{x})\vert \vert \textrm{d} \texttt{x}. \end{aligned}$$
(15)

From (13), (14), and (15), we have that

$$\begin{aligned} \begin{aligned}&\lim _{n \rightarrow \infty } \int _{\mathcal {U}} \left| \textrm{u}_{n}(\texttt{x})\right| ^{r(x)-2} \textrm{u}_{n} (\texttt{x})\left( \textrm{u}_{n}(\texttt{x})-\textrm{u}_{n} (\texttt{x})\right) \log \left| \textrm{u}_{n} (\texttt{x})\right| \textrm{d} \texttt{x}\\&\quad =\lim _{n \rightarrow \infty } \int _{\mathcal {U}} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})-2} \textrm{u}(\texttt{x})\left( \textrm{u}_{n}(\texttt{x}) -\textrm{u}(\texttt{x})\right) \log \vert \textrm{u} (\texttt{x})\vert \textrm{d} \texttt{x}. \end{aligned} \end{aligned}$$
(16)

Combining (16) with the same argument in Lemma 3.1 [1], we get that \(\textrm{u}_{n} \rightarrow \textrm{u} \) strongly in \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}). \) \(\square \)

Remark 1

We assume that the conditions \((\mathcal {B}_{1}){-}(\mathcal {B}_{7})\) are fulfilled. Then, the functional \(\zeta \) satisfies the \((C_{c}) \) condition.

Proof

We use the same technical in Theorem 4 [29] and from Lemma 8, we deduce that the functional \(\zeta \) satisfies the \((C_{c}) \) condition. \(\square \)

Now, we compute the critical groups. From Lemma 1, it follows that \(C_{k}(\zeta , \infty )\) make sense.

Theorem 6

We assume that the functional \(\zeta \) satisfies the conditions \((\mathcal {B}_{1}),\) \((\mathcal {B}_{7}).\) Then, we get \(C_{k}(\zeta , \infty )=0.\)

Proof

Let \( G(\textrm{x}, t)=f(\textrm{x},t)t-p^{+}F(\textrm{x}, t)\) and \( c_{1}=1+\sup _{\bar{\mathcal {U}}\times [-R; R]}G(\textrm{x}, t)- \inf _{\bar{\mathcal {U}}\times [-R; R]}G(\textrm{x}, t).\) From the condition \((H_{5}), \) we get that

$$\begin{aligned} \displaystyle G(\textrm{x}, s)\le G(\textrm{x}, t)+c_{1} \text{ for } \text{ all } \textrm{x}\in \bar{\mathcal {U}} \text { and } 0\le s<t \text { or } t\le s\le 0. \end{aligned}$$
(17)

By (17), we get

$$\begin{aligned} \displaystyle G(\textrm{x}, t)\ge -c_{1} \text{ when } s=0. \end{aligned}$$
(18)

Let \(\textrm{u}\in \mathcal {S}^{1}= \left\{ \textrm{u}\in W^{s, q(\textrm{x}), p(\textrm{x,y})}(\mathcal {U}): \Vert \textrm{u} \Vert =1\right\} \) and \(t\ge 1.\) From Fatou’s Lemma and condition \((\mathcal {B}_{3}),\) we get that

$$\begin{aligned} +\infty = \displaystyle \int _{\mathcal {U}}\lim _{t\rightarrow \infty } \frac{F(\textrm{x}, t\textrm{u})}{\vert t\textrm{u}\vert ^{r^{+}}} \vert \textrm{u}\vert ^{r^{+}}\textrm{dx}\le \lim _{t\rightarrow \infty }\int _{\mathcal {U}}\frac{F(\textrm{x}, t\textrm{u})}{\vert t\vert ^{r^{+}}}\textrm{dx}. \end{aligned}$$
(19)

Using the condition \((\mathcal {B}_{7}),\) it is easy to see that

$$\begin{aligned} \widehat{M}(t)\le c^{'}_{1} t. \end{aligned}$$
(20)

By (20) and (19), we have

$$\begin{aligned} \displaystyle \zeta (t\textrm{u})&= \displaystyle \widehat{M}\left( J_{s, p(\texttt{x}, \cdot )}(t\textrm{u})\right) -\lambda \int _{\mathcal {U}} \frac{1}{r(\texttt{x})} \vert t\vert ^{r(\texttt{x})} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \vert \log \vert t\textrm{u} (\texttt{x})\vert \vert \textrm{d}\texttt{x}\\&\quad +\lambda \int _{\mathcal {U}} \frac{1}{r^{2}(\texttt{x})} \vert t\vert ^{r(\texttt{x})} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x} -\lambda \int _{\mathcal {U}} F(\texttt{x}, t\textrm{u}(\texttt{x}))\textrm{d}\texttt{x}\\&\le c^{'}_{1}\frac{t^{p^{+}}}{p^{+}}\int _{\mathcal {U}\times \mathcal {U}} \frac{\vert \textrm{u}(\texttt{x})-\textrm{u}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})}}{\vert \texttt{x}-\texttt{y}\vert ^{N+s p(\texttt{x}, \texttt{y})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y}+ \frac{t^{r^{+}}}{(r^{-})^{2}}\lambda \int _{\mathcal {U}}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}\\&\quad - \lambda \int _{\mathcal {U}} F(\texttt{x}, t\textrm{u}(\texttt{x}))\textrm{d}\texttt{x}\\&\le t^{r^{+}}\left( t^{p^{+}-r^{+}} \frac{c^{'}_{1}}{p^{+}}+ \frac{\lambda }{(r^{-})^{2}}\int _{\mathcal {U}}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}- \lambda \int _{\mathcal {U}} \frac{F(\texttt{x}, t\textrm{u}(\texttt{x}))}{t^{r^{+}}}d \texttt{x}\right) \\ {}&\rightarrow -\infty \text{ as } t \rightarrow +\infty . \end{aligned}$$

Choosing \( a<\min \left\{ \inf _{\Vert \textrm{u}\Vert \le 1 }\zeta (\textrm{u}); \frac{-\lambda \vert \mathcal {U}\vert c_{1}}{p^{+}}\right\} ,\) then for \( \textrm{u}\in \mathcal {S}^{1},\) there exists \(t_{0}>1\), such that \(\zeta (t _{0}\textrm{u})\le a.\) Therefore, if

$$\begin{aligned} \displaystyle \zeta (t \textrm{u})&=\displaystyle \widehat{M}\left( J_{s, p(\texttt{x}, \cdot )}(t\textrm{u})\right) -\lambda \int _{\mathcal {U}} \frac{1}{r(\texttt{x})} \vert t\vert ^{r(\texttt{x})} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \vert \log \vert t\textrm{u} (\texttt{x})\vert \vert \textrm{d}\texttt{x}\\&\quad +\lambda \int _{\mathcal {U}} \frac{1}{r^{2}(\texttt{x})} \vert t\vert ^{r(\texttt{x})} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}-\lambda \int _{\mathcal {U}} F(\texttt{x}, t\textrm{u}(\texttt{x}))\textrm{d}\texttt{x}\\&\le a. \end{aligned}$$

Then,

$$\begin{aligned} \displaystyle&M\left( J_{s, p(\texttt{x}, \cdot )}(t\textrm{u})\right) \int _{\mathcal {U}\times \mathcal {U}} \vert t\vert ^{p(\texttt{x}, \texttt{y})} \frac{\vert \textrm{u}(\texttt{x})-\textrm{u}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})}}{\vert \texttt{x}-\texttt{y}\vert ^{N+s p(\texttt{x}, \texttt{y})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y}\\&\qquad -\lambda \int _{\mathcal {U}} \frac{1}{r(\texttt{x})} \vert t\vert ^{r(\texttt{x})} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \vert \log \vert t\textrm{u} (\texttt{x}) \vert \vert \textrm{d}\texttt{x}\\&\quad \le \frac{p^{+}}{\theta }\left[ a+ \lambda \int _{\mathcal {U}} F(\texttt{x}, t\textrm{u}(\texttt{x}))\textrm{d}\texttt{x}\right] . \end{aligned}$$

Using (18), we get that

$$\begin{aligned} \displaystyle \frac{\textrm{d}}{\textrm{d}t}\zeta (t\textrm{u})&=\displaystyle \frac{1}{t} \left\langle \zeta ^{'}(t\textrm{u}), t\textrm{u}\right\rangle \\&= \frac{1}{t}\left( M\left( J_{s, p(\texttt{x}, \cdot )}(t\textrm{u})\right) \int _{\mathcal {U}\times \mathcal {U}} \vert t\vert ^{p(\texttt{x}, \texttt{y})} \frac{\vert \textrm{u}(\texttt{x})-\textrm{u}(\texttt{y})\vert ^{p(\texttt{x}, \texttt{y})}}{\vert \texttt{x}-\texttt{y}\vert ^{N+s p(\texttt{x}, \texttt{y})}} \textrm{d}\texttt{x} \textrm{d}\texttt{y}\right) \\&\quad -\frac{1}{t}\int _{\mathcal {U}} \vert t\vert ^{r(\texttt{x})} \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}-\frac{1}{t}\lambda \int _{\mathcal {U}} f(\texttt{x}, t\textrm{u}) t\textrm{u})\textrm{d}\texttt{x} )\\ \displaystyle&\le \frac{1}{t}\left( ap^{+}+ p^{+}\lambda \int _{\mathcal {U}} F(\texttt{x}, t\textrm{u}(\texttt{x}))\textrm{d}\texttt{x} - \lambda \int _{\mathcal {U}} f(\texttt{x}, t\textrm{u}) t\textrm{u})\textrm{d}\texttt{x}\right) \\ \displaystyle&\le \frac{1}{t}\left( ap^{+}+\lambda c_{1}\vert \mathcal {U}\vert \right) <0, \end{aligned}$$

where \( \vert \mathcal {U} \vert \) denote the measure of the domain \(\mathcal {U}.\) Thanks to the implicit function theorem, there exists a unique \( T\in C(\mathcal {S}^{1}, \mathbb {R})\), such that \( \zeta ( T(\textrm{u})\textrm{u})=a\) for any \(\textrm{u}\in \mathcal {S}^{1}.\) We extend T to all of \( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) by

$$\begin{aligned} \displaystyle T_{0}(\textrm{u})=\displaystyle \frac{1}{\Vert \textrm{u}\Vert } T\left( \frac{\textrm{u}}{\Vert \textrm{u}\Vert }\right) \text{ for } \text{ all } \textrm{u} \in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\backslash \lbrace 0\rbrace . \end{aligned}$$

Then, \( T_{0}\in C^{1}(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}, \mathbb {R})\backslash \lbrace 0\rbrace , \) and \(\zeta (T_{0}(\textrm{u})\textrm{u})=a.\) Also, if \( \zeta (\textrm{u})=a, \) then \( T_{0}(\textrm{u})=1.\) We define a function \( \widehat{T_{0}}:W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}) \rightarrow \mathbb {R}\) as

$$\begin{aligned} \widehat{T_{0}}(\textrm{u}):= {\left\{ \begin{array}{ll} T_{0}(\textrm{u}), \hspace{0.5cm}\text { if } \zeta (\textrm{u})\ge a,\\ 1, \hspace{1.1cm} \text{ if } \zeta (\textrm{u})< a. \end{array}\right. } \end{aligned}$$

Clearly, \( \widehat{T_{0}}\in C(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}), \mathbb {R})\backslash 0.\) Let \( h:[0, 1]\times W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\rightarrow W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) be the map defined as

$$\begin{aligned} \displaystyle h(t,\textrm{u})=\displaystyle (1-t)\textrm{u}+ t \textrm{u} \widehat{T_{0}}(\textrm{u}) \text{ for } \text{ all } (t,\textrm{u} )\in [0,1]\times W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\backslash 0. \end{aligned}$$

Evidently, we have

$$\begin{aligned} \displaystyle h(0, \textrm{u})=\displaystyle \textrm{u}, \text{ and } h(1, \textrm{u})= \widehat{T_{0}}(\textrm{u}) \textrm{u}\in \zeta ^{a}. \end{aligned}$$
(21)

From (25), we get

$$\begin{aligned} \displaystyle h(t,.)_{\vert \zeta ^{a}}=\displaystyle id_{\vert \zeta ^{a}} \text{ for } \text{ all } t\in [0, 1]. \end{aligned}$$

It follows that:

$$\begin{aligned} \zeta ^{a} \text{ is } \text{ a } \text{ strongly } \text{ deformation } \text{ of } \displaystyle W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}). \end{aligned}$$
(22)

We consider the radial retraction \( \bar{T}:W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\rightarrow \mathbb {R} \) defined by

$$\begin{aligned} \bar{T}(\textrm{u})=\frac{\textrm{u}}{\Vert \textrm{u}\Vert } \text{ for } \text{ all } \textrm{u}\in W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\backslash \lbrace 0\rbrace . \end{aligned}$$

This map is continuous and \(\bar{T}_{\vert \mathcal {S}^{1}}=id_{\vert \mathcal {S}^{1}}.\) Then, \(\mathcal {S}^{1}\) is a retract of \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\backslash \lbrace 0\rbrace .\) Let \(\bar{h}: [0,1]\times W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}) \rightarrow W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}) \) be the map defined as

$$\begin{aligned} \bar{h}(t, \textrm{u})=(1-t)\textrm{u}+ t \bar{T}(\textrm{u}). \end{aligned}$$

Clearly, we have

$$\begin{aligned} \bar{h}(0, \textrm{u})= \textrm{u}, \hspace{0.2cm} \bar{h}(0, \textrm{u}) \quad \text{ and }\quad \bar{h}(1,.)_{\vert \mathcal {S}^{1}}= id_{\vert \mathcal {S}^{1}}. \end{aligned}$$
(23)

Hence, we refer that

$$\begin{aligned} \mathcal {S}^{1} \text{ is } \text{ a } \text{ deformation } \text{ retract } \text{ of } W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\backslash \lbrace 0\rbrace . \end{aligned}$$
(24)

Combining (24) with (22), it follows that:

$$\begin{aligned} \zeta ^{a} \text { and } \mathcal {S}^{1} \text{ are } \text{ homotopy } \text{ equivalent } . \end{aligned}$$

Therefore, we have

$$\begin{aligned} \displaystyle H_{k}\left( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}), \zeta ^{a}\right) = H_{k}\left( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}), \mathcal {S}^{1}\right) \text{ for } \text{ all } \displaystyle k\in \mathbb {N}. \end{aligned}$$

We already know that the space \( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) is an infinite-dimensional Banach space and \(\mathcal {S}^{1}\) is a contractible space. See Remark 6.1.13 in [26]. Therefore, it follows that:

$$\begin{aligned} \displaystyle C_{k}\left( \zeta , \infty \right)&= \displaystyle H_{k}\left( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}), \zeta ^{a}\right) = \displaystyle H_{k}\left( W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}), \mathcal {S}^{1} \right) \nonumber \\&= \displaystyle 0 \text{ for } \text{ all } k\in \mathbb {N}. \end{aligned}$$
(25)

\(\square \)

Theorem 7

We assume that the conditions \((\mathcal {B}_{1}){-}(\mathcal {B}_{7})\) are fulfilled. Then, there exists \(k_{0}\in \mathbb {N}\), such that \(C_{k_{0}}(\zeta , 0)\ne 0\)

Proof

Evidently, the zero function is a critical point of \(\zeta .\) Since \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})\) is a separable and reflexive Banach space, from Theorems 2, 3 in [33], there exist \(\{e_{i}\}_{i=1}^{\infty }\subset W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}) \) and \(\{f_{i}\}_{i=1}^{\infty }\subset W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})^{*}\), such that

$$\begin{aligned} f_{n}(e_{m})= & {} \delta _{n, m}= \left\{ \begin{array}{ll} 1, &{}\quad \text { if } n=m,\\ 0, &{}\quad \text{ if } n\ne m, \end{array}\right. \\ W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})= & {} \overline{ \text {span} \{e_{j}: j=1, 2, \ldots \}};\,\displaystyle W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})^{*}\\= & {} \overline{ \text {span} \{f_{j}: j=1, 2, \ldots \}}. \end{aligned}$$

For convenience, we write \(X_{j}= \text {span}\{e_{j}\}, \) \(Y_{k}=\bigoplus _{j=1}^{k}X_{j}, \) and \(Z_{k}=\bigoplus _{j=k}^{\infty }X_{j}.\) Thus, we have \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})=Y_{k} \bigoplus Z_{k}.\) Let \(\textrm{u}\in Y_{k}.\) Since \(Y_{k}\) is a finite-dimensional space, we get that for given \(R>0,\) there exists \(0<\rho <1\) small, such that

$$\begin{aligned} \textrm{u}\in Y_{k}, \Vert \vert \textrm{u}\vert \Vert _{Y_{k}}<\rho \Rightarrow \vert \textrm{u}(\textrm{x})\vert <R \text { for all } \textrm{x}\in \mathcal {U}. \end{aligned}$$

Let \(0<r<R.\) We consider the following sets: \(\mathcal {U}_{1}=\left\{ \textrm{x}\in \mathcal {U}: \vert \textrm{u}(\textrm{x})\vert <r \right\} , \) \(\mathcal {U}_{2}=\left\{ \textrm{x}\in \mathcal {U}: r<\vert \textrm{u}(\textrm{x})\vert <R \right\} , \) and \(\mathcal {U}_{3}=\left\{ \textrm{x}\in \mathcal {U}: \vert \textrm{u}(\textrm{x})\vert >R \right\} .\) We put \(G(\textrm{x},t)=F(\textrm{x},t)-\frac{C}{p^{-}} \vert \textrm{u}\vert ^{\alpha (\textrm{x})}.\) Obviously, we get that \(\mathcal {U}_{i}\cap \mathcal {U}_{j}\) and \(\mathcal {U}=\cup _{i=1}^{3}\mathcal {U}_{i}.\) We combine condition \((\mathcal {B}_{7})\) with condition \((\mathcal {B}_{4}),\) and we obtain that

$$\begin{aligned} \zeta (\textrm{u})&=\widehat{M}\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u})\right) -\int _{\mathcal {U}} \frac{1}{r(\texttt{x})}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}-\lambda \int _{\mathcal {U}} F(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x}\\&\le C_{1} J_{s, p(\texttt{x}, \cdot )}(\textrm{u})-\frac{1}{r^{-}} \int _{\mathcal {U}}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}-\lambda \int _{\mathcal {U}} F(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x}\\&\le C_{1} J_{s, p(\texttt{x}, \cdot )}(\textrm{u})-\frac{1}{r^{-}} \int _{\mathcal {U}}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}-\lambda \int _{\mathcal {U}}\frac{C_{2}}{p^{+}}\vert \textrm{u}(\texttt{x}) \vert ^{\alpha (\texttt{x})}\textrm{d}\texttt{x}\\&\quad - \lambda \int _{\mathcal {U}_{1}} G(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x} - \lambda \int _{\mathcal {U}_{2}}G(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x}- \lambda \int _{\mathcal {U}_{3}} G(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x}. \end{aligned}$$

From Theorem 3, there exists a positive constant, such that

$$\begin{aligned} \vert \textrm{u}\vert _{L^{\alpha (\texttt{x})}}(\mathcal {U})\le C\Vert \textrm{u}\Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}\le 2C\Vert \vert \textrm{u}\vert \Vert _{Y_{k}}\le 2C\rho . \end{aligned}$$

If \(\rho <\frac{1}{2C},\) then \(\vert \textrm{u}\vert _{L^{\alpha (\texttt{x})}(\mathcal {U})}\le 1.\) Since \(\mathcal {U}\) is compact, there exist a finite sub-covering \(\{\mathcal {Q}_{j}\}_{j=1}^{m}\), such that

$$\begin{aligned} \overline{\mathcal {U}}=\cup _{i=1}^{m}\mathcal {Q}_{i}. \end{aligned}$$

Notice that \(\int _{\mathcal {U}_{1}} G(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x} \rightarrow 0 \) as \(r\rightarrow 0.\) Therefore, we get

$$\begin{aligned} \zeta (\textrm{u})\le & {} \sum _{j=1}^{m}\left[ \vert \textrm{u}\vert ^{p^{+}}_{L^{r(\texttt{x})} (\mathcal {Q}_{j})}-\frac{1}{r^{-}}\vert \textrm{u} \vert ^{r(\texttt{x})}_{L^{r(\texttt{x})}(\mathcal {Q}_{j})}- \frac{1}{p^{+}}\vert \textrm{u} \vert ^{\alpha (\texttt{x})}_{L^{\alpha (\texttt{x})}(\mathcal {Q}_{j})}\right] - \int _{\mathcal {U}_{1}} G(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x} \\\le & {} 0. \end{aligned}$$

Let \(\textrm{u}\in Z_{k}.\) Since \(q(\texttt{x}), \) \(r(\texttt{x})<p^{*}_{s}(\textrm{x}), \) from Theorem 3, we deduce that there exist constants \(c_{1}\) and \(c_{1}\), such that

$$\begin{aligned} \vert \textrm{u}\vert _{L^{r(\texttt{x})}(\mathcal {U})}\le c_{1} \Vert \textrm{u} \Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})} \text{ and } \vert \textrm{u}\vert _{L^{\beta (\texttt{x})}(\mathcal {U})}\le c_{2} \Vert \textrm{u} \Vert _{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}. \end{aligned}$$
(26)

Using (26), \((\mathcal {B}_{4}), \) and \((\mathcal {B}_{7}), \), we deduce that

$$\begin{aligned} \zeta (\textrm{u})&= \widehat{M}\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u}) \right) -\lambda \int _{\mathcal {U}} \frac{1}{r(\texttt{x})}\left( \vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \log \vert \textrm{u}(\texttt{x})\vert - \frac{1}{r(\texttt{x})}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})}\right) \textrm{d}\texttt{x} \\&\quad -\lambda \int _{\mathcal {U}} F(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x}\\&\ge \widehat{M}\left( J_{s, p(\texttt{x}, \cdot )}(\textrm{u})\right) -\int _{\mathcal {U}} \frac{1}{r(\texttt{x})}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}-\lambda \int _{\mathcal {U}} F(\texttt{x}, \textrm{u}(\texttt{x}))\textrm{d}\texttt{x}\\&\ge m_{1}J_{s, p(\texttt{x}, \cdot )}(\textrm{u})-\frac{1}{r^{-}}\int _{\mathcal {U}}\vert \textrm{u}(\texttt{x})\vert ^{r(\texttt{x})} \textrm{d}\texttt{x}-\lambda \frac{ C_{3}}{\beta ^{-}}\int _{\mathcal {U}}\vert \textrm{u}(\texttt{x})\vert ^{\beta (\texttt{x})} \textrm{d}\texttt{x}\\&\ge \frac{m_{1}}{p^{+}}\Vert \textrm{u}\Vert ^{p^{+}}_{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}-\frac{C_{1}}{r^{-}}\Vert \textrm{u}\Vert ^{r^{-}}_{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}- \frac{C_{3}}{\beta ^{-}}\Vert \textrm{u}\Vert ^{\beta ^{-}}_{W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U})}. \end{aligned}$$

Since \(r^{-}, \beta ^{-}<p^{+}, \) we deduce that

$$\begin{aligned} \zeta (\textrm{u})>0 \text{ for } \text{ all } \textrm{u} \in Z_{k}. \end{aligned}$$

Finally, from Theorem 5, there exists \(k_{0}\in \mathbb {N}\), such that \(C_{k_{0}}(\zeta , 0)\ne 0.\)

3.1 Conclusion

By Theorems 6 and 7, we deduce that our problem admits at least three solutions in \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}).\) \(\square \)

3.2 Proof of Theorem 2

Proof

We suppose that our problem admits three solutions \(W^{s, q(\textrm{x}), p(\textrm{x}, \textrm{y})}(\mathcal {U}).\) That is, \( K _{\zeta }=\{ 0, \textrm{u}, \textrm{v}\}. \) From the Morse’s relation, it follows that:

$$\begin{aligned} C_{n}(\zeta , 0):= {\left\{ \begin{array}{ll} \mathbb {R}, \hspace{0.5cm}\text { if } n= m(0),\\ 0, \hspace{0.5cm}\text { otherwise }, \end{array}\right. } \end{aligned}$$

where m(0) is a Morse index of 0. See [6] for more details. We use Morse’s relation, and we get that

$$\begin{aligned} \displaystyle \sum _{k\ge 0} {{\,\textrm{rank }\,}}C_{k}(\zeta , \infty )X^{k}+ (1+X)Q(X) =&\displaystyle \sum _{k\ge 0} {{\,\textrm{rank }\,}}C_{k}(\zeta , 0)X^{k}+ \sum _{k\ge 0} {{\,\textrm{rank }\,}}C_{k}(\zeta , \textrm{u})X^{k}\\&+ \sum _{k\ge 0} {{\,\textrm{rank }\,}}C_{k}(\zeta , \textrm{v})X^{k}&\\ =&\displaystyle X^{m(0)} + 2 \sum _{k\ge 0} \beta _{k} X^{k}. \end{aligned}$$

From (25), it follows that:

$$\begin{aligned} \displaystyle (1+ X) Q(X)= X^{m(0)}+ 2 \sum _{k\ge 0} \beta _{k} X^{k}, \end{aligned}$$

where \( \beta _{k}\) non-negative integer and Q is a polynomial with non-negative integer coefficient. In particular, for \( X=1\), we have \( 2a= 1+ 2 \sum _{k\ge 0} \beta _{k}.\) Since \( \beta _{k}\in \mathbb {N}, \) we have that \( \sum _{k\ge 0} \beta _{k}=+\infty \) leads to a contradiction. Thus, there exist infinitely solutions to problems (1). \(\square \)