I'm trying to solve $$\int_0^∞ e^{-x} \cos(x)\,dx$$
It is not hard to find that $$\int e^{-x} \cos(x)=\frac{1}{2}(e^{-x} \sin(x)-e^{-x} \cos(x))+C$$
From all this follows that
$$\lim_{t\to\infty}\int_0^te^{-x} \cos(x) \, dx = \frac{1}{2}\lim_{t\to\infty}(e^{-t} \sin(t) - e^{-t} \cos(t))+\frac{1}{2}$$
Notice that I have simplified already a lot the expression we are taking the limit of.
I have not been able to find this limit; a collegue student told me that I had to use the squeeze theorem, but I do not find how nor where. Any guides on how the theorem can help with this limit?
The values of trigonometric functions oscillate between $1$ and $-1$.
Your upper bound is:
$$ \lim_{t \to \infty} \int_{0}^{t} e^{-x}\cos(x)\,dx = \frac{1}{2} \lim_{t \to \infty}(e^{-t}(1) - e^{-t}(-1)) + \frac{1}{2}. $$
We don’t know what value our trigonometric functions take at infinity but they can’t take any larger value clearly. So we set $\cos$ to $-1$ and $\sin$ to $1$ as it will give $\frac{1}{2}(2e^{-t})+\frac{1}{2}$.
And our lower bound is:
$$ \lim_{t \to \infty} \int_{0}^{t} e^{-x}\cos(x)\,dx = \frac{1}{2} \lim_{t \to \infty}(e^{-t}(-1) - e^{-t}(1)) + \frac{1}{2}. $$
Which gives us $\frac{1}{2}(-2e^{-t}) + \frac{1}{2}$.
It’s clear that $e^{-t}$ goes to zero and so our limit is ‘squeezed’ to $\frac{1}{2}$ from both sides.