Educerie

Educerie · AP · Calculus AB and BC

Unit 6 Integration and Accumulation of Change · 6.11 Integrating Using Integration by Parts

This topic is BC only. It is not on the AB exam.

Big ideas: FUN (Functions). Integration by parts is the product rule run backwards. It trades an integral you cannot do for one you can.

The question this unit answers: How do we integrate a product of two different kinds of function?

Where it is examined: Section I multiple choice (BC): an indefinite or definite integral such as ∫xex dx\int x e^{x}\,dx or ∫1eln⁡x dx\int_1^e \ln x\,dx, often with exact answers. Section II free response (BC): the mixed Question 5 has used parts together with an improper integral or a differential equation, and the answer needs all the steps shown.


AP Calculus AB and BC 6.11

Integrating Using Integration by Parts

How do we integrate a product of two different kinds of function?

What you will learn

  • Understand integration by parts as the product rule integrated and rearranged.
  • Know how to choose u (log, inverse trig, power) and dv.
  • Understand that definite integrals need the boundary term.

You must be able to

  1. Integrate a product with parts, writing u, du, v, dv.
  2. Integrate ln x and arctan x with dv = dx.
  3. Repeat parts for a power of x times e^x.
  4. Solve the integral that returns as an equation.
  5. Evaluate a definite integral by parts with the boundary term.

1The method

  1. Choose uu and call everything else, including dxdx, dvdv.
  2. Differentiate uu to get dudu.
  3. Integrate dvdv to get vv. A constant is not needed here.
  4. Write uv−∫v duuv - \int v\,du.
  5. Integrate the new integral and add +C+ C.
  6. Check by differentiating.

Example (invented): ∫xex dx\displaystyle\int x e^x\,dx.

  • u=xu = x, so du=dxdu = dx. dv=ex dxdv = e^x\,dx, so v=exv = e^x.
  • ∫xex dx=xex−∫ex dx=xex−ex+C\int x e^x\,dx = x e^x - \int e^x\,dx = x e^x - e^x + C.

Check: ddx(xex−ex)=ex+xex−ex=xex\frac{d}{dx}\left(x e^x - e^x\right) = e^x + x e^x - e^x = x e^x.

2Parts or substitution?

A product does not always need parts. Look for an inside function whose derivative is the other factor.

  • ∫xex2 dx\int x e^{x^2}\,dx has the inside function x2x^2, and xx is its derivative up to a constant. Substitute (6.9).
  • ∫xex dx\int x e^{x}\,dx has no such pairing, since xx is not the derivative of anything inside exe^x. Use parts.

Substitution is faster when it fits, so test for it first.

3Choosing uu

The new integral ∫v du\int v\,du should be simpler than the old one.

A good uu is something that becomes simpler when differentiated, and a good dvdv is something you can integrate. In order of preference for uu:

  1. A logarithm or an inverse trig function: ln⁡x\ln x, arctan⁡x\arctan x. They cannot be integrated directly, but their derivatives are algebraic.
  2. A power of xx: xx, x2x^2. Each differentiation lowers the power.
  3. A trig or exponential function: sin⁡x\sin x, exe^x. These stay the same size when differentiated or integrated, so they are the usual choice for dvdv.

Try it the other way and the integral usually gets worse. With u=exu = e^x and dv=x dxdv = x\,dx in the example above, v=x22v = \tfrac{x^2}{2}, and the new integral ∫x22ex dx\int \tfrac{x^2}{2}e^x\,dx is harder.

4More examples

Trig times a power. ∫xcos⁡x dx\displaystyle\int x\cos x\,dx: u=xu = x, dv=cos⁡x dxdv = \cos x\,dx, v=sin⁡xv = \sin x. The result is xsin⁡x−∫sin⁡x dx=xsin⁡x+cos⁡x+Cx\sin x - \int \sin x\,dx = x\sin x + \cos x + C.

A logarithm alone. ∫ln⁡x dx\displaystyle\int \ln x\,dx: there is no product, so take dv=dxdv = dx. Let u=ln⁡xu = \ln x, du=1x dxdu = \tfrac{1}{x}\,dx, v=xv = x. The result is xln⁡x−∫x⋅1x dx=xln⁡x−x+Cx\ln x - \int x\cdot\tfrac{1}{x}\,dx = x\ln x - x + C.

A logarithm times a power. ∫x2ln⁡x dx\displaystyle\int x^2\ln x\,dx: u=ln⁡xu = \ln x, dv=x2 dxdv = x^2\,dx, v=x33v = \tfrac{x^3}{3}. The result is x33ln⁡x−∫x23 dx=x33ln⁡x−x39+C\tfrac{x^3}{3}\ln x - \int \tfrac{x^2}{3}\,dx = \tfrac{x^3}{3}\ln x - \tfrac{x^3}{9} + C.

An inverse trig function. ∫arctan⁡x dx\displaystyle\int \arctan x\,dx: u=arctan⁡xu = \arctan x, dv=dxdv = dx, so du=11+x2 dxdu = \tfrac{1}{1 + x^2}\,dx and v=xv = x. The new integral ∫x1+x2 dx\int \tfrac{x}{1 + x^2}\,dx is done by substitution, giving xarctan⁡x−12ln⁡(1+x2)+Cx\arctan x - \tfrac{1}{2}\ln(1 + x^2) + C.

5Repeating parts

If one round leaves an integral that still needs parts, do it again.

Example (invented): ∫x2ex dx\displaystyle\int x^2 e^x\,dx.

  • First: u=x2u = x^2, dv=ex dxdv = e^x\,dx. The result is x2ex−∫2xex dxx^2 e^x - \int 2x e^x\,dx.
  • Second, on ∫2xex dx\int 2x e^x\,dx: 2(xex−ex)2\left(x e^x - e^x\right) from section 2.
  • Together: x2ex−2xex+2ex+C=ex(x2−2x+2)+Cx^2 e^x - 2x e^x + 2e^x + C = e^x(x^2 - 2x + 2) + C.

Each round lowers the power of xx by one, so a power nn needs nn rounds.

A table keeps repeated parts tidy. List uu and its derivatives down one column until you reach 0, and dvdv and its antiderivatives down another. Multiply each uu-entry by the dvdv-entry one row below it, with signs +,−,+,…+, -, +, \dots. For x2exx^2 e^x, the rows are x2,2x,2,0x^2, 2x, 2, 0 and ex,ex,ex,exe^x, e^x, e^x, e^x, and the result is x2ex−2xex+2exx^2 e^x - 2x e^x + 2e^x. This is only a way of writing the same steps.

6When the integral comes back

For ∫exsin⁡x dx\int e^x\sin x\,dx, parts twice returns the original integral. Treat it as an equation.

Let I=∫exsin⁡x dxI = \int e^x\sin x\,dx. With u=sin⁡xu = \sin x, dv=ex dxdv = e^x\,dx, one round gives I=exsin⁡x−∫excos⁡x dxI = e^x\sin x - \int e^x\cos x\,dx. A second round on ∫excos⁡x dx\int e^x\cos x\,dx, with u=cos⁡xu = \cos x, gives excos⁡x+∫exsin⁡x dxe^x\cos x + \int e^x\sin x\,dx, so

I=exsin⁡x−excos⁡x−I⇒2I=ex(sin⁡x−cos⁡x)⇒I=12ex(sin⁡x−cos⁡x)+C I = e^x\sin x - e^x\cos x - I \quad\Rightarrow\quad 2I = e^x(\sin x - \cos x) \quad\Rightarrow\quad I = \tfrac{1}{2}e^x(\sin x - \cos x) + C

Keep the same kind of choice for uu in both rounds (the trig function both times), or you will undo your first step.

7Definite integrals

For limits, apply them to both terms.

∫abu dv=[uv]ab−∫abv du \int_a^b u\,dv = \Bigl[uv\Bigr]_a^b - \int_a^b v\,du

Example (invented): ∫0πxsin⁡x dx\displaystyle\int_0^{\pi} x\sin x\,dx. With u=xu = x, dv=sin⁡x dxdv = \sin x\,dx, v=−cos⁡xv = -\cos x:

[−xcos⁡x]0π+∫0πcos⁡x dx=(π−0)+[sin⁡x]0π=π+0=π \Bigl[-x\cos x\Bigr]_0^{\pi} + \int_0^{\pi}\cos x\,dx = (\pi - 0) + \Bigl[\sin x\Bigr]_0^{\pi} = \pi + 0 = \pi

Example (invented): ∫1eln⁡x dx=[xln⁡x−x]1e=(e−e)−(0−1)=1\displaystyle\int_1^e \ln x\,dx = \Bigl[x\ln x - x\Bigr]_1^e = (e - e) - (0 - 1) = 1.

The boundary term [uv]ab\left[uv\right]_a^b is easy to lose. If it vanishes at both ends (as when u=0u = 0 at the limits), it is still worth writing it down.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.