01 · Complete a first step
After I = ∫x³eˣ dx is integrated by parts once, what is the remainder?
Hint
Differentiate x³.
Worked solution
I = x³eˣ − 3∫x²eˣ dx. The coefficient −3 must remain.
Understand · explore · practise
Apply integration by parts repeatedly to polynomial products and logarithmic powers. Track coefficients and signs, solve cyclic integrals and check exact definite results.
Before you startIntegration by parts, product-rule differentiation and standard integrals.
01 / Keep going while the remainder simplifies
Iₙ = ∫xⁿeˣ dx = xⁿeˣ − nIₙ₋₁
Use the recurrence for a positive integer n; finish with the base integral I₀ = eˣ + C.
Each application differentiates the polynomial and integrates the exponential. Carry the full coefficient and sign outside the next integral. Stop only when the remainder is a standard integral; include one final constant of integration.
At x = 1: original integrand = 2.718282.
Derivative of displayed known terms = 8.154845; derivative of the remainder = −5.436564; total = 2.718282.
Iₘ means an integral of xᵐeˣ. The remainder is not discarded; its derivative completes the original integrand.
02 / Apply parts twice to a quadratic
I = x²eˣ − 2∫xeˣ dx
First use u = x² and v′ = eˣ.
∫xeˣ dx = xeˣ − eˣ
Use parts again on the remaining product.
I = x²eˣ − 2(xeˣ − eˣ) + C
Keep brackets around the entire second result.
eˣ(x² − 2x + 2) + C
Distribute −2 carefully.
Pause, replay or seek freely. The notes explain the same idea and stay in view.
After I = ∫x³eˣ dx is integrated by parts once, what is the remainder?
Differentiate x³.
I = x³eˣ − 3∫x²eˣ dx. The coefficient −3 must remain.
03 / Track factorial-like coefficients
x³eˣ − 3∫x²eˣ dx
Reduce the polynomial degree.
x³eˣ − 3eˣ(x² − 2x + 2) + C
Use the quadratic result.
eˣ(x³ − 3x² + 6x − 6) + C
The signs alternate for this exponential example.
What is the constant term inside the polynomial multiplying eˣ in ∫x³eˣ dx?
Expand −3(x² − 2x + 2).
−6.
For P = x³ − 3x² + 6x − 6, find P + P′.
Collect like powers after differentiating P.
x³. Therefore d(eˣP)/dx = x³eˣ.
04 / Include the exponential rate at every stage
(x²/2)e²ˣ − ∫xe²ˣ dx
First use v = e²ˣ/2.
∫xe²ˣ dx = (x/2)e²ˣ − (1/4)e²ˣ
Integrate the remainder by parts.
e²ˣ(x²/2 − x/2 + 1/4) + C
Subtract the entire remainder.
Find ∫x²e⁻ˣ dx.
At each stage, integrating e⁻ˣ adds a minus sign.
−e⁻ˣ(x² + 2x + 2) + C.
Find ∫(x² + 1)eˣ dx.
Add ∫eˣ dx to the quadratic result.
eˣ(x² − 2x + 3) + C.
05 / Keep the sine-cosine cycle visible
x²sin x − 2∫x sin x dx
First integrate cosine to sine.
∫x sin x dx = −x cos x + sin x
The next primitive changes sign.
x²sin x + 2x cos x − 2sin x + C
Distribute the coefficient −2.
Find ∫x²sin x dx.
The first step is −x²cos x + 2∫x cos x dx.
−x²cos x + 2x sin x + 2cos x + C.
Find ∫x²cos(2x) dx.
First use v = sin(2x)/2.
(x²/2)sin(2x) + (x/2)cos(2x) − (1/4)sin(2x) + C.
06 / Reduce a logarithmic power
u = (ln x)²; v′ = 1
Then u′ = 2ln x/x and v = x.
x(ln x)² − 2∫ln x dx
One logarithmic power has disappeared.
x(ln x)² − 2(x ln x − x) + C
Use the known integral of ln x.
x[(ln x)² − 2ln x + 2] + C
Keep the whole expression.
State ∫(ln x)³ dx for x > 0.
The recurrence is x(ln x)³ − 3∫(ln x)² dx.
x[(ln x)³ − 3(ln x)² + 6ln x − 6] + C.
Find ∫x(ln x)² dx for x > 0.
Use v = x²/2, leaving ∫x ln x dx.
(x²/2)(ln x)² − (x²/2)ln x + x²/4 + C.
07 / Recognise when the original integral returns
I = eˣsin x − ∫eˣcos x dx
Choose the trig factor as u and eˣ as v′.
J = ∫eˣcos x dx = eˣcos x + I
A second application returns the original integral.
I = eˣsin x − eˣcos x − I
Substitute the whole expression for J.
2I = eˣ(sin x − cos x)
Collect the I terms.
I = (1/2)eˣ(sin x − cos x) + C
Differentiate to verify; one arbitrary constant is retained.
Find ∫eˣcos x dx.
Use J = eˣcos x + I from the example.
(1/2)eˣ(sin x + cos x) + C.
08 / Track coefficients when the cycle returns
I = (1/2)e²ˣsin x − (1/2)J
Let J = ∫e²ˣcos x dx.
J = (1/2)e²ˣcos x + (1/2)I
Apply parts again, keeping the scale 1/2.
I = (1/2)e²ˣsin x − (1/4)e²ˣcos x − (1/4)I
Substitute J with brackets.
(5/4)I = (1/4)e²ˣ(2sin x − cos x)
Move the repeated integral to the left.
I = (1/5)e²ˣ(2sin x − cos x) + C
Divide by 5/4.
If I = A − I/4, express I in terms of A.
Add I/4 to both sides.
I = 4A/5.
Find ∫e²ˣcos x dx.
Use the companion relation J from the example.
(1/5)e²ˣ(2cos x + sin x) + C.
09 / Evaluate only after the bookkeeping is complete
Use F = eˣ(x² − 2x + 2)
This primitive already contains both parts steps.
F(1) = e; F(0) = 2
Do not assume the lower value is zero.
e − 2
Subtract upper minus lower.
Use F = x[(ln x)² − 2ln x + 2]
The interval lies inside x > 0.
F(e) = e; F(1) = 2
Use ln e = 1 and ln 1 = 0.
e − 2
The result is positive.
Evaluate ∫₀^(π/2) x²cos x dx.
Use x²sin x + 2x cos x − 2sin x.
π²/4 − 2.
10 / Keep the remainder until it is evaluated
Writing I₂ = x²eˣ − 2I₁ is a useful first step, but x²eˣ is not the answer. The remainder is responsible for cancelling the extra derivative terms. In a cyclic problem, do not keep applying parts forever: solve the equation for the named integral.
Indefinite-integral equations may be handled using consistent primitive representatives during the algebra, with one arbitrary constant added to the final result. Do not introduce several unrelated constants and then equate them without explanation.
Why is x²eˣ not a primitive of x²eˣ?
Apply the product rule.
Its derivative is x²eˣ + 2xeˣ. The missing correction must cancel 2xeˣ.
A student obtains I = A − I and concludes I = 0. Correct the algebra.
Add I to both sides.
2I = A, so I = A/2. This does not imply I is zero unless A is zero.
11 / Reduce or solve the cycle
Evaluate ∫₀^π eˣsin x dx.
Use (1/2)eˣ(sin x − cos x).
(e^π + 1)/2.
Section 1 of 11 · Keep going while the remainder simplifies