We have,
I=∫∞0e|−x|dx
We know that,
x≥0|x|=x
x≤0|x|=−x
Thus,
=∫∞0exdx+∫∞0e−xdx
=[ex]0∞+[e−x]0∞
=e∞−e0+e−∞−e−0
=0−1+0−1
=−2