One question in a complex analysis test from the past asks to find the real integral $$\int_{0}^{\infty}\frac{1-\cos x}{x^2}dx$$ Of course this should be done by contour integration, by I can't figure out how.
What I have so far in my hand:
- Trying to integrate $\frac{1-\cos z}{z^2}$ on an arc (part of a circle) doesn't seem to yield a nice expression.
- Note that this function has a removable singularity at $0$ so it's analytic in $\mathbb{C}$. I can also find the Taylor series but I don't think that's the way.
- This integral equals (by trig identities) $\int_{0}^{\infty}\frac{sin^2u}{u^2}du$ but I don't know if it contirbutes in any way.
Any ideas?