integrate x*e^x
Let's compute the integral: ∫xexdx
⇥For xex, we use integration by parts: ∫u1·v2'dx = u1·v2 -∫u1'·v2dx, with u1 = x and v2' = ex
⇥Thus, u1' is 1
⇥Let's integrate v2': ∫exdx
⇥ⓘ The derivative of ex is ex, so ex is an antiderivative of ex: ∫exdx = ex
⇥ ex
⇥Let's calculate u1·v2 -∫u1'·v2dx: xex -∫exdx
⇥ⓘ The derivative of -ex is -ex, so -ex is an antiderivative of -ex: -∫exdx = -ex
⇥ xex -ex
Then you can resume the integral computation:
ⅰ ∫xexdx = xex -ex
xex -ex
This expression can be factorized into: ex·(x -1)
▶Indefinite integrals are defined up to an additive constant C, so this yields: ex·(x -1) + C