Calculus/Volume

When we think about volume from an intuitive point of view, we typically think of it as the amount of "space" an item occupies. Unfortunately assigning a number that measures this amount of space can prove difficult for all but the simplest geometric shapes. Calculus provides a new tool that can greatly extend our ability to calculate volume. In order to understand the ideas involved it helps to think about the volume of a cylinder.

The volume of a cylinder is calculated using the formula $$V=\pi r^2h$$. The base of the cylinder is a circle whose area is given by $$A=\pi r^2$$. Notice that the volume of a cylinder is derived by taking the area of its base and multiplying by the height $$h$$. For more complicated shapes, we could think of approximating the volume by taking the area of some cross section at some height $$x$$ and multiplying by some small change in height $$\Delta x$$ then adding up the heights of all of these approximations from the bottom to the top of the object. This would appear to be a Riemann sum. Keeping this in mind, we can develop a more general formula for the volume of solids in $$\R^3$$ (3 dimensional space).

Formal Definition
Formally the ideas above suggest that we can calculate the volume of a solid by calculating the integral of the cross-sectional area along some dimension. In the above example of a cylinder, every cross section is given by the same circle, so the cross-sectional area is therefore a constant function, and the dimension of integration was vertical (although it could have been any one we desired). Generally, if $$S$$ is a solid that lies in $$\R^3$$ between $$x=a$$ and $$x=b$$, let $$A(x)$$ denote the area of a cross section taken in the plane perpendicular to the $$x$$-axis, and passing through the point $$x$$.

If the function $$A(x)$$ is continuous on $$[a,b]$$, then the volume $$V_S$$ of the solid $$S$$ is given by:

Example 1: A right cylinder
Now we will calculate the volume of a right cylinder using our new ideas about how to calculate volume. Since we already know the formula for the volume of a cylinder this will give us a "sanity check" that our formulas make sense. First, we choose a dimension along which to integrate. In this case, it will greatly simplify the calculations to integrate along the height of the cylinder, so this is the direction we will choose. Thus we will call the vertical direction $$x$$ (see Figure 1). Now we find the function, $$A(x)$$, which will describe the cross-sectional area of our cylinder at a height of $$x$$. The cross-sectional area of a cylinder is simply a circle. Now simply recall that the area of a circle is $$\pi r^2$$, and so $$A(x)=\pi r^2$$. Before performing the computation, we must choose our bounds of integration. In this case, we simply define $$x=0$$ to be the base of the cylinder, and so we will integrate from $$x=0$$ to $$x=h$$, where $$h$$ is the height of the cylinder. Finally, we integrate:
 * $$\begin{align}

V_{\mathrm{cylinder}}&=\int\limits_a^b A(x)dx\\ &=\int\limits_0^h\pi r^2dx\\ &=\pi r^2\int\limits_0^hdx\\ &=\pi r^2x\bigg|_{x=0}^h\\ &=\pi r^2(h-0)\\ &=\pi r^2h\end{align}$$

This is exactly the familiar formula for the volume of a cylinder.

Example 2: A right circular cone


For our next example we will look at an example where the cross sectional area is not constant. Consider a right circular cone. Once again the cross sections are simply circles. But now the radius varies from the base of the cone to the tip. Once again we choose $$x$$ to be the vertical direction, with the base at $$x=0$$ and the tip at $$x=h$$, and we will let $$R$$ denote the radius of the base. While we know the cross sections are just circles we cannot calculate the area of the cross sections unless we find some way to determine the radius of the circle at height $$x$$.



Luckily in this case it is possible to use some of what we know from geometry. We can imagine cutting the cone perpendicular to the base through some diameter of the circle all the way to the tip of the cone. If we then look at the flat side we just created, we will see simply a triangle, whose geometry we understand well. The right triangle from the tip to the base at height $$x$$ is similar to the right triangle from the tip to the base at height $$h$$. This tells us that $$\frac{r}{h-x}=\frac{R}{h}$$. So that we see that the radius of the circle at height $$x$$ is $$r(x)=\frac{R}{h}(h-x)$$. Now using the familiar formula for the area of a circle we see that $$A(x)=\pi\frac{R^2}{h^2}(h-x)^2$$. Now we are ready to integrate.


 * $$\begin{align}

V_{\mathrm{cone}}&=\int\limits_a^b A(x)dx\\ &=\int\limits_0^h \pi\frac{R^2}{h^2}(h-x)^2dx\\ &=\pi\frac{R^2}{h^2}\int\limits_0^h(h-x)^2dx \end{align}$$

By u-substitution we may let $$u=h-x$$, then $$du=-dx$$ and our integral becomes


 * $$\begin{align}

&&=\pi\frac{R^2}{h^2}\left(-\int\limits_h^0 u^2du\right)\\ &&=\pi\frac{R^2}{h^2}\left(-\frac{u^3}{3}\bigg|_h^0\right)\\ &&=\pi\frac{R^2}{h^2}\left(-0+\frac{h^3}{3}\right)\\ &&=\frac{\pi}{3}R^2h \end{align}$$

Example 3: A sphere
In a similar fashion, we can use our definition to prove the well known formula for the volume of a sphere. First, we must find our cross-sectional area function, $$A(x)$$. Consider a sphere of radius $$R$$ which is centered at the origin in $$\R^3$$. If we again integrate vertically then $$x$$ will vary from $$-R$$ to $$R$$. In order to find the area of a particular cross section it helps to draw a right triangle whose points lie at the center of the sphere, the center of the circular cross section, and at a point along the circumference of the cross section. As shown in the diagram the side lengths of this triangle will be $$R$$, $$|x|$$ , and $$r$$. Where $$r$$ is the radius of the circular cross section. Then by the Pythagorean theorem $$r=\sqrt{R^2-|x|^2}$$ and find that $$A(x)=\pi(R^2-|x|^2)$$. It is slightly helpful to notice that $$|x|^2=x^2$$ so we do not need to keep the absolute value.

So we have that
 * $$\begin{align}

V_{\mathrm{sphere}}&=\int\limits_a^b A(x)dx\\ &=\int\limits_{-R}^R\pi(R^2-x^2)dx\\ &=\pi\int\limits_{-R}^R R^2dx-\pi\int\limits_{-R}^R x^2dx\\ &=\pi R^2x\Bigg|_{-R}^R-\pi\frac{x^3}{3}\Bigg|_{-R}^R\\ &=\pi R^2(R-(-R))-\pi\left(\frac{R^3}{3}-\frac{(-R)^3}{3}\right)\\ &=2\pi R^3-\frac{2\pi}{3}R^3=\frac{4\pi}{3}R^3 \end{align}$$

Extension to Non-trivial Solids
Now that we have shown our definition agrees with our prior knowledge, we will see how it can help us extend our horizons to solids whose volumes are not possible to calculate using elementary geometry.