# Math Help - integral with absolute value

1. ## integral with absolute value

I need some help integrating :
$\int e^{-|y|}e^{ty} dy$

2. Originally Posted by lllll
I need some help integrating :
$\int e^{-|y|}e^{ty} dy$
You just have to split it up as a sum of two integrals, by considering saparately the intervals on which y is positive and negative:

$\int e^{-|y|}e^{ty}\, dy = \int_{y\leqslant0} e^{y}e^{ty}\, dy + \int_{y\geqslant0} e^{-y}e^{ty}\, dy = \int_{y\leqslant0} e^{(t+1)y}\, dy + \int_{y\geqslant0} e^{(t-1)y}\, dy$