Let $f(x)$ be differentiable in $x \in (0,\infty)$ and suppose $$\lim_{x \to \infty } f(x) + f'(x) = L$$ , where $L$ is finite quantity then find $$\lim_{x \to \infty } f(x) \text{ and } \lim_{x \to \infty } f'(x)$$ or can nothing definitive be said about these limits.
Intuitively it seems that $\lim_{x \to \infty } f'(x) = 0 $ because if it is not , as we approach $\infty$ , its value will keep on changing as we go farther towards right. And thus $\lim_{x \to \infty } f(x) = L $. But how to prove that this happens or if it is really this that happens.
Eg like in the function $x\sin \frac{1}{x}$, the limit approaches $0$ but it's derivative keeps oscillating. So maybe , something similar might happen at $\infty$ where the function approaches a limit but it's derivative keeps oscillating.
How do we solve it ?? Please help
Edit: As it has been pointed out that this is a possible duplicate, I must say, that the question does not have a satisfactory answer and consider the follow up argument-
If we consider the function $\frac {e^x f(x) }{e^x} $ And apply L' Hopital's Rule, as @ΜάρκοςΚαραμέρης points out Even in the case if the limit of $f(x)$ exists consider for example $f(x)=e^{-x}sin(\frac{1}{x})$, how is L Hospital applicable now? You need a formal proof that $\lim_{x\to\infty}e^xf(x)$ exists
Also as @PeterForeman point out, in the accepted answer it is assumed that $f'(x) \to 0$, instead of proving it.
First, replacing $f(x)$ by $f(x)-L$, we can reduce to the case that $L=0$. So we're given $f(x)+f'(x)\to0$ as $x\to\infty$, and the objective is to prove that $f(x)\to0$ as $x\to\infty$. It suffices to show that, given any $\varepsilon>0$, we have $f(x)<\varepsilon$ for all sufficiently large $x$. Indeed, if we can do this, then the same argument applied to $-f$ gives $f(x)>-\varepsilon$ and therefore $|f(x)|<\varepsilon$ for all sufficiently large $x$.
So let an arbitrary $\varepsilon>0$ be given. By assumption, we can fix some number $A$ such that $f(x)+f'(x)<\varepsilon/3$ for all $x>A$. Of course, if $f(x)<\varepsilon$ for all $x>A$, then we have what we need.
So suppose that we have some $B>A$ with $f(B)\geq\varepsilon$. Since we have, by our choice of $A$, $f(B)+f'(B)<\varepsilon/3$, it follows that $f'(B)<-2\varepsilon/3$. Similarly, if we consider any $C>B$ such that $f(x)\geq2\varepsilon/3$ throughout the interval $[B,C]$, then throughout this interval we also have $f'(x)<-\varepsilon/3$. By the mean value theorem, there is a point $y\in[B,C]$ such that $$ \frac{fC)-f(B)}{C-B}=f'(y)<\frac{-\varepsilon}3. $$ A bit of algebraic manipulation (which I might have done correctly) converts this (plus the information that $f(C)\geq2\varepsilon/3$) to $$ C<B+\frac3\varepsilon f(B)-2. $$ Even if my algebra wasn't perfect, we get some upper bound on $C$. That is, $f$ cannot remain $\geq2\varepsilon/3$ from $B$ all the way out to $\infty$.
For the rest of the proof, fix $C$ as the first point after $B$ where $f$ takes a value $\leq2\varepsilon/3$. (There is a first such point because $f$, being differentiable,is continuous.) Continuity of $f$ also gives us that $f(C)=2\varepsilon/3$. To complete the proof, it suffices to show that $f(x)<\varepsilon$ for all $x>C$. So suppose not, and let $D$ be the first counterexample. Again, continuity of $f$ implies that there is a first such $D$ and that $f(D)=\varepsilon$.
For all $x\in[C,D]$, we have, by our choice of $D$, that $f(x)<\varepsilon=f(D)$. Therefore, for $x\in[C,D)$, $$ \frac{f(D)-f(x)}{D-x}>0 $$ and, since $f$ is differentiable at $D$, $f'(D)\geq0$. But then $f(D)+f'(D)\geq f(D)=\varepsilon$, contrary to the fact that, since $D>A$, our choice of $A$ ensures $f(D)+f'(D)<\varepsilon/3$.
Therefore, no such $D$ can exist, and the proof is complete.