Unit 6 Topic 6.11

Integration by Parts

every AB topic, then series

4 min readfreeNot practiced

Substitution undoes the chain rule. Integration by parts undoes the product rule, and it handles integrals that substitution cannot: ∫xcos⁡xdx\int x\cos x\,dx, ∫xe3xdx\int xe^{3x}\,dx, ∫ln⁡xdx\int \ln x\,dx. It is a BC-only topic, and it often appears on the free-response section as one part of a question that mixes techniques.

The product rule, run backward

For differentiable functions uu and vv of xx, the product rule says ddx(uv)\frac{d}{dx}(uv)=udvdx+vdudx= u\frac{dv}{dx} + v\frac{du}{dx}. Integrate both sides:

uv=∫udv+∫vdu,uv = \int u\,dv + \int v\,du,

so

∫udv=uv−∫vdu.\int u\,dv = uv - \int v\,du.

The formula trades one integral, ∫udv\int u\,dv, for another, ∫vdu\int v\,du. It helps only when the new integral is easier. The figure shows the trade as two areas that together fill a rectangle of area uvuv.

In the u-v plane, the curve v = ln u runs from (1, 0) to (e, 1). The region under it, from u = 1 to u = e, is shaded violet with area 1 (the integral of v du). The region to its left, from v = 0 to v = 1, is shaded blue with area e − 1, about 1.718 (the integral of u dv). Together they fill the dashed rectangle of area uv = e, so the integral of v du is uv minus the integral of u dv.
Figure 1. The two integrals are two areas; together they make the rectangle uv. LevlPrep original diagram.

Choosing u and dv

Split the integrand into uu (to be differentiated) and dvdv (to be integrated, and it must include dxdx). Two tests decide the split: uu should get simpler when you differentiate it, and you must be able to integrate dvdv.

IntegraluudvdvWhy
∫xcos⁡xdx\int x\cos x\,dxxxcos⁡xdx\cos x\,dxxx becomes 1
∫xe3xdx\int xe^{3x}\,dxxxe3xdxe^{3x}\,dxxx becomes 1
∫x2ln⁡xdx\int x^2\ln x\,dxln⁡x\ln xx2dxx^2\,dxln⁡x\ln x becomes 1x\frac{1}{x}
∫ln⁡xdx\int \ln x\,dxln⁡x\ln xdxdxv=xv = x
∫arctan⁡xdx\int \arctan x\,dxarctan⁡x\arctan xdxdxarctan⁡x\arctan x becomes 11+x2\frac{1}{1 + x^2}

A useful rule of thumb: logarithms and inverse trigonometric functions go in uu; exponentials, sines and cosines go in dvdv; a power of xx goes in uu unless a logarithm or an inverse trigonometric function is present.

Worked example 1. Find ∫xcos⁡xdx\int x\cos x\,dx.

Label the parts: u=xu = x, dv=cos⁡xdxdv = \cos x\,dx, so du=dxdu = dx and v=sin⁡xv = \sin x.

Apply the formula: ∫xcos⁡xdx\int x\cos x\,dx=xsin⁡x−∫sin⁡xdx= x\sin x - \int \sin x\,dx=xsin⁡x= x\sin x+cos⁡x+ \cos x+C+ C.

Check: ddx(xsin⁡x+cos⁡x)\frac{d}{dx}(x\sin x + \cos x)=sin⁡x= \sin x+xcos⁡x−sin⁡x+ x\cos x - \sin x=xcos⁡x= x\cos x.

Writing uu, dvdv, dudu and vv before applying the formula is the habit the scoring guidelines reward. Most lost points come from a wrong vv (a sign slip on ∫sin⁡xdx\int \sin x\,dx) or from multiplying two antiderivatives, which is never right.

Definite integrals: uv has bounds too

∫abudv=uv|ab−∫abvdu.\int_a^b u\,dv = uv\Big|_a^b - \int_a^b v\,du.

Worked example 2. Evaluate ∫1exln⁡xdx\int_1^e x\ln x\,dx.

u=ln⁡xu = \ln x, dv=xdxdv = x\,dx, so du=1xdxdu = \frac{1}{x}\,dx and v=x22v = \frac{x^2}{2}.

∫1exln⁡xdx\int_1^e x\ln x\,dx=x22ln⁡x|1e−∫1ex22⋅1xdx= \frac{x^2}{2}\ln x\Big|_1^e - \int_1^e \frac{x^2}{2}\cdot\frac{1}{x}\,dx=e22−x24|1e= \frac{e^2}{2} - \frac{x^2}{4}\Big|_1^e=e22−e24= \frac{e^2}{2} - \frac{e^2}{4}+14+ \frac{1}{4}=e2+14.= \frac{e^2 + 1}{4}.

Writing xln⁡x−∫1e…x\ln x - \int_1^e \ldots with no bounds on the first term mixes a function with a number; the answer must be a number.

Repeated parts and the tabular method

For x2e2xx^2e^{2x}, one round of parts leaves ∫xe2xdx\int xe^{2x}\,dx, which needs a second round. The tabular method does every round at once. List uu and its derivatives down to 0 in one column, dvdv and its repeated antiderivatives in the other, and multiply along the diagonals with signs +,−,+,…+, -, +, \ldots

Worked example 3. Find ∫x2e2xdx\int x^2e^{2x}\,dx.

Left column: x2x^2, 2x2x, 22, 00. Right column: e2xe^{2x}, 12e2x\frac{1}{2}e^{2x}, 14e2x\frac{1}{4}e^{2x}, 18e2x\frac{1}{8}e^{2x}.

Diagonals: +x2⋅12e2x−2x⋅14e2x+x^2\cdot\frac{1}{2}e^{2x} - 2x\cdot\frac{1}{4}e^{2x}+2⋅18e2x+ 2\cdot\frac{1}{8}e^{2x}, so

∫x2e2xdx=e2x(x22−x2+14)+C.\int x^2e^{2x}\,dx = e^{2x}\left(\frac{x^2}{2} - \frac{x}{2} + \frac{1}{4}\right) + C.

The table works only when the uu column reaches 0, so it suits a power of xx times ekxe^{kx}, sin⁡kx\sin kx or cos⁡kx\cos kx.

When the original integral comes back

For ∫exsin⁡xdx\int e^x\sin x\,dx, two rounds of parts give ∫exsin⁡xdx\int e^x\sin x\,dx=exsin⁡x−excos⁡x−∫exsin⁡xdx= e^x\sin x - e^x\cos x - \int e^x\sin x\,dx. Do not go around a third time. Treat the integral as an unknown II: 2I=ex(sin⁡x−cos⁡x)2I = e^x(\sin x - \cos x), so II=12ex(sin⁡x−cos⁡x)+C= \frac{1}{2}e^x(\sin x - \cos x) + C.

Parts with functions given by tables

Parts also works when ff is known only through values. With u=xu = x and dv=f′(x)dxdv = f'(x)\,dx, ∫abxf′(x)dx\int_a^b xf'(x)\,dx=xf(x)|ab−∫abf(x)dx= xf(x)\Big|_a^b - \int_a^b f(x)\,dx. You need f(a)f(a), f(b)f(b) and the value of ∫abf(x)dx\int_a^b f(x)\,dx, which a question gives or lets you find.

Spot a mistake on this page?