Chalk−1

Math · Calculus II · Worked example

Integrate xeˣ by parts

Find the integral of xeˣ with respect to x.

∫xexd⁢x

Choose u and dv

x gets simpler when differentiated, and eˣ is easy to integrate.

The parts for the integral of xeˣ
PartChoiceThen
uxdu = dx
dveˣ dxv = eˣ

Apply the formula

uv − ∫v du, with the new integral simpler than the old.

∫xexd⁢x=xex−∫exd⁢x

Finish the integral

The integral of eˣ is eˣ.

∫xexd⁢x=xex−ex+C

Check by differentiating

The product rule gives eˣ + xeˣ, and subtracting the derivative of eˣ leaves xeˣ.

dd⁢x(xex−ex)=xex

Result

xeˣ − eˣ + C.

Your turn

Find the integral of x cos x.

Show the answer and explanation

x sin x + cos x + C.

u = x and dv = cos x dx give du = dx and v = sin x, so the integral is x sin x minus the integral of sin x, which is x sin x + cos x + C.

∫xcosxd⁢xxsinx+cosx+C

Keep exploring

In Derivative & antiderivative checks, enter xeˣ + eˣ instead, a common sign slip. The checker reports that it does not agree: its derivative is xeˣ + 2eˣ.

Return to the concept →
Sources and scope

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

Make it concrete

Try in the workspace

Open the example inputs, change a value and keep a useful result on your board.

Check it in Derivative & antiderivative checks Check it in Math Open worked example on a board Product rule in Math Reference

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