I'm struggling with the following calculus question.
Let there be two functions $f,g : [a, \infty) \to \mathbb R$ such that:
$g$ is monotonic, differentiable and has a limit at zero
$f$ is continuous such that $$\int_a^\infty f(x)dx < M \in \mathbb R$$
Prove that integral $$\int_a^{\infty} f(x)g(x)dx$$ converges.
While I do know how to prove the theorem using the Second Mean Value Theorem, I've got no idea how to prove it using integration by parts. How can this be done?
Any hints or leads will be greatly appreciated.
Thank you