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$.
Keep practising Probability
Browse all Probability questions for AP Intermediate 2nd Year, or explore more Mathematics topics.
Related questions
A bag has 3 red and 5 blue balls. One ball drawn at random. Probability it is red isFrom a deck of 52 cards, one is drawn. The probability that it is a red queen isThree coins are tossed. The probability of getting at least one head isA card is drawn from a standard deck of 52 cards. The probability of drawing an ace isTwo coins are tossed. The probability of getting two heads isProbability of a sure event isA die is rolled. The probability of getting an even number isA coin is tossed once. The probability of getting heads is