# Math Help - Integral

1. ## Integral

Evaluate $\int_0^\infty\frac{2-2\cos x}{xe^x}\,dx$

2. Introduce the following parameter

$\frac{1-\cos x}x=\int_0^1\sin(ux)\,du,$ then construct a double integral and switch the order of integration.

The answer is $\ln2.$