Skip to content
Worked Examples · Example 19

Q.Find ∫x ex dx\int x\, e^x\, dx

Uttar Pradesh UpmspTextbookSubjective· 3mImportance★★★★★
Appeared in past exams:KEAM 2024· Set eng-2024-0608· 4mexact
41% · 152/373 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The integral ∫xex dx\int x e^x \, dx is solved using integration by parts (the product rule in reverse). Choosing u=xu = x and dv=exdxdv = e^x dx, we get the result xex−ex+Cx e^x - e^x + C, or equivalently ex(x−1)+Ce^x (x - 1) + C.

Why This Approach Works

When you see a product of two different kinds of functions — here xx (algebraic) and exe^x (exponential) — the standard tool is integration by parts. It comes from the product rule for derivatives:

ddx(uv)=udvdx+vdudx\frac{d}{dx}(u v) = u \frac{dv}{dx} + v \frac{du}{dx}

Rearranging and integrating gives:

∫u dv=uv−∫v du\int u \, dv = u v - \int v \, du

The trick is to pick uu and dvdv so that the new integral ∫v du\int v \, du is simpler than the original. For ∫xex dx\int x e^x \, dx, we want uu to be something that gets simpler when differentiated, and dvdv to be something easy to integrate.

xx differentiates to 11 (simpler), and exe^x integrates to itself (no harder). That’s the perfect match.

Step-by-Step Solution

  1. Choose uu and dvdv

    Let u=xu = x and dv=ex dxdv = e^x \, dx.

    Why? Differentiating xx gives 11, which will simplify the next integral. Integrating exe^x gives exe^x, which is just as easy to work with.

  2. Find dudu and vv

    Differentiate uu: du=1⋅dx=dxdu = 1 \cdot dx = dx.

    Integrate dvdv: v=∫ex dx=exv = \int e^x \, dx = e^x.

  3. Apply the integration by parts formula

∫u dv=uv−∫v du\int u \, dv = u v - \int v \, du

Substitute:

∫xex dx=x⋅ex−∫ex dx\int x e^x \, dx = x \cdot e^x - \int e^x \, dx

  1. Evaluate the remaining integral

    ∫ex dx=ex+C\int e^x \, dx = e^x + C (don’t forget the constant of integration).

  2. Write the final result …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.