Integration by parts — evaluate ∫x·eˣ dx step by step

easy CBSE JEE-MAIN NCERT Class 12 3 min read

Question

Evaluate xexdx\displaystyle\int x \cdot e^x \, dx using integration by parts.

(NCERT Class 12, Chapter 7 — Integrals)


Solution — Step by Step

udv=uvvdu\int u \, dv = uv - \int v \, du

We need to choose which part of the integrand is uu and which is dvdv.

The ILATE rule gives priority for choosing uu: Inverse trig > Logarithmic > Algebraic > Trigonometric > Exponential.

Here, xx is algebraic (A) and exe^x is exponential (E). Since A comes before E in ILATE:

u=x    du=dxu = x \implies du = dx dv=exdx    v=exdv = e^x \, dx \implies v = e^x
xexdx=xexexdx\int x \cdot e^x \, dx = x \cdot e^x - \int e^x \, dx =xexex+C= x \cdot e^x - e^x + C xexdx=ex(x1)+C\boxed{\int x \cdot e^x \, dx = e^x(x - 1) + C}

Why This Works

Integration by parts transfers the derivative from one function to another. By choosing u=xu = x, we differentiate it to get du=dxdu = dx (simpler). Meanwhile, exe^x integrates to itself, so nothing gets more complex. The net effect: the power of xx drops from 1 to 0, and the remaining integral exdx\int e^x \, dx is trivial.

If we had chosen u=exu = e^x and dv=xdxdv = x \, dx, we’d get v=x2/2v = x^2/2, making the new integral x22exdx\int \frac{x^2}{2} e^x \, dx — harder than what we started with. The ILATE rule prevents this bad choice.


Alternative Method — Using the formula for ∫eˣ·f(x)dx

There’s a direct result: ex[f(x)+f(x)]dx=exf(x)+C\int e^x[f(x) + f'(x)] \, dx = e^x \cdot f(x) + C.

We can write xex=ex[(x1)+1]=ex(x1)+exxe^x = e^x[(x - 1) + 1] = e^x(x-1) + e^x.

Notice that if f(x)=x1f(x) = x - 1, then f(x)=1f'(x) = 1, and f(x)+f(x)=xf(x) + f'(x) = x.

So xexdx=ex(x1)+C\int xe^x \, dx = e^x(x - 1) + C.

For JEE, the formula ex[f(x)+f(x)]dx=exf(x)+C\int e^x[f(x) + f'(x)] \, dx = e^x f(x) + C is extremely powerful. It bypasses integration by parts entirely. Whenever you see exe^x multiplied by a sum of a function and its derivative, apply this directly. This saves significant time in competitive exams.


Common Mistake

Students sometimes apply ILATE mechanically and choose u=exu = e^x (thinking “E comes last, so it should be dvdv”). ILATE tells you which function to pick as uu (the one that appears earlier in the list), not dvdv. Algebraic (xx) comes before Exponential (exe^x) in ILATE, so u=xu = x. Getting this backwards leads to a more complicated integral instead of a simpler one.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next