AP Calculus BC
Integral of x e^x: Answer, Parts Setup, Mistakes
The integral of x e^x with respect to x is (x - 1)e^x + C. Integration by parts with u = x and dv = e^x dx gives x e^x minus the integral of e^x dx, so the answer is x e^x - e^x + C, which factors as (x - 1)e^x + C. Differentiating it back with the product rule returns x e^x.
How to integrate x e^x by parts
The integrand is a product of two different kinds of function, an algebraic factor and an exponential factor, and nothing inside it is the derivative of anything else in it. That rules out substitution and points at integration by parts, which comes from reversing the product rule.
Let be the factor that gets simpler when you differentiate it. Here differentiates to , while never simplifies, so take and let be .
Substitute those four pieces into the formula. The term is , and the new integral is .
The remaining integral is one of the basic antiderivatives, so a single pass through parts finishes the problem. Factor out of both terms to get the compact form.
Check it by differentiating
Differentiate with the product rule: . The two terms cancel and you are back to the integrand, which is the fastest way to catch a sign slip on an exam.
Why u = x and not u = e^x
Integration by parts only helps if the new integral is easier than the one you started with. Choosing and is legal, but it makes and pushes the power up instead of down.
The new integrand is worse than , and repeating the choice makes it worse again. The LIATE ordering is a shortcut for picking so this does not happen: take the first type on the list that appears in the integrand.
- Logarithmic, such as
- Inverse trigonometric, such as
- Algebraic, such as or
- Trigonometric, such as
- Exponential, such as
In the algebraic factor outranks the exponential , so . The list is a heuristic, not a theorem, but the reason behind it is the real test: differentiating should shrink the problem, and antidifferentiating should not grow it.
Where the integral of x e^x shows up on the AP exam
Integration by parts is Topic 6.11 in Unit 6 (Integration and Accumulation of Change), and it is BC only, so will not be asked on AB. Unit 6 carries a weighting of 15 to 20 percent on both exams, and Topic 6.14 (Selecting Techniques for Antidifferentiation) is where you have to recognize that this integrand wants parts rather than substitution.
The definite version is the common exam form. With the antiderivative in factored form the arithmetic is short, because is at .
Two variants come up often enough to be worth recognizing. An exponent of changes the bookkeeping but not the method, and a squared algebraic factor needs parts twice, dropping the power by one each pass.
That second result is the same machinery: one pass turns into , and the integral you are left with is the one on this page.
Common mistakes with the integral of x e^x
- Multiplying the antiderivatives. There is no product rule for integrals, so is not the answer. Differentiate it and you get , not .
- Losing the minus sign in front of and writing . This is the single most common parts error, and one differentiation catches it.
- Reaching for substitution. Setting gives , and there is no spare in to absorb; setting leaves the untouched.
- Writing or similar. Antidifferentiating gives , because is its own antiderivative.
- Factoring carelessly. From the factored form is , not .
You do not need a second constant
When you antidifferentiate to get , drop the constant. Carrying through the formula adds and subtracts , so it cancels every time. Write a single at the end of an indefinite integral, and none at all on a definite one.
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.
Frequently asked questions
What is the integral of x e^x?
It is , equivalently . Integration by parts with and gives , and the leftover integral is just .
Can I use u-substitution instead of integration by parts?
No. Substitution needs an inner function whose derivative is already sitting in the integrand up to a constant. In , taking needs a spare that is not there, and taking changes nothing. The product of two unrelated factors is the signature of integration by parts.
Is the integral of x e^x on the AP Calculus AB exam?
No. Integration by parts is Topic 6.11, which the CED marks BC only, so this integral can appear on BC but not on AB. AB students still integrate and by the basic rules and by substitution.
What is the definite integral of x e^x from 0 to 1?
It equals exactly . Evaluate at the endpoints: at the factor is zero, and at the value is , so the difference is .
How do I integrate x^2 e^x or x e^(2x)?
Apply parts again for the first: . For the second, and gives and the answer .