Integration by Parts — ∫x·eˣ dx

medium CBSE JEE-MAIN JEE-ADVANCED JEE Main 2024 4 min read

Question

Evaluate the integral:

xexdx\int x \cdot e^x \, dx

This is a standard JEE Main question that tests whether you know when to apply integration by parts — and more importantly, how to pick the right function to differentiate.


Solution — Step by Step

When two functions are multiplied, integration by parts is the go-to method. The LIATE rule tells us which function to treat as uu (the one we differentiate):

Logarithmic → Inverse trig → Algebraic → Trigonometric → Exponential

Here we have xx (Algebraic) and exe^x (Exponential). Algebraic comes before Exponential in LIATE, so:

u=x,dv=exdxu = x, \quad dv = e^x \, dx

Differentiate uu and integrate dvdv:

du=dx,v=exdx=exdu = dx, \quad v = \int e^x \, dx = e^x

The reason we choose xx as uu is that differentiating it reduces the complexity — xx becomes 11, which kills the polynomial. If we did it the other way, we’d be integrating xexx \cdot e^x again, which loops forever.

The formula is:

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

Substituting:

xexdx=xexexdx\int x \cdot e^x \, dx = x \cdot e^x - \int e^x \cdot dx

The remaining integral exdx\int e^x \, dx is straightforward:

=xexex+C= x \cdot e^x - e^x + C

Factor out exe^x for a cleaner final form.

Final Answer:

xexdx=ex(x1)+C\boxed{\int x \cdot e^x \, dx = e^x(x - 1) + C}

Why This Works

Integration by parts is essentially the product rule for differentiation run in reverse. The product rule says ddx[uv]=uv+uv\frac{d}{dx}[uv] = u'v + uv'. Integrating both sides gives us uv=uvdx+uvdxuv = \int u'v \, dx + \int uv' \, dx, which rearranges to the IBP formula.

The LIATE trick works because we want the vdu\int v \, du term to be simpler than what we started with. Differentiating a polynomial reduces its degree — differentiating xx gives 11, which collapses the remaining integral to just exdx\int e^x \, dx. This is why Algebraic beats Exponential in the priority order.

This pattern — polynomial × exponential — appears repeatedly in JEE Main and CBSE Class 12 boards. Once you’ve solved xexdx\int x e^x dx, you can handle x2exdx\int x^2 e^x dx by applying IBP twice.


Alternative Method — Inspection / Reverse Product Rule

If you’ve done enough practice, you can spot the answer directly. Notice that:

ddx[ex(x1)]=ex(x1)+ex1=exx\frac{d}{dx}\left[e^x(x-1)\right] = e^x(x-1) + e^x \cdot 1 = e^x \cdot x

So the integrand xexx e^x is already the derivative of ex(x1)e^x(x-1). This “guess and verify” method saves time in multiple-choice questions where you just need the answer, not the working.

For any xnexdx\int x^n e^x dx, the answer always has the form ex(polynomial of degree n)e^x \cdot (\text{polynomial of degree } n). You can guess the form ex(ax+b)e^x(ax + b), differentiate, match coefficients, and get the answer in 20 seconds flat — no full IBP working needed in the exam hall.


Common Mistake

The most common error is swapping uu and dvdv — taking u=exu = e^x and dv=xdxdv = x \, dx. This gives v=x22v = \frac{x^2}{2}, and now you’re left with x22exdx\int \frac{x^2}{2} e^x \, dx — which is harder than what you started with. You’ve gone from a degree-1 polynomial to degree-2. LIATE exists precisely to prevent this. When in doubt: differentiate the function that simplifies, integrate the one that stays manageable.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next