3.5 - Integration by parts

3.5 - Integration by parts

The product of two easy functions may be awkward to integrate. Integration by parts reverses the product rule and replaces one integral with another, chosen to be simpler. In this part of 3.5, you will make that choice, repeat the method when necessary and uncover products hidden inside logarithmic and inverse-tangent integrals.

Reversing the product rule

What differentiates to xe2xxe^{2x}? The tempting answer xe2x/2xe^{2x}/2 produces the wanted term, but also an unwanted e2x/2e^{2x}/2. Integration by parts organises exactly this extra-term correction.

The product rule says

ddx(uv)=udvdx+vdudx.\frac{\mathrm d}{\mathrm dx}(uv) =u\frac{\mathrm dv}{\mathrm dx}+v\frac{\mathrm du}{\mathrm dx}.

Integrating and rearranging gives the new rule. We deliberately choose which factor to differentiate, uu, and which factor to integrate, dv/dx\mathrm dv/\mathrm dx.

Integration by parts

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

Choose uu so that differentiating it simplifies the remaining integral, and choose dv/dx\mathrm dv/\mathrm dx so that you can find vv. Include an arbitrary constant in the final indefinite result.

In the formula booklet.

For xe2xxe^{2x}, choose u=xu=x because its derivative is 11, while integrating the exponential keeps its shape. Taking u=e2xu=e^{2x} instead would introduce an x2x^2 factor into the remaining integral, making it harder.

Worked example 1: a polynomial and an exponential

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

Plan. Differentiate xx, integrate e2xe^{2x}, then subtract the extra integral created by the product rule.

u=x,dudx=1,dvdx=e2x,v=12e2x.u=x,\quad \frac{\mathrm du}{\mathrm dx}=1, \qquad \frac{\mathrm dv}{\mathrm dx}=e^{2x},\quad v=\frac12e^{2x}.

Thus

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

Answer. e2x(x/2−1/4)+Ce^{2x}(x/2-1/4)+C.

Check. Differentiating the expanded answer gives e2x/2+xe2x−e2x/2=xe2xe^{2x}/2+xe^{2x}-e^{2x}/2=xe^{2x}. The unwanted terms cancel.

Keep the factor xx and replace the exponential with a sine of the same argument. The choice of uu stays the same; the integral of sine introduces a negative sign.

Worked example 2: a polynomial and a sine

Question. Find ∫xsin⁡(2x) dx\displaystyle\int x\sin(2x)\,\mathrm dx.

Plan. Differentiate xx, integrate the sine and keep the subtraction in the parts formula visible.

Take u=xu=x, du/dx=1\mathrm du/\mathrm dx=1, dv/dx=sin⁡(2x)\mathrm dv/\mathrm dx=\sin(2x), v=−cos⁡(2x)/2v=-\cos(2x)/2. Therefore

∫xsin⁡(2x) dx=−x2cos⁡(2x)−∫(−12cos⁡(2x)) dx=−x2cos⁡(2x)+14sin⁡(2x)+C\begin{aligned} \int x\sin(2x)\,\mathrm dx &=-\frac{x}{2}\cos(2x)-\int\left(-\frac12\cos(2x)\right)\,\mathrm dx\\ &=-\frac{x}{2}\cos(2x)+\frac14\sin(2x)+C \end{aligned}

Answer. −xcos⁡(2x)/2+sin⁡(2x)/4+C-x\cos(2x)/2+\sin(2x)/4+C, with angles in radians.

Check. Its derivative is −cos⁡(2x)/2+xsin⁡(2x)+cos⁡(2x)/2=xsin⁡(2x)-\cos(2x)/2+x\sin(2x)+\cos(2x)/2=x\sin(2x).

The method does not multiply the separate antiderivatives of the two factors. It replaces the original integral with a product minus another integral, and that second integral is what removes the unwanted derivative term.

Watch out

The formula has a subtraction: uv−∫vu′ dxuv-\int vu'\,\mathrm dx. If vv is already negative, write brackets before simplifying. Dropping either sign spoils the cancellation in the derivative check.

Use the same choice of the factor to differentiate, this time with a cosine.

Repeating the method

A quadratic factor becomes linear after one differentiation, then constant after a second. If one use of integration by parts leaves a polynomial times an exponential or trigonometric function, use it again. The polynomial's falling degree tells you that this process will finish.

For instance, starting with x2e−xx^2e^{-x}, choosing u=x2u=x^2 and v=−e−xv=-e^{-x} leaves an integral involving xe−xxe^{-x}. That is simpler, even though it still needs integration by parts.

Problem-solving

Give the remaining integral a name if signs become hard to track. Finish it separately, then substitute the whole result back with brackets. A simpler integral need not be immediately integrable in one step.

The first example carries the negative exponential through both applications.

Worked example 3: two applications with a decaying exponential

Question. Find ∫x2e−x dx\displaystyle\int x^2e^{-x}\,\mathrm dx.

Plan. Differentiate the polynomial each time, reducing its degree from two to one and then zero.

Let I=∫x2e−x dxI=\int x^2e^{-x}\,\mathrm dx. With u=x2u=x^2, v=−e−xv=-e^{-x},

I=−x2e−x+2∫xe−x dx.I=-x^2e^{-x}+2\int xe^{-x}\,\mathrm dx.

For the remaining integral, use u=xu=x, v=−e−xv=-e^{-x}:

∫xe−x dx=−xe−x+∫e−x dx=−xe−x−e−x\begin{aligned} \int xe^{-x}\,\mathrm dx &=-xe^{-x}+\int e^{-x}\,\mathrm dx\\ &=-xe^{-x}-e^{-x} \end{aligned}

Using one final arbitrary constant,

I=−x2e−x−2xe−x−2e−x+C.I=-x^2e^{-x}-2xe^{-x}-2e^{-x}+C.

Answer. −e−x(x2+2x+2)+C-e^{-x}(x^2+2x+2)+C.

Check. Product differentiation gives e−x(x2+2x+2)−e−x(2x+2)=x2e−xe^{-x}(x^2+2x+2)-e^{-x}(2x+2)=x^2e^{-x}.

Keep the quadratic factor and change only the other factor to cos⁡x\cos x. The degree still falls twice; the sine and cosine signs now alternate.

Worked example 4: two applications with cosine

Question. Find ∫x2cos⁡x dx\displaystyle\int x^2\cos x\,\mathrm dx.

Plan. Reduce the polynomial degree twice, keeping the coefficient −2-2 outside the second integral until it is finished.

First choose u=x2u=x^2, v=sin⁡xv=\sin x:

I=x2sin⁡x−2∫xsin⁡x dx.I=x^2\sin x-2\int x\sin x\,\mathrm dx.

In the remaining integral, choose u=xu=x, v=−cos⁡xv=-\cos x:

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

Therefore

I=x2sin⁡x−2(−xcos⁡x+sin⁡x)+C=x2sin⁡x+2xcos⁡x−2sin⁡x+C\begin{aligned} I&=x^2\sin x-2(-x\cos x+\sin x)+C\\ &=x^2\sin x+2x\cos x-2\sin x+C \end{aligned}

Answer. x2sin⁡x+2xcos⁡x−2sin⁡x+Cx^2\sin x+2x\cos x-2\sin x+C.

Check. Differentiation gives

2xsin⁡x+x2cos⁡x+2cos⁡x−2xsin⁡x−2cos⁡x=x2cos⁡x.2x\sin x+x^2\cos x+2\cos x-2x\sin x-2\cos x=x^2\cos x.

Continue this lesson.

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

Create free account