Hi I am unsure of my attempt to solve the following:
$$ \int_{-1}^1 xde^{|x|} $$
my attempt is the following:
Using substitution where $ u = x, v = ?, dv = e^{|x|} $ Now :
$$ v = \int_{-1}^1 dv = \int_{-1}^1 e^{|x|}dx$$
$$= \int_{-1}^0 e^{-x}dx + \int_0^1 e^x dx $$
$$= -e^{-x}|_{-1}^0 + e^x|_0^1$$
$$= -1 + e + e -1 $$
$$= 2e -2 $$
$$ \int_{-1}^1 udv = uv|_{-1}^1 - \int_{-1}^1 vdv $$
$$= x(2e-2)|_{-1}^1 - \int_{-1}^1 (2e - 2)dx$$
$$=x(2e - 2)|_{-1}^1 - (2e - 2)x|_{-1}^1 $$
$$=4e -4 -4e - 4 $$
$$=0$$