Itâ€™s a simple matter to take the derivative of the integrand using the Product Rule, but there is no Product Rule for integrals. However, this section introduces Integration by Parts, a method of integration that is based on the Product Rule for derivatives. It will enable us to evaluate this integral.

The Product Rule says that if \(u\) and \(v\) are functions of \(x\text{,}\) then \((uv)' = u'v + uv'\text{.}\) For simplicity, weâ€™ve written \(u\) for \(u(x)\) and \(v\) for \(v(x)\text{.}\) Suppose we integrate both sides with respect to \(x\text{.}\) This gives

\begin{equation*}
\int_{x=a}^{x=b} u\, dv = uv\Big|_a^b - \int_{x=a}^{x=b}v\, du\text{.}
\end{equation*}

Letâ€™s try an example to understand our new technique.

Example6.2.2.Integrating using Integration by Parts.

Evaluate \(\ds\int x\cos(x) \, dx\text{.}\)

Solution.

The key to Integration by Parts is to identify part of the integrand as â€ś\(u\)â€ť and part as â€ś\(dv\text{.}\)â€ť Regular practice will help one make good identifications, and later we will introduce some principles that help. For now, let \(u=x\) and \(dv=\cos(x) \, dx\text{.}\)

It is generally useful to make a small table of these values as done below. Right now we only know \(u\) and \(dv\) as shown on the left of FigureÂ 6.2.3; on the right we fill in the rest of what we need. If \(u = x\text{,}\) then \(du = dx\text{.}\) Since \(dv = \cos(x)\, dx\text{,}\)\(v\) is an antiderivative of \(\cos(x)\text{.}\) We choose \(v = \sin(x)\text{.}\)

Now substitute all of this into the Integration by Parts formula, giving

You may wonder what would have happened in ExampleÂ 6.2.2 if we had chosen our \(u\) and \(dv\) differently. If we had chosen \(u=\cos(x)\) and \(dv=x \, dx\) then \(du=-\sin(x)\, dx\) and \(v=x^2/2\text{.}\) Our second integral is not simpler than the first; we would have

The only way to approach this second integral would be yet another integration by parts.

ExampleÂ 6.2.2 demonstrates how Integration by Parts works in general. We try to identify \(u\) and \(dv\) in the integral we are given, and the key is that we usually want to choose \(u\) and \(dv\) so that \(du\) is simpler than \(u\) and \(v\) is hopefully not too much more complicated than \(dv\text{.}\) This will mean that the integral on the right side of the Integration by Parts formula, \(\int v\,du\) will be simpler to integrate than the original integral \(\int u\,dv\text{.}\)

In the example above, we chose \(u=x\) and \(dv=\cos(x)\,dx\text{.}\) Then \(du=dx\) was simpler than \(u\) and \(v=\sin(x)\) is no more complicated than \(dv\text{.}\) Therefore, instead of integrating \(x\cos(x) \,dx\text{,}\) we could integrate \(\sin(x)\,dx\text{,}\) which we knew how to do.

A useful mnemonic for helping to determine \(u\) is â€śLIATE,â€ť where

L = Logarithmic, I = Inverse Trig., A = Algebraic (polynomials, roots, power functions), T = Trigonometric, and E = Exponential.

If the integrand contains both a logarithmic and an algebraic term, in general letting \(u\) be the logarithmic term works best, as indicated by L coming before A in LIATE.

We now consider another example.

Example6.2.4.Integrating using Integration by Parts.

Evaluate \(\displaystyle \int x e^x\,dx\text{.}\)

Solution.

The integrand contains an Algebraic term (\(x\)) and an Exponential term (\(e^x\)). Our mnemonic suggests letting \(u\) be the algebraic term, so we choose \(u=x\) and \(dv=e^x\,dx\text{.}\) Then \(du=dx\) and \(v=e^x\) as indicated by the tables below.

We see \(du\) is simpler than \(u\text{,}\) while there is no change in going from \(dv\) to \(v\text{.}\) This is good. The Integration by Parts formula gives

\begin{equation*}
\int x e^x\,dx = xe^x - \int e^x\,dx\text{.}
\end{equation*}

The integral on the right is simple; our final answer is

The mnemonic suggests letting \(u=x^2\) instead of the trigonometric function, hence \(dv=\cos(x)\,dx\text{.}\) Then \(du=2x\,dx\) and \(v=\sin(x)\) as shown below.

At this point, the integral on the right is indeed simpler than the one we started with, but to evaluate it, we need to do Integration by Parts again. Here we choose \(r=2x\) and \(ds=\sin(x)\) and fill in the rest below. (We are choosing new names since we have already used \(u\) and \(v\text{.}\) Our integration by parts formula is now \(\int r\,ds=rs-\int s\,dr\text{.}\))

The integral all the way on the right is now something we can evaluate. It evaluates to \(-2\sin(x)\text{.}\) Then going through and simplifying, being careful to keep all the signs straight, our answer is

This is a classic problem. Our mnemonic suggests letting \(u\) be the trigonometric function instead of the exponential. In this particular example, one can let \(u\) be either \(\cos(x)\) or \(e^x\text{;}\) to demonstrate that we do not have to follow LIATE, we choose \(u=e^x\) and hence \(dv = \cos(x)\,dx\text{.}\) Then \(du=e^x\,dx\) and \(v=\sin(x)\) as shown below.

Notice that \(du\) is no simpler than \(u\text{,}\) going against our general rule (but bear with us). The Integration by Parts formula yields

The integral on the right is not much different than the one we started with, so it seems like we have gotten nowhere. Letâ€™s keep working and apply Integration by Parts to the new integral, using \(u=e^x\) and \(dv = \sin(x)\,dx\text{.}\) This leads us to the following:

Example6.2.12.Integrating using Integration by Parts: antiderivative of \(\ln(x)\).

Evaluate \(\int \ln(x)\,dx\text{.}\)

Solution.

One may have noticed that we have rules for integrating the familiar trigonometric functions and \(e^x\text{,}\) but we have not yet given a rule for integrating \(\ln(x)\text{.}\) That is because \(\ln(x)\) canâ€™t easily be integrated with any of the rules we have learned up to this point. But we can find its antiderivative by a clever application of Integration by Parts. Set \(u=\ln(x)\) and \(dv=dx\text{.}\) This is a good, sneaky trick to learn as it can help in other situations. This determines \(du=(1/x)\,dx\) and \(v=x\) as shown below.

Putting this all together in the Integration by Parts formula, things work out very nicely:

Example6.2.14.Integrating using Int. by Parts: antiderivative of \(\arctan x\).

Evaluate \(\displaystyle \int \arctan x \,dx\text{.}\)

Solution.

The same sneaky trick we used above works here. Let \(u=\arctan x\) and \(dv=dx\text{.}\) Then \(du=1/(1+x^2)\,dx\) and \(v=x\text{.}\) The Integration by Parts formula gives

\begin{equation*}
\int \arctan x \,dx = x\arctan x - \int \frac x{1+x^2}\,dx\text{.}
\end{equation*}

The integral on the right can be solved by substitution. Taking \(w=1+x^2\text{,}\) we get \(dw=2x\,dx\text{.}\) The integral then becomes

\begin{equation*}
\int \arctan x \,dx = x\arctan x - \frac12\int \frac 1{w}\,dw\text{.}
\end{equation*}

The integral on the right evaluates to \(\ln\abs{w}+C\text{,}\) which becomes \(\ln(1+x^2)+C\) (we can drop the absolute values as \(1+x^2\) is always positive). Therefore, the answer is

When taking derivatives, it was common to employ multiple rules (such as using both the Quotient and the Chain Rules). It should then come as no surprise that some integrals are best evaluated by combining integration techniques. In particular, here we illustrate making an â€śunusualâ€ť substitution first before using Integration by Parts.

Example6.2.15.Integration by Parts after substitution.

Evaluate \(\ds \int \cos(\ln(x))\, dx\text{.}\)

Solution.

The integrand contains a composition of functions, leading us to think Substitution would be beneficial. Letting \(u=\ln(x)\text{,}\) we have \(du = 1/x\, dx\text{.}\) This seems problematic, as we do not have a \(1/x\) in the integrand. But consider:

\begin{equation*}
du = \frac 1x\, dx \quad \Rightarrow \quad x\cdot du = dx\text{.}
\end{equation*}

Since \(u = \ln(x)\text{,}\) we can use inverse functions and conclude that \(x = e^u\text{.}\) Therefore we have that

So far we have focused only on evaluating indefinite integrals. Of course, we can use Integration by Parts to evaluate definite integrals as well, as TheoremÂ 6.2.1 states. We do so in the next example.

Example6.2.16.Definite integration using Integration by Parts.

In general, Integration by Parts is useful for integrating certain products of functions, like \(\int x e^x\,dx\) or \(\int x^3\sin(x)\,dx\text{.}\) It is also useful for integrals involving logarithms and inverse trigonometric functions.

As stated before, integration is generally more difficult than derivation. We are developing tools for handling a large array of integrals, and experience will tell us when one tool is preferable/necessary over another. For instance, consider the three similar-looking integrals

\begin{equation*}
\int xe^x\,dx, \qquad \int x e^{x^2}\,dx \qquad \text{ and } \qquad \int xe^{x^3}\,dx\text{.}
\end{equation*}

While the first is calculated easily with Integration by Parts, the second is best approached with Substitution. Taking things one step further, the third integral has no answer in terms of elementary functions, so none of the methods we learn in calculus will get us the exact answer.

Integration by Parts is a very useful method, second only to Substitution. In the following sections of this chapter, we continue to learn other integration techniques. SectionÂ 6.3 focuses on handling integrals containing trigonometric functions.

ExercisesExercises

Terms and Concepts

1.

True

False

Integration by Parts is useful in evaluating integrands that contain products of functions.

2.

True

False

Integration by Parts can be thought of as the â€śopposite of the Chain Rule.â€ť

3.

For what is â€śLIATEâ€ť useful?

4.

True

False

If the integral that results from Integration by Parts appears to also need Integration by Parts, then a mistake was made in the original choice of â€ś\(u\)â€ť.