Olá
Pela definição de módulo : \(|x-4|=\left{ \;\;\; x-4 \;\;\; , \;\;\; \text{se} \;\;\; x-4 \geq 0 \;\; \Leftrightarrow \;\;\; x \geq 4 \\\\\\ \;\;\; 4-x \;\;\; , \;\;\; \text{se} \;\;\; x-4 <0 \;\; \Leftrightarrow \;\;\; x < 4\) , Então dividindo o intervalo do limite de integração ficamos com:
\(\int_{-\infty}^{+\infty}\; xe^{-|x-4|} \; dx= \int_{-\infty}^{4}\; xe^{-(4-x)} \; dx\; + \; \int_{4}^{+\infty}\; xe^{-(x-4)} \; dx\)
Se houver dúvidas é só dizer.
abraço