Chalk−1

Math · Calculus II · Worked example

Integrate xeˣ by parts

Find the integral of xex with respect to x.

∫xexd⁢x

Try one — Chalk checks each line

Choose u and d⁢v

x gets simpler when differentiated, since its derivative is 1. ex is its own antiderivative, so it is easy to put in d⁢v. Then d⁢u=d⁢x and v=ex.

The parts for the integral of xex
PartChoiceThen
uxd⁢u=d⁢x
d⁢vex d⁢xv=ex

Apply the formula

Substitute into u⁢v−∫v d⁢u. The new integrand is ex⋅1, with no x left, which confirms the choice.

∫xexd⁢x=xex−∫exd⁢x

Finish the integral

The integral of ex is ex. The +C goes on once, here at the end.

∫xexd⁢x=xex−ex+C

Check by differentiating

The product rule gives ex+xex for the first term. Subtracting the derivative of ex leaves xex, the integrand.

dd⁢x(xex−ex)=xex

Result

∫xex d⁢x=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 ∫x e−x d⁢x.

Show the answer and explanation

−x e−x−e−x+C, or −(x+1)e−x+C.

Take u=x and d⁢v=e−x d⁢x, so d⁢u=d⁢x and v=−e−x. Then u⁢v−∫v d⁢u =−x e−x+∫e−x d⁢x =−x e−x−e−x+C. Differentiating gives −e−x+x e−x+e−x =x e−x.

∫xe−xd⁢x−xe−x−e−x+C

2. A variation

Find ∫xsin(3⁢x) d⁢x. Watch the 3 inside the sine when you find v.

Show the answer and explanation

−(x⁢/3)cos(3⁢x) +(1⁢/9)sin(3⁢x) +C.

Take u=x and d⁢v=sin(3⁢x) d⁢x. Then v=−(1⁢/3)cos(3⁢x), and u⁢v−∫v d⁢u =−(x⁢/3)cos(3⁢x) +(1⁢/3)∫cos(3⁢x) d⁢x. The last integral is (1⁢/3)sin(3⁢x), so the answer is −(x⁢/3)cos(3⁢x) +(1⁢/9)sin(3⁢x) +C.

∫xsin(3⁢x)d⁢x−x3cos(3⁢x)+19sin(3⁢x)+C

3. Somewhere new

After a dose, a drug’s concentration in the blood is c⁢(t)=5⁢t e−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=5⁢t and d⁢v=e−t d⁢t, an antiderivative is −5⁢t e−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.

∫025⁢te−td⁢t[−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.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check it by differentiating in Math Check it in Math Study the 5 key terms Open worked example on a board Product rule in Math Reference

Your existing work stays on this device. Examples open as editable copies.