AP Calculus BC · Integration and accumulation of change
Integration by parts
1Reversing the product rule
The product rule says $\frac{d}{dx}[uv] = u\frac{dv}{dx} + v\frac{du}{dx}$. Integrating both sides and rearranging gives the integration by parts formula:
$$\int u\,dv = uv - \int v\,du$$
It turns an integral you cannot do into one you (hopefully) can. You split the integrand into two pieces:
- $u$: the part you will differentiate (it should get simpler).
- $dv$: the part you will integrate (you must be able to integrate it).
$\int x e^x\,dx$
- $u = x$, so $du = dx$. $dv = e^x\,dx$, so $v = e^x$.
- $\int x e^x\,dx = x e^x - \int e^x\,dx$.
- $= x e^x - e^x + C = e^x(x - 1) + C$.
- Check: $\frac{d}{dx}[e^x(x - 1)] = e^x(x - 1) + e^x = xe^x$. ✓
Check yourself
In ∫ x cos x dx, the best choice of u is:
Show the answer
x
x becomes 1 when differentiated.
2Choosing u: LIATE
A reliable order for choosing $u$ is LIATE: pick the type that comes first in the list.
- Logarithmic: $\ln x$
- Inverse trigonometric: $\arctan x$, $\arcsin x$
- Algebraic: $x$, $x^2$, $3x + 1$
- Trigonometric: $\sin x$, $\cos x$
- Exponential: $e^x$, $2^x$
Logs and inverse trig functions are hard to integrate but have simple derivatives, so they almost always go in $u$.
$\int \ln x\,dx$ (a "hidden" product with 1)
- $u = \ln x$, $du = \frac{1}{x}dx$. $dv = dx$, $v = x$.
- $\int \ln x\,dx = x\ln x - \int x \cdot \frac{1}{x}\,dx = x\ln x - x + C$.
$\int x^2 \ln x\,dx$
- $u = \ln x$ (L beats A), $du = \frac{1}{x}dx$. $dv = x^2\,dx$, $v = \frac{x^3}{3}$.
- $= \frac{x^3}{3}\ln x - \int \frac{x^3}{3} \cdot \frac{1}{x}\,dx = \frac{x^3}{3}\ln x - \frac{x^3}{9} + C$.
Check yourself
For ∫ x² ln x dx, LIATE says u should be:
Show the answer
ln x
Logarithmic comes before algebraic.
3Repeated parts and the tabular method
If $u$ is a polynomial of degree $n$, you need parts $n$ times. The tabular method speeds this up:
- Column D: differentiate $u$ until you reach 0.
- Column I: integrate $dv$ the same number of times.
- Multiply diagonally with alternating signs $+, -, +, -, \dots$
$\int x^2 e^{x}\,dx$
- D column: $x^2$, $2x$, $2$, $0$. I column: $e^x$, $e^x$, $e^x$, $e^x$.
- Diagonal products: $+x^2e^x$, $-2xe^x$, $+2e^x$.
- $\int x^2 e^x\,dx = e^x(x^2 - 2x + 2) + C$.
Cyclic integrals: for $\int e^x \sin x\,dx$, parts twice brings the original integral back. Call it $I$ and solve for it.
$I = \int e^x\sin x\,dx$
- $u = \sin x$, $dv = e^x dx$: $I = e^x\sin x - \int e^x\cos x\,dx$.
- Again with $u = \cos x$: $\int e^x\cos x\,dx = e^x\cos x + \int e^x\sin x\,dx = e^x\cos x + I$.
- So $I = e^x\sin x - e^x\cos x - I$, giving $2I = e^x(\sin x - \cos x)$.
- $I = \frac{1}{2}e^x(\sin x - \cos x) + C$.
Check yourself
Using the tabular method on ∫ x³ eˣ dx, how many nonzero diagonal terms appear?
Show the answer
4
x³, 3x², 6x, 6 each give one term.
4Definite integrals by parts
Evaluate the $uv$ term at the limits as well:
$$\int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du$$
$\int_0^{\pi} x\sin x\,dx$
- $u = x$, $du = dx$; $dv = \sin x\,dx$, $v = -\cos x$.
- $= \big[-x\cos x\big]_0^{\pi} + \int_0^{\pi}\cos x\,dx$.
- $= (-\pi\cos\pi - 0) + \big[\sin x\big]_0^{\pi} = \pi + 0 = \pi$.
Check yourself
∫₀¹ x eˣ dx equals:
Show the answer
1
[eˣ(x − 1)] from 0 to 1 = 0 − (−1).
5Going deeper: choosing u, repeated parts and definite integrals
Integration by parts reverses the product rule:
$$\int u\,dv = uv - \int v\,du$$
Choosing u: pick the factor that becomes simpler when differentiated; dv must be something you can integrate. A helpful order of preference for u (LIATE): Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential.
$\int xe^x\,dx$.
- u = x, dv = $e^x$dx; du = dx, v = $e^x$.
- $xe^x - \int e^x\,dx = xe^x - e^x + C$.
Worked example (a logarithm alone): $\int\ln x\,dx$.
- u = ln x, dv = dx; du = $\frac{1}{x}$dx, v = x.
- $x\ln x - \int 1\,dx = x\ln x - x + C$.
$\int x^2\ln x\,dx$.
- u = ln x, dv = x² dx; v = $\frac{x^3}{3}$.
- $\frac{x^3}{3}\ln x - \int\frac{x^2}{3}\,dx = \frac{x^3}{3}\ln x - \frac{x^3}{9} + C$.
Repeated parts: the tabular method. For a polynomial times $e^x$, sin x or cos x: list derivatives of the polynomial in one column (down to 0) and integrals of the other factor in the next; multiply diagonally with alternating signs +, −, +.
$\int x^2\sin x\,dx$.
- Derivatives: x², 2x, 2, 0. Integrals: −cos x, −sin x, cos x.
- $-x^2\cos x + 2x\sin x + 2\cos x + C$.
The "loop": when parts brings back the original integral, solve for it.
$I = \int e^x\sin x\,dx$.
- u = sin x, dv = $e^x$dx: $I = e^x\sin x - \int e^x\cos x\,dx$.
- Again (u = cos x): $\int e^x\cos x\,dx = e^x\cos x + \int e^x\sin x\,dx$.
- $I = e^x\sin x - e^x\cos x - I$.
- $I = \frac{e^x(\sin x - \cos x)}{2} + C$.
Definite integrals: $\int_a^b u\,dv = \left[uv\right]_a^b - \int_a^b v\,du$.
$\int_0^1 xe^{2x}\,dx$.
- u = x, v = $\frac{1}{2}e^{2x}$.
- $\left[\frac{x}{2}e^{2x}\right]_0^1 - \int_0^1\frac{1}{2}e^{2x}\,dx = \frac{e^2}{2} - \left[\frac{1}{4}e^{2x}\right]_0^1$.
- $= \frac{e^2}{2} - \frac{e^2}{4} + \frac{1}{4} = \frac{e^2 + 1}{4} \approx 2.097$.
With a table of values (a frequent exam form): find $\int_0^2 xf'(x)\,dx$ given f(2) = 5 and $\int_0^2 f(x)\,dx = 7$.
- u = x, dv = f′(x)dx; v = f(x).
- $\left[xf(x)\right]_0^2 - \int_0^2 f(x)\,dx = 2(5) - 0 - 7 = 3$.
Inverse trigonometric: $\int\arctan x\,dx = x\arctan x - \frac{1}{2}\ln(1 + x^2) + C$ (u = arctan x, dv = dx).
Parts or substitution? A function and its derivative together suggest substitution ($\int xe^{x^2}dx$). A product of two unrelated kinds of function suggests parts ($\int xe^x dx$).
Check: differentiate the result.
Common mistakes
- Choosing u so that the new integral is harder.
- Dropping the minus sign before $\int v\,du$.
- Forgetting to evaluate uv at both limits.
- Sign slips in the tabular method.
- Omitting + C.
Check yourself
For the integral of x cos(x) dx, the best choice for integration by parts is:
Show the answer
u = x and dv = cos(x) dx
Differentiating x gives 1, which leaves a simple integral of sin(x).
6For top marks
- Write $u$, $du$, $dv$, $v$ explicitly before using the formula.
- If the new integral is harder than the original, swap your choice of $u$ and $dv$.
- Use substitution first if it works; parts is for products of different types of function.
- Watch signs: the minus in front of $\int v\,du$ applies to the whole integral.
- Differentiate your answer to check it.
"With $u = \arctan x$ and $dv = dx$: $\int \arctan x\,dx = x\arctan x - \int \frac{x}{1 + x^2}dx = x\arctan x - \frac{1}{2}\ln(1 + x^2) + C$."
Check yourself
A student chooses u = eˣ and dv = x dx for ∫ x eˣ dx. What happens?
Show the answer
The new integral ∫ (x²/2) eˣ dx is harder
The power of x goes up instead of down.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera