Blog

Rotating Volumes with the Cylinder/Shell Method

Similar to using the disk or washer method, we will use the cylinder method to find the volume of a solid. Specifically, it’s used when we rotate a function or region around an axis of rotation. In fact, most problems that require finding the volume of a solid of rotation can use the disk/washer method or the cylinder method. However, one will usually be significantly easier.

I’ll explain what I mean by this with an example.

Example 1

Find the volume of the solid resulting from rotating the area bound between y=x^2-2x+2, y=0, x=1, and x=2 about the y-axis.

Although we are using a different method here we will follow the same 4 step process as I did with the disk method and washer method.

1. Graph the 2-D functions

This is generally a good idea with any type of problem: draw out whatever is being described in the problem. This helps to visualize whats going on in the problem and what exactly we are trying to measure. It can also help us decide if the answer we end up with is actually a reasonable one.

I would recommend trying to graph all of the functions listed by hand, but I’ll do this using Desmos. You can see the graph of the functions below with the bounded region shaded gray.

Cylinder method volumes of rotation
y=x^2-2x+2, y=0, x=1, and x=2

2. Rotate the 2-D area around the given axis

Again, we want to visualize the 3-D figure whose volume we are trying to find. To do this we want to imagine rotating the described area around the axis of rotation.

I like to imagine the area actually coming off the page and rotating around our axis of rotation, which is the y-axis in this case. Doing this would create a cylinder-like, round figure. Try sketching this rotation and the resulting figure. It may be helpful in the next step to have this sketch.

If needed, Wolfram Alpha can always be used to create a visualization of this figure.

result of rotating the region around the y axis
Result of rotating the region about the y-axis.

3. Setting up the integral

This is the part where things start to get a bit different using the cylinder method than they were with the disk/washer method.

In order to make sense of the integral we need to set up here, let’s think about what we’re doing differently. With the disk/washer methods we were stacking many very thin disks on top of each other with the same thickness and varying radii to create our figure. This created a stack of cylinders whose volume we could find and add together.

The cylinder shell method is a bit different. Here we need to imagine just the outer shell of a cylinder that is very very very thin. We will stack many of these very thin shells inside of each other to create our figure. Each shell will have the same thickness, but all with different heights depending on where it is in the figure.

What we need to figure out is a formula for the volume of one of these shells, then the integral will be able to go through each shell and add up all of their volumes.

What would this look like?

Before we think about creating a function that we will need to integrate I want to take a moment to describe what one of these shells would look like. Imagine forming the outer shell of a cylinder with a piece of paper. All you would need to do is roll up the paper and it would create a cylinder shell. But what’s interesting about this is the cylinder shell came from a rectangle, or more accurately a very very thin rectangular prism. It might look something like this.

Since we are imagining finding the volume of an infinitely thin cylinder, these three figures would have the same volume. The fact that they’re infinitely thin means that the curvature won’t impact the volume of the shell. So to find the volume of the cylindrical shell, we can instead find the volume of a rectangular prism with the same dimensions. This is a much easier exercise to imagine since the volume of a rectangular prism is simply $$V= \ length \cdot width \cdot height.$$

But how does this relate to the cylinder?

What we need to think about now is how the dimensions of the rectangular prism translate to dimensions on the cylindrical shell. Looking back up to the drawing above, if you imagine the rectangle curling into a cylinder you can see the long side of the rectangle bends into the top and bottom of the cylinder. This would be the circumference of the cylinder.

In the above drawing we can also see that the shorter side of the rectangle lines up nicely with the height of the cylinder.

And lastly, the very very very thin thickness of the shell and the rectangular prism would clearly correspond with each other.

So as a result, the $$V= \ length \cdot width \cdot height$$ of the rectangular prism would be the same as $$V = circumference \cdot thickness \cdot height$$ for the cylindrical shell.

Putting it into an integral

Now that we know how to find the volume of each shell we need to come up with a way to put that into an integral. The reason for this is that the integral adds up the volume of all of the shells that make up the figure to find the total volume.

In order to do this, we will need to think about the formula for the volume in terms of measurments of the cylinders. We know the three pieces we need to find the volume of one of the shells are the circumference, thickness, and height of the cylinders. Typically when we describe a cylinder, we need two measurements to do this: height and radius. So we want to represent the circumference, thickness, and height in terms of height and radius.

First let’s think about the circumference. We know that the circumference of a circle is always going to be $$circumference=2 \pi r$$ where r is the radius.

The thickness of each shell is a bit strange. As we go from one shell to the next throughout the integral we want to think about what is changing. When we are doing this, we will always want to think about integrating throughout the radius. It’s as if we are starting at the center of the figure and integrating in the direction toward the edge of the figure. So when we go from one shell to the next we travel throughout the radius. Therefore, the thickness of each cylindrical shell with be the distance we travel between each shell. This will just be the change in radius between each shell. Therefore we’ll say the the thickness is $$thickness = dr.$$

Lastly, the height will still be described as the height. We don’t really need to do anything here.

Therefore, using these three conversions we know that the volume of the whole figure can be found with the following integral. $$\int 2 \pi r h \ dr$$

Relating it back to our figure

So we have a general outline to set up our integral, but now we need to figure out how our figure fits into these pieces. The easiest way to do this is draw it out with one of the cylindrical shells that makes up our 3-D figure.

cylindrical shell rotation

So remember earlier I said that when we use this method to find the volume, we are integrating in the direction of the radius of the cylinders. We can see in our drawing that if we start in the center of our cylinder and move toward the edge, we would be going in the x direction. Therefore, we need to think about how to represent our integral in terms of x so we can integrate with respect to x.

So we have 3 pieces of our integral that we need to put in terms of x: r, h, and dr.

Finding r

You can see in the drawing above I drew an example of one of the cylindrical shells within our figure. There is also a smaller version of this shell in the upper left hand corner which has a few points labeled which will lie on the various functions that created our bounded region.

We can see the radius of our cylinder would be the distance between its center and edge, which is the distance between the two points labeled (0, \ y) and (x, \ y). The x-coordinate of that first point will always be 0 because that point lies on the y-axis. And (x, y) is some point that lies on the function y=x^2-2x+2. Since these points have the same y value, the distance between them will just be the distance between their x values. So $$r=x-0$$ $$r=x.$$

Finding h

Looking at the labeled cylindrical shell in the drawing above, we can see that the height of the cylinder will be the distance between the points labeled (x, \ y) and (x, \ 0). Again, (x, \ y) is some point on the function y=x^2-2x+2. And the y-coordinate of that second point will always be 0 because it sits on the x-axis.

It is also important to notice that these two points will sit on the top and bottom edges of every single shell that makes up this figure. This will be true for the inner most shell, the outer most shell, and every shell between them.

Since these these two points have the same x value, the distance between them will simply be the distance between their y values. So $$h=y-0$$ $$h=y$$

But remember we need everything in terms of x, not y. So we need to think about how to represent this height using x instead. Since our y is just the y-coordinate of some point that lies on the function y=x^2-2x+2, we can replace the y with x^2-2x+2. So $$h=x^2-2x+2.$$

Finding dr

This is actually the simplest part to find. The dr represents the change in the cylinder’s radius as we go from each shell to the next. Since we move in the same direction of the radius as we integrate to find our volume, the change in r should be the same as the change in x between each step. Therefore, we can say that $$dr=dx.$$

Putting it all back into an integral

We know that the volume of our figure can be found by using the integral $$\int 2 \pi r h \ dr.$$ And we just found how to represent all of these pieces in terms of x by $$r=x$$ $$h=x^2-2x+2$$ $$dr=dx.$$ So we can substitute all of these pieces into the integral and get something in terms of x that will tell us exactly how to find the volume of our figure. $$V=\int 2 \pi x \big( x^2-2x+2 \big) \ dx$$

But there is actually one more thing we need to consider. Our integral needs bounds. Since we are integrating with respect to x we need to figure out all the x values we want to consider when finding our volume.

To do this we just need to look at the original 2-D region we had bounded by all of our functions. Looking back at our drawings we can see that the entire region goes from x=1 to x=2. Therefore, these will be our bounds, telling us that $$V=\int_1^2 2 \pi x \big( x^2-2x+2 \big) \ dx.$$

4. Solve the integral

Now that we got our integral set up, all we need to go is evaluate the integral and find the volume it represents.

Before doing that I will simplify things a bit by pulling out the constant 2 \pi and then simplifying the function by distributing.

$$V=\int_1^2 2 \pi x \big( x^2-2x+2 \big) \ dx$$ $$V=2 \pi \int_1^2 x^3-2x^2+2x \ dx$$ $$V=2 \pi \Bigg[ \frac{1}{4}x^4 – \frac{2}{3}x^3+ x^2 \Bigg]_1^2$$ $$V=2 \pi \Bigg[ \bigg( \frac{1}{4}(2)^4 – \frac{2}{3}(2)^3+ (2)^2 \bigg) \ – \ \bigg( \frac{1}{4}(1)^4 – \frac{2}{3}(1)^3+ (1)^2 \bigg) \Bigg]$$ $$V=2 \pi \Bigg[ \bigg( 4 – \frac{16}{3}+ 4 \bigg) \ – \ \bigg( \frac{1}{4} – \frac{2}{3} + 1 \bigg) \Bigg]$$ $$V=2 \pi \bigg[ \frac{8}{3} – \frac{7}{12} \bigg]$$ $$V=2 \pi \bigg[ \frac{25}{12} \bigg]$$ $$V= \frac{25 \pi}{6}$$

And that’s it! The volume of our 3-D figure is \frac{25 \pi}{6} cubic units.

I do quickly want to circle back to a comment I made a while ago. We could have found this volume using the washer method. However, we would have had to split it into two separate integrals to do so. The reason for this is that the inner radius of the washers on the lower half of the figure is formed by x=1. But the inner radius of the washers on the upper half of our figure is formed by y=x^2-2x+2. So we’d have to set up one integral for the lower half and another for the upper half, then add the resulting volumes to find the total volume of our figure.

Clearly using the cylindrical shell method is much easier in this case.

If you want more practice on finding volumes of rotation using the shell method, you can find another example here.

Hopefully all of this helps you gain a bit of a better understanding of this method, but as always I’d love to hear your questions if you have any. Just email me at jakesmathlessons@gmail.com and I’ll see if I can help provide a bit more clarification. You can also use the form below to subscribe to my email list and I’ll send you my FREE calc 1 study guide! Just put in your name and email address and I’ll be sure to let you know when I post new content! Feel free to go check out my other lessons and solutions about integrals as well.


Examples of product, quotient, and chain rules

I have already discuss the product rule, quotient rule, and chain rule in previous lessons. But I wanted to show you some more complex examples that involve these rules. The reason for this is that there are times when you’ll need to use more than one of these rules in one problem. So let’s dive right into it!

Example 1

Find the derivative of y \ = \ sin(x^2 \cdot ln \ x).

At first glance of this problem, the first thing we should notice is that we can think of this function as one function plugged into another. There is a clear inner function and a clear outer function.

It can be broken down as x^2 \cdot ln \ x being plugged into sin(x) for x. Since our function can be thought of as one function plugged into another, we will want to start out with the chain rule.

Chain rule

The first thing we need to do to apply the chain rule is to figure out our inside function and outside function. It’s usually easier to think about the insider function first.

Finding f and g

To find the inside function we just need to answer the question: what function is being plugged into another?

Looking at our function you can see that we are taking x^2 \cdot ln \ x and plugging that into another function. So we will say $$g_1(x) = x^2 \cdot ln \ x$$

Now that we have decided on the inside function, we need to find the outside function. All we need to do here is look at the original function, and replace our inside function with a single x. So we will replace x^2 \cdot ln \ x with just x. This gives us $$f_1(x) = sin(x).$$

Finding f’ and g’

Now that we have found f and g, we just need to take each of their derivatives to find f’ and g’.

Finding f’ should be simple here. $$f’_1(x) = cos(x)$$

Finding g’ will be a little more tricky.

Looking at our function g_1(x) you can see that it is actually the product of two simpler functions, x^2 and ln \ x. Therefore, we are going to have to use the product rule to find this derivative. You can kind of think of this as a smaller sub-problem within our problem, so we will come back to the chain rule after applying the product rule.

Product rule

We need to use the product rule to find the derivative of $$g_1(x) = x^2 \cdot ln \ x.$$ The product rule starts out similarly to the chain rule, finding f and g. However, this time I will use f_2(x) and g_2(x).

Finding f and g

With the product rule it doesn’t really matter which function is f and which is g. As long as we correctly identify that our function is a product of two simpler functions, it’ll work out correctly. So we will say $$f_2(x) = x^2$$ $$g_2(x) = ln \ x.$$

Finding f’ and g’

Now we just need to find the derivatives of f and g. Since they are fairly simple functions, this shouldn’t be too difficult.

To find the derivative of f we just need to use the power rule. $$f’_2(x) = 2x.$$

And finding the derivative of g should be a derivative that you have memorized. Using Wolfram Alpha we can see that $$g’_2(x) = \frac{1}{x}.$$

Plugging into the formula

Now that we have found all the pieces we need, we can simply plug them all into the product rule formula. $$g’_1(x) = f_2(x) \cdot g’_2(x) \ + \ f’_2(x) \cdot g_2(x)$$ $$\frac{d}{dx} \Big[ x^2 \cdot ln \ x \Big] \ = \ x^2 \cdot \frac{1}{x} \ + \ 2x \cdot ln \ x$$ $$\frac{d}{dx} \Big[ x^2 \cdot ln \ x \Big] \ = \ x \ + \ 2x \cdot ln \ x$$

Back to chain rule

Now that we know the derivative of x^2 \cdot ln \ x we can go back up to the chain rule. We knew that $$g_1(x) = \ x^2 \cdot ln \ x$$ and by using the product we just found that $$g’_1(x) = \ x \ + \ 2x \cdot ln \ x.$$ Just as a quick reminder, we already found that $$f_1(x) = sin(x)$$ $$f’_1(x) = cos(x).$$ Now we just need to plug these four pieces into the formula for chain rule. $$h’_1(x) = \ f’_1 \big( g_1(x) \big) \cdot g’_1(x)$$ $$\frac{d}{dx} \Big[ sin \big(x^2 \cdot ln \ x \big) \Big] \ = \ cos \big( x^2 \cdot ln \ x \big) \cdot \big( x \ + \ 2x \cdot ln \ x \big)$$

And that’s it! We could factor out a like term out of one of these factors, but it wouldn’t really make the function any simpler so I won’t do that. We can also use Wolfram Alpha to check our answer. A quick note on that, Wolfram Alpha uses “log” instead of “ln” to describe a natural log.

Example 2

Find the derivative of y = \frac{x \ sin(x)}{ln \ x}.

Looking at this function we can clearly see that we have a fraction. Therefore, we can break this function down into two simpler functions that are part of a quotient. So we can see that we will need to use quotient rule to find this derivative.

Quotient rule

As discussed in my quotient rule lesson, when we apply the quotient rule to find a function’s derivative we need to first determine which parts of our function will be called f and g.

Finding f and g

With the quotient rule, it’s fairly straight forward to determine which part of our function will be f and which part will be g. We will always say f is the numerator (top of our fraction) and g is the denominator (bottom of our fraction). So we can say $$f_1(x) \ = \ x \ sin(x)$$ $$g_1(x) \ = ln \ x.$$

Finding f’ and g’

Once we have determined which part of our function we are going to call f and which part will be g, we need to take each of their derivatives so we can use the quotient rule formula.

First we’ll start with finding f’. To find this we need to find the derivative of f_1(x)= x \ sin(x). Notice this function is actually a product of two simpler functions. So in order to find \mathbf{f'_1(x)} we will actually need to use the product rule. This will create a smaller sub-problem for us so we will need to come back to the quotient rule in a moment.

Product rule

As we did in the previous example, or in my product rule lesson, we need to start by determining which piece of the function f_1(x) = x \ sin(x) will be f_2 and which will be g_2.

Finding f and g

When using the product rule it doesn’t really matter which piece of the product is called f and g. So we will say $$f_2(x) = x$$ $$g_2(x) = sin(x).$$

Finding f’ and g’

In order to use the product rule formula, we need to find the derivative of each of these pieces now. Fortunately, both of these pieces are simple functions to differentiate. $$f’_2(x) = 1$$ $$g’_2(x) = cos(x)$$

Plugging into the formula

Now we just need to plug the four pieces we’ve found into the product rule formula. $$f’_1(x) = \ f_2(x) \cdot g’_2(x) \ + \ f’_2(x) \cdot g_2(x)$$ $$\frac{d}{dx} \Big[ x \ sin(x) \Big] \ = \ x \cdot cos(x) \ + \ 1 \cdot sin(x)$$ $$\frac{d}{dx} \Big[ x \ sin(x) \Big] \ = \ x \ cos(x) \ + \ sin(x)$$

Back to the quotient rule

Now that we have used the product rule to find $$f’_1(x) = \ x \ cos(x) \ + \ sin(x)$$ we need to find g'_1(x) so we can use the quotient rule formula. Remember g_1(x) = ln \ x, which is a function whose derivative you should memorize. $$g’_1(x) = \frac{1}{x}.$$ So now we know all of the pieces we need to apply the quotient rule formula.

$$h'(x) \ = \ \frac{f’_1(x) \cdot g_1(x) \ – \ f_1(x) \cdot g’_1(x)}{g^2_1(x)}$$ $$\frac{d}{dx} \Bigg[ \frac{x \ sin(x)}{ln \ x} \Bigg] \ = \ \frac{ \Big[ \big( x \ cos(x) + sin(x) \big) \cdot ln \ x \Big] \ – \ \Big[ x \ sin(x) \cdot \frac{1}{x} \Big]}{\big( ln \ x \big)^2}$$

And now we can just simplify by distributing through all of our parenthesis.

$$\frac{d}{dx} \Bigg[ \frac{x \ sin(x)}{ln \ x} \Bigg] \ = \ \frac{ x \ ln(x) \ cos(x) \ + \ ln(x) \ sin(x) \ – \ sin(x)}{ln^2(x)}$$

And that’s the answer! Again, we can check this using Wolfram Alpha.

If you have any questions on any of this just let me know! You can email me at jakesmathlessons@gmail.com. You can also use the contact form below and I’ll add you to my email list and send you my calculus 1 study guide to help you boost your calculus scores! I’d also love to hear any suggestions for future posts so please don’t hesitate to reach out to me. If you want some more practice with derivatives go check out my other lessons and problems related to derivatives.

Integration by parts practice problems

In a previous lesson, I explained the integration by parts formula and how to use it. Sometimes though, finding an integral using integration by parts isn’t as simple as the problem I did in that lesson. So I’d like to show some other more complex cases and how to work through them.

\mathbf{1. \ \int 4x^2 \ sin(5x) \ dx}Solution

\mathbf{2. \ \int xe^{-2x} \ dx}Solution

\mathbf{3. \ \int x^{\frac{3}{2}}ln(x) \ dx}Solution

Example 1

Evaluate the integral $$\int 4x^2 \ sin(5x) \ dx.$$

I will proceed through this problem following the same steps that I used in the integration by parts lesson.

1. Picking u and dv

Remember, we want to pick the piece of our function that we’d rather differentiate to be u, and the piece we’d rather integrate to be dv. The integral we need to evaluate can clearly be thought of as the product of 4x^2 and sin(5x). Therefore, we need to take the derivative of one of these and the anti-derivative of the other.

First consider the 4x^2 piece. If we take the derivative of this function we’ll end up with an x term, but if we take the anti-derivative we’ll end up with an x^3 term. This is due to the power rule. Generally it’s best to choose whichever will result in the simplest option. When it comes to polynomials, the simpler one is whichever has the lower power. Therefore, it is preferred to take the derivative of the 4x^2 piece because the x term resulting from the derivative is simpler than the \mathbf{x^3} term resulting from taking the anti-derivative.

But before we say that we definitely want to assign the 4x^2 to be u so that we can take its derivative, we want to think about what this will mean for the sin(5x) piece.

What we need to consider is the difference between taking the derivative and the anti-derivative of sin(5x). In either case, we will end up with some constant multiplied by cos(5x) (we can find this using the chain rule for the derivative or u-substitution for the anti-derivative). But you can see that the derivative and the anti-derivative of this piece are equally complex, so it doesn’t make much of a difference whether we say the sin(5x) piece is assigned to u or dv.

Since the derivative of 4x^2 is much simpler than its anti-derivative, we would rather call it u than dv. And it doesn’t make a difference if sin(5x) is considered to be u or dv. So we will say $$u=4x^2$$ $$dv=sin(5x) \ dx.$$

2. Finding v and du

Now to find v we simply need to take the anti-derivative of the dv piece from the previous section. And to find du we need to take the derivative of u.

You can find the anti-derivative of sin(5x) by using u-substitution. I’m not going to show all the steps for this, but we will need to use the fact that the anti-derivative of sin(x) is -cos(x). Knowing this, we can find that the anti-derivative of sin(5x) would give us $$v=- \ \frac{1}{5} cos(5x).$$

Now that we have found v, let’s move onto finding du. This can simply be done by finding the derivative of u from part 1. Finding the derivative of 4x^2 can simply be found using the power rule. Doing this gives us $$du=8x \ dx.$$

3. Plugging it all into the formula

Now that we have found all 4 of the pieces we need, we just have to plug them into the integration by parts formula. To summarize, the 4 pieces we have up to this point are $$u=4x^2$$ $$dv=sin(5x) \ dx$$ $$v=- \ \frac{1}{5} cos(5x)$$ $$du=8x \ dx.$$

So we just need to use the integration by parts formula with these. $$\int u \ dv = uv – \int v \ du$$ $$\int 4x^2 \ sin(5x) \ dx = \Big(4x^2\Big) \bigg(- \ \frac{1}{5} cos(5x) \bigg) – \int – \ \frac{1}{5} cos(5x) \ 8x \ dx$$

Now we can simplify and evaluate the integral on the right side of our equation. $$(1): \ \int 4x^2 \ sin(5x) \ dx = \ – \ \frac{4}{5} x^2 \ cos(5x) \ + \ \frac{8}{5}\int x \ cos(5x) \ dx$$

But notice, the integral on the right side of our equation is still fairly complex. We still have an integral which is the product of two simpler functions, x and cos(5x). In order to evaluate this integral we’ll actually need to use integration by parts again. So now we need to use integration by parts to evaluate $$\int x \ cos(5x) \ dx.$$ We’ll go ahead and follow the same steps as we did before, but now we have a new integral and will need to reassign our u and dv.

4. Picking u and dv

Now that we are going through this process a second time, we don’t really have much of a choice when we pick which piece will be u and dv. The reason for this is that we will need to make this determination based on what we did the first time through. Consider where each of our pieces came from. One of our pieces is x, which came from the 4x^2 in our original integral. And the other piece is cos(5x) which came from the sin(5x) in the original integral.

Since the x piece in our current integral came from the 4x^2 piece in the original integral, and we decided that the 4x^2 piece would be u earlier, we need to follow up by doing the same here. Therefore, we will say $$u=x$$ this time around.

By the same reasoning, we will need to say that $$dv = cos(5x) \ dx$$ this time around since we said assigned the sin(5x) to dv the first time through.

5. Finding v and du

Now we just need to take the u and dv from the previous step and use them to find v and du.

To find v we just need to find the anti-derivative of dv. We previously decided that dv = cos(5x) \ dx. Just like before, we can find this anti-derivative using u-substitution. Doing this tells us that $$v = \frac{1}{5} sin(5x).$$

And now we just need to find du by taking the derivative of u. Since we know u = x, we know that $$du=dx.$$

6. Plugging it all into the formula

And finally we just need to plug the 4 pieces we have found into the integration by parts formula. So far we have found $$u=x$$ $$dv = cos(5x) \ dx$$ $$v = \frac{1}{5} sin(5x)$$ $$du=dx.$$

Now putting these into the integration by parts formula we find $$\int u \ dv = uv – \int v \ du$$ $$\int x \ cos(5x) \ dx \ = \ x \bigg( \frac{1}{5} sin(5x) \bigg) \ – \int \frac{1}{5} sin(5x) \ dx$$ $$\int x \ cos(5x) \ dx \ = \ \frac{1}{5} x \ sin(5x) \ – \ \frac{1}{5} \int sin(5x) \ dx$$

And now the integral we need to evaluate is much simpler than what we started with. $$\int x \ cos(5x) \ dx \ = \ \frac{1}{5} x \ sin(5x) \ – \ \frac{1}{5} \bigg( – \frac{1}{5} cos(5x) \bigg)$$ $$\int x \ cos(5x) \ dx \ = \ \frac{1}{5} x \ sin(5x) \ + \ \frac{1}{25} cos(5x)$$

Wrapping it all together

Now that we have found $$\int x \ cos(5x) \ dx \ = \ \frac{1}{5} x \ sin(5x) \ + \ \frac{1}{25} cos(5x)$$ we can bring this back to our equation (1) back in step 3. And all we need to do is replace the \int x \ cos(5x) \ dx with \frac{1}{5} x \ sin(5x) \ + \ \frac{1}{25} cos(5x). Doing this tells us that $$\int 4x^2 \ sin(5x) \ dx = \ – \ \frac{4}{5} x^2 \ cos(5x) \ + \ \frac{8}{5}\int x \ cos(5x) \ dx$$ $$= \ – \ \frac{4}{5} x^2 \ cos(5x) \ + \ \frac{8}{5} \bigg( \frac{1}{5} x \ sin(5x) \ + \ \frac{1}{25} cos(5x) \bigg)$$ $$= \ – \ \frac{4}{5} x^2 \ cos(5x) \ + \ \frac{8}{25} x \ sin(5x) \ + \ \frac{8}{125} cos(5x)$$

And that’s our answer! Clearly a bit more complicated than the first integration by parts example I did, but it isn’t too bad. You essentially just need to apply the same process two time in a row. As long as you stay consistent in your designations of u and dv each time, it should all work out in the end.

Example 2

$$\int xe^{-2x} \ dx$$

We’ll start this by deciding which piece we’ll call u and which piece is dv.

$$u=x$$ $$dv=e^{-2x} \ dx$$

Then we need to use these to figure out du and v.

$$du=1 \cdot dx=dx$$ $$v=-\frac{1}{2}e^{-2x}$$

Now we can plug all 4 of these pieces into the integration by parts formula.

$$\int xe^{-2x} \ dx \ = \ x \bigg( -\frac{1}{2}e^{-2x} \bigg) – \int -\frac{1}{2}e^{-2x} \ dx$$

At this point we are left with a simpler integral to evaluate.

$$= -\frac{1}{2}xe^{-2x} + \frac{1}{2} \int e^{-2x} \ dx$$ $$= -\frac{1}{2}xe^{-2x} + \frac{1}{2} \bigg( -\frac{1}{2} e^{-2x} \bigg)$$ $$= -\frac{1}{2}xe^{-2x} – \frac{1}{4} e^{-2x}$$ $$= -\frac{1}{2}e^{-2x} \bigg( x + \frac{1}{2} \bigg)$$

Example 3

$$\int x^{\frac{3}{2}}ln(x) \ dx$$

We’ll start this by deciding which piece we’ll call u and which piece is dv.

$$u=ln(x)$$ $$dv=x^{\frac{3}{2}} \ dx$$

Then we need to use these to figure out du and v.

$$du=\frac{1}{x} \ dx$$ $$v=\frac{2}{5}x^{\frac{5}{2}}$$

Now we can plug all 4 of these pieces into the integration by parts formula.

$$\int x^{\frac{3}{2}}ln(x) \ dx \ = \ \frac{2}{5}x^{\frac{5}{2}} ln(x) \ – \int \frac{1}{x} \cdot \frac{2}{5}x^{\frac{5}{2}} \ dx$$

At this point we are left with a simpler integral to evaluate.

$$= \ \frac{2}{5}x^{\frac{5}{2}} ln(x) \ – \ \frac{2}{5} \int x^{\frac{3}{2}} \ dx$$ $$= \ \frac{2}{5}x^{\frac{5}{2}} ln(x) \ – \ \frac{2}{5} \cdot \frac{2}{5} x^{\frac{5}{2}}$$ $$= \ \frac{2}{5}x^{\frac{5}{2}} \bigg( ln(x) \ – \ \frac{2}{5} \bigg)$$

As always, let me know if you have any questions. If anything was confusing here leave a comment or send me an email at jakesmathlessons@gmail.com and I’ll get back to you with an answer. You can also use the contact form below to reach out and I’ll send you my FREE calculus 1 study guide as a bonus! Also check out my other lessons about integrals!


Washer Method – Rotate around a vertical line

Find the volume obtained by rotating the region bounded by y=\frac{1}{4} x^2, x=2, and y=0 about the y-axis.

To solve this problem, I’m going to use the same 4 step process as I did in my disk method lesson and my first washer method practice problem. There is one key difference this time around: here we are rotating the region around a vertical line. Previously, I have only shown examples of rotating around a horizontal line.

1. Graph the 2-D functions

As I did in the other examples mentioned above, the first thing we should always do is graph the given functions. This will help us visualize what we’re dealing with and will make it easier to come up with the function we’ll need to integrate later.

All I will do here is plug these functions into Desmos, but see if you can graph these without the help of a calculator. That a skill that may come in handy at some point.

washer method around y axis
y=\frac{1}{4} x^2, x=2, and y=0

2. Rotate the 2-D area around the given axis

This is another step that is mostly helpful for visualization. Visualizing each step required to create the 3-D figure we’re looking for will make things a lot easier when we come up with the function that we need to integrate.

Remember, the problem said that we will need to rotate the region trapped between these three functions around the y-axis. So imagine this 2-D region rotating off the page (or screen) and around the y-axis. Doing this would create a round 3-D figure. This is the figure whose volume we need to find.

I encourage you to imagine this happening on your page and try drawing a rough sketch of the resulting figure. I will do this using Wolfram Alpha.

3D rotation around y axis
Result of rotating the region about the y-axis.

3. Setting up the integral

This step is at the heart of these problems. All of the graphing and sketching is to help us visualize what is being described so we can correctly formulate our integral.

We could solve this problem using the cylinder method as well, but that’s for another lesson. For this example, we will proceed using the washer method. This is important to distinguish here because we need to imagine all of the washers that make up this 3-D figure. What we need to think about is a stack of very, very, very thin washers stacked one on top of the other, in the same shape as the figure shown a couple paragraphs ago.

You will notice that if we imagine this figure as a stack of washers, the washers would be stacked vertically, one on top of the other. This is different from the first washer method example I did, where the washers were all side by side.

This is an important difference because adding up the volume of all of these washers will require us to move vertically throughout this figure to get the next washer and add its volume to the total. As a result of this, we will be integrating with respect to y! Since we move in the y direction to get to the next washer, we need to integrate with respect to y. Therefore, when we create our integral, it will all need to be in terms of y rather than x.

How do we set the integral up with respect to y?

Take a look at the drawing below. You can see one of these infinitely thin washers drawn in the figure. Let’s take a minute to consider the dimensions of this particular washer. Remember, as we showed in the first washer method practice problem, the volume of a washer is given by V=\pi h(R^2-r^2) where r is the inner radius and R is the outer radius.

labeled rotation around y axis

The large washer in the middle of our graph is there to help you visualize where these washers would be if we were to stack them up to create this figure. Take a look at the smaller washer in the upper left section of our graph. This will be used to help us find the inner and outer radii of the washers.

Finding the inner radius

The inner radius of a washer will be the distance between the center of the washer and the inner edge. In the drawing above, this is shown in the smaller washer off to the side as the distance between the points labeled (0, \ y) and (x, \ y).

(0, \ y) is some point on the y-axis. The y will be different depending on which washer we’re looking at, but since it lies on the y-axis we know that the x-coordinate will always be 0.

(x, \ y) is some point that lies on the function y=\frac{1}{4}x^2. But remember, I said earlier that we need to integrate with respect to y because our washers are stacked vertically so we move in the y direction to add up all of their volumes. Therefore, we need everything just in terms of y without having any x‘s around. So we need to rewrite (x, \ y) just in terms of y. In order to do this we will need to think about how we can write x in terms of y.

Since we know that this point lies on the function y=\frac{1}{4}x^2 we can use this relationship to find x in terms of y. All we need to do is take that equation and solve for x. $$y=\frac{1}{4}x^2$$ $$4y=x^2$$ $$\pm \sqrt{4y}=x$$ Notice, in general when we take the square root of both sides of the equation we need the positive and negative square root. In this case, the positive square root is the right half of the parabola and the negative square root represents the left half. Since the right half of the parabola is the part that formed the region we’re looking at, we only need the positive square root. So, $$x=\sqrt{4y}.$$

Now that we know x=\sqrt{4y} for any (x, \ y) pair that lies on our function, we can use this to say that (x, \ y) can instead be written as (\sqrt{4y}, \ y). Therefore, to find the inner radius we need to find the distance between \mathbf{(0, \ y)} and \mathbf{(\sqrt{4y}, \ y)}. To find this distance we simply need to find the difference between their x-values because they will always have the same y-coordinate. So, $$r= \sqrt{4y} \ – 0$$ $$r= \sqrt{4y}.$$

Finding the outer radius

Finding the outer radius will be very similar to finding the inner radius. The only difference is that we now need to find the distance between the point in the center of the washer and the outer edge. This is shown in the labeled washer by the distance between the two points labeled (0, \ y) and (2, \ y).

We know that any point that lies on the line x=2 will have an x-coordinate of 2. No matter what the y-coordinate is, if it lies on \mathbf{x=2} we know the x-coordinate must be 2. This is the reason why the point on the outer edge of the washer is labeled (2, \ y). Although the y-coordinate changes as we move up the side of our figure, the x-coordinate stays equal to 2.

So we need to find the distance between the points (0, \ y) and (2, \ y). Clearly these two points will have the same y-coordinate. The y-coordinate changes depending on which washer we are looking at in our figure, but these two points will have the same y-coordinate when they are on the same washer. Since they have the same y-value, to find the distance between them, we just need to find the distance between their x-coordinates. Therefore, $$R=2-0$$ $$R=2.$$

Finding the height (or thickness)

In order to find the volume of a washer we will also need it’s height.

The height of our infinitely thin washers is actually quite simple. Just like when we integrate a 2-D function to find the area under the curve, our slices here are all the same width. We don’t have to worry about each washer, having a different height.

The height of each washer will just be how far we always move over before taking another slice. Since we are moving up in the y direction as we imagine the next slice, this can simply be our change in y between the slices. Change in y is always represented as dy. So we can simply say the height of each cylinder is $$h=dy.$$

Back to the integral

Like I said before, all the integral will do is go through all the y values that our figure covers and add up the volumes of all of the infinitely thin washers. In order for it to achieve this, we need to put a function for the volume of each washer that depends on y. We already know that the volume of a washer in general would be $$V = \pi h \big( R^2 – r^2 \big).$$

This means that our integral might look something like this $$\int \pi h \big( R^2 – r^2 \big).$$

But this doesn’t really have any meaning on its own. In order to give this meaning we need to represent this volume in terms of y and give the integral a range of y values to integrate over.

Remember we also found the inner radius, outer radius, and height of the washers that make up our figure to be $$r=\sqrt{4y},$$ $$R=2,$$ $$h=dy.$$

Putting all of this into an integral along with the fact that this figure goes across all y-values between 0 and 1, give us $$V= \int_0^1 \pi (dy) \bigg( (2)^2 – \Big(\sqrt{4y}\Big)^2 \bigg).$$

Of course, this looks a little strange. Let’s simplify this integral and rearrange the pieces a bit. $$V= \pi \int_0^1 4 – 4y \ dy$$

4. Solve the integral

Now we’ve gotten through the hard part. All we need to do now is evaluate the volume integral by finding the anti-derivative and evaluating the bounds. All we need in this case is the power rule for integration. $$V= \pi \int_0^1 4 – 4y \ dy$$ $$V= \pi \bigg[ 4y – 2y^2 \bigg]_0^1$$ $$V= \pi \bigg[ \Big( 4(1) – 2(1)^2 \Big) – \Big( 4(0) – 2(0)^2 \Big) \bigg]$$ $$V=\pi(4-2)$$ $$V=2 \pi$$

So the volume of this solid is 2 \pi cubic units! I hope that helps, but if you are still looking for some practice with the washer method go check out my first washer method problem. That one explains the rational behind some of the steps in a bit more detail. You should also check out my other lessons and problems about integrals.

If you still have any questions, comments, or suggestions I’d love to hear them. Email me at jakesmathlessons@gmail.com or us the form below to submit your name and email and I’ll send you my calculus 1 study guide as a free gift!

RELATED RATES – Triangle Problem (changing angle)

A plane flies horizontally at an altitude of 5 km and passes directly over a tracking telescope on the ground. When the angle of elevation is \pi/3, this angle is decreasing at a rate of \pi/6 rad/min. How fast is the plane traveling at this time?

1. Draw a sketch

We are going to go ahead and proceed with the 4 steps that I use for all related rates problems. You can check those out in my related rates lesson. As with any related rates problem, the first thing we should do is draw a sketch of the situation being described in this problem.

related rates triangle problem plane
Figure 1

In this drawing the plane is moving from left to right. Keep in mind that the problem also said that the angle \theta is \frac{\pi}{3} radians and is decreasing at a rate of \frac{\pi}{6} \ \frac{rad}{min}. I did not label these facts, but they are important and we should remember them.

2. Come up with your equation

Now that we have made our sketch, we need to use this to come up with an equation relating the necessary quantities and measurements. When doing this we need to consider what the question is asking us to find and what information was given.

However, this may be difficult with the drawing we have so far. First we will need to create and label some other measurements based on some geometric shape we already know something about. Looking back at the initial sketch, it seems like our situation can be described with a triangle. So let’s consider the following drawing instead.

labeled triangle for related rates
Figure 2

Notice that I have added a few things that weren’t in the first drawing. First of all, it is much more clear that we can look at this situation as a triangle. Also I have added labels to the bottom side and hypotenuse of this triangle.

Keep in mind that the side labeled as 5 km will measure the height of the plane as it moves to the right. Therefore, it will always maintain a right angle with the ground. It will also always be 5 km because the altitude of the plane is not changing as it flies horizontally.

Now let’s consider how to make an equation out of this triangle.

What are we looking for?

The question that this problem asks us is “how fast is the plane traveling at this time?” Another way to think about how fast the plane is traveling is how quickly its position is changing, or the rate of change of the plane’s position.

In order to measure the plane’s position at different times, we need to measure how far away it is from some stationary point. This is exactly what the tracking telescope is (shown as the black semi-circle on the ground in our drawing). Since the plane is not moving exactly in the opposite direction of the tracking telescope, we can’t simply use the side of the triangle that measures the distance between these two things (the side labeled z).

However, since the plane is moving horizontally, there is another distance we have labeled that can be used. Since it’s moving horizontally, we will need to use a horizontal distance. In our drawing this is exactly what side x represents! It is the horizontal distance between the telescope and the point directly beneath the plane!

So the rate of change of the plane’s position is represented by the rate of change of the horizontal distance between the plane and the telescope. Therefore, the rate of change of x will give us our answer. Since we will introduce the rate of change when we take the derivative of our equation, we just need to be sure to include x in our initial equation.

What do we know about?

The problem gives us a few pieces of information that we may need to know.

  • Plane’s altitude is always 5 km (it won’t change because it says the plane flies horizontally)
  • Angle of elevation is \frac{\pi}{3} radians
  • Angle of elevation is decreasing at a rate of \frac{\pi}{6} \ \frac{rad}{min}

In general, the angle of elevation is by definition the angle between the object being measured and the horizontal. In this case we made the ground perfectly horizontal to make this easier to visualize, but as long as we measure against some horizontal line the ground doesn’t have to be flat.

So to summarize, we know that the right side of the triangle will be a constant 5 km. We also have some information about our angle \mathbf{\theta} and about its rate of change.

I also want to point out what we can figure out if needed. Since we know two of the three angles, we could use this to find the third. Knowing all three angles and the length of a side, we can use these to find either of the other two sides. This means we can find x or z at this instant if we need to, so they are fine to use in our equation.

Putting it into an equation.

Up to this point we have sorted through what we need to find, which told us that we need to use x in our equation. We also know that we can use \theta, z, or the constant 5 km side. So let’s think about what we can do with this.

You may be thinking that we should use Pythagorean Theorem at this point, so let’s think about this. If we do use Pythagorean Theorem our equation will use all three side lengths and will not use our angle \theta. We don’t necessarily have to use our angle, so there’s nothing wrong with this.

However, think about what will happen when we take the derivative of this equation with respect to time. At this point we would introduce \frac{dz}{dt} and \frac{dx}{dt}! Since we don’t know either of these values, this would leave us with two unknowns in only one equation, which isn’t very helpful because it doesn’t allow us to solve for the one variable we want.

But what else can we do?

Well the last thing we tried didn’t include our angle \theta, so let’s think about what we can do with that. What function do you know about that deals with an angle of a right triangle and any number of its sides?

Sine, cosine, and tangent!

Remember soh, cah, toa? We need to use one of these here. Keep in mind that each of these uses one angle and two of the sides of the triangle. Since we already know some information about \mathbf{\theta} and its rate of change, we will use that as our angle. But how do you decide which sides to use?

We already know that we need to use x. We decided that several paragraphs ago (click here to go back up there). So this leaves the side z and the constant 5 km side to chose from for our other side. If we chose z, we will run into the same problem as if we use Pythagorean Theorem, we don’t know anything about it’s rate of change!

Notice since the 5 km side is constant, we don’t need to worry about the rate of change. This side is a constant so its rate of change would be 0! So we will use x and the constant 5 km side in our equation. Now there’s just one last thing to figure out.

Do we use sine, cosine, or tangent?

When deciding between sine, cosine, and tangent we will want to use soh, cah, toa:

Sine: Opposite / Hypotenuse
Cosine: Adjacent / Hypotenuse
Tangent: Opposite / Adjacent

We know that we are using the angle \theta, and the x side and the constant 5 km side. Let’s think for a second about where these sides lie in relation to the angle we’re looking at.

First of all, neither of these two sides are the hypotenuse. The hypotenuse of a right triangle is the longest side which is opposite from the right angle. Therefore, one will be the side adjacent to \theta and the other will be opposite to \theta. In general, the adjacent side would be the one that’s touching \theta. In this case, the adjacent side would be x. The opposite side would be the one side that is not touching our angle, making the 5 km side opposite.

So we need to chose between sine, cosine, and tangent so that we incorporate the adjacent side and the opposite side. Using soh, cah, toa, we can see that tangent uses the opposite and adjacent sides. This tells us that taking the tangent of our angle gives us the opposite side divided by the adjacent side. $$tan(\theta) = \frac{\textrm{opposite}}{\textrm{adjacent}}$$ $$tan(\theta) = \frac{5}{x}$$

3. Implicit differentiation

Now that we have come up with our equation, we need to take its derivative with respect to time. This will require the use of the chain rule since we are differentiating with respect to time. The reason for this is that we need to treat \theta and x as functions of time.

Notice that our equation has a fraction. As a result we would need to use the quotient rule to find the derivative of the right side of our equation. However, we can rewrite this in another form to make the derivative a bit simpler.

Remember, we can always move a term from the bottom of a fraction up to the top by making its power negative. Therefore, we can write our equation as $$tan(\theta) = 5x^{-1}.$$

Now that we just have a constant multiplied by an x term to a constant power, we can use the power rule instead of the quotient rule on the right side of the equation. We do still have to use the chain rule, but at least we made things a bit simpler. In order to find the derivative of tan(\theta) we would need to use the fact that tan(x)=\frac{sin(x)}{cos(x)} then use the quotient rule. I’m not going to show this process, but instead I’ll use Wolfram Alpha to find that $$\frac{d}{dx} tan(x) = sec^2(x) = \frac{1}{cos^2(x)}.$$

Applying this to our problem we can implicitly differentiate our equation. $$\frac{d}{dt} \big[ tan(\theta) \big]= \frac{d}{dt} \Big[ 5x^{-1} \Big]$$ $$sec^2(\theta) \cdot \frac{d \theta}{dt} = -5x^{-2} \cdot \frac{dx}{dt}$$

4. Solve for desired rate of change

Remember the thing we need to find in this problem is the rate of change of x. So all we need to do now is isolate \frac{dx}{dt} because that’s exactly what represents the rate of change of x. $$sec^2(\theta) \cdot \frac{d \theta}{dt} = -5x^{-2} \cdot \frac{dx}{dt}$$ $$-\frac{1}{5} sec^2(\theta) \cdot \frac{d \theta}{dt} = x^{-2} \cdot \frac{dx}{dt}$$ $$-\frac{1}{5} x^2 \cdot sec^2(\theta) \cdot \frac{d \theta}{dt} = \frac{dx}{dt}$$

And once we’ve done that, we just need to plug in all of the other variables to find \frac{dx}{dt}! The other variables that we’ll need to plug in are x, \theta, and \frac{d \theta}{dt}.

We already know from the actual problem that “the angle of elevation is \pi/3,” and “this angle is decreasing at a rate of \pi/6 rad/min.” This directly tells us that $$\theta = \frac{\pi}{3}.$$ And since this angle is decreasing we know its rate of change will be negative, so $$\frac{d \theta}{dt} = -\frac{\pi}{6}.$$

Now we just need to find x. Since it wasn’t directly given, finding x will require a little work but it’s not too complicated.

We will actually need to use the equation we created before taking its derivative. $$tan(\theta) = \frac{5}{x}$$ Since we need to find x at the moment when \theta = \frac{\pi}{3} we can plug this in here to find x. $$tan \bigg( \frac{\pi}{3} \bigg) = \frac{5}{x}$$ $$\frac{sin(\pi/3)}{cos(\pi/3)} = \frac{5}{x}$$

And now using the unit circle. $$\frac{\sqrt{3}/2}{1/2} = \frac{5}{x}$$ $$\sqrt{3} = \frac{5}{x}$$ $$\sqrt{3} \cdot x = 5$$ $$x = \frac{5}{\sqrt{3}}$$

Plugging them all in

$$\frac{dx}{dt} = -\frac{1}{5} x^2 \cdot sec^2(\theta) \cdot \frac{d \theta}{dt}$$ $$\frac{dx}{dt} = -\frac{1}{5} \bigg( \frac{5}{\sqrt{3}} \bigg)^2 \cdot sec^2\bigg( \frac{\pi}{3} \bigg) \cdot \bigg( -\frac{\pi}{6} \bigg)$$ $$\frac{dx}{dt} = -\frac{1}{5} \bigg( \frac{25}{3} \bigg) \cdot \frac{1}{cos^2\big( \frac{\pi}{3} \big)} \cdot \bigg( -\frac{\pi}{6} \bigg)$$ $$\frac{dx}{dt} = -\frac{1}{5} \bigg( \frac{25}{3} \bigg) \cdot \frac{1}{1/4} \cdot \bigg( -\frac{\pi}{6} \bigg)$$ $$\frac{dx}{dt} = -\frac{1}{5} \bigg( \frac{25}{3} \bigg) \cdot 4 \cdot \bigg( -\frac{\pi}{6} \bigg)$$ $$\frac{dx}{dt} = \frac{100\pi}{90} = \frac{10\pi}{9}$$

So we know that the plane is traveling at a speed of \mathbf{\frac{10\pi}{9} \ \frac{km}{min}}!

Hopefully that all helped this problem make a little more sense. If you still want some more practice with triangle related rates problems, check some of these out:

Solution – At noon, ship A is 150 km west of ship B.  Ship A is sailing east at 35 km/h and ship B is sailing north at 25 km/h.  How fast is the distance between the ships changing at 4:00 PM?

Solution – A kite 100 ft above the ground moves horizontally at a speed of 8 ft/s. At what rate is the angle between the string and the horizontal decreasing when 200 ft of string has been let out?

Or you can check out my related rates lesson where I have a list of other related rates problems with solutions if you want more practice with these.

If you have any questions about this problem, please let me know! I’d be happy to help. You can email any questions to me at jakesmathlessons@gmail.com or use the form below to join my email list and I’ll send you my calc 1 study guide as a welcome gift!


RELATED RATES – Square Problem

Each side of a square is increasing at a rate of 6 \frac{cm}{s}. At what rate is the area of the square increasing when the area of the square is 16 cm^2?

If you haven’t already, you should check out my related rates lesson. I go through the steps that can be used to solve any related rates problem. I will use these steps here, but it might be useful for you to see a more detailed explanation of why we use these steps.

1. Draw a sketch

The first thing we will always want to do is draw a sketch of the situation described by the problem. This problem is relatively simple to draw out. Here we have a square whose sides are growing at a constant rate. We know the sides are growing at a rate of 6 \frac{cm}{s} and we want to consider the moment when the area of the square is 16 cm^2.

related rates square

2. Come up with your equation

Now that we have our drawing laid out, we need to create an equation whose derivative we will need to find.

What are we looking for?

This question is asking us to find the rate at which the area of the square is increasing. So it tells us that we need to have some variable that represents the rate of change of the area at some point.

Of course, we will need to take the derivative of our equation soon. Doing this will introduce the ‘rate of change’ part. Therefore, we need to make sure that our equation we make includes the area of the square. As long as we do this, we will end up with the rate of change of the area once we take its derivative.

What do we know about?

There was only two pieces of information that the question directly told us.

  • Each side of a square is increasing at a rate of 6 \frac{cm}{s}.
  • The area of the square in this instant is 16 cm^2.

Putting it into an equation

So at this point, we have figured out that we need our equation to include the square’s area, and we know something about the square’s area and the rate of change of its sides.

Although, we don’t know anything about the actual side lengths at the given instant, we can figure that out if we have to. Therefore, it’s fine if our equation includes the length of the square’s sides.

To summarize, the only measurements of this square we have discussed so far are its side lengths and its area. So our equation should relate its area and its side lengths. Keep in mind, we don’t want to put anything that represents a rate of change into our equation. These will come when we take the derivative of our equation.

The simplest equation that relates the area of a square with its side lengths would likely be the formula for the area of a square that you are already familiar with. $$A=l^2$$ Where A is the area of the square, and l is the length of its sides.

3. Implicit differentiation

Once we have created our equation like we did above, we need to go ahead and take its derivative with respect to time. This will be done using implicit differentiation.

Since we will be taking the derivative with respect to time, we will need to treat the A and the l in our equation as functions of time. This will require using the chain rule to find their derivatives.

$$\frac{d}{dt} \big[ A \big] = \frac{d}{dt} \Big[ l^2 \Big]$$ $$\frac{dA}{dt} = 2l \cdot \frac{dl}{dt}$$

4. Solve for the desired rate of change

Now all we have to do is solve for the rate of change the question is asking about. Just like I said earlier, we need to find the rate of change of the square’s area. Since this is exactly what \frac{dA}{dt} represents and we have already isolated this, we don’t have much else to do. All we need to do is plug in the values we have for everything else in our equation.

The only other variables we need to plug in are l and \frac{dl}{dt}. The tricky thing here is that we don’t directly know what l is at the moment in this problem. Instead we know that the area of the square is
16 cm^2. Since we know that the relationship between the area of a square and its side lengths is $$A=l^2$$ we can find l in this instant. $$16=l^2$$ $$4=l$$ So we know that in this moment the length of the square’s sides is 4 cm.

Remember, the problem also told us that the side lengths are increasing at a rate of 6 \frac{cm}{s}. This directly tells us the rate of change of the sides lengths. So we also know that $$\frac{dl}{dt}=6$$

Putting all of this into our equation will give us: $$\frac{dA}{dt} = 2l \cdot \frac{dl}{dt}$$ $$\frac{dA}{dt} = 2(4)(6)$$ $$\frac{dA}{dt} = 48$$

So the area of this square is increasing at a rate of 48 \mathbf{\frac{cm^2}{s}} when the area is 16 \mathbf{cm^2}.

If you’re still having some trouble with related rates problems or just want some more practice you should check out my related rates lesson. At the bottom of this lesson there is a list of related rates problems that I have posted along with their solutions. I also have several other lessons and problems on the derivatives page you can check out. If you can’t find the topic or question you’re looking for just let me know by emailing me at jakesmathlessons@gmail.com!

You can also enter your name and email using the form below and I will send you my calculus 1 study guide as a welcome gift!

Washer Method Practice Problem

Once you have the disk method down, the next step would be to find the volume of a solid using the washer method. The washer method for finding the volume of a solid is very similar to the disk method with one small added complexity.

You can think of the main difference between these two methods being that the washer method deals with a solid with a piece of it taken out. Exactly as you would expect from the name, a washer is just a disk with a hole taken out of its center. So let’s jump into an example and I’ll explain the difference as we go.

Example

Find the volume obtained by rotating the area bounded by y=x and y= \sqrt{x} about the line y=1.

Solution

Like I said, finding the volume of this solid is going to be very similar to finding the volume of a solid using the disk method. Therefore, I’m going to follow the same general process as I did when using the disk method.

1. Graph the 2-D functions

Just like before, I’ll do this using Wolfram Alpha. Below you can see the graph of y=x and y=\sqrt{x} and you can see the area that is bounded by these two functions.

finding the volume of a figure using the washer method

2. Rotate the 2-D area around the given axis

Now that we have graphed our functions in the 2-D space, we will need to rotate them about our axis of rotation to create a 3-D figure. This is very similar to rotating a single function when using the disk method. The only difference is that the resulting figure will be round figure with something missing out of its center.

Remember, we need to rotate this area between the two functions around the line y=1, which is above our functions this time. Again, with Wolfram Alpha, we can see what this figure would look like.

washer method rotation volume

3. Setting up the integral

This is where things get a little different as a result of using the washer method. We still want to think about taking infinitely thin cylinders from this figure and measuring their volumes.

But let’s think about what these infinitely thin cylinders look like.

Since our figure is a cone-like shape with a piece missing from the middle, our cylinders are also going to have a piece missing from the middle. This makes them look like washers, which is why we call it the washer method! Since the slices of our figure look like washers we can’t find their volume by just finding the volume of a cylinder. There will be something a little extra.

What’s different about a washer?

Let’s take a look at the washer below and consider how we might find its volume.

washer

Clearly this figure takes on the shape of a cylinder. If we knew its radius and its height, we could use the formula for the volume of a cylinder to find its volume. However, there is a piece missing.

If we think about the piece that is missing from the cylinder for a moment you can see that this hole also has a cylindrical shape. In other words, we are starting with a cylinder and taking out a smaller cylinder from the middle of it.

So let’s say the distance from the center of these cylinders to the outer edge of this figure is the large radius, R. And we will say that the distance from the center of this figure to the inner edge is the small radius, r. We can think of r as the radius of the small cylinder that was taken out of the large cylinder.

Clearly both of these cylinders would have the same height, which we will call h, because this washer has the same thickness everywhere. So we can label all of these, giving us something like this.

Then we could use the volume of a cylinder formula to say that the volume of the large cylinder before the middle is taken out is $$\pi R^2 h.$$ And we can also say that the volume of the middle piece that’s taken out is $$\pi r^2 h.$$ So if we started with the volume of the large cylinder and take away the volume of the small cylinder, that means the volume of the washer is $$V= \pi R^2 h \ – \ \pi r^2 h.$$

Then we can simplify this a bit by factoring out like terms to get $$V = \pi h \big( R^2 – r^2 \big)$$

But what does this have to do with an integral?

Just like we did when we used the disk method, we will need to add up the volume of all of the washers. This is what the integral accomplishes. In order to write our volume as an integral, we first need to come up with the function we will integrate.

Consider the following drawing of the area described in this problem rotated around y=1 with one of the washer slices depicted.

washer method rotation

The green washer in the figure represents one of the infinitely thin washers that we are slicing the figure into. Since we are trying to make this integral represent the sum of all of these washers, we need to think about the volume of each washer in particular.

You can imagine if we were to look at a different washer to the left or right of this one, the inner and outer radius would be different. As we change the x value where the washer sits, both radii would need to change. The inner radius would always reach to the part of this figure resulting from rotating y=\sqrt{x} around y=1. And the outer radius would always reach out to the part of this figure resulting from rotating y=x around y=1.

We already figured out that the volume of a washer would be $$V = \pi h \big( R^2 – r^2 \big).$$ But now we need to apply this to this specific washer in the drawing above.

Let’s look up at the green washer in the above drawing. In order to find its volume, we will need its inner radius, outer radius, and height (or thickness).

Finding the inner radius

The inner radius of this washer would be the distance from the center of the washer to the inner edge. In the drawing above, we can see that this would be the distance between the axis of rotation (the green line labeled y=1) and the the function which is closer to this axis (the red function labeled y=\sqrt{x}).

Off to the side of these functions you can see a closer look at this washer with three important points labeled. In this larger version the inner radius is the distance between the point (x, \ 1) and (x, \ y_1). We know that the center of our disk will always have a y-coordinate of 1 because we rotated our function around the line \mathbf{y=1}. And we will leave the x-coordinate as the variable x because we are trying to find the volume of any washer along this figure with all different x values, not just the one disk drawn above.

Let’s take a second to think about the other point I mentioned. This point is labeled (x, \ y_1). This is just meant to be any (x, y) combination that sits on our function \mathbf{y=\sqrt{x}}. This point will always have the same x-value as our other labeled point, so the distance between these two points will simply be the distance between their y-coordinates, which are y_1 and 1. To find the distance between these two values, we just need to do the larger value minus the smaller one. Looking at the drawing, you can see that y=1 is above y=\sqrt{x} over the entire domain of the area we care about. Therefore, the larger y value minus the smaller one, is $$1-y_1.$$

But we need this to be in terms of x. Remember we realized earlier that the inner radius of our washer will depend on x, so we want everything in terms of x. We know that our point (x, \ y_1) is some point that lies on the function y=\sqrt{x}. So we know \mathbf{y_1=\sqrt{x}}. Therefore, if the inner radius of our washer is 1-y_1, we can also say that the radius is 1-\sqrt{x}. So the inner radius of this washer will be $$r=1-\sqrt{x}.$$

We could plug in any x value into this to find the inner radius of the washer that corresponds with that specific x value. So when we integrate across a range of x values, we will be taking into account the inner radius of the washers with all of the x values in that range. But let’s not get ahead of ourselves. We have a bit more work to do before we can do that.

Finding the outer radius

We will find the outer radius very similarly to how we found the inner radius. The outer radius of this washer would be the distance from the center of the washer to the outer edge. In the drawing above, we can see that this would be the distance between the axis of rotation (the green line labeled y=1) and the the function which is farther from this axis (the blue function labeled y=x).

Again, let’s take a look at the washer drawn off to the side of our figure. This time we are looking for the outer radius. The outer radius would be shown here as the distance between the points (x, \ 1) and (x, \ y_2).

Since these two points have the same x value, the distance between them will be the same as the distance between their y values. To find this we just need to take the larger one and subtract the smaller of the two. The point (x, \ 1) will always lie on y=1 and the point (x, \ y_2) will always lie on y=x. Since y=1 is above y=x between x=0 and x=1, we know that 1 will be larger than y_2. Therefore, the distance between these two points is $$1-y_2.$$

But again, we need this radius to be written in terms of x. We know that our point (x, \ y_2) is some point that lies on the function y=x. So we know \mathbf{y_2=x}. Therefore, if the outer radius of our washer is 1-y_2, we can also say that the radius is 1-x. So the outer radius of this washer will be $$R=1-x.$$

Finding the height (or thickness)

The height of our infinitely thin cylinders or washers is actually quite simple. Just like when we integrate a 2-D function to find the area under the curve, our slices here are all the same width. We don’t have to worry about each washer, or cylinder, having a different height.

The height of each cylinder will just be how far we always move over before taking another slice. Since we are moving over in the x direction as we imagine the next slice, this can simply be our change in x between the slices. Change in x is always represented as dx. So we can simply say the height of each cylinder is $$h=dx.$$

Back to the integral

Like I said before, all the integral will do is go through all the x values in our domain and add up the volumes of all of the infinitely thin washers. In order for it to achieve this, we need to put a function for the volume of each washer that depends on x. We already know that the volume of a washer in general would be $$V = \pi h \big( R^2 – r^2 \big).$$

This means that our integral might look something like this $$\int \pi h \big( R^2 – r^2 \big).$$

But this doesn’t really have any meaning on its own. In order to give this meaning we need to represent this volume in terms of x and give the integral a domain of x values to integrate over.

Remember we also found the inner radius, outer radius, and height of the washers that make up our figure to be $$r=1-\sqrt{x},$$ $$R=1-x,$$ $$h=dx.$$

Putting all these into our integral, along with the fact that our figure takes on all x values between x=0 and x=1 tells us that the volume of this 3-D figure is $$V = \int_0^1 \pi (dx) \Big( \big( 1-x \big)^2 – \big( 1-\sqrt{x} \big)^2 \Big).$$

But we should rewrite this in a form that is more in line with how integrals are usually formatted. And we can also pull our constant \pi outside of the integral. $$V = \pi \int_0^1 \big( 1-x \big)^2 – \big( 1-\sqrt{x} \big)^2 \ dx$$

4. Solve the integral

We made it through the hard part! Now that we created our integral to represent the volume, we just need to evaluate the integral. Before we integrate this, let’s start with simplifying it.

In order to simplify this function that we need to integrate, the first step would be to F.O.I.L. out each portion. Remember (1-x)^2 is NOT (1^2-x^2). Instead we need to treat (1-x)^2 as if it were (1-x)(1-x).

$$V = \pi \int_0^1 \big( 1-x \big)^2 – \big( 1-\sqrt{x} \big)^2 \ dx$$ $$V = \pi \int_0^1 (1-x)(1-x) – \big(1-\sqrt{x})(1-\sqrt{x} \big) \ dx$$ $$V = \pi \int_0^1 \big(1-2x+x^2 \big) – \big(1-2\sqrt{x}+x \big) \ dx$$ $$V = \pi \int_0^1 1-2x+x^2 – 1+2\sqrt{x}-x \ dx$$ $$V = \pi \int_0^1 x^2 -3x +2\sqrt{x} \ dx$$ $$V = \pi \int_0^1 x^2 -3x +2x^{\frac{1}{2}} \ dx$$

Now we have a function that is fairly simple to integrate. All we need to do to integrate this is use the power rule.

$$V = \pi \Bigg[ \frac{1}{3}x^3 – \frac{3}{2}x^2 + \frac{4}{3}x^{\frac{3}{2}} \Bigg]_0^1$$ $$V = \pi \Bigg[ \bigg( \frac{1}{3}1^3 – \frac{3}{2}1^2 + \frac{4}{3}1^{\frac{3}{2}}\bigg) – \bigg( \frac{1}{3}0^3 – \frac{3}{2}0^2 + \frac{4}{3}0^{\frac{3}{2}} \bigg) \Bigg]$$ $$V = \pi \bigg( \frac{1}{3} – \frac{3}{2} + \frac{4}{3} \bigg)$$ $$V = \pi \bigg( \frac{2}{6} – \frac{9}{6} + \frac{8}{6} \bigg)$$ $$V = \frac{1}{6} \pi = \frac{\pi}{6}$$

So we know the volume of this solid is \frac{\pi}{6}! Hopefully this has helped you with the washer method, but if there’s still a topic you’d like to learn about take a look at some of my other lessons and problem solutions about integrals. You can also get some more practice with the washer method here. If you can’t find the topic or question you’re looking for just let me know by emailing me at jakesmathlessons@gmail.com!

I also encourage you to join my email list! Just enter your name and email below and I’ll send you my calc 1 study guide as a FREE welcome gift!

Implicit Differentiation Practice Problem

Find \frac{dy}{dx} if y=x^x.

Solution

This is kind of a tricky problem. Obviously, if we need to find \frac{dy}{dx}, we need to take the derivative. And since we are already given an explicit formula for y only in terms of x, it seems like we can just go ahead and take the derivative. But unfortunately, having an x both in the base and the exponent makes it a bit more complicated.

So what can we do then?

Finding the derivative of this function is going to require a little trick that seems a little counter intuitive. What we need to do is actually take the natural log of both sides of this equation. The reason for this is that it will help us get rid of the exponent and put this in a form we can work with more easily.

$$y=x^x$$

$$ln (y) =ln \big( x^x \big)$$

Now that we have done this we can use one of the basic log rules that you will want to remember.

3 log rules to remember

Really quickly I want to list the three main log rules that you will want to remember. These come up frequently, so you will want to remember these.

$$log(ab) = log(a) + log(b)$$ $$log \bigg( \frac{a}{b} \bigg) = lob(a) – log(b)$$ $$log \Big( a^b \Big) = b \cdot log(a)$$

How do we apply this to our problem?

Let’s look back to our equation to see where we were.

$$ln (y) =ln \big( x^x \big)$$

Notice the right side of our equation looks a lot like the third log rule from above. Based on that third log rule, we can move the x in the exponent down in front of the log and multiply rather than having to deal with an exponent.

$$ln(y) = x \cdot ln(x)$$

The reason I think this seems a little counter intuitive is that we no longer have an explicit formula for y. But now the right side of our equation will be easier to take its derivative. So now let’s see what happens if we take the derivative of both sides of the equation with respect to x.

Taking the derivative

The reason we need to take the derivative with respect to x is that the question asked us to find \frac{dy}{dx}. The dx in the denominator is the indicator that tells us that we need to differentiate with respect to x. So let’s do that now.

$$\frac{d}{dx} ln(y) = \frac{d}{dx} \big[x \cdot ln(x) \big]$$

First the left side

Taking the derivative of the left side of the equation will require the use of the chain rule since y is a function of x. This was explained in a bit more detail in my implicit differentiation lesson. You will also use the fact that the derivative of ln(x) is \frac{1}{x}.

$$\frac{1}{y} \cdot \frac{dy}{dx} = \frac{d}{dx} \big[x \cdot ln(x) \big]$$

Then the right side

In order to take the derivative of the right side of this equation, we will need to use the product rule. As I did in the product rule lesson, we’ll first want to call one part of our function f and the other will be g.

$$f=x$$ $$g=ln(x)$$

Now we need to find f’ and g’ to use the product rule formula.

$$f’=1$$ $$g’=\frac{1}{x}$$

And lastly, we just need to plug these four pieces into the product rule formula.

$$\frac{1}{y} \cdot \frac{dy}{dx} = (x) \bigg( \frac{1}{x} \bigg) + (1) \big( ln(x) \big)$$

Now that we have taken the derivative of both sides of the equation, we just need to simplify the equation and solve for \frac{dy}{dx}.

Solving for dy/dx

$$\frac{1}{y} \cdot \frac{dy}{dx} = (x) \bigg( \frac{1}{x} \bigg) + (1) \big( ln(x) \big)$$

$$\frac{1}{y} \cdot \frac{dy}{dx} = 1 + ln(x)$$

And all we need to do from here is multiply both sides by y to isolate \frac{dy}{dx}.

$$\frac{dy}{dx} = y \big( 1+ln(x) \big)$$

With most implicit differentiation problems this would be a perfectly fine place to stop and say we’ve reached our answer. Finding \frac{dy}{dx} in terms of x and y is frequently the best we can do. But in this case, we can actually get our answer only in terms of x so that we have an explicit derivative of the original function.

The reason we’re able to do this is that our original function was an explicit formula for y. Since we know y=x^x we can actually go to our formula for \frac{dy}{dx} and replace the y with x^x. So,

$$\frac{dy}{dx} = x^x \big( 1+ln(x) \big)$$

And now we can say we have reached our answer!

I just want to circle back to those 3 log rules I discussed above. They can be very useful when taking derivatives of exponential functions, or in some strange cases products and quotients. They can be used to rewrite complex functions in a way that would make their derivative easier to find, so always be sure to be aware of those and know how to use them to manipulate a function when needed.

As I always say, the best way to learn this stuff is practice, practice, practice! So check out some of my other lessons and problem solutions on derivatives. The more you work with these concepts, the better you’ll start to understand them.

If you can’t find the answer to your question or the topic you want to read about on my site, send me an email at jakesmathlessons@gmail.com and I’ll get back to you as soon as I can. You can also use the form below to join my email list and I’ll send you my calculus 1 study guide!


Rotating Volumes with the Disk Method

Rotating functions around an axis to create a 3-D shape then finding its volume is one of the more common applications of integrals. This is commonly referred to as finding a volume using the disk method. It seems like a complicated type of problem, but if you think about what you are actually measuring it isn’t so bad.

Let’s think about a specific example. Imagine taking the function y=x^2 between x=0 and x=2 and rotating it around the x-axis then finding the volume of this solid using the disk method.

1. Graph the 2-D function

The first thing I would recommend doing with a problem like this is to graph the function that’s given to you. Here we are graphing y=x^2 within our given domain of 0 \leq x \leq 2. Using Wolfram Alpha we can see this graph below.

finding volumes with the disk method

2. Rotate the 2-D function around the given axis

Once you graph the function on the 2-D x-y-plane we need to imagine rotating it around the axis given in the problem. This will result in creating a 3-D figure whose volume we need to find.

In this case we need to rotate this portion of our function around the x-axis. Another way to say this is that we are rotating around the line y=0. Again, using Wolfram Alpha we can see what this figure would look like.

rotating function for disk method

I would always recommend drawing out the 2-D graph and 3-D rotation anytime you need to find the volume of a solid like this. It helps to visualize the solid whose volume you are trying to measure and it makes it much easier to make sure you are setting up your problem correctly.

3. Setting up the integral

As with any problem where we need to find a volume using the disk method, what we want to imagine here is having infinitely thin cylinders stacking up to create our 3-D figure. When we add up the volumes of all of these infinitely thin cylinders, get the volume of the entire figure. This is all the integral is doing.

disk method

You can see in this drawing our function has been rotated around the x-axis to create a round cone-like 3-D figure. The green cylinder in the figure represents one of the infinitely thin disks that we are slicing the figure into.

Since we are trying to make this integral represent the sum of all of these disks, we need to think about the volume of each disk in particular. Clearly each disk is a very thin cylinder. So in order to find their volumes, we should start with the volume of a cylinder, which is

$$V=\pi r^2 h.$$

Thinking back to our example of rotating y=x^2 around the x-axis, let’s determine the radius and height of our cylinders.

How do we find the radius?

Considering that each cylinder will be a different size, it seems clear that the radius of each cylinder will depend on which cylinder we’re considering. In fact, if you look at our drawing, you can see that the radius of each cylinder will simply depend on the x value where it’s sitting.


You can see in the drawing above that I drew a copy of the disk we are considering down below the function. Imagine we are trying to find the distance between the two points we labeled. The center point of our disk is labeled (x, 0). We know that the center of our disk will always have a y-coordinate of 0 because we rotated our function around the line \mathbf{y=0}. And we will leave the x-coordinate as the variable x because we are trying to find the volume of any disk along this figure with all different x values, not just the one disk drawn above.

Now consider the upper point. This point is labeled (x, y). This is just meant to be any (x, y) combination that sits on our function y=x^2. This point will always have the same x-value as our other labeled point, so the distance between these two points will simply be the distance between their y-coordinates, which are y and 0. To find the distance between these two values, we just need to do the larger value minus the smaller one, or y-0, which is just y.

But we need this to be in terms of x. Remember we realized earlier that the radius of our disk will depend on x, so we want everything in terms of x. We know that our point (x, y) we were looking at is some point that lies on our function. So we know \mathbf{y=x^2}. Therefore, if the radius of our disk is y, we can also say that the radius is x^2. So,

$$r=x^2.$$

How do we find the height?

The height of our infinitely thin cylinders is actually quite simple. Just like when we integrate a 2-D function to find the area under the curve, our slices here are all the same width. We don’t have to worry about each disk, or cylinder, having a different height.

The height of each cylinder will just be how far we always move over before taking another slice. Since we are moving over in the x direction as we imagine the next slice, this can simply be our change in x between the slices. Change in x is always represented as dx. So we can simply say the height of each cylinder is

$$h=dx.$$

If we were instead rotating our function around a vertical line (like x=0) the height of our disks would be dy. This is only if we are using the disk method and would not necessarily be the case when using the shell method.

Back to the integral

Now we got our height and radius of each disk we get from slicing this figure. Putting this together, we can say that the volume of a single disk can be represented as

$$V=\pi \big( x^2 \big)^2dx.$$

But this of course is just one disk. We need to add up the volume of all of the disks to get the volume of the full figure. This is exactly what the integral accomplishes. Before doing this, remember we are only rotating this function between x=0 and x=2. So these will be the bounds of our integral. Therefore, the volume of our entire figure can be found with the following integral.

$$\int_0^2 \pi \big( x^2 \big)^2dx$$

4. Solve the integral

We made it through the hard part! Now all we need to do is solve this integral and we will have the volume of our figure. First let’s simplify this integral a little, then we can integrate using the power rule and evaluate at the given bounds.

$$\int_0^2 \pi \big( x^2 \big)^2dx$$

$$\pi \int_0^2 x^4 dx$$

$$\pi \Bigg[ \frac{1}{5} x^5 \Bigg]^2_0$$

$$\frac{\pi}{5} \Big[ (2)^5 – (0)^5 \Big]$$

$$\frac{\pi}{5} \Big[ 32 \Big]$$

$$\frac{32 \pi}{5}$$

So we found that the volume of the solid is \frac{32 \pi}{5}! Hopefully this has helped you with the disk method, but if there’s still a topic you’d like to learn about take a look at some of my other lessons and problem solutions about integrals. Once you know and understand the disk method, another good application of integrals to check out would be the washer method. If you can’t find the topic or question you’re looking for just let me know by emailing me at jakesmathlessons@gmail.com!

I also encourage you to join my email list! Just enter your name and email below and I’ll send you my free calculus 1 study guide as a bonus for joining me!


Integration by parts

Integration by parts is another common technique used to find complex antiderivatives. This method tends to be a little more straight forward in its application than u-substitution. The main reason for this is that it requires the use of a formula, and if you can follow the formula you should be able to work through the rest.

First let’s introduce the formula, then I’ll explain how to use it. If you already know how to do these and you’re looking for extra practice problems, click here.

$$\int u \ dv = uv- \int v \ du$$

All this formula is really saying is that if we need to integrate some function which can be thought of as the product of two pieces, u and dv, then we can rewrite our integral in this other form. Notice we still would have an integral to solve after using this formula. But the hope is that \int v \ du is easier to find than \int u \ dv.

But how do you use the formula?

Using the integration by parts formula can be broken down into 3 simple steps and is going to start out somewhat similarly to integrating with u-substitution.

1. Picking u and dv

The first thing we need to do to use this formula is decide which piece of our function will be called u and which piece will be called dv. As we work through this problem, we will eventually need to work with the derivative of u and the antiderivative of dv. Therefore, to decide which piece we want to be u and dv, we should also consider the derivative and antiderivative of the pieces.

Let’s consider the following integral which we will find using integration by parts.

$$\int xsin(10x) \ dx$$

Clearly we can see that we are being asked to integrate some function which is the product of two smaller functions. It is the product of x and sin(10x). Therefore, between x and sin(10x), we will need to call one of these u and the other will be dv.

Does it matter which is which?

Yes, it does matter. You will need to take the derivative of u and the antiderivative of dv. So you want to pick one to be u and the other to be dv so that the derivative of u and the antiderivative of dv are easiest to work with.

Consider this: the sin(10x) term can be either u or dv. The reason for this is that whether you take the derivative or the antiderivative of sin(10x), the result will be some constant multiplied by cos(10x). As a result, it doesn’t make much of a difference whether we call sin(10x) the u or the dv.

Let’s think about the x term. If we call it u and have to work with its derivative, we’ll make things pretty easy on ourselves. I say this because the derivative of x is just 1. Alternatively, if we make x be dv and take it’s antiderivative, we will need to work with an \mathbf{x^2} term (due to the power rule). Therefore, it will be a lot easier to work with the derivative of x than it will be to work with it’s antiderivative. This tells us that it’ll be easiest to call x the u piece.

Since it doesn’t matter what we call the sin(10x) term, but it’ll be a lot easier to make x be the u piece, we will say

$$u=x$$

$$dv=sin(10x) \ dx.$$

2. Finding v and du

Now that we have determined our u and dv, we need to use these to calculate v and du. To find du we just need to take the derivative of u.

$$\frac{du}{dx} = \frac{d}{dx} \big[ x \big]$$

$$\frac{du}{dx} = 1$$

Now we can just imagine multiplying both sides by dx to find

$$du=dx.$$

And to find v we just need to take the antiderivative, or the integral, of dvYou can do this using u-substitution with u = 10x, but I will use WolframAlpha.

$$v = \int sin(10x) \ dx$$

$$v = – \frac{1}{10} cos(10x)$$

3. Plugging it all into the formula

Once you have laid out all four of the pieces we need, we can plug them all into the integration by parts formula. Just so we have everything in one place, let’s list out everything we have up to this point.

$$u=x$$

$$du=dx$$

$$v= – \frac{1}{10} cos(10x)$$

$$dv= sin(10x) \ dx$$

Now going back to the integration by parts formula I mentioned earlier, we can plug all of these in to the formula.

$$\int u \ dv = uv- \int v \ du$$

$$\int xsin(10x) \ dx = (x)\bigg( – \frac{1}{10} cos(10x) \bigg) – \int \bigg(- \frac{1}{10} cos(10x) \bigg) \ dx$$

Before integrating, let’s simplify this as much as we can by pulling the constant out of the integral.

$$\int xsin(10x) \ dx = \ – \frac{1}{10} xcos(10x) + \frac{1}{10} \int cos(10x) \ dx$$

Notice, the integral we need to compute now is much simpler than the integral we started with. This will be similar to the integral we computed to find v earlier. We can use u-substitution to find this by using u=10x. I’m not going to show these steps, but I encourage you to work this out on your own!

$$\int xsin(10x) \ dx = \ – \frac{1}{10} xcos(10x) + \frac{1}{10} \bigg( \frac{1}{10} sin(10x) \bigg) + c$$

$$\int xsin(10x) \ dx = \ – \frac{1}{10} xcos(10x) + \frac{1}{100} sin(10x) + c$$

Some additional comments

And that’s it! With some, more complex, integration by parts problems you may have to apply this formula more than one time. Once you get to step 3, you might find that the simpler integral is still somewhat complicated and requires the use of integration by parts again.

In these cases, you can simply treat this integral like a sub-problem to find our main integral and go through these 3 steps with that integral. You can see an example of this here.

Overall, integration by parts isn’t terribly complicated once you know the formula and understand how to apply it. Take a look at some of my other lessons about integrals for some extra practice. And don’t forget, email me at jakesmathlessons@gmail.com if you can’t find the lesson or problem you’re looking for!

Extra Examples

Also, I can send you updates anytime I have a new problem solution or lesson ready to post so you can keep practicing the material. All you have to do is put your name and email below to get content updates straight to your inbox as well as a FREE bonus calculus 1 study guide to help you prepare for exams!