$\int_{0}^{\infty} \cos(x) , dx$
It's like the grandi series I integrated it separately From 0 to $\frac{\pi}{2}$ Then from $\frac{\pi}{2}$ to $\pi$ Then from $\pi$ to $\frac{3\pi}{2}$ And lastly from $\frac{3\pi}{2}$ to $2\pi$
This will repeat You'll get the grandi series That is, 1-1+1-1+1-1+1-1.......... And we know it's $\frac{1}{2}$
I am asking it seriously