CoCalc Public Files03 - Volume part 1 Assignment / Volume part 1 Notes.sagews
Author: Aaron Tresham
Views : 38
Compute Environment: Ubuntu 20.04 (Default)
This material was developed by Aaron Tresham at the University of Hawaii at Hilo and is

### Prerequisites:

• Intro to Sage
• Symbolic Integration

# Volume

Our goal is to find the volume of a three-dimensional object. We'll start with the simplest figure, a right cylindrical solid.

Definition: A right cylindrical solid consists of a plane region B1 (called the "base"), a congruent region B2 in a parallel plane, and all points on line segments that are perpendicular to B1 and that join B1 and B2.

Here's an example picture:

The base could be any shape in a plane. If the base is a rectangle, we get a rectangular box. If the base is a polygon, we get a prism. If the base is a circle, we get a (circular) cylinder. If the base is an amoeba-shaped blob, then we get ... something.

The key fact about cylindrical solids is that they have congruent cross sections (when you cut parallel to the base).

A cross section is the intersection of the solid and a plane. If you take a plane parallel to the base that intersects the solid, then the intersection is a plane region congruent to the base.

It is easy to compute the volume of a cylindrical solid: simply multiply the area of the base and the height. So if $A=$ area of base and $h=$ height, then the volume is $V=A\cdot h$.

Of course, most solids are not cylindrical. How do we find the volume of different kinds of solids? The strategy is to cut the solid into pieces and approximate each piece with a cylindrical solid. Find the volume of these approximations and add up all the results. This gives you an approximation for the volume of the whole solid. You can improve the approximation by increasing the number of pieces.

## Example 1

To find the volume of a loaf of bread, cut it into slices and approximate the volume of each slice ($V=$ area of face times width of slice).

Let's make this idea more mathematical.

• Orient the solid $S$ along the x-axis between $x=a$ and $x=b$.

• Divide the interval $[a,b]$ into $n$ subintervals of equal width $\Delta x=\frac{b-a}{n}$.

• Label the endpoints of the intervals in order: $a=x_0, x_1, x_2,\ldots,x_n=b$. [Is this sounding familiar?]

• Let $A(x)$ be the area of the cross section of $S$ obtained by intersecting $S$ with the plane perpendicular to the x-axis that includes $x$.

• Approximate the volume of the portion of $S$ between $x_i$ and $x_{i+1}$ by $V_i=A(x_i)\cdot \Delta x$. That is, treat this portion as a cylindrical solid with base area $A(x_i)$ and height $\Delta x = x_{i+1}-x_i$.

• Add up all the approximations to get an estimate for the volume of $S$: $V\approx\displaystyle\sum_{i=0}^{n-1} V_i=\sum_{i=0}^{n-1}A(x_i)\cdot\Delta x$.

• Notice that this is a Riemann sum! To get the actual volume, take the limit as $n\to\infty$. When you take a limit of Riemann sums, you get an integral.

• Therefore, $\displaystyle V=\int_a^bA(x)\, dx$.

## Example 2

Find the volume of a sphere of radius $r$.

Solution: Put the center of the sphere at the origin. On the x-axis, the sphere starts at $a=-r$ and ends at $b=r$. A cross section perpendicular to the x-axis is a circle whose radius is the y-value of the sphere at that point.

Take a cross section perpendicular to the x-axis at $x$. The point on the sphere directly above $x$ is $(x,y,0)$, for some $y>0$ (we're right above $x$, so $z=0$). This point is the very top of the circular cross section.

The equation of the sphere is $x^2+y^2+z^2=r^2$, so for the point $(x,y,0)$ we have $x^2+y^2=r^2$. Solving for $y$, we get $\displaystyle y=\sqrt{r^2-x^2}$ (remember $y>0$).

This $y$ is the radius of the cross section, so using the area formula for a circle we see that the area of our cross section is $\displaystyle A(x)=\pi y^2=\pi\left(\sqrt{r^2-x^2}\right)^2=\pi(r^2-x^2)$.

Thus, the volume of the sphere is $\displaystyle V=\int_{-r}^rA(x)\, dx=\int_{-r}^r\pi(r^2-x^2)\, dx$.

Let's have Sage compute this (although this is not a hard integral; $r$ is a constant, so we're integrating a quadratic function).

%var r
integral(pi*(r^2-x^2),x,-r,r)  #integral(function, variable, lower limit, upper limit)

4/3*pi*r^3

So, $V=\frac{4}{3}\pi r^3$. That's just what we expect from Geometry.

## Example 3

Find the volume of a right pyramid whose base is a square with sides of length 10 and whose height is 5.

Solution: Put the vertex of the pyramid at the origin and the x-axis along its central axis (so the x-axis goes right through the center of the square). Thus $a=0$ and $b=5$.

Take a cross section perpendicular to the x-axis at $x$. This cross section is a square.

If the we call the length of the sides of the cross section $s$, then the area of the cross section is $s^2$. But we need to find the area of this cross section in terms of $x$.

Consider the line through $(0,0)$ and $(5,5)$. This line has equation $y=x$. When we take a cross section at some $x$, then the point $(x,x)$ is at the very top, and the length of one side of the cross section is twice $x$, i.e., $s=2x$.

Here is a side view:

So the area of the cross section is $A(x)=s^2=(2x)^2=4x^2$.

Thus, the volume of the pyramid is $\displaystyle V=\int_0^54x^2\, dx=\frac{500}{3}$.

integral(4*x^2,x,0,5)

500/3

## Example 4

Find the volume of the solid whose base is an elliptical region with boundary curve $9x^2+4y^2=36$ when the cross sections perpendicular to the x-axis are isosceles right triangles with hypotenuse in the base.

Here's a picture of the base. Imagine a solid sticking up out of this ellipse.

%var y
implicit_plot(9*x^2+4*y^2==36,(x,-3,3),(y,-3,3))


Solution: The cross section perpendicular to the x-axis through the point $(x,y)$ with $y>0$ on the ellipse is an isosceles right triangle. The hypotenuse is in the base - it has length $2y$. Let's call the length of the legs $s$.

The Pythagorean Theorem gives $s^2+s^2=(2y)^2$, or $2s^2=4y^2=36-9x^2$ (from the equation of the ellipse).

The area of the cross section is $A=\frac{1}{2}bh=\frac{1}{2}s^2=\frac{1}{4}(36-9x^2)$.

Thus, the volume is $\displaystyle V=\int_{-2}^{2}\frac{1}{4}(36-9x^2)\, dx=24$.

integral(1/4*(36-9*x^2),x,-2,2)

24

This approach to volume is an example of a very common strategy: break up a complicated problem into small pieces, approximate the answer for the small pieces using something we understand, combine all the approximations, then increase the number of pieces. There are many examples in which this strategy results in an integral.

Next week we'll find the volume of solids of revolution using this cross-section approach.