Steply

Evaluate ∫ from 0 to 2 of x e^x dx

Step by step, with the reason for every step · Integration by parts · Calculus 2

Step by step

The question

Question: find the integral from 0 to 2 of x eˣ.

∫ from 0 to 2 of xex dx =

1 Choose u and dv

Choose u = x: its derivative is simpler, just a number.

dv is the rest: eˣ dx, which we can integrate.

u = x, dv = ex dx

2 Find du and v

du: the derivative of u, times dx.

v: the integral of dv.

e to the x stays e to the x.

du = 1 dx, v = ex

3 Use the rule

The rule: the integral of u dv is u v, minus the integral of v du.

It comes from the product rule, backwards.

∫ u dv = uv − ∫ v du

u times v, minus the integral of v times du.

= xex − ∫ ex dx

4 The new integral

The new integral is easy: just a number times e to a power.

= xex − ex

Careful!

It is u v minus the integral of v du.

Not plus!

Careful: not uv + ∫ v du ✗

Open the bracket.

No + C: top minus bottom.

= [ xex − ex ] from 0 to 2

5 Top minus bottom

Put in 2, then take away the same with 0.

= (2 × e2 − e2) − (0 × 1 − 1)

e to the 0 is 1.

e0 = 1

Tidy up: the integral is e² + 1, about 8.389.

= e2 + 1 ≈ 8.389

6 Check

Let's check with a calculator: it adds up 1000 thin strips.

That gives about 8.389, the same as our answer.

Right!

1000 thin strips: ≈ 8.389

Let's look back.

First: choose u and dv.

Then: find du and v.

Then: use the rule.

Then: the new integral.

Then: top minus bottom.

Last: check.

Answer
= e2 + 1 ≈ 8.389

Your turn

Try this one yourself, then check:

∫ from 0 to 2 of 4xex dx
Show the answer
4e2 + 4

More from Integration by parts

The whole lesson: Integration by parts →