I often hear that $$\int_0^x \sin(x)\,dx$$ is equal to $\cos(0)−\cos(x)$:
Now if we take the limit as $n \to \infty $ we see $ \frac{x}{2n} \to 0$ and $$\int_0^x \sin t \, dt = \lim_{n \to \infty}\frac{x}{n}\sum_{k=1}^n\sin \left(\frac{kx}{n} \right) = 2\sin^2 \left(\frac{x}{2}\right) = 1 - \cos x = \cos 0 - \cos x.$$
(Sourced from here), but I still can't figure out why this number seems so small for an integral that bounds from $-\infty$ to $\infty$. Can someone please explain?
Note: I have also heard that it equals $0$, but that seems even more unreasonable due to the definition of an integral - the area between the curve and the x axis.