Unit 6 · Topic 6.11

Integration by Parts

Integration by parts is the product rule run backward: ∫ u dv = uv − ∫ v du .

Practice 1: Implementing Mathematical ProcessesPractice 4: Communication and Notation

Part 1 · Hook

Why this matters

The product rule turns xsin⁡xx\sin x into sin⁡x+xcos⁡x\sin x + x\cos x. Read backward, it says that an integral of a product can be traded for a different integral, often a much easier one. That trade is integration by parts, and it is how you integrate xcos⁡xx\cos x, xe3xxe^{3x} and even ln⁡x\ln x, none of which substitution can touch.

Part 2 · Before you start

What this builds on

Part 3 · Prerequisite check

Quick check before you start

1. ddx(xsin⁡x)=\frac{d}{dx}\left(x\sin x\right) =

  1. sin⁡x+xcos⁡x\sin x + x\cos x
  2. cos⁡x\cos x
  3. xcos⁡xx\cos x
  4. sin⁡x−xcos⁡x\sin x - x\cos x
Show the answer

Product rule: (1)sin⁡x+xcos⁡x(1)\sin x + x\cos x.

  • Correct: sin⁡x+xcos⁡x\sin x + x\cos x:
  • cos⁡x\cos x:
  • xcos⁡xx\cos x:
  • sin⁡x−xcos⁡x\sin x - x\cos x:

2. ∫e3xdx=\int e^{3x}\,dx =

  1. 13e3x+C\frac{1}{3}e^{3x} + C
  2. 3e3x+C3e^{3x} + C
  3. e3x+Ce^{3x} + C
  4. 14e4x+C\frac{1}{4}e^{4x} + C
Show the answer

A linear inside function: divide by 3.

  • Correct: 13e3x+C\frac{1}{3}e^{3x} + C:
  • 3e3x+C3e^{3x} + C:
  • e3x+Ce^{3x} + C:
  • 14e4x+C\frac{1}{4}e^{4x} + C:

Part 4 · See it

See it first

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.
Along v = ln u from (1, 0) to (e, 1), the area under the curve (∫ v du) and the area to its left (∫ u dv) fill the e-by-1 rectangle. One area is the rectangle minus the other: that is integration by parts. LevlPrep original diagram.

Part 5 · Step by step

How it works, step by step

  1. The product rule says ddx(uv)\frac{d}{dx}(uv)=udvdx+vdudx= u\frac{dv}{dx} + v\frac{du}{dx}integrating both sides gives uv=∫udv+∫vduuv = \int u\,dv + \int v\,du
  2. Solve for one of the integrals∫udv=uv−∫vdu\int u\,dv = uv - \int v\,du: an integral traded for another
  3. Choose uu to get simpler when differentiated and dvdv to be easy to integratethe new integral ∫vdu\int v\,du is easier than the old one
  4. The new integral still holds a power of xxrepeat parts, or lay the steps out in a table (the tabular method)
  5. The integral is definiteevaluate uvuv at both bounds: ∫abudv\int_a^b u\,dv=uv|ab−∫abvdu= uv\Big|_a^b - \int_a^b v\,du

Part 6 · Key ideas

Key ideas

  • Formula: ∫udv=uv−∫vdu\int u\,dv = uv - \int v\,du. Write uu, dvdv, dudu and vv before you start.
  • Put in uu what gets simpler when differentiated (a power of xx, ln⁡x\ln x, an inverse trigonometric function); put in dvdv what you can integrate (ekxe^{kx}, sin⁡kx\sin kx, cos⁡kx\cos kx).
  • A power xnx^n times ekxe^{kx}, sin⁡kx\sin kx or cos⁡kx\cos kx takes nn rounds of parts; the tabular method does them all at once with alternating signs.
  • Definite integrals: ∫abudv\int_a^b u\,dv=uv|ab−∫abvdu= uv\Big|_a^b - \int_a^b v\,du. The uvuv term needs its bounds too.

Part 7 · Misconception

A common mistake

The wrong idea: ∫xcos⁡xdx\int x\cos x\,dx=x22sin⁡x+C= \frac{x^2}{2}\sin x + C: integrate each factor.

What actually happens: The antiderivative of a product is not the product of the antiderivatives (differentiate x22sin⁡x\frac{x^2}{2}\sin x to see). With u=xu = x and dv=cos⁡xdxdv = \cos x\,dx: xsin⁡x−∫sin⁡xdxx\sin x - \int \sin x\,dx=xsin⁡x= x\sin x+cos⁡x+ \cos x+C+ C.

Part 8 · Check yourself

Check yourself

Exam-style questions. Anything you miss goes into your review queue.

Table

Tabular integration of x2e2xx^2 e^{2x}

A student finds ∫x2e2xdx\int x^2 e^{2x}\,dx by the tabular method. The left column holds u=x2u = x^2 and its derivatives down to 0; the right column holds dv=e2xdxdv = e^{2x}\,dx and its repeated antiderivatives. Each diagonal product, from a row of the left column to the next row of the right column, is one term of the answer, with the signs alternating.
Tabular layout for the integral of x squared times e to the 2x
Signuu and its derivativesdvdv and its antiderivatives
++x2x^2e2xe^{2x}
−-2x2x12e2x\frac{1}{2}e^{2x}
++2214e2x\frac{1}{4}e^{2x}
0018e2x\frac{1}{8}e^{2x}

1. Why is x2x^2 put in the uu column rather than e2xe^{2x}?

  1. Because e2xe^{2x} has no derivative that can be written down
  2. Because the uu column is for the factor with the larger value
  3. Either choice gives the answer in exactly three rows
  4. Its derivatives reach 0, while e2xe^{2x} can be integrated again and again
Show the answer

The table stops when the uu column reaches 0. Powers of xx do that after a few derivatives; e2xe^{2x} only gets multiplied by constants, so it belongs in the dvdv column.

  • Because e2xe^{2x} has no derivative that can be written down: e2xe^{2x} has the derivative 2e2x2e^{2x}. The reason is what happens to x2x^2: its derivatives reach 0.
  • Because the uu column is for the factor with the larger value: Size has nothing to do with it. Choose uu so that its derivatives get simpler and end at 0.
  • Either choice gives the answer in exactly three rows: With u=e2xu = e^{2x} the dvdv column would integrate x2x^2 upward to x33,x412,…\frac{x^3}{3}, \frac{x^4}{12}, \ldots and the table would never end.
  • Correct: Its derivatives reach 0, while e2xe^{2x} can be integrated again and again: Right: differentiating x2x^2 three times gives 0, which ends the table, and e2xe^{2x} never gets harder to integrate.

2. Which product is the second term of the answer?

  1. −2x⋅14e2x-2x \cdot \frac{1}{4}e^{2x}
  2. −2x⋅12e2x-2x \cdot \frac{1}{2}e^{2x}
  3. +2x⋅14e2x+2x \cdot \frac{1}{4}e^{2x}
  4. −2x⋅18e2x-2x \cdot \frac{1}{8}e^{2x}
Show the answer

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

  • Correct: −2x⋅14e2x-2x \cdot \frac{1}{4}e^{2x}: Right: the second row's uu entry, 2x2x, times the next row's dvdv entry, 14e2x\frac{1}{4}e^{2x}, with the second sign, minus.
  • −2x⋅12e2x-2x \cdot \frac{1}{2}e^{2x}: That multiplies across one row. Each term runs on a diagonal: 2x2x times the entry one row lower, 14e2x\frac{1}{4}e^{2x}.
  • +2x⋅14e2x+2x \cdot \frac{1}{4}e^{2x}: The diagonal is right but the sign is not: the signs alternate +,−,++, -, +, so the second term is subtracted.
  • −2x⋅18e2x-2x \cdot \frac{1}{8}e^{2x}: That skips a row. The diagonal from 2x2x goes to the very next row of the right column, 14e2x\frac{1}{4}e^{2x}.

3. Use the table to find ∫x2e2xdx\int x^2 e^{2x}\,dx. Include +C+ C.

Type an expression for ∫x2e2xdx=\int x^2 e^{2x}\,dx =.

Show the answer

12x2e2x−12xe2x\frac{1}{2}x^2e^{2x} - \frac{1}{2}xe^{2x}+14e2x+ \frac{1}{4}e^{2x}+C+ C=e2x(x22−x2+14)= e^{2x}\left(\frac{x^2}{2} - \frac{x}{2} + \frac{1}{4}\right)+C+ C. Check by differentiating: the product rule gives back x2e2xx^2e^{2x}.

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

4. Find ∫xcos⁡xdx\int x\cos x\,dx. Include +C+ C.

Type an expression for ∫xcos⁡xdx=\int x\cos x\,dx =.

Show the answer

u=xu = x, dv=cos⁡xdxdv = \cos x\,dx, du=dxdu = dx, v=sin⁡xv = \sin x: xsin⁡x−∫sin⁡xdxx\sin x - \int \sin x\,dx=xsin⁡x= x\sin x+cos⁡x+ \cos x+C+ C.

  • Answer: ∫xcos⁡xdx=\int x\cos x\,dx = xsin⁡(x)+cos⁡(x)+Cx\,\sin(x) + \cos(x) + C

5. Find ∫ln⁡xdx\int \ln x\,dx for x>0x > 0. Include +C+ C.

Type an expression for ∫ln⁡xdx=\int \ln x\,dx =.

Show the answer

u=ln⁡xu = \ln x, dv=dxdv = dx, du=1xdxdu = \frac{1}{x}\,dx, v=xv = x: xln⁡x−∫x⋅1xdxx\ln x - \int x \cdot \frac{1}{x}\,dx=xln⁡x−x+C= x\ln x - x + C.

  • Answer: ∫ln⁡xdx=\int \ln x\,dx = xln⁡(x)−x+Cx\,\ln(x) - x + C

6. A student writes ∫12xexdx\int_1^2 xe^x\,dx=xex−∫12exdx= xe^x - \int_1^2 e^x\,dx=xex−(e2−e)= xe^x - (e^2 - e). What is wrong?

  1. dudu should be xdxx\,dx, not dxdx
  2. The integral of exe^x on [1,2][1, 2] is e2e^2, not e2−ee^2 - e
  3. The term uv=xexuv = xe^x is never evaluated from 1 to 2
  4. uu and dvdv should be swapped so that u=exu = e^x
Show the answer

xex|12−(e2−e)xe^x\Big|_1^2 - (e^2 - e)=(2e2−e)−(e2−e)= (2e^2 - e) - (e^2 - e)=e2= e^2. Leaving uvuv unevaluated mixes a function with a number, and the scoring guidelines give no answer point for it.

  • dudu should be xdxx\,dx, not dxdx: With u=xu = x, du=dxdu = dx. That step is right; xexxe^x was left without its bounds.
  • The integral of exe^x on [1,2][1, 2] is e2e^2, not e2−ee^2 - e: ∫12exdx\int_1^2 e^x\,dx=e2−e= e^2 - e is right. The problem is the unevaluated xexxe^x.
  • Correct: The term uv=xexuv = xe^x is never evaluated from 1 to 2: Right: a definite integral by parts is uv|12−∫12vduuv\Big|_1^2 - \int_1^2 v\,du; the answer must be a number, here e2e^2.
  • uu and dvdv should be swapped so that u=exu = e^x: u=xu = x is the right choice: it simplifies to 1. The error is the missing bounds on xexxe^x.

Part 9 · Summary

Summary

Integration by parts is the product rule run backward: ∫udv=uv−∫vdu\int u\,dv = uv - \int v\,du. Choose uu to simplify when differentiated and dvdv to integrate easily, write out uu, dvdv, dudu and vv, and in a definite integral evaluate uvuv at both bounds. Repeated parts, or the tabular method, handles xnx^n times an exponential or a sine.

Part 10 · Up next

What comes next

Part 11 · Connections

Connections