x gets simpler when differentiated, since its derivative is 1.ex is its own antiderivative, so it is easy to put in dv. Then du=dx and v=ex.
The parts for the integral of xex
Part
Choice
Then
u
x
du=dx
dv
exdx
v=ex
2
Apply the formula
Substitute into uv−∫vdu. The new integrand is ex⋅1, with no x left, which confirms the choice.
∫xexdx=xex−∫exdx
3
Finish the integral
The integral of ex is ex.The +C goes on once, here at the end.
∫xexdx=xex−ex+C
4
Check by differentiating
The product rule gives ex+xex for the first term. Subtracting the derivative of ex leaves xex, the integrand.
dxd(xex−ex)=xex
Result
∫xexdx=xex−ex+C, which can also be written (x−1)ex+C. With C=0 its lowest value, −1, comes at x=0, where its slope xex changes from negative to positive.
Your turn
1. One like the example
Find ∫xe−xdx.
Show the answer and explanation
−xe−x−e−x+C,or −(x+1)e−x+C.
Take u=x and dv=e−xdx, so du=dx and v=−e−x. Then uv−∫vdu=−xe−x+∫e−xdx=−xe−x−e−x+C. Differentiating gives −e−x+xe−x+e−x=xe−x.
∫xe−xdx−xe−x−e−x+C
2. A variation
Find ∫xsin(3x) dx. Watch the 3 inside the sine when you find v.
Show the answer and explanation
−(x/3)cos(3x)+(1/9)sin(3x)+C.
Take u=x and dv=sin(3x) dx. Then v=−(1/3)cos(3x), and uv−∫vdu=−(x/3)cos(3x)+(1/3)∫cos(3x) dx. The last integral is (1/3)sin(3x), so the answer is −(x/3)cos(3x)+(1/9)sin(3x)+C.
∫xsin(3x)dx−3xcos(3x)+91sin(3x)+C
3. Somewhere new
After a dose, a drug’s concentration in the blood is c(t)=5te−t milligrams per liter, t hours later. Find the area under the concentration curve from t=0 to t=2, a measure of exposure.
Show the answer and explanation
5−15e−2≈2.97 mg⋅h/L.
With u=5t and dv=e−tdt, an antiderivative is −5te−t−5e−t=−5(t+1)e−t. At t=2 it is −15e−2, and at t=0 it is −5. The area is −15e−2−(−5)=5−15e−2≈5−2.030=2.97 mg⋅h/L.
∫025te−tdt[−5(t+1)e−t]025−15e−25−15e−2≈2.97
Keep exploring
Check it by differentiating in Math, then change F(x) to xex+ex, a common sign slip. The last row turns to ✗: the derivative of xex+ex is xex+2ex.