We have that $\int_{0}^{y}\cos x\,dx $ is bounded and $\frac{1}{2+e^{x^3}}$ is a positive decreasing function whose limit when $x\to +\infty$ is zero, hence the integral is converging by Dirichlet's criterion, for instance.
We have that $\int_{0}^{y}\cos x\,dx $ is bounded and $\frac{1}{2+e^{x^3}}$ is a positive decreasing function whose limit when $x\to +\infty$ is zero, hence the integral is converging by Dirichlet's criterion, for instance.