Given the first order equation
$$ y' + p(x)y=q(x) $$
where $p,q: \mathbb{R} \longrightarrow \mathbb{R} $ are continuous functions such that $p(x) \geq \alpha > 0, \forall x \in \mathbb{R}$ and $q(x) \longrightarrow 0$ if $x \longrightarrow +\infty$. Show that any solution of equation fulfills that
$$ \lim_{x \longrightarrow +\infty} y(x) = 0$$
There are probably several ways to approach this question. I believe that there is a very simple way, but unfortunately I didn't immediately see it. I did see the following way, which has a simple idea, but which is annoying to actually get right. The idea is that one can describe $y$ through the standard integrating factor, and the average behavior of the solution $y$ is determined from the behavior of $q(x)$ multiplied by something related to the integrating factor. Finally, $q(x)$ is guaranteed to be small when $x$ is large, and the contribution coming from the integrating factor is guaranteed to be small when $x$ is small. Together, these should imply that $y$ is small.
Let us now actually give the solution.
Multiply through by $e^{\int p(x) dx}$. Then the differential equation is $$ y' e^{\int p(x) dx} + p(x) y e^{\int p(x) dx} = \Big( y e^{\int p(x) dx} \Big)' = q(x) e^{\int p(x) dx}.$$ Integrating and simplifying, you have that $$ y(x) = e^{-\int p(x) dx} \int_0^x q(t) e^{\int_0^t p(u) du} dt.$$ By the integral mean value theorem, there exists some $c \in (0, x)$ such that $$ \int_0^x q(t) e^{\int_0^t p(u) du} dt = q(c) e^{\int_0^c p(u) du},$$ and thus $$y(x) = e^{-\int_0^x p(t) dt} q(c) e^{\int_0^c p(u) du} = q(c) e^{-\int_c^x p(t) dt}$$ for some $c \in (0, x)$.
To show $y$ vanishes, choose some small $\epsilon > 0$ and we will show it is eventually less than $\epsilon$. As $q(x) \to 0$, there exists some $X$ such that for all $x > X$, we have $q(x) < \epsilon$. Further, as $q \to 0$ and $q$ is continuous, $q$ attains an absolute maximum $M$ and absolute minimum $m$. Without loss of generality, I will assume that $|M| > |m|$ and that $M > 0$ (the other cases are essentially the same, but this is notationally simpler).
As $p(x) \geq a > 0$, there exists some $Y$ such that for all $y > Y$, we have for any $A$ that $$ Me^{-\int_{A}^{A+y} p(t) dt} \leq Me^{-ay} \leq \epsilon.$$
Let $Z$ be the maximum of $X$ and $Y$. Then I claim that for $x > 2Z$, we have that $y(x) < \epsilon$. Indeed, if $c \in [0, Z]$, then $$y(x) = e^{-\int_0^x p(t) dt} q(c) e^{\int_0^c p(u) du} = q(c) e^{-\int_c^x p(t) dt} \leq M e^{-\int_Z^{2Z} p(t) dt} \leq \epsilon,$$ since $Z > Y$. And if $c \in (Z, 2Z]$, then $$y(x) = e^{-\int_0^x p(t) dt} q(c) e^{\int_0^c p(u) du} = q(c) e^{-\int_c^x p(t) dt} \leq q(c) \cdot 1 \leq \epsilon,$$ as $Z > X$.
As this is true for any $\epsilon$, we must have that $y \to 0$.