Weβve seen now that Introduction to \(u\)-Substitution is a useful technique for undoing The Chain Rule. We set up the variable substitution with the specific goal of going backwards through the Chain Rule and antidifferentiating some composition of functions.
A reasonable next step is to ask: What other derivative rules can we βundo?β What other operations between functions should we think about? This brings us to Integration by Parts, the integration technique specifically for undoing Product Rule.
We know that we intend to βundoβ the product rule, so letβs try to reframe the product rule from a rule about derivatives to a rule about antiderivatives.
Note that on the left side of this equation, youβre antidifferentiating a derivative. What will that give you? Then, on the right side, weβre just splitting up the terms of the product rule into two different integrals.
On the right side, we have two integrals. Since each of them has a product of functions (one function and a derivative of another), we can isolate one of them in this equation and create a formula for how to antidifferentiate a product of functions! Solve for \(\int u v'\;dx\text{.}\)
Look back at this formula for \(\int u v'\;dx\text{.}\) Explain how this is really the product rule for derivatives (without just undoing all of the steps we have just done).
When we select the parts for our integral, we are selecting a function to be labeled \(u\) and a function to be labeled as \(dv\text{.}\) We begin with one of the pieces of the product rule, a function multiplied by some other functionβs derivative. It is important to recognize that we do different things to these functions: for one of them, \(u\text{,}\) we need to find the derivative, \(du\text{.}\) For the other, \(dv\text{,}\) we need to find an antiderivative, \(v\text{.}\) Because of these differences, it is important to build some good intuition for how to select the parts.
Now, set up the integration by parts formula using your labeled pieces. Notice that the integration by parts formula gives us another integral. Donβt worry about antidifferentiating this yet, letβs just set up the pieces.
When we say we need to keep moving forward with our setup, what we mean is that we have another integral to antidifferentiate. Which one will be easier to work with: \(\int (-\cos(x))\;dx\) or \(\int \left(\frac{x^2}{2}\cos(x)\right)\text{?}\)
What made things so much better when we chose \(u=x\) compared to \(dv = x\;dx\text{?}\) We know that the new integral from our integration by parts formula will be built from the new pieces, the derivative we find from \(u\) and the antiderivative we pick from \(dv\text{.}\) So when we differentiate \(u=x\text{,}\) we get a constant, compared to antidifferentiating \(dv = x\;dx\) and getting another power function, but with a larger exponent. We know this will be combined with a \(\cos(x)\) function no matter what (since the derivative and antiderivatives of \(\sin(x)\) only will differ in their sign). So picking the version that gets that second integral to be built from a trig function and a constant is going to be much nicer than a trig function and a power function. It was nice to pick \(x\) to be the piece that we found the derivative of!
Ok, so here we have to swap the pieces and try the setup with \(u=\ln(x)\) and \(dv = x\;dx\text{,}\) since we only know how to differentiate \(\ln(x)\text{.}\) Fill in the following with the rest of the pieces:
\begin{equation*}
\begin{array}{ll}
u = \ln(x) \amp v = \fillinmath{XXXXX}\\
du = \fillinmath{XXXXX} \amp dv = x\;dx
\end{array}
\end{equation*}
So here, we didnβt actually get much choice. We couldnβt pick \(u=x\) in order to differentiate it (and get a constant to multiply into our second integral) since we donβt know how to antidifferentiate \(\ln(x)\) (yet: once we know how, it might be fun to come back to this problem and try it again with the parts flipped). But we can also notice that it ended up being fine to antidifferentiate \(x\text{:}\) the increased power from our power rule didnβt really matter much when we combined it with the derivative of the logarithm, since the derivative of the log is also a power function! So we were able to combine those easily and actually integrate that second integral.
Letβs try this again, but with a different set of functions. For this one, weβll not worry about finding derivatives and antiderivatives ourselves: weβll just play with the selection of the pieces to see how that changes things.
It doesnβt matter whether we differentiate or antidifferentiate \(e^x\text{,}\) since weβll get the same thing. Letβs pick \(u=x^2\) so that we can differentiate it.
Weβre going to look at a couple of examples where we can showcase some of the flexibility we have with our choices of parts. First, weβll revisit ExampleΒ 7.4.4. In this example, when we got to that second integral, we noticed that for the fraction \(\frac{x^2}{x^2+1}\text{,}\) we could either do some long division (since the degrees in the numerator and denominator are the same) or do some clever rewriting of the numerator. Either way, we know that this fraction is almost 1...Itβs really \(1\pm\) some bit (in this case, the extra bit was a fraction \(\frac{1}{x^2+1}\)).
What if we chose our parts differently? Not the \(u\) and \(dv\) parts, though, since we still havenβt figured out how to antidifferentiate \(\tan^{-1}(x)\text{.}\) But we get one more choice!
Once we choose \(u\text{,}\) we donβt really get a separate choice for \(du\text{:}\) itβs simply the derivative of \(u\) with regard to \(x\) multiplied by the differential \(dx\text{.}\) But consider our choice of \(dv\text{,}\) and the subsequent process of finding \(v\text{.}\) In a sense, yes, thereβs only one possible answer for the antiderivative, but we also know that we have a lot of flexibility in our choice of antiderivative. There are an infinite number of them, all in the same family of antiderivatives! We know, due to the Mean Value Theorem and then later due to TheoremΒ 4.1.7, that there are an infinite number of antiderivatives, all differing by, at most, a constant term. So letβs pick a more appropriate antiderivative!
So we get the same thing, but didnβt have to think through the long division or the forced factoring. But the trade off here is that we almost have to see this coming to notice it. This flexibility doesnβt always come into play for us. But we can look at a different kind of flexibility.
Weβve looked at integrals with both \(\ln(x)\) and \(\tan^{-1}(x)\text{.}\) For these, and for other inverse functions specifically, we pick them to be the \(u\) part in our integration by parts problems because we donβt know how do antidifferentiate them.
So letβs look at \(\displaystyle \int \ln(x)\;dx\text{,}\) and weβll solve this integral by, specifically, differentiating \(\ln(x)\) instead of antidifferentiating it.
An alternate approach is to use a substitution first. Weβre going to be using a lot of different variable names here, so letβs use a \(t\)-substitution. Let \(t=\ln(x)\) so that \(dt=\frac{1}{x}\;dx\text{.}\) In order to induce this derivative of the log, letβs multiply by \(\frac{x}{x}\) inside the integral:
Now that we know the antiderivative family for \(\ln(x)\text{,}\) we can revisit the problem in ActivityΒ 7.4.3, \(\displaystyle \int x\ln(x)\;dx\text{,}\) and try to work through the integration by parts when \(u=x\) and \(dv = \ln(x)\;dx\text{.}\)
Note that this last integral is really recognizable: itβs the one we started with! Letβs βsolveβ this equation for that integral by adding it to both sides of our equation.
In this last example, we ended up seeing the original integral repeated when we did integration by parts. This is a useful technique, especially when we deal with functions that have a kind of βrepeatingβ structure to their derivatives or antiderivatives. Weβll look at a couple of classic integrals where we see this kind of technique employed. Letβs have you explore this idea.
What does it mean to βsquareβ a trig function? Write these integrals in a different way, where the meaning of the βsquaredβ exponent is more clear. What do you notice about the structure of these integrals, the operation in the integrand function? What does this mean about our choice of integration technique?
You should notice that, in your equation for the integration of \(\displaystyle \sin^2(x)\;dx\text{,}\) you have another copy of \(\displaystyle \int \sin^2(x)\;dx\text{.}\) Similarly, in your equation for the integration of \(\displaystyle \cos^2(x)\;dx\text{,}\) you have another copy of \(\displaystyle \int \cos^2(x)\;dx\text{.}\)
This βsolving for the integralβ approach works well, but works best when we can see it coming. Notice that it happened here due to the repeating structure of the derivatives of the sine and cosine functions, as well as the Pythagorean identities. We can see some more examples of this in play with similar functions!
This one is pretty straightforward, since it doesnβt really matter what we select as our parts. Notice, though, that this isnβt the only way we can approach this! We can use \(u\)-substitution, or even rewrite this using a trigonometric identity.
Notice that we can come up with a bunch of different examples that are similar to ExampleΒ 7.4.9. If we put trigonometric functions inside our integral, weβll have some options with how we approach them! We can use \(u\)-substitution, since the derivatives of trigonometric functions are other trigonometric functions. In ExampleΒ 7.4.9, for instance, we could write \(u=\sin(x)\) and \(du = \cos(x)\;dx\text{,}\) or even chose \(u=\cos(x)\) and \(du = -\sin(x)\;dx\text{.}\)
The real issues will come when our integrand is not just a product of two trigonometric functions, but when they are products of trigonometric functions raised to exponents. Weβll have some combinations of these products (which maybe makes us think about integration by parts) and composition (which points towards \(u\)-substitution). In the next section, weβll develop some strategies to deal with these kinds of integrals.
Letβs say that you make a choice for \(u\) and \(dv\) and begin working through the Integration by Parts strategy. How can you tell if youβve made a poor choice for your parts? Can you always tell?