Practice free →
HomeJEE MainMathematicsIntegrals › Find $\displaystyle\int x e^x\,dx$.

Find $\displaystyle\int x e^x\,dx$.

A$(x + 1) e^x + C$
B$(x - 1) e^x + C$
C$x e^x - 1 + C$
D$\dfrac{x^2 e^x}{2} + C$
Answer & Solution
Correct answer: B. $(x - 1) e^x + C$
Integration by parts: $\displaystyle\int u\,dv = uv - \int v\,du$. Choose $u = x$ (algebraic, easy to differentiate) and $dv = e^x\,dx$ (exponential, easy to integrate). Then $du = dx$ and $v = e^x$. $\displaystyle\int x e^x\,dx = x e^x - \int e^x\,dx = x e^x - e^x + C = (x - 1) e^x + C$. Verify by differentiating: $\dfrac{d}{dx}\left[(x-1)e^x\right] = 1 \cdot e^x + (x-1) \cdot e^x = e^x + (x-1) e^x = x e^x$ ✓. The **LIATE rule** (Logarithmic, Inverse trig, Algebraic, Trig, Exponential) suggests which function to set as $u$. Here algebraic ($x$) beats exponential ($e^x$), so $u = x$.
Solve this in the app — JEE Main practice & 24k+ MCQs →
Related questions