1 Introduction

As is well known, differential equations with singularities have a wide range of applications in physics, mechanics, and biology [16]. In the past years, many mathematical researchers focused their attention on the equations with singularities [720]. As is widely acknowledged, the paper [18] by Lazer and Solimini is a major milestone for the study of periodic problem to second-order differential equations with singularities. In that paper, the existence of periodic solutions was investigated for the singular equations

$$ x''(t)+\frac{1}{x^{\alpha }(t)}=h(t) $$
(1.1)

(the singularity of attractive type) and

$$ x''(t)-\frac{1}{x^{\alpha }(t)}=h(t) $$
(1.2)

(the singularity of repulsive type), where \(h:R\rightarrow R\) is a continuous periodic function. Using topological degree methods, together with the method of lower and upper functions, they obtained that a necessary and sufficient condition for the existence of positive periodic solutions to (1.1) is \(\int_{0}^{T}h(s)\,ds>0\). Furthermore, assuming that \(\alpha \ge 1\), a necessary and sufficient condition for the existence of positive periodic solutions to (1.2) is \(\int_{0}^{T}h(s)\,ds<0\). For \(\alpha \in (0,1)\) (weak singularity condition), some equations like (1.2) were given in [18], where \(h(t)\) have negative mean values, but the equations have no T-periodic solution. After that, many papers focused on the periodic problem for some second-order differential equations with singularities of repulsive type [2124]. Among them, the singular term was allowed to have a weak singularity (i.e., \(\alpha \in (0,1)\)). Compared with the singularity of repulsive type, the attractive case did not attract much attention of mathematical researchers. Even so, there are still quite a few papers that focus on the study of periodic solutions for the equations with attractive singularities [7, 16, 17, 20]. For example, Mawhin [7] considered the problem of periodic solutions to the Liénard equation with a attractive singularity suggested by the fundamental example

$$ \bigl(\bigl\vert x' \bigr\vert ^{p-2}x'\bigr)'+f(x)x'+ \frac{l}{x^{\mu }}=h(t), $$
(1.3)

where \(p>1\), \(l>0\), and \(\mu >0\) are constants, and \(h\in L^{\infty }(0,T)\). Using the method of upper and lower functions, they obtained that \(\int_{0}^{T}h(s)\,ds>0\) is a necessary and sufficient condition for the existence of positive periodic solutions for equation (1.3). Hakl and Torres [16] obtained sufficient conditions guaranteeing the existence of positive solutions to the periodic problem associated to the equation of Rayleigh–Plesset type

$$\begin{aligned}& x''+f\bigl(x(t)\bigr)x'(t)+ \varphi (t)x^{\sigma }+\frac{g_{1}}{x^{\upsilon }}-\frac{g _{2}}{x^{\gamma }}=0, \end{aligned}$$
(1.4)
$$\begin{aligned}& x(0)=x(T),\qquad x'(0)=x'(T), \end{aligned}$$
(1.5)

where \(g_{1}\), \(g_{2}\), σ are nonnegative constants, c, μ, υ, γ are real numbers, and \(h_{0}\in L([0,T];R)\). For the case of \(\delta =1\), \(g_{1}>0\), and \(g_{2}=0\), they obtained the following result.

Theorem 1.1

Let \(\delta =1\), \(g_{1}>0\), and \(g_{2}=0\). If \(\bar{\varphi }<0\) and

$$ \frac{T}{4} \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds< \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds, $$

then there exists at least one positive solution to problem (1.4)(1.5).

It is easy to see that in either equation (1.3) or the equation in problem (1.4)–(1.5), the singular terms are all autonomous. Despite the fact that there are many papers focusing on the equation with nonautonomous singularity term of repulsive type [2125], equations with nonautonomous singularity term of attractive type seem to receive little attention. We have found only the paper by Hakl and Zamora [17], who studied the following equations with a singularity of attractive type:

$$ x''+\frac{g(t)}{x^{\lambda }}=h(t)x^{\delta }, $$
(1.6)

where \(\lambda >0\), \(\delta \in [0,1)\), g, \(h\in L([0,T];R)\), and g is a nonnegative function. Using a continuation theorem of coincidence degree theory, they obtained a new result on the existence of positive periodic solutions to (1.6). However, the exponent δ in the power function \(x^{\delta }\) is required to satisfy \(\delta \in [0,1)\), and there is no friction term of Liénard type \(f(x)x'\) in (1.6). For other recent developments and applications in this field, we refer the reader to [16, 23, 2631]. Inspired by the papers mentioned, the aim of this paper is to study the periodic problem

$$\begin{aligned}& x''+f(x)x'+\varphi (t)x+ \frac{r(t)}{x^{\mu }}=0, \end{aligned}$$
(1.7)
$$\begin{aligned}& x(0)=x(T),\qquad x'(0)=x'(T), \end{aligned}$$
(1.8)

where f belongs to \(C((0,\infty );R)\) and may have singularities at zero, r, \(\varphi : R\rightarrow R\) are T-periodic functions with \(r,\varphi \in L([0,T];R)\), and μ is a positive constant. Since \(r(t)\) is a time-varying function, (1.7) describes the nature processes more accurately. Observe that in the case where \(r(t)\) is equal to zero for some subinterval of \([0,T]\), the singularity can disappear. So the singularity \(\frac{r(t)}{x^{\mu }}\) in equation (1.7) is said to be of indefinite attractive type. Using the method of lower and upper functions, we obtain some new results on the existence of positive solutions to boundary value problem (1.7)–(1.8). The significance is that the methods for constructing lower and upper functions in [16] cannot be directly applied to (1.7), since the singularity term \(\frac{r(t)}{x^{ \mu }}\) in (1.7) is nonautonomous, and \(r(t)\) may be equal to zero at some \(t\in [0,T]\).

Remark 1.1

In this paper, a function \(u:[0,T]\rightarrow (0,+\infty )\) is said to be a positive solution to problem (1.7)–(1.8) if \(u:[0,T]\rightarrow R_{+}\) is absolutely continuous together with its first derivative on \([0,T]\) and satisfies (1.8) together with (1.7) almost everywhere on \([0,T]\). From this definition, r, \(\varphi : R\rightarrow R\) being T-periodic, we can easily find that if \(u_{0}: [0,T]\rightarrow R\) is a positive solution to boundary value problem (1.7)–(1.8), then \(\tilde{u}: R\rightarrow R\), which is a T-periodic extension of \(u_{0}(t)\), is a positive T-periodic solution to (1.7). Thus, the existence of positive periodic solutions to (1.7) is equivalent to the existence of positive solutions to boundary value problem (1.7)–(1.8).

For convenience, in the end of this introduction, we give some notations used throughout the paper:

\(R_{+}=(0,+\infty )\), \(R_{+}^{0}=[0,+\infty )\), \([x]_{+}= \max \{x,0 \}\), \([x]_{-}=\max \{-x,0\}\); \(AC^{1}([0,T];R)\) is the set of functions \(u:[0,T]\rightarrow R\) such that u and \(u'\) are absolutely continuous; \(\overline{p}=\frac{1}{T}\int_{0}^{T}\vert p(s) \vert \,ds\) for \(p\in L([0,T];R)\).

2 Preliminary lemmas

The method of lower and upper functions is one of the most widely used methods in nonlinear analysis. Its main idea goes back at least to Picard. Many mathematical researchers have obtained rich results by using this method. For a complete historical review of the method, we refer to the monograph [32]. Now, we give the definitions of upper and lower functions.

Definition 2.1

A function \(\alpha \in AC^{1}([0,T];R)\) is called a lower function to problem (1.7)–(1.8) if \(\alpha (t)>0\) for every \(t\in [0,T]\) and

$$\begin{aligned}& \alpha ''(t)+f\bigl(\alpha (t)\bigr)\alpha '(t)+\varphi (t)\alpha (t)+\frac{r(t)}{ \alpha^{\mu }(t)}\geq 0, \quad \mbox{a.e. }t\in [0,T], \\& \alpha (0)=\alpha (T),\qquad\alpha '(0)\geq \alpha '(T). \end{aligned}$$

Definition 2.2

A function \(\beta \in AC^{1}([0,T];R)\) is called an upper function to problem (1.7)–(1.8) if \(\beta (t)>0\) for every \(t\in [0,T]\) and

$$\begin{aligned}& \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)+\varphi (t)\beta (t)+\frac{r(t)}{ \beta^{\mu }(t)}\leq 0, \quad \mbox{a.e. } t\in [0,T], \\& \beta (0)=\beta (T),\qquad \beta '(0)\leq \beta '(T). \end{aligned}$$

The following proposition can be found in [32] (or a more general case in [33]).

Proposition 2.1

Let α and β be lower and upper functions to problem (1.7)(1.8) such that

$$ \alpha (t)\leq \beta (t), \quad t\in [0,T]. $$

Then there exists a positive solution u to problem (1.7)(1.8) such that

$$ \alpha (t)\leq u(t)\leq \beta (t), \quad t\in [0,T]. $$

We further show some auxiliary results obtained by Hakl, Torres and Zamora [16].

Given \(x_{1}\in R_{+}\) and \(x_{0}\in R_{+}^{0}\) as fixed constants and the operator \(K:C^{1}([0,T];R)\rightarrow C^{1}([0,T];R)\) defined by

$$ K(u) (t)=x_{1}+x_{0}\bigl(u(t)-\min \bigl\{ u(s):s\in [0,T]\bigr\} \bigr), \quad t\in [0,T], $$
(2.1)

we consider the auxiliary problem

$$\begin{aligned}& x''(t)+f\bigl(K(x) (t) \bigr)x'(t)=q(t), \quad \mbox{a.e. } t\in [0,T], \end{aligned}$$
(2.2)
$$\begin{aligned}& x(0)=0,\qquad x(T)=0, \end{aligned}$$
(2.3)

where \(f\in C(R_{+};R)\) and \(q\in L([0,T];R)\). By a solution to problem (2.2)–(2.3) we understand a function \(u\in AC^{1}([0,T];R)\) that satisfies (2.2) almost everywhere on \([0,T]\) and (2.3).

Lemma 2.1

([16])

For every solution u to problem

$$\begin{aligned}& x''(t)+\lambda f\bigl(K(x) (t) \bigr)x'(t)=\lambda q(t), \quad \textit{a.e. } t\in [0,T], \end{aligned}$$
(2.4)
$$\begin{aligned}& x(0)=0,\qquad x(T)=0, \end{aligned}$$
(2.5)

with \(\lambda \in (0,1]\), we have the estimate

$$ M-m\leq \frac{T}{4}\max \biggl\{ \int_{0}^{T}\bigl[q(s)\bigr]_{+}\,ds, \int_{0}^{T}\bigl[q(s)\bigr]_{-}\,ds \biggr\} , $$
(2.6)

where \(M=\max \{u(t):t\in [0,T]\}\), \(m=\min \{u(t):t\in [0,T]\}\).

Lemma 2.2

([16])

For all \(x_{1}\in R_{+}\), \(x_{0}\in R_{+}^{0}\), and \(q\in L([0,T];R)\), there exists a solution \(u(t)\) to problem (2.2)(2.3). Furthermore,

$$ u'(T)-u'(0)= \int_{0}^{T}q(s)\,ds, $$
(2.7)

and (2.6) is fulfilled.

Lemma 2.3

If \(h,\alpha \in L([0,T],R)\) and \(\alpha (t)\ge 0\) for a.e. \(t\in [0,T]\), then

$$ \lim_{n\rightarrow +\infty } \int_{0}^{T} \biggl[h(s)- \frac{\alpha (s)}{n} \biggr]_{+}\,ds= \int_{0}^{T}\bigl[h(s)\bigr]_{+}\,ds. $$

Proof

Let

$$ h_{n}(t)= \textstyle\begin{cases} \frac{\alpha (t)}{n}, &h(t)> \frac{\alpha (t)}{n}, \\ h(t),& h(t)\le \frac{\alpha (t)}{n}. \end{cases} $$

Then we have

$$ h(t)=h_{n}(t)+\biggl[h(t)-\frac{\alpha (t)}{n}\biggr]_{+}. $$

Moreover,

$$ \int_{0}^{T}h(s)\,ds= \int_{0}^{T}h_{n}(s)\,ds+ \int_{0}^{T}\biggl[h(s)-\frac{ \alpha (s)}{n} \biggr]_{+}\,ds. $$
(2.8)

By the definition of \(h_{n}(t)\) we obtain

$$ \lim_{n\rightarrow +\infty }h_{n}(t)\rightarrow f(t), \quad\mbox{a.e. } t\in [0,T], $$

where

$$ f(t)= \textstyle\begin{cases} h(t), & \mbox{a.e. } t\in E_{-}(h), \\ 0,& \mbox{a.e. } t\in E_{+}(h), \end{cases} $$

\(E_{-}(h)=\{t\in [0,T]: h(t)\le 0\}\), \(E_{+}(h)=\{t\in [0,T]: h(t)> 0\}\), and

$$ -\bigl[h(t)\bigr]_{-}\le h_{n}(t)\le h(t). $$

By the Lebesgue dominated convergence theorem we get

$$ \lim_{n\rightarrow +\infty } \int_{0}^{T}h_{n}(t)\,dt= \int_{0}^{T}f(t)\,dt=- \int_{0}^{T}\bigl[h(t)\bigr]_{-}\,dt. $$

Substituting this into (2.8), we obtain

$$ \lim_{n\rightarrow +\infty } \int_{0}^{T}\biggl[h(s)-\frac{\alpha (s)}{n} \biggr]_{+}\,ds= \int_{0}^{T}\bigl[h(s)\bigr]_{+}\,ds. $$

The proof is complete. □

3 Main results

3.1 Construction of lower function

In this section, we use the notations

$$\begin{aligned}& Y_{+}=\int_{0}^{T}\bigl[y(s)\bigr]_{+}\,ds, \\& Y_{-}= \int_{0}^{T}\bigl[y(s)\bigr]_{-}\,ds, \end{aligned}$$

where \(y\in L([0,T];R)\).

Theorem 3.1

Let \(\varphi ,r\in L([0,T],R)\) be such that \(\operatorname{ess} \inf \{r(t):t \in [0,T]\}>0\). Then there exists a lower function α to problem (1.7)(1.8) satisfying \(0<\alpha (t)<1\).

Proof

Let \(r_{1}>0\) be such that

$$ {\operatorname{ess}} \inf \bigl\{ r(t):t\in [0,T]\bigr\} \geq r_{1}. $$

Consider the periodic problem

$$ x''+f(x)x'+\varphi (t)x+\frac{r_{1}}{x^{\mu }}=0,\qquad x(0)=x(T),\qquad x'(0)=x'(T). $$
(3.1)

By Corollary 2.13 in [16] (with \(h_{0}(t)=-\varphi (t)\), \(\rho_{0}(x)=x\), \(g(x)=\frac{r_{1}}{x^{\mu }}, c\) sufficiently large, and \(x_{0}\in (0,1)\)) there exists a lower function α to periodic problem (3.1) such that \(0<\alpha (t)\leq x_{0}\) for \(t\in [0,T]\). Obviously, the same α is also a lower function to (1.7)–(1.8). □

Theorem 3.2

Let φ, \(r\in L([0,T],R)\), \(r(t)\ge 0\) a.e. \(t\in [0,T]\) and \(\bar{r}>0\). Suppose \(\frac{T}{4} \int_{0}^{T}[\varphi (s)]_{-}(s)\,ds<1\). Then there exists a lower function α to problem (1.7)(1.8) such that \(0<\alpha (t)<1\) for \(t\in [0,T]\).

Proof

Let

$$ y(t,x)=-\varphi (t)- \frac{r(t)}{x^{\mu +1}}\quad \mbox{for }(t,x)\in [0,T]\times (0,+\infty ). $$

Then we have

$$ Y(x)= \int_{0}^{T}y(s,x)\,ds=-T\bar{\varphi }- \frac{T\bar{r}}{x^{\mu +1}}. $$

Obviously, for a constant c satisfying \(c>-\bar{\varphi}\), there must exist a constant \(a_{1}\in (0,1)\) such that, for any \(x\in (0,a_{1})\), we have

$$ Y(x)< 0. $$

Since \(Y(x)=Y_{+}(x)-Y_{-}(x)\), we arrive at \(Y_{+}(x)< Y_{-}(x)\) for \(x\in (0,a_{1})\). By a direct calculation, for \(x\in (0,a_{1})\), we get

$$ Y_{+}(x)\le \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds. $$

Since \(Y(x)=Y_{+}(x)-Y_{-}(x)\), we obtain the following inequality as \(x\rightarrow 0^{+}\):

$$ Y_{-}(x)=Y_{+}(x)-Y(x)\ge -Y(x)=T\bar{\varphi }+ \frac{T\bar{r}}{x^{ \mu +1}}\rightarrow +\infty. $$

So, for a sufficiently small constant \(a_{1}\in (0,1)\), we have the following equality for \(x\in (0,a_{1})\):

$$ 1+\frac{T}{4}Y_{-}(x)> \frac{1}{1-\frac{T}{4}\int_{0}^{T}[\varphi (s)]_{-}\,ds}. $$
(3.2)

Choose a constant \(x_{2}\in (0,a_{1})\), and let \(x_{1}=(1-\frac{T}{4}Y _{+}(x_{2}))x_{2}\). Since \(\frac{T}{4}\int_{0}^{T}[\varphi (s)]_{-}\,ds<1\) by assumption, we have \(1-\frac{T}{4}Y_{+}(x_{2})>0\), which ensures that \(x_{1}\) make sense. As the first case, we suppose \(Y_{+}(x_{2})>0\).

Put

$$\begin{aligned}& x_{0}=\frac{4(x_{2}-x_{1})}{T Y_{-}(x_{2})Y_{+}(x_{2})}, \\& q(t)=Y_{-}(x_{2})\bigl[y(t,x_{2})\bigr]_{+}-Y_{+}(x_{2})\bigl[y(t,x_{2})\bigr]_{-}, \quad t\in [0,T]. \end{aligned}$$
(3.3)

Now we obtain

$$ \int_{0}^{T}q(s)\,ds=0. $$
(3.4)

By Lemma 2.2 there exists a solution u to (2.2)–(2.3) such that (2.6) and (2.7) hold.

Using (2.6) and (2.7), we get

$$\begin{aligned}& M-m\leq \frac{T}{4}Y_{+}(x_{2})Y_{-}(x_{2}), \end{aligned}$$
(3.5)
$$\begin{aligned}& u'(0)=u'(T), \end{aligned}$$
(3.6)

where the constants M and m are defined in Lemma 2.1.

Put \(\alpha (t)=K(u)(t)=x_{1}+x_{0}(u(t)-\min \{u(s):s\in [0,T]\})\). Then equation (2.2) can be written as

$$ \alpha ''(t)+f\bigl(\alpha (t)\bigr) \alpha '(t)=x_{0}Y_{-}(x_{2}) \bigl[y(t,x_{2})\bigr]_{+}-x _{0}Y_{+}(x_{2}) \bigl[y(t,x_{2})\bigr]_{-} $$
(3.7)

for almost every \(t\in [0,T]\). Besides, according to (3.3), (3.5), and the definition of \(\alpha (t)\), we arrive at

$$ x_{1}\leq \alpha (t)\leq x_{2},\quad t\in [0,T]. $$
(3.8)

Then, using (3.6), we get

$$ \alpha (0)=\alpha (T),\qquad \alpha '(0)=\alpha '(T). $$
(3.9)

In addition, by the definition of \(x_{1}\), \(x_{2}\) and by (3.2) we obtain

$$\begin{aligned} x_{2}-x_{1}&=x_{2}-x_{2} \biggl(1-\frac{T}{4}Y_{+}(x_{2}) \biggr) \\ &\le x_{2}-x _{2} \biggl(1-\frac{T}{4} \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds \biggr) \\ &\le x_{2}-\frac{x_{2}}{1+\frac{T}{4}Y_{-}(x_{2})}=\frac{\frac{T}{4}Y _{-}(x_{2})x_{2}}{1+\frac{T}{4}Y_{-}(x_{2})} \\ &\le \frac{T}{4}Y_{-}(x_{2})x_{2} \biggl(1-\frac{T}{4}Y_{+}(x_{2}) \biggr) \\ &=\frac{x_{1}}{1-\frac{T}{4}Y_{+}(x_{2})} \biggl(1-\frac{T}{4}Y_{+}(x _{2}) \biggr)\frac{T}{4}Y_{-}(x_{2}) \\ &=\frac{T}{4}Y_{-}(x_{2})x_{1}. \end{aligned}$$
(3.10)

From the definition of \(x_{1}\), \(x_{2}\), we arrive at

$$ x_{2}-x_{1}=\frac{T}{4}x_{2}Y_{+}(x_{2}). $$
(3.11)

Using (3.3) and (3.10), we get

$$ x_{0}Y_{+}(x_{2})= \frac{4(x_{2}-x_{1})}{TY_{-}(x_{2})}\le x_{1}. $$
(3.12)

Relations of (3.3) and (3.11) imply

$$ x_{0}Y_{-}(x_{2})= \frac{4(x_{2}-x_{1})}{TY_{+}(x_{2})}=x_{2}. $$
(3.13)

By (3.8), (3.12), (3.13) we obtain

$$ x_{0}Y_{+}(x_{2})\le \alpha (t) \le x_{0}Y_{-}(x_{2}), \quad t\in [0,T]. $$
(3.14)

Substituting (3.14) into (3.7), we get

$$ \alpha ''(t)+f\bigl(\alpha (t)\bigr) \alpha '(t)\ge \alpha (t)y(t,x_{2}),\quad \mbox{a.e. } t \in [0,T]. $$
(3.15)

By (3.8) we have

$$ -\frac{r(t)}{\alpha^{\mu +1}(t)}\le -\frac{r(t)}{x_{2}^{\mu +1}}. $$

Moreover,

$$ y(t,x_{2})=-\varphi (t)-\frac{r(t)}{x_{2}^{\mu +1}}\ge -\varphi (t)-\frac{r(t)}{ \alpha^{\mu +1}(t)}. $$
(3.16)

Substituting this into (3.15), we arrive at

$$ \alpha ''(t)+f\bigl(\alpha (t)\bigr) \alpha '(t)+\varphi (t)\alpha (t)+\frac{r(t)}{ \alpha^{\mu }(t)}\ge 0,\quad \mbox{a.e. } t\in [0,T]. $$
(3.17)

Consequently, (3.9) and (3.17) ensure that \(\alpha (t)\) is a lower function to problem (1.7)–(1.8) such that \(0<\alpha (t)<1\) for \(t\in [0,T]\).

We further consider the case of \(Y_{+}(x_{2})=0\). For this case, it is easy to see that

$$ y(t,x_{2})\le 0, $$

which means

$$ -\varphi (t)-\frac{r(t)}{x_{2}^{\mu +1}}\leq 0, $$

that is,

$$ \varphi (t)x_{2}+\frac{r(t)}{x_{2}^{\mu }}\geq 0. $$

Obviously, \(\alpha (t)=x_{2}\) is a lower function to problem (1.7)–(1.8), and \(0<\alpha (t)<1\) for \(t\in [0,T]\). □

3.2 Construction of upper function

Theorem 3.3

Let r, \(\varphi \in L([0,T],R)\) be such that \(\operatorname{ess} \sup \{r(t):t \in [0,T]\}<+\infty \). Let, moreover,

$$ \frac{T}{4} \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds \leq \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds. $$
(3.18)

Then there exists an upper function \(\beta (t)\) to problem (1.7)(1.8), and \(\beta (t)>1\) for \(t\in [0,T]\).

Proof

Since \(\operatorname{ess} \sup \{r(t):t\in [0,T]\}<+\infty \), there exists a constant \(c_{1}\in R\) such that

$$ \operatorname{ess} \sup \bigl\{ r(t):t\in [0,T]\bigr\} \leq c_{1}, $$

which results in

$$ \lim_{x\rightarrow \infty }\frac{r(t)}{x^{\mu +1}}=0 \quad\mbox{uniformly for a.e. } t\in [0,T]. $$

Thus there exist \(1< a_{1}(\varepsilon )\leq a_{2}(\varepsilon )<+ \infty \) such that

$$ \frac{r(t)}{x^{\mu +1}}\leq \varepsilon \quad \mbox{for every } x \in \bigl[a_{1}(\varepsilon ),a_{2}(\varepsilon )\bigr], \mbox{ a.e. } t\in [0,T]. $$
(3.19)

Let \(\psi (t)=-\varphi (t)-\varepsilon \). By Lemma 2.3 we have

$$ \lim_{\varepsilon \rightarrow 0} \int_{0}^{T}\bigl[-\varphi (t)-\varepsilon \bigr]_{+}\,ds= \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds, $$

namely,

$$ \lim_{\varepsilon \rightarrow 0} \int_{0}^{T}\bigl[\psi (t)\bigr]_{+}\,ds= \int_{0} ^{T}\bigl[\varphi (t)\bigr]_{-} \,ds. $$

We easily have

$$ \lim_{\varepsilon \rightarrow 0} \int_{0}^{T}\bigl[\psi (t)\bigr]_{-}\,ds= \int_{0} ^{T}\bigl[\varphi (t)\bigr]_{+} \,ds. $$

Arguing as before, (3.18) is equal to

$$ \frac{T}{4} \int_{0}^{T}\bigl[\psi (t)\bigr]_{+}\,ds \int_{0}^{T}\bigl[\psi (t)\bigr]_{-}\,ds \leq \int_{0}^{T}\bigl[\psi (t)\bigr]_{+}\,ds- \int_{0}^{T}\bigl[\psi (t)\bigr]_{-}\,ds, $$
(3.20)

which implies \(\bar{\psi }\geq 0\), that is, \(\Psi_{+}\geq \Psi_{-} \geq 0\). As a first case, we suppose \(\Psi_{-}>0\).

Put

$$\begin{aligned}& a_{0}=\frac{4(a_{2}-a_{1})}{T\Psi_{+}\Psi_{-}}, \end{aligned}$$
(3.21)
$$\begin{aligned}& q(t)=\Psi_{-}\bigl[\psi (t)\bigr]_{+}- \Psi_{+}\bigl[\psi (t)\bigr]_{-},\quad \mbox{a.e. } t \in [0,T]. \end{aligned}$$
(3.22)

From the definition of \(q(t)\) we have

$$ \int_{0}^{T}q(s)\,ds=0. $$
(3.23)

By Lemma 2.2 there exists a solution u to problem (2.2)–(2.3) such that (2.6) and (2.7) hold. By (2.6) and (2.7) we get

$$\begin{aligned}& M-m\leq \frac{T}{4}\Psi_{+}\Psi_{-}, \end{aligned}$$
(3.24)
$$\begin{aligned}& u'(0)=u'(T), \end{aligned}$$
(3.25)

where the constants M and m are defined in Lemma 2.1.

Let \(\beta (t)=K(u)(t)=a_{1}+a_{0}(u(t)-\min \{u(s):s\in [0,T]\})\). The function β satisfies

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)=a_{0}\Psi_{-}\bigl[\psi (t) \bigr]_{+}-a_{0} \Psi_{+}\bigl[\psi (t) \bigr]_{-},\quad \mbox{a.e. } t\in [0,T]. $$
(3.26)

Using (3.24), (3.25), and the definition of \(\beta (t)\), we obtain

$$\begin{aligned}& a_{1}\leq \beta (t)\leq a_{2}, \end{aligned}$$
(3.27)
$$\begin{aligned}& \beta (0)=\beta (T),\qquad \beta '(0)=\beta '(T). \end{aligned}$$
(3.28)

Putting \(a_{2}=a_{1}+\frac{T}{4}a_{1}\Psi_{+} \) and combining with (3.20), we arrive at

$$ a_{2}\Psi_{-}\leq a_{1} \Psi_{+}. $$
(3.29)

The definition of \(a_{0}\) and (3.29) imply

$$ a_{2}\leq a_{0}\Psi_{+}, \qquad a_{1}=a_{0}\Psi_{-}. $$

From \(a_{1}\leq \beta (t)\leq a_{2}\) we get

$$ a_{0}\Psi_{-}\leq \beta (t)\leq a_{0}\Psi_{+}. $$
(3.30)

Substituting (3.30) into (3.26), we arrive at

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)\leq \beta (t)\bigl[\psi (t)\bigr]_{+}-\beta (t) \bigl[\psi (t)\bigr]_{-}=\beta (t)\psi (t)\quad \mbox{a.e. } t\in [0,T], $$
(3.31)

which, together with (3.19) and (3.27), gives

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)\leq \beta (t) \biggl(-\varphi (t)-\frac{r(t)}{ \beta^{\mu +1}(t)}\biggr), \quad \mbox{a.e. } t\in [0,T], $$
(3.32)

that is,

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)+\beta (t)\varphi (t)+\frac{r(t)}{ \beta^{\mu }(t)}\leq 0,\quad \mbox{a.e. } t\in [0,T]. $$
(3.33)

Consequently, by Definition 2.2, (3.33), and (3.28), we get that \(\beta (t)\) is an upper function to problem (1.7)–(1.8) and \(\beta (t)>1\).

Now, we consider the case of \(\Psi_{-}=0\). For this case, it is easy to see that \(\psi (t)\geq 0\) for a.e. \(t\in [0,T]\). By Lemma 2.2, when \(q(t)=0\), there is a solution u to (2.2)–(2.3) satisfying (3.24) and (3.25). Let \(\beta (t)=K(u)(t)=a_{1}+a_{0}(u(t)-\min \{u(s):s\in [0,T]\})\). Then \(\beta (t)\geq 0\) for all \(t\in [0,T]\), and (3.26) can be rewritten as

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)=0. $$

Since \(\beta (t)\psi (t)\geq 0\) for a.e. \(t\in [0,T]\), we get

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)\leq \beta (t)\psi (t)=\beta (t) \bigl(- \varphi (t)-\varepsilon \bigr),\quad \mbox{a.e. } t\in [0,T], $$

which, together with (3.19), yields

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)\leq \beta (t) \biggl(-\varphi (t)-\frac{r(t)}{ \beta^{\mu +1}(t)}\biggr), \quad \mbox{a.e. } t\in [0,T], $$

that is,

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)+\beta (t)\varphi (t)+\frac{r(t)}{ \beta^{\mu }(t)}\leq 0,\quad \mbox{a.e. } t\in [0,T]. $$
(3.34)

Consequently, by Definition 2.2, (3.28), and (3.34) we get that \(\beta (t)\) is an upper function to problem (1.7)–(1.8) and \(\beta (t)>1\). □

Theorem 3.4

Let \(\varphi ,r \in L([0,T],R)\), and let \(r(t)\ge 0\) for a.e. \(t \in [0,T]\). Suppose that

$$ \frac{T}{4} \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds< \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds. $$
(3.35)

Then there exists an upper function \(\beta (t)\) to problem (1.7)(1.8), and \(\beta (t)>1\).

Proof

Put \(z(t,x)=-\varphi (t)- \frac{r(t)}{x^{\mu +1}}\), \((t,x)\in [0,T]\times (0,+\infty )\). Then

$$ Z(x)= \int_{0}^{T}z(s,x)\,ds=-T\bar{\varphi }- \frac{T\bar{r}}{x^{\mu +1}}. $$

Using the definition of \(Z(x)\), we easily obtain that \(Z(x)\rightarrow -T\bar{\varphi }\) as \(x\rightarrow +\infty \). Furthermore, by Lemma 2.3 we get

$$ Z_{+}(x)\rightarrow \Phi_{-}, \qquad Z_{-}(x)\rightarrow \Phi_{+},\quad x\rightarrow +\infty . $$
(3.36)

The condition \(r(t)>0\), a.e. \(t\in [0,T]\), gives that

$$ Z_{+}(x)\le \Phi_{-},\qquad Z_{-}(x)\ge \Phi_{+} \quad \mbox{for } x\in (0,+ \infty ). $$

Also, (3.36) implies that there exist a constant \(\varepsilon _{0}\in (0,1)\) (small enough) and a constant \(\rho \in (1,+\infty )\) (large enough) such that

$$ \Phi_{-}-\varepsilon_{0}< Z_{+}(x)\le \Phi_{-},\qquad \Phi_{+}\le Z _{-}(x)< \Phi_{+}+\varepsilon_{0},\quad x\in ( \rho ,+\infty ), $$
(3.37)

and

$$ \frac{T}{4} \biggl( \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds+\varepsilon_{0} \biggr) \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds\leq \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds-2\varepsilon_{0}. $$
(3.38)

We consider the case \(Z_{-}(a_{1})>0\) as the first case. Put \(a_{1}\in (\rho ,+\infty )\) and \(a_{2}= a_{1}+\frac{T}{4}a_{1}Z_{+}(a _{1})\). Then \(a_{2}\in (\rho ,+\infty )\). Let

$$\begin{aligned}& a_{0}=\frac{4(a_{2}-a_{1})}{TZ_{+}(a_{1})Z_{-}(a_{1})}, \end{aligned}$$
(3.39)
$$\begin{aligned}& q(t)=Z_{+}(a_{1})\bigl[z(t,a_{1}) \bigr]_{-}-Z_{+}(a_{1})\bigl[z(t,a_{1}) \bigr]_{-},\quad \mbox{a.e. } t\in [0,T]. \end{aligned}$$
(3.40)

Clearly,

$$ \int_{0}^{T}q(s)\,ds=0. $$
(3.41)

By Lemma 2.2 there exists a solution u to (2.2)–(2.3) satisfying (2.6) and (2.7). In view of (2.6) and (2.7), we get

$$\begin{aligned}& M-m\leq \frac{T}{4}Z_{+}(a_{1})Z_{-}(a_{1}), \end{aligned}$$
(3.42)
$$\begin{aligned}& u'(0)=u'(T), \end{aligned}$$
(3.43)

where the constants M and m are defined in Lemma 2.1. Put

$$ \beta (t)=K(u) (t)=a_{1}+a_{0}\bigl(u(t)- \min \bigl\{ u(s):s\in [0,T]\bigr\} \bigr). $$
(3.44)

Then (2.2) can be rewritten as

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)=a_{0}Z_{-}(a_{1}) \bigl[z(t,a_{1})\bigr]_{+}-a _{0}Z_{+}(a_{1}) \bigl[z(t,a_{1})\bigr]_{-}, $$
(3.45)

a.e. \(t\in [0,T]\). So

$$\begin{aligned}& 1< \rho < a_{1}\leq \beta (t)\leq a_{2}, \quad t\in [0,T], \end{aligned}$$
(3.46)
$$\begin{aligned}& \beta (0)=\beta (T),\qquad \beta '(0)=\beta '(T). \end{aligned}$$
(3.47)

From (3.37), (3.38), and the definition of \(a_{2}\) it follows that

$$ \begin{aligned} a_{2}Z_{-}(a_{1}) &\le a_{2}(\Phi_{+}+\varepsilon_{0})= \biggl(a_{1}+ \frac{T}{4}a_{1}Z_{+}(a_{1}) \biggr) (\Phi_{+}+\varepsilon_{0}) \\ &\le a_{1}\biggl(1+\frac{T}{4}\Phi_{-}\biggr) ( \Phi_{+}+\varepsilon_{0}) \\ &=a_{1}(\Phi_{+}+\varepsilon_{0})+ \frac{T}{4}a_{1}\Phi_{-}(\Phi_{+}+ \varepsilon_{0}) \\ &< a_{1}(\Phi_{+}+\varepsilon_{0})+( \Phi_{-}-\Phi_{+}-2\varepsilon _{0})a_{1} \\ &=a_{1}(\Phi_{-}-\varepsilon_{0}) \\ &< Z_{+}(a_{1})a_{1}. \end{aligned} $$
(3.48)

Using (3.48) and the definition of \(a_{0}\), we get

$$ a_{2}\leq a_{0}Z_{+}(a_{1}), \qquad a_{1}=a_{0}Z_{-}(a_{1}). $$
(3.49)

Because of \(a_{1}\leq \beta (t)\leq a_{2}\), we have

$$ \beta (t)\leq a_{0}Z_{+}(a_{1}),\qquad \beta (t)\geq a_{0}Z_{-}(a_{1}). $$

Substituting this into (3.45), we obtain

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)\leq \beta (t)\bigl[z(t,a_{1})\bigr]_{+}- \beta (t)\bigl[z(t,a_{1})\bigr]_{-}=\beta (t)z(t,a_{1}), $$
(3.50)

a.e. \(t\in [0,T]\), that is,

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)\leq \beta (t) \biggl(-\varphi (t)-\frac{r(t)}{a _{1}^{\mu +1}} \biggr), \quad \mbox{a.e. } t\in [0,T]. $$

By the inequality \(\beta (t)\ge a_{1}\), \(t\in [0,T]\) (see (3.46)), we get that

$$ \beta ''(t)+f\bigl(\beta (t)\bigr)\beta '(t)+\beta (t)\varphi (t)+\frac{r(t)}{ \beta^{\mu }(t)}\leq 0\quad \mbox{a.e. } t\in [0,T]. $$
(3.51)

From (3.51) and (3.47) we see that \(\beta (t)\) is an upper function to problem (1.7)–(1.8), and \(\beta (t)>1\) for all \(t\in [0,T]\).

Now, we consider the remaining case \(Z_{-}(a_{1})=0\). Under this situation, we have \(z(t,a_{1})\ge 0\) for \(t\in [0,T]\), which implies

$$ -\varphi (t)-\frac{r(t)}{a_{1}^{\mu +1}}\geq 0, $$

that is,

$$ \varphi (t)a_{1}+\frac{r(t)}{a_{1}^{\mu }}\leq 0. $$

Obviously, \(\beta (t)=a_{1}\) is an upper function to problem (1.7)–(1.8). □

3.3 Existence theorems

Theorem 3.5

Let \(\varphi ,r\in L([0,T],R)\) be such that

$$ \operatorname{ess}\inf \bigl\{ r(t):t\in [0,T]\bigr\} >0, \qquad \operatorname{ess}\sup \bigl\{ r(t):t\in [0,T]\bigr\} < +\infty . $$

Let, moreover,

$$ \frac{T}{4} \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds \leq \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds. $$

Then there exists at least one positive T-periodic solution to problem (1.7).

Proof

By Theorems 3.1 and 3.3 there exist a lower function \(0<\alpha (t)<1\) and an upper function \(\beta (t)>1\). Therefore, the result can be obtained directly from Proposition 2.1 and Remark 1.1 in Sect. 1. □

Example 3.1

Consider the following second-order differential equation:

$$ x''(t)+\frac{x'(t)}{x^{3}}-(2+\sin {t})x(t)+\frac{2+\sin {t}}{x^{ \mu }(t)}=0, $$
(3.52)

where \(\mu \in (0,+\infty )\) is a constant.

 From the equation we see that \(\varphi (t)=-2-\sin {t}\) and \(r(t)=2+\sin {t}\); obviously, \(r, \varphi \in L([0,T],R)\), and \(1\leq r(t)\leq 3\). By direct calculation we get

$$\begin{aligned}& \int_{0}^{2\pi }\bigl[\varphi (s)\bigr]_{+} \,ds= \int_{0}^{2\pi }0\,ds=0, \\& \int_{0}^{2\pi }\bigl[\varphi (s)\bigr]_{-} \,ds= \int_{0}^{2\pi } (2+\sin {s})\,ds=4 \pi , \end{aligned}$$

and we arrive at

$$\begin{aligned}& \frac{T}{4} \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds=0, \\& \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds=4 \pi . \end{aligned}$$

Consequently, all the conditions of Theorem 3.5 are satisfied. So by this theorem we get that there exists at least one positive T-periodic solution to equation (3.52).

Theorem 3.6

Let \(\varphi , r\in L([0,T],R)\) be such that

$$ r(t)\geq 0, \quad \textit{a.e. } t\in [0,T], $$

and

$$ \frac{T}{4} \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds< \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds. $$

Then there exists at least one positive T-periodic solution to problem (1.7).

Proof

By Theorems 3.1 and 3.4 there exist a lower function \(0<\alpha (t)<1\) and an upper function \(\beta (t)>1\). Therefore, the result is a direct consequence of Proposition 2.1 and Remark 1.1 in Sect. 1. □

Example 3.2

Consider the following second-order differential equation:

$$ x''(t)+\frac{x'(t)}{x^{\frac{1}{3}}}-\biggl(1+ \frac{1}{2}\sin {t}\biggr)x(t)+\frac{1+ \frac{1}{2}\cos {t}}{x^{\mu }(t)}=0, $$
(3.53)

where \(\mu \in (0,+\infty )\) is a constant.

From the equation we see that \(\varphi (t)=-1-\frac{1}{2} \sin {t}\) and \(r(t)=1+\frac{1}{2}\cos {t}\geq 0\); obviously, \(r, \varphi \in L([0,T],R)\). By direct calculation we have

$$\begin{aligned}& \int_{0}^{2\pi }\bigl[\varphi (s)\bigr]_{+} \,ds=0, \\& \int_{0}^{2\pi }\bigl[\varphi (s)\bigr]_{-} \,ds= \int_{0}^{2\pi }\biggl(1+\frac{1}{2} \sin {s} \biggr)\,ds=2\pi , \end{aligned}$$

and we arrive at

$$\begin{aligned}& \frac{T}{4} \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds=0, \\& \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds=2 \pi . \end{aligned}$$

Consequently, all the conditions of Theorem 3.6 are satisfied, and so by this theorem there exists at least one positive T-periodic solution to equation (3.53).

Theorem 3.7

Let \(\varphi , r\in L([0,T],R)\). Suppose that the following assumptions hold:

  1. (1)

    \(r(t)\ge 0\) for a.e. \(t\in [0,T]\), \(\bar{r}>0\), and \(\operatorname{ess} \sup \{r(t)\}<+\infty \);

  2. (2)

    \(\frac{T}{4}\int_{0}^{T}[\varphi (s)]_{-}\,ds<1\);

  3. (3)

    \(\frac{T}{4}\int_{0}^{T}[\varphi (t)]_{+}\,ds\int_{0}^{T}[\varphi (t)]_{-}\,ds \leq \int_{0}^{T}[\varphi (t)]_{-}\,ds-\int_{0}^{T}[\varphi (t)]_{+}\,ds\).

Then there exists at least one positive T-periodic solution to problem (1.7).

Proof

By Theorems 3.2 and 3.3 there exist a lower function \(0<\alpha (t)<1\) and an upper function \(\beta (t)>1\). Therefore, the result is a direct consequence of Proposition 2.1 and Remark 1.1 in Sect. 1. □

Example 3.3

Consider the following second-order differential equation:

$$ x''(t)-\frac{x'(t)}{x^{\frac{1}{3}}}-(5-2\sin{t})x(t)+\frac{r(t)}{x ^{\mu }(t)}=0, $$
(3.54)

where \(\mu \in (0,+\infty )\) is a constant, and \(r: R\rightarrow R\) is T-periodic with

$$ r(t)= \textstyle\begin{cases} -1, & t=-\pi , \\ 1+\sin t,& t\in (-\pi ,\pi ]. \end{cases} $$

From equation (3.54) we see that \(\varphi (t)=-5+2\sin {t}\). Obviously, φ, \(r\in L([0,T],R)\), and condition (1) is satisfied. By direct calculation we have

$$ \frac{2\pi }{4} \int_{0}^{2\pi }\bigl[-\varphi (s)\bigr]_{-} \,ds=\frac{2\pi }{4} \int_{0}^{2\pi } 0 \,ds=0< 1. $$

This inequality implies that condition (2) is satisfied. Also, we can get the equalities

$$ \int_{0}^{2\pi }\bigl[\varphi (s)\bigr]_{-} \,ds= \int_{0}^{2\pi }(5-2\sin {s})\,ds=10 \pi $$

and

$$ \int_{0}^{2\pi }\bigl[\varphi (s)\bigr]_{+} \,ds=0, $$

which results in

$$\begin{aligned}& \frac{T}{4} \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds=0, \\& \int_{0}^{T}\bigl[\varphi (t)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (t)\bigr]_{+} \,ds=10 \pi . \end{aligned}$$

Consequently, all the conditions of Theorem 3.7 are satisfied, so by this theorem there exists at least one positive T-periodic solution to equation (3.54).

Theorem 3.8

Let φ, \(r\in L([0,T],R)\) satisfy \(\bar{r}>0\). Assume that the following conditions hold:

  1. (1)

    \(r(t)\ge 0\) for a.e. \(t\in [0,T]\);

  2. (2)

    \(\frac{T}{4}\int_{0}^{T}[\varphi (s)]_{-}(s)\,ds<1\);

  3. (3)

    \(\frac{T}{4}\int_{0}^{T}[\varphi (s)]_{+}\,ds\int_{0}^{T}[\varphi (s)]_{-}\,ds< \int_{0}^{T}[\varphi (s)]_{-}\,ds-\int_{0}^{T}[\varphi (s)]_{+}\,ds\).

Then there exists at least one positive T-periodic solution to problem (1.7).

Proof

By Theorems 3.2 and 3.4 there exist a lower function \(0<\alpha (t)<1\) and an upper function \(\beta (t)>1\). Therefore, the result follows immediately from Proposition 2.1 and Remark 1.1 in Sect. 1. □

Example 3.4

Consider the following second-order differential equation:

$$ x''(t)-f(x)x'-\biggl(1+ \frac{1}{2}\sin {t}\biggr)x(t)+\frac{r(t)}{x^{\mu }(t)}=0, $$
(3.55)

where \(f\in C((0,+\infty ),R)\), \(\mu \in (0,+\infty )\) is a constant, and \(r: R\rightarrow R\) is T-periodic defined as

$$ r(t)= \textstyle\begin{cases} 0, & t\in (0,\pi ], \\ 1+\cos {t},& t\in (-\pi ,0]. \end{cases} $$

From (3.55) we see that \(\varphi (t)=-1-\frac{1}{2} \sin {t}\). Obviously, φ, \(r\in L([0,T],R)\), and condition (1) is satisfied. By direct calculation we have

$$ \frac{T}{4} \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+}(s) \,ds=0< 1. $$

This implies that condition (2) is satisfied. Furthermore, we can also get the equalities

$$ \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds= \int_{0}^{2\pi }\biggl(1+\frac{1}{2}\sin {t} \biggr)\,ds=2\pi $$

and

$$ \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds=0, $$

which results in

$$\begin{aligned}& \frac{T}{4} \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds=0, \\& \int_{0}^{T}\bigl[\varphi (s)\bigr]_{-} \,ds- \int_{0}^{T}\bigl[\varphi (s)\bigr]_{+} \,ds=2 \pi . \end{aligned}$$

Consequently, all the conditions of Theorem 3.8 are satisfied, so that by this theorem there exists at least one positive T-periodic solution to equation (3.55).

Remark 3.1

Obviously, the conclusions associated with Examples 3.13.4 can be obtained neither by using the results of [7] nor by using the results of [16] (see Theorem 1.1), since the singularity term \(\frac{r(t)}{x^{\mu }}\) is nonautonomous. Furthermore, even if \(f(x)\equiv 0\) for \(x\in (0,+\infty )\), the above conclusion associated with Example 3.4 cannot be deduced from the main theorem of [17] (Theorem 1 of [17]). This is due to the fact that the condition of \(\delta \in [0,1)\) is required in [17].

4 Conclusions

In this paper, we study the periodic problem for Liénard equations with a singularity of attractive type in the case of \(r(t)\ge 0\) for a.e. \(t\in [0,T]\). The proofs of main results are based on the method of upper and lower functions. It is interesting that the singularity term \(\frac{r(t)}{x^{\mu }}\) in (1.7) is nonautonomous, which generalizes the corresponding results in the known literature where \(r(t)\) is a constant function. In the next research, we will continue to study the periodic problem to the singular equation like (1.7) where \(r(t)\) is a changing-sign function.