I have been having trouble understanding Fourier series and analysis in one of my classes. This is one problem from the text and we have to show that this is true. I have done other problems related to this one, but they do not help me. I tried to solve this manually and it has come to naught. As there is already the answer, I would like an explanation so that I may understand this material better. Thanks for all the help.
$$\int^{\infty}_{0}{(1-\cos x)\over{x^{2}}}dx = \frac\pi{2}$$
This is the integral for reference.
Since $1-\cos x=2\sin^2(x/2)$ we have $$ I:=\int^{\infty}_{0}\frac{(1-\cos x)}{x^2}dx =\int_{0}^{\infty}\frac{4\sin^2(x/2)}{x^2}dx $$ After substitution $t=x/2$ we get $$ I=\int_{0}^{\infty}\frac{2\sin^2 t}{t^2}dt $$ Since the function $\frac{2\sin^2 t}{t^2}$ is even, we can say $$ I=\frac{1}{2}\int_{-\infty}^{\infty}\frac{2\sin^2 t}{t^2}dt =\int_{-\infty}^{\infty}\frac{\sin^2 t}{t^2}dt $$ Now see this answer