x / | | x | -x*e dx | / 0
Integral((-x)*exp(x), (x, 0, x))
Use integration by parts:
Let and let .
Then .
To find :
The integral of the exponential function is itself.
Now evaluate the sub-integral.
The integral of a constant times a function is the constant times the integral of the function:
The integral of the exponential function is itself.
So, the result is:
Now simplify:
Add the constant of integration:
The answer is:
/ | | x x x | -x*e dx = C - x*e + e | /
x -1 + (1 - x)*e
=
x -1 + (1 - x)*e
-1 + (1 - x)*exp(x)
Use the examples entering the upper and lower limits of integration.