P4 6.2 - Integration by parts

P4 6.2 - Integration by parts

Reverse the product rule to integrate products whose factors cannot be handled by substitution. Learn how to choose a useful factor to differentiate, integrate logarithms, and continue when the method must be applied more than once.

Reversing the product rule

Can you integrate xexxe^x by integrating its two factors separately? The guess (x2/2)ex(x^2/2)e^x fails: its derivative contains an unwanted extra term. Instead, start from a product whose derivative includes xexxe^x.

The product rule gives (xex)′=ex+xex(xe^x)'=e^x+xe^x. Rearrange and integrate to obtain ∫xex dx=xex−∫ex dx\int xe^x\,dx=xe^x-\int e^x\,dx. The difficult product has become a product minus a simpler integral.

Integration by parts

For differentiable functions uu and vv,

∫udvdx dx=uv−∫vdudx dx.\int u\frac{dv}{dx}\,dx=uv-\int v\frac{du}{dx}\,dx.

Choose uu, differentiate it, choose dv/dxdv/dx, and integrate that to obtain vv.

In the formula booklet.

The formula follows by integrating (uv)′=u′v+uv′(uv)'=u'v+uv' and rearranging. Its minus sign is essential.

Worked example 1: remove a factor of x

Find ∫xex dx\int xe^x\,dx.

Plan. Differentiate u=xu=x so that it becomes 11, and integrate dv/dx=exdv/dx=e^x.

u=x,dudx=1,dvdx=ex,v=ex.u=x,\quad \frac{du}{dx}=1,\quad \frac{dv}{dx}=e^x,\quad v=e^x. ∫xex dx=xex−∫ex dx=xex−ex+C.\int xe^x\,dx=xe^x-\int e^x\,dx=xe^x-e^x+C.

Answer. ex(x−1)+Ce^x(x-1)+C.

Check. Differentiating the factorised answer gives ex(x−1)+ex=xexe^x(x-1)+e^x=xe^x.

Change only the exponential's inner coefficient from 11 to 22. Every integration of the exponential now needs a factor of 1/21/2.

Worked example 2: keep the integration factor

Find ∫xe2x dx\int xe^{2x}\,dx.

Plan. Keep u=xu=x, but use v=12e2xv=\frac12e^{2x}.

∫xe2x dx=x2e2x−12∫e2x dx=x2e2x−14e2x+C\begin{aligned} \int xe^{2x}\,dx &=\frac{x}{2}e^{2x}-\frac12\int e^{2x}\,dx\\ &=\frac{x}{2}e^{2x}-\frac14e^{2x}+C \end{aligned}

Answer. 14e2x(2x−1)+C\frac14e^{2x}(2x-1)+C.

Check. Its derivative is 12e2x(2x−1)+12e2x=xe2x\frac12e^{2x}(2x-1)+\frac12e^{2x}=xe^{2x}.

Choose vv without an arbitrary constant; one final CC covers the family of antiderivatives.

Watch out

For dv/dx=e2xdv/dx=e^{2x}, v=12e2xv=\frac12e^{2x}, not 2e2x2e^{2x}. Check this small integration before inserting it into the parts formula.

Only the exponential coefficient changes again.

Choosing the differentiated factor

A useful choice makes the remaining integral easier than the original one. A polynomial usually simplifies when differentiated, while an exponential, sine or cosine stays easy to integrate.

For xcos⁡xx\cos x, choosing u=xu=x leaves only sine to integrate. Choosing u=cos⁡xu=\cos x instead gives a remaining integral involving x2sin⁡xx^2\sin x: valid algebra, but harder work. A memorised ordering can suggest a choice; the decisive test is whether the new integral becomes simpler.

Worked example 3: a trigonometric product

Find ∫xcos⁡x dx\int x\cos x\,dx.

Plan. Set u=xu=x and dv/dx=cos⁡xdv/dx=\cos x, so v=sin⁡xv=\sin x.

∫xcos⁡x dx=xsin⁡x−∫sin⁡x dx=xsin⁡x+cos⁡x+C.\int x\cos x\,dx=x\sin x-\int\sin x\,dx =x\sin x+\cos x+C.

The final plus sign comes from subtracting the antiderivative −cos⁡x-\cos x.

Answer. xsin⁡x+cos⁡x+Cx\sin x+\cos x+C.

Check. Differentiation gives sin⁡x+xcos⁡x−sin⁡x=xcos⁡x\sin x+x\cos x-\sin x=x\cos x.

Change only cosine to sine. The best differentiated factor remains xx, but the integrated factor has a minus sign.

Worked example 4: two minus signs

Find ∫xsin⁡x dx\int x\sin x\,dx.

Plan. Choose u=xu=x, du/dx=1du/dx=1 and v=−cos⁡xv=-\cos x.

∫xsin⁡x dx=−xcos⁡x−∫(−cos⁡x) dx=−xcos⁡x+sin⁡x+C\begin{aligned} \int x\sin x\,dx &=-x\cos x-\int(-\cos x)\,dx\\ &=-x\cos x+\sin x+C \end{aligned}

Answer. −xcos⁡x+sin⁡x+C-x\cos x+\sin x+C.

Check. The derivative is −cos⁡x+xsin⁡x+cos⁡x=xsin⁡x-\cos x+x\sin x+\cos x=x\sin x.

For definite integrals, evaluate the product at both limits as well as the remaining integral: ∫abuv′ dx=[uv]ab−∫abvu′ dx\int_a^buv'\,dx=[uv]_a^b-\int_a^bvu'\,dx. Equivalently, first find the complete antiderivative, then substitute the limits.

Problem-solving

Before calculating, mentally compare the two choices for uu. Choose the one that reduces a polynomial's degree or changes a logarithm into a simpler reciprocal.

Keep this choice and change only the angle multiplier.

Integrating logarithms

The single function ln⁡x\ln x can be treated as the product (ln⁡x)×1(\ln x)\times1. Differentiate the logarithm, because 1/x1/x cancels the xx obtained by integrating 11.

The domain x>0x>0 is needed for ln⁡x\ln x. If the integrand were ln⁡∣x∣\ln|x|, the same reasoning would apply on either interval avoiding zero.

Worked example 5: supply a factor of one

Find ∫ln⁡x dx\int\ln x\,dx, for x>0x>0.

Plan. Choose u=ln⁡xu=\ln x, du/dx=1/xdu/dx=1/x, dv/dx=1dv/dx=1, v=xv=x.

∫ln⁡x dx=xln⁡x−∫x1x dx=xln⁡x−x+C.\int\ln x\,dx=x\ln x-\int x\frac1x\,dx =x\ln x-x+C.

The remaining integrand is 11, not 00.

Answer. xln⁡x−x+Cx\ln x-x+C.

Check. Differentiating gives ln⁡x+1−1=ln⁡x\ln x+1-1=\ln x.

Change only the factor multiplying ln⁡x\ln x, from 11 to xx. Keep differentiating the logarithm.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account