$$\int_{0}^{\infty}\frac{(x \cos x-\sin x)\cos (x/2)}{x^3}\mathrm d x $$
I tried solving it by substitution, and I did come close to the answer. But that was really long and tedious, I don't even know whether or not what I did was even correct.
Can anyone suggest me some other way? Hints, anything?
Cuz I can't think of anything other than substitution, thoughts?
This may be done by recognizing that
$$\frac{x \cos{x}-\sin{x}}{x^2} = \frac{d}{dx} \frac{\sin{x}}{x} = \frac{d}{dx} \int_0^1 du \, \cos{x u} = -\int_0^1 du \, u \sin{x u}$$
Thus the integral is then equal to
$$-\int_0^{\infty} dx \frac{\cos{(x/2)}}{x} \, \int_0^1 du \, u \sin{x u}$$
We can reverse the order of integration to get
$$-\int_0^1 du \, u \, \int_0^{\infty} dx \frac{\sin{x u}}{x} \cos{(x/2)}$$
which looks like a Fourier transform:
$$\int_0^{\infty} dx \frac{\sin{x u}}{x} \cos{(x/2)} = \frac12 \int_{-\infty}^{\infty} dx \, \frac{\sin{x u}}{x} e^{i k x}$$
where $k = \frac1{2}$. Thus, the integral is simply $\pi$ when $|u|>1/2$ and zero elsewhere. Thus the integral is equal to