Calculus 2, Lectures 3B through 4 (Videotaped Fall 2016)
You might say that integration by parts is an “unexpected” or “surprising” method of integration.
While the other main method, integration by substitution, can be thought of as “educated guessing” for simple examples, it is more difficult to think of integration by parts in the same way.
Consider the indefinite integral (“most general” antiderivative) . Since , our answer should probably involve the sine function. But should it also involve an antiderivative of ? Namely, should it involve ? And if so, how?
Evidently, adding these functions does no good because .
Does multiplication work? Try it. Don’t forget to use the Product Rule:
.
In fact, it seems like we are getting further from the correct answer.
What if we try a product that is a little simpler? Would it work out? Let’s try . Differentiating with the Product Rule gives
.
This looks more promising to compute the integral ! We see that the integrand function is part of the derivative above.
If only we could get rid of that pesky sine function….
A bit of experimentation, keeping in mind our desire to cancel the sine function, leads to the following guess:
.
Therefore, is the answer! Don’t forget the +C!
But we are left with questions: Is it possible to avoid all this guesswork? In particular, can we approach such a problem in a systematic way?
The answer to these questions is most definitely “yes”!
We will explore the reasons for this answer in the sections below. One big hint about what we will see is that the method is related to the Product Rule, since we had to use that rule to check our answer above.
Lecture 3B: Height from Velocity, Substitution and the FTC, Intro to Integration by Parts
This is my third blog post in a series here at Infinity is Really Big on my Calculus 2 Lectures at Bethel University from the Fall of 2016. The first blog post is titled “Applied vs Pure Mathematics” and it covers Lecture 1. The second post is titled “Integration by Substitution (Method of Integration)” and it covers Lecture 2A, Lecture 2B, and Lecture 3A.
I begin Lecture 3B of Calculus 2 by talking about about applications of integrals.
One of these applications is about the relationship between the height and velocity of an object moving vertically under the influence of gravity. This is an example of linear motion (also known as rectilinear motion), which is motion along a straight line. I will discuss this topic in more depth further below in this blog post.
I also discuss how to prove that the substitution transforms the definite integral into the definite integral .
These integrals turn out to equal each other, and the Fundamental Theorem of Calculus along with the Chain Rule are needed to prove this fact. This is also a subject I go into detail on in the last blog post, “Integration by Substitution (Method of Integration)”.
Integration By Parts Examples
Finally, I end the class by doing a couple integration by parts examples. The first of these examples is the one from above, . The other example, , is one that I only have time to start in Lecture 3B. I then finish it in Lecture 4.
Let’s analyze the first example again a bit more carefully to see if we can discover a general approach. Later on we’ll look at the second example.
Deriving and Using the Integration by Parts Formula
Start by recalling our answer from above: , since .
Now we do a clever little trick. Since , we can rewrite the equation as .
Next, add the integral on the right to both sides and use the linearity of the integral operator to write (don’t worry that there’s no on the right side here — we will allow ourselves to be a bit “sloppy” in derivations sometimes).
If we differentiate both sides of this last equation, we see that it is indeed equivalent to an equation whose truth follows from the Product Rule: .
All this can be made systematic by reversing the process in a general setting.
Start with an arbitrary product of differentiable functions . Differentiate it with the Product Rule to get .
Next, integrate both sides and use linearity to write
.
The Integration by Parts Formula
If we subtract the integral from both sides of the last equation and rearrange, we get the formula for the method of integration by parts:
.
When using this formula, the hope is that we can relate the integral that we want to compute to another integral that we hope is easier to compute.
When we attempt to realize this hope for a particular example, we need to identify our integrand as the product of two functions . We then need to identify which function in that product should play the role of and which should play the role of .
Unfortunately, if we make a bad choice in this step, we might make the problem even more difficult than it was to begin with.
Applying the Integration by Parts Formula
So, once again, consider the integral . If, for example, we let and , then and (there’s no need for a in the formula for ).
The integration by parts formula would then imply that
The new integral on the right side is more complicated than the original integral was! We made a bad choice for the pair of functions and !
A Better Choice
So, let’s try the other choice. Let and so that and . Then
.
That is a good choice! We can finish the problem easily now:
.
This matches our previous answer and can also be checked by differentiation.
The Key Property That Makes This Work
The key property that makes this second attempt work is that is easy to integrate. Evidently, this is because is “simpler” than , while is “similar” to , making the product “simpler” than the product . In particular, is a constant polynomial (of degree zero) while is a linear polynomial (of degree one).
We might wonder: if the product includes a polynomial factor, should we always let the polynomial factor be ?
The answer, most definitely, is “no”. The next couple examples illustrate this.
Integral of the Arctangent Function (Inverse Tangent Function)
The integral is rather “innocent-looking”. But, if you try guessing the answer, you will quickly see that it is not as easy as it looks.
Wait a minute though! How is the integrand function even in the form ? It is a single function — it’s not the product of two functions — is it?
Well, remember, mathematicians often use “tricks” that might seem insignificant but are actually keys to solving many problems. In this case, the trick is to write . Now we can say that the integrand is the product of two functions! Right?!?
Yes, we can!
Should we let and ?
A little bit of thought reveals this is not helpful. In order to find , we would have to integrate . But this is what we are trying to do in the original problem!
An Approach that Works
Don’t panic! Try it the other way around! Let and . Then and .
There’s still a question of whether this is helpful or not. We have to just try it and see what happens. Recall that the general formula is . Hence,
.
Is this better? Yes! We can do the integral with a substitution! Let so that and .
Then,
.
(Note that we can get rid of the absolute value signs at the end since for all real numbers .)
Therefore,
.
Of course, we should check this by differentiation. Once again, we need the Product Rule.
.
And this simplifies to .
Another Arctangent Problem
Consider a more complicated example: Find .
Consistent with what worked previously, let and . Then and . We can therefore write
This looks better than before, though at the same time, the integral is one we have not encountered before.
Before integrating this, it is best to rewrite using polynomial long division. Doing so gives a quotient of and a remainder of . This implies that . This is now easy to integrate.
Hence,
Both of the last two examples illustrate the following heuristic: when using integration by parts, the most important thing is that is chosen in such a way that is relatively easy to find.
Lecture 4: Integration by Parts Examples, Speed and Distance Traveled Examples
The last example is actually the second example that I do about 13 minutes into Lecture 4.
The first example I do in Lecture 4 involves using integration by parts more than once. Unfortunately, this is sometimes necessary.
An Example when Integration by Parts Must Be Used Twice
The first example I do in Lecture 4 is to find .
If and , then and . Therefore,
Now use integration by parts again with the new integral on the right. For this integral, let and so that and . Then
It follows that:
Check It With the Product Rule
We should check this. We need the Product Rule in two spots. Here goes:
It worked! Yay!
Reduction Formulae
Sometimes the process of using integration by parts multiple times can be “automated” with a so-called “reduction formula”. For example, consider the general integral for constants and .
Let and so that and . Then
The purpose of this formula is that we can use it over and over again without having to think about the integration by parts formula. For example, if and , then
This leads to
You should definitely take the time to check this!
Sometimes We Are Pleasantly Surprised
The third example I do in Lecture 4 is . This looks like a problem where we might need to use integration by parts more than once — perhaps even five times! Yikes!
However, we are in for a pleasant surprise. If and , then and . Therefore,
We are done! Check that this is correct!
Sometimes Nothing Works
Unfortunately, integration by parts is not an all-powerful method. There are some integrals of products that are just too hard to do by elementary means. For example, consider .
If we try and , then, by our work farther above, and . This implies that
While this is indeed a true fact, it is certainly not very helpful.
How about if we try and ? Then and . Hence,
Once again, we encounter a true but unhelpful equation.
You should not take our lack of success here as an indication that does not exist in an abstract (but precise) sense. All it means is that there is probably no simple formula for this family of functions.
Integration by Parts, Definite Integrals, and Linear Motion
The last 28 minutes of Lecture 4 are dedicated to physics examples of linear motion (motion along a straight line). Right before the physics examples, I do a definite integral using integration by parts.
Here are the main principles of linear motion that I emphasize in relation to integrals: 1) the integral of the speed function gives the distance traveled function and 2) the integral of the velocity function gives the displacement (or position) function. We will wait to give reasons for these facts in a later post.
Actually, these principles need to be made a bit more precise.
Consider principle (1). If is the speed of motion of an object as a function of time (i.e., a measure of how fast the motion is), then one of the antiderivatives will be the distance traveled function. In particular, if the motion starts at time , then for a variable upper limit of integration , the definite integral will indeed be the distance traveled function . Note that this implies that . The object has not moved any distance at the start.
Now consider principle (2). If is the velocity of motion of an object as a function of time (i.e., a measure of how fast the motion is and in what direction), then one of the antiderivatives will be the position function. In particular, if initial position is zero at time , then for a variable upper limit of integration , the definite integral will indeed be the position function . Note that this implies that . The object has not changed position at the start. The position function is also equivalent to the change in position in this situation (they would be different functions when the initial position is not zero).
An Example Where Integration By Parts is Needed
Let’s consider the simpler situation, where the motion is one direction and we can talk about speed and distance traveled rather than velocity and position. We will consider velocity and position in a future post.
Let be the instantaneous speed at time , in meters per second, of an object moving along a number line. What is the distance traveled over the interval ?
The answer, in meters, is the definite integral . This integral should be computed using integration by parts. Unlike integration by substitution, we do not need to change the limits of integration while using this technique.
To do the integral, let and so that and . Then:
Geometric Interpretation
Being a definite integral, this is the same as the area under the graph of for . It is illustrated in the graph below. Note that the area of each “box” represents meters.
Since the speed function increases and then decreases, this represents a motion that speeds up before slowing down.
In Lecture 4, simpler applications to motion are considered as well, where the integrals are not as challenging to compute.
Justifying Integration By Parts for Definite Integrals
The integration by parts formula we just used for the definite integral above takes the form .
This can be justified with the Fundamental Theorem of Calculus (FTC) and, as you would expect, the Product Rule. Note that, for two differentiable functions and , the Product Rule gives .
Therefore, by the FTC,
.
Using linearity of the definite integral operator and algebraically rearranging the resulting equation gives the integration by parts formula in the first paragraph of this section.
Alternative Notation for Integration by Parts
We end by mentioning a common “shorthand” notation to memorize the integration by parts formula .
If we let and (which is consistent with notation used in the integration by substitution article), then, when we completely suppress the variable , the preceding formula is written as:
The benefit of this formula is that it is easier to remember. You might even say it “rolls off your tongue”.