H5 - Integration by parts

H5 - Integration by parts

Integrate products by reversing the product rule. You will choose which factor to differentiate, integrate logarithms, apply the method twice when needed and keep both boundary terms in definite integrals.

Reversing the product rule

How can you integrate xe2xxe^{2x} when neither factor is the derivative of the other's inside? Differentiating 12xe2x\frac12xe^{2x} gives xe2x+12e2xxe^{2x}+\frac12e^{2x}. The extra term is easy to integrate and subtract. This is the idea behind integration by parts.

You already know

The product rule gives ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}. Integrating eaxe^{ax}, for constant a≠0a\ne0, gives eax/a+Ce^{ax}/a+C.

Integrate the product rule and rearrange: uv=∫udvdx dx+∫vdudx dxuv=\int u\frac{dv}{dx}\,dx+\int v\frac{du}{dx}\,dx. Moving the second integral to the other side explains the minus sign. Arbitrary constants can be collected into one final constant.

Integration by parts

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

Choose uu to differentiate and dv/dxdv/dx to integrate, on an interval where the functions and integrals are defined.
In the formula booklet.

A useful choice simplifies the remaining integral. Here differentiating the polynomial leaves a constant, whereas integrating the exponential keeps the same kind of function. The exponential antiderivative recalled above is not in the formula booklet: learn it.

Worked example 1: a linear factor disappears

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

Plan. Differentiate xx, integrate e2xe^{2x}, then integrate the simpler remainder.

u=x,dudx=1differentiate the polynomialdvdx=e2x,v=12e2xintegrate the exponential∫xe2x dx=12xe2x−12∫e2x dxparts=12xe2x−14e2x+Cintegrate again\begin{aligned} u&=x,\quad \frac{du}{dx}=1 && \text{differentiate the polynomial} \\ \frac{dv}{dx}&=e^{2x},\quad v=\frac12e^{2x} && \text{integrate the exponential} \\ \int xe^{2x}\,dx&=\frac12xe^{2x}-\frac12\int e^{2x}\,dx && \text{parts} \\ &=\frac12xe^{2x}-\frac14e^{2x}+C && \text{integrate again} \end{aligned}

Why this step? Differentiating xx removes the awkward factor, so the remaining integral is a single exponential.

Answer. 12xe2x−14e2x+C\frac12xe^{2x}-\frac14e^{2x}+C.

Check. Differentiation gives 12e2x+xe2x−12e2x=xe2x\frac12e^{2x}+xe^{2x}-\frac12e^{2x}=xe^{2x}.

Change only the coefficient of xx in the exponential, from 22 to 33. Each integration of that exponential now contributes a factor 1/31/3.

Worked example 2: keep the chain factors

Question. Find ∫xe3x dx\int xe^{3x}\,dx.

Plan. Use the same factor choices, keeping the new factor 1/31/3 at both integrations.

u=x,dudx=1differentiatedvdx=e3x,v=13e3xreverse chain rule∫xe3x dx=13xe3x−13∫e3x dxparts=13xe3x−19e3x+Cintegrate remainder\begin{aligned} u&=x,\quad \frac{du}{dx}=1 && \text{differentiate} \\ \frac{dv}{dx}&=e^{3x},\quad v=\frac13e^{3x} && \text{reverse chain rule} \\ \int xe^{3x}\,dx&=\frac13xe^{3x}-\frac13\int e^{3x}\,dx && \text{parts} \\ &=\frac13xe^{3x}-\frac19e^{3x}+C && \text{integrate remainder} \end{aligned}

Why this step? The coefficient outside the remaining integral multiplies the factor from integrating inside it; (1/3)(1/3)=1/9(1/3)(1/3)=1/9.

Answer. 13xe3x−19e3x+C\frac13xe^{3x}-\frac19e^{3x}+C.

Check. The derivative is 13e3x+xe3x−13e3x=xe3x\frac13e^{3x}+xe^{3x}-\frac13e^{3x}=xe^{3x}.

You can take the constant in vv as zero. Adding a constant to vv cancels between the product term and the remaining integral, up to the final arbitrary constant.

Watch out

Wrong: ∫xe3x dx=13xe3x+19e3x+C\int xe^{3x}\,dx=\frac13xe^{3x}+\frac19e^{3x}+C. The product rule's extra term must be subtracted. The correct second term is −e3x/9-e^{3x}/9.

Change only the exponential coefficient again in the next question. Write enough working to make the factor choices visible.

Choosing factors and integrating logarithms

A logarithm is often the factor to differentiate because its derivative is a reciprocal. For ln⁡x\ln x, write an otherwise hidden product: (ln⁡x)×1(\ln x)\times1. Integrating the 11 produces xx, which cancels the reciprocal 1/x1/x in the remainder.

The domain of ln⁡x\ln x is x>0x>0. Its derivative 1/x1/x and the power rule are not in the formula booklet: learn them. The integration-by-parts rule is supplied; the antiderivatives you derive here are not separately printed.

Worked example 3: reveal a factor of one

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

Plan. Differentiate the logarithm and integrate its factor 11.

u=ln⁡x,dudx=1xdifferentiate the logarithmdvdx=1,v=xintegrate the other factor∫ln⁡x dx=xln⁡x−∫x1x dxparts=xln⁡x−x+Cintegrate 1\begin{aligned} u&=\ln x,\quad \frac{du}{dx}=\frac1x && \text{differentiate the logarithm} \\ \frac{dv}{dx}&=1,\quad v=x && \text{integrate the other factor} \\ \int\ln x\,dx&=x\ln x-\int x\frac1x\,dx && \text{parts} \\ &=x\ln x-x+C && \text{integrate }1 \end{aligned}

Why this step? The reciprocal derivative cancels the new factor xx, leaving no logarithm in the remaining integral.

Answer. xln⁡x−x+Cx\ln x-x+C, for x>0x>0.

Check. ddx(xln⁡x−x)=ln⁡x+1−1=ln⁡x\frac{d}{dx}(x\ln x-x)=\ln x+1-1=\ln x.

Change only the polynomial factor, from 11 to xx. Keeping the logarithm as uu still makes the remaining integral a polynomial.

Worked example 4: differentiate the logarithm again

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

Plan. Differentiate ln⁡x\ln x and integrate xx.

u=ln⁡x,dudx=1xsame choice of udvdx=x,v=12x2power rule∫xln⁡x dx=12x2ln⁡x−12∫x dxcancel one x=12x2ln⁡x−14x2+Cintegrate remainder\begin{aligned} u&=\ln x,\quad \frac{du}{dx}=\frac1x && \text{same choice of }u \\ \frac{dv}{dx}&=x,\quad v=\frac12x^2 && \text{power rule} \\ \int x\ln x\,dx&=\frac12x^2\ln x-\frac12\int x\,dx && \text{cancel one }x \\ &=\frac12x^2\ln x-\frac14x^2+C && \text{integrate remainder} \end{aligned}

Why this step? Although xx also simplifies when differentiated, differentiating the logarithm removes it altogether from the remainder.

Answer. 12x2ln⁡x−14x2+C\frac12x^2\ln x-\frac14x^2+C, for x>0x>0.

Check. Its derivative is xln⁡x+x/2−x/2=xln⁡xx\ln x+x/2-x/2=x\ln x.

Choosing u=1u=1 in Worked example 3 would require integrating ln⁡x\ln x to find vv, which is exactly the task you started with. A choice is useful when you can integrate the other factor and the remainder becomes simpler. For trig products such as xcos⁡3xx\cos3x, differentiating xx and integrating the cosine is useful instead.

Watch out

Wrong: ∫ln⁡x dx=ln⁡x∫1 dx=xln⁡x+C\int\ln x\,dx=\ln x\int1\,dx=x\ln x+C. The factor ln⁡x\ln x is not constant. Parts subtracts the missing correction ∫1 dx=x\int1\,dx=x, giving xln⁡x−x+Cx\ln x-x+C.

Increase just the power of the polynomial factor in the next question. The reciprocal derivative still removes one power of xx.

Continue this lesson.

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

Create free account