I try to evaluate integral below.I solved indefinite integral but after evaluating limit I get wrong result.I don't know where can be problem.Maybe I just use the wrong method?
$$ \int_{0}^{\infty} e^{-x}\left|\sin{x}\right| \ dx= $$
$$= \left[ -\frac{1}{2}e^{-x}\operatorname{sgn}\left(\sin{x}\right)\left(\sin{x}+\cos{x}\right)\right]_0^\infty $$
The problem comes from the fact that your antiderivative has discontinuities where $\sin x$ changes sign, and is not differentiable.
The correct integral can be found by summing the "jumps" required to restore continuity. (These jumps have amplitude $(-1)^ke^{-k\pi}$).