Steply

Integrate ∫ 2x 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 of 2x eˣ.

∫ 2xex dx =

1 Choose u and dv

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

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

u = 2x, 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 = 2 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.

= 2xex − ∫ 2ex dx

4 The new integral

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

= 2xex − 2ex

Careful!

It is u v minus the integral of v du.

Not plus!

Careful: not uv + ∫ v du ✗

Open the bracket: a minus in front of a bracket changes the sign of every part inside.

Add C.

So the answer is 2x eˣ − 2eˣ + C.

= 2xex − 2ex + C

5 Check

Let's check: take the derivative of our answer.

The product rule on each term: the first's slope times the second, plus the first times the second's slope.

derivative: 2ex + 2xex − 2ex

The other terms cancel, and we get 2x eˣ: the question again.

Right!

= 2xex

Let's look back.

First: choose u and dv.

Then: find du and v.

Then: use the rule.

Then: the new integral.

Last: check.

Answer
= 2xex − 2ex + C

Your turn

Try this one yourself, then check:

Find the integral of ∫ 3xex dx
Show the answer
3xex − 3ex + C

More from Integration by parts

The whole lesson: Integration by parts →