70 Integration by Parts

Recall the product rule:

[latex]\cfrac{d}{dx} f \cdot g = f g' + g f'[/latex]

If we use [latex]u[/latex] and [latex]v[/latex] instead of [latex]f[/latex] and [latex]g[/latex], this becomes

[latex]\frac{d}{dx} u \cdot v = u v' + v u'.[/latex]

Now let’s integrate both sides and solve for [latex]u v'[/latex]
\begin{align*}
\frac{d}{dx} u \cdot v & = u v’ + v u’ \\
\int \frac{d}{dx} uvdx & = \int u v’ + v u’dx \\
uv & = \int u v’dx + \int v u’ dx \\
uv – \int v u’dx & = \int u v’dx,
\end{align*}
Flipping this around, we have the inverse product rule, also called integration by parts.

[latex]\boxed{\int u v'dx = uv - \int u' v}[/latex]

The tricky part is what to use as [latex]u[/latex], and what to use as [latex]v'[/latex]. Here are some steps and guidelines to follow, but it takes some intuition building before you know how to use it sometimes, and some product integrals cannot be solved with integration by parts.

 

Integration by parts:

  1. Think of your original integral as a product. Identify a function that is easy to integrate, and set it equal to [latex]v'[/latex]. The other function should be something that will simplify nicely once you take the derivative.
  2. Find [latex]u'[/latex] (take the derivative of [latex]u[/latex]) and find [latex]v[/latex] (integrate [latex]v'[/latex])
  3. Using substitution, plug in the values for [latex]u[/latex], [latex]v[/latex], [latex]v[/latex] and [latex]u'[/latex] in the integration by parts formula.
  4. This gives you another integral — hopefully this one is easier. If not, you may need to use [latex]u[/latex]-substitution, or even integration by parts a second time.

 

Integration by parts

Find [latex]\int_0^2 x e^xdx[/latex].

Let’s follow the integration by parts steps:

  1. The function we are integrating is [latex]x e^x[/latex], which is a product in two pieces: [latex]x[/latex] and [latex]e^x[/latex]. While [latex]x[/latex] is easy to integrate, [latex]e^x[/latex] is even nicer. We will start with [latex]v' = e^x[/latex], and [latex]u = x[/latex].
  2. We see [latex]u' = \frac{d}{dx} x = 1[/latex], and [latex]v = \int e^xdx = e^x[/latex] (you don’t need to worry about the [latex]+ C[/latex] for now).
  3. Using the formula with [latex]u = x[/latex], [latex]u' = 1[/latex], [latex]v = e^x[/latex], and [latex]v' = e^x[/latex], we have
    \begin{align*}
    \int_0^2 x e^xdx & = uv – \int u’ vdx \\
    & = (x)(e^x) – \int_0^2 (1)(e^x)dx \\
    & = x e^x – \int_0^2 e^xdx \\
    \end{align*}
  4. We now have reduce the problem to an easier one: [latex]\int e^xdx[/latex]. We continue:
    \begin{align*}
    \int_0^2 x e^xdx & = x e^x – \int_0^2 e^xdx \\
    & = x e^x – e^x \Big|_0^2 \\
    & = (2 e^2 – e^2) – (0e^0 – e^0) \\
    & = (e^2) – (0 – 1) \\
    & = e^2 + 1
    \end{align*}
    So the answer is [latex]e^2 + 1 \approx \boxed{8.389}[/latex].

Notice if the problem contains an [latex]x[/latex] variable, then this is usually a good choice for [latex]u[/latex] since it will go away once you take the derivative [latex]u'[/latex].

Integration by parts

Compute [latex]\int (2x + 3) \cos(x)dx[/latex].

We following the steps of integration by parts.

  1. Set [latex]u = (2x + 3)[/latex], which simplifies nicely with the derivative, and let [latex]v' = \cos(x)[/latex] which is easy to integrate.
  2. We have [latex]u' = 2[/latex], and [latex]v = \sin(x)[/latex].
  3. Applying the formula, we have
    \begin{align*}
    \int (2x + 3) \cos(x)dx & = uv – \int u’ vdx \\
    & = (2x + 3) \sin(x) – \int 2 \sin(x)dx \\
    \end{align*}

  4. Continuing …

    \begin{align*}
    \int (2x + 3) \cos(x)dx & = (2x + 3) \sin(x) – \int 2 \sin(x)dx \\
    & = (2x + 3) \sin(x) – 2 (-\cos(x)) \\
    & = \boxed{(2x + 3) \sin(x) + 2 \cos(x) + C}.
    \end{align*}

Integration by parts

Use integration by parts to find [latex]\int x \sqrt{2x + 1}dx[/latex]

This one will involve integration by parts and a [latex]u[/latex]-substitution shortcut. Here are the steps of integration by parts:

  1. We can integrate either function, but just like the previous case it’s best to set [latex]u = x[/latex]. This leaves [latex]v' = \sqrt{2x + 1}[/latex].
  2. We see [latex]u' = \frac{d}{dx} x = 1[/latex]. Notice [latex]v = \int \sqrt{2x + 1}dx[/latex] is a bit harder — this is a [latex]u[/latex]-sub shortcut though. Let’s write it as [latex]\int (2x + 1)^{1/2}dx[/latex]. Using the inverse power rule, and remembering the [latex]\frac{1}{m}[/latex] factor from the [latex]u[/latex]-sub shortcut, we have

    [latex]v = \int (2x + 1)^{1/2}dx =\frac{1}{2} \cdot \frac{(2x + 1)^{3/2}}{3/2} = \frac{(2x + 1)^{3/2}}{3}[/latex]

  3. Applying the formula with [latex]u = x[/latex], [latex]u' = 1[/latex], [latex]v = \frac{(2x + 1)^{3/2}}{3}[/latex], and [latex]v' = \sqrt{2x + 1}[/latex], we see
    \begin{align*}
    \int x \sqrt{2x + 1}dx & = uv – \int u’vdx \\
    & = (x) \left( \frac{(2x + 1)^{3/2}}{3} \right) – \int (1) \left( \frac{(2x + 1)^{3/2}}{3} \right)dx \\
    & = \frac{x(2x + 1)^{3/2}}{3} – \int \frac{(2x + 1)^{3/2}}{3}dx \\
    \end{align*}
    At this point, doing the integral of [latex]\int \frac{(2x + 1)^{3/2}}{3}dx[/latex] may not seem easy. However, don’t fret — it’s a power rule and [latex]u[/latex]-sub shortcut problem. Watch.
    \begin{align*}
    \frac{x(2x + 1)^{3/2}}{3} – \int \frac{(2x + 1)^{3/2}}{3}dx & = \frac{x(2x + 1)^{3/2}}{3} – \frac{1}{3} \int (2x + 1)^{3/2}dx \\
    & = \frac{x(2x + 1)^{3/2}}{3} – \frac{1}{3} \left( \frac{1}{2} \cdot \frac{(2x + 1)^{5/2}}{5/2} \right) \\
    & = \frac{x(2x + 1)^{3/2}}{3} – \frac{1}{3} \left( \frac{1}{2} \cdot \frac{2(2x + 1)^{5/2}}{5} \right) \\
    & = \frac{x(2x + 1)^{3/2}}{3} – \frac{1}{3} \left( \frac{(2x + 1)^{5/2}}{5} \right) \\
    & = \boxed{\frac{x(2x + 1)^{3/2}}{3} – \frac{(2x + 1)^{5/2}}{15} + C }\\
    \end{align*}

License

Icon for the Creative Commons Attribution 4.0 International License

Informal Calculus Copyright © by Tyler Seacrest is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book