Help setting up a double integral

SLAM: debunk creationism, pseudoscience, and superstitions. Discuss logic and morality.

Moderator: Alyrium Denryle

Post Reply
Aranfan
Padawan Learner
Posts: 288
Joined: 2008-02-01 12:01pm
Location: Center of the Universe (General Relativity)

Help setting up a double integral

Post by Aranfan »

So in my multivariable Calc webwork, I have the following question:

A cylindrical drill with radius 4 is used to bore a hole throught the center of a sphere of radius 5. Find the volume of the ring shaped solid that remains.


Being the idiot that I am, I can't figure out how to set this up as a double integral. So I used washers instead. I got 88pi/3.

The computer says this is wrong, so I figure before I email the teacher about a problem, I should try it with double integrals first. So I'm asking SD.net how I go about setting up the problem. Once it's set up I can evaluate it myself, but I can't figure how to set up the damn problem.
User avatar
Xenophobe3691
Sith Marauder
Posts: 4334
Joined: 2002-07-24 08:55am
Location: University of Central Florida, Orlando, FL
Contact:

Re: Help setting up a double integral

Post by Xenophobe3691 »

X goes from 4 to 5, y goes from 0 to sqrt[x^2 - 5]?
Dark Heresy: Dance Macabre - Imperial Psyker Magnus Arterra

BoTM
Proud Decepticon

Post 666 Made on Fri Jul 04, 2003 @ 12:48 pm
Post 1337 made on Fri Aug 22, 2003 @ 9:18 am
Post 1492 Made on Fri Aug 29, 2003 @ 5:16 pm

Hail Xeno: Lord of Calculus -- Ace Pace
Image
Aranfan
Padawan Learner
Posts: 288
Joined: 2008-02-01 12:01pm
Location: Center of the Universe (General Relativity)

Re: Help setting up a double integral

Post by Aranfan »

Kay, but what gets integrated? What gets put in between the SS and the dA
User avatar
Wyrm
Jedi Council Member
Posts: 2206
Joined: 2005-09-02 01:10pm
Location: In the sand, pooping hallucinogenic goodness.

Re: Help setting up a double integral

Post by Wyrm »

For simplicity, let's work in cylendrical coordinates, (r, θ, z). The sphere is centered about the origin, with radius 5, and the drill is radius 4 and drilled parallel to the z-axis, through the origin.

Since the drill has radius 4, and the sphere 5, the "ring" begins when the distance to the origin is equal to 5, and the distance along the r-axis is 4. That forms a right triangle, with a leg of length 4 and a hypotenuse of 5, which implies the other leg is 3. This is the distance along the z-axis above and below the origin that the ring begins and ends. So, z ∈ Z = [-3, 3].

The radius ranges from 4 (the radius of the drill) to 5²=r²+z², or r ∈ R = [4, 25-z²].

There's a third set of limits to consider, which is the limits of the θ-axis, which ranges from θ ∈ Θ = [-π, π].

In cylindrical coordinates, the volume element is dV = r dr dθ dz. So we set up the integral:

V = ∫dV = ∫_Θ ∫_Z ∫_R r dr dθ dz

But since this is only a double-integral, let's get rid of θ...

V = ∫_Θ dθ ∫_Z ∫_R r dr dz = 2π ∫_Z ∫_R r dr dz
Darth Wong on Strollers vs. Assholes: "There were days when I wished that my stroller had weapons on it."
wilfulton on Bible genetics: "If two screaming lunatics copulate in front of another screaming lunatic, the result will be yet another screaming lunatic. 8)"
SirNitram: "The nation of France is a theory, not a fact. It should therefore be approached with an open mind, and critically debated and considered."

Cornivore! | BAN-WATCH CANE: XVII | WWJDFAKB? - What Would Jesus Do... For a Klondike Bar? | Evil Bayesian Conspiracy
Aranfan
Padawan Learner
Posts: 288
Joined: 2008-02-01 12:01pm
Location: Center of the Universe (General Relativity)

Re: Help setting up a double integral

Post by Aranfan »

Okay, that gets me 36pi, which the computer says is correct.

I think I understand what you did there, but why is the angle from -pi to pi?
Aranfan
Padawan Learner
Posts: 288
Joined: 2008-02-01 12:01pm
Location: Center of the Universe (General Relativity)

Re: Help setting up a double integral

Post by Aranfan »

Never mind, I just figured it out.
User avatar
Wyrm
Jedi Council Member
Posts: 2206
Joined: 2005-09-02 01:10pm
Location: In the sand, pooping hallucinogenic goodness.

Re: Help setting up a double integral

Post by Wyrm »

Here's an exercise for you in a similar vein:

Suppose your problem, except that the radius of the drill is a, and the radius of the sphere is b. Prove that the volume of the cored-out sphere to be the same as a sphere with radius h = b²-a².
Darth Wong on Strollers vs. Assholes: "There were days when I wished that my stroller had weapons on it."
wilfulton on Bible genetics: "If two screaming lunatics copulate in front of another screaming lunatic, the result will be yet another screaming lunatic. 8)"
SirNitram: "The nation of France is a theory, not a fact. It should therefore be approached with an open mind, and critically debated and considered."

Cornivore! | BAN-WATCH CANE: XVII | WWJDFAKB? - What Would Jesus Do... For a Klondike Bar? | Evil Bayesian Conspiracy
User avatar
Surlethe
HATES GRADING
Posts: 12267
Joined: 2004-12-29 03:41pm

Re: Help setting up a double integral

Post by Surlethe »

If you want to use a volumes of rotation method, here's how you set up the integrals.

Option 1: Rotating cylinders.

The basic function here is x2+y2=52, or y=25-x2. For reasons that Wyrm posted above, we're concerned only with the function above [-3,3]. The surface area of a cylinder is 2πrh, so for a height y above the x-axis, the volume of the associated cylinder of revolution is 2πy(2x)dy. Since x=25-y2, we have the desired integral: ∫[4,5]4πy25-y2dy. This can be simplified substantially with a simple change of coordinates.

Option 2: Washers.

As above, we're concerned with y=25-x2 over [-3,3]. Rotating about the x-axis, the volume of a washer is π(y2-42)dx, so the integral will be ∫[-3,3]π(9-x2)dx.

I get 36π for both methods.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
User avatar
NomAnor15
Padawan Learner
Posts: 383
Joined: 2006-12-11 09:12pm
Location: In the land of cheese, brats, and beer.

Re: Help setting up a double integral

Post by NomAnor15 »

So wait, why do you even have to do this as an integral? It seems to me (unless I'm missing something important) you could just calculate the volume of the original sphere, calculate the volume of the cylinder, and subtract the latter from the former. No integration required. Unless you are specifically told to do it with an integral, then just ignore this.
"I wish I wish I hadn't killed that fish." - Homer Simpson
Image
Huh. That's less than 10 condoms per person. Though, assuming an even split between gender, that's almost 20 condoms per penis, so I certainly hope that would suffice for the three weeks they're there. -Alferd Packer

This sentence is false.
User avatar
Surlethe
HATES GRADING
Posts: 12267
Joined: 2004-12-29 03:41pm

Re: Help setting up a double integral

Post by Surlethe »

NomAnor15 wrote:So wait, why do you even have to do this as an integral? It seems to me (unless I'm missing something important) you could just calculate the volume of the original sphere, calculate the volume of the cylinder, and subtract the latter from the former. No integration required. Unless you are specifically told to do it with an integral, then just ignore this.
The hole through the middle is not perfectly cylindrical - you have two little "caps" on top whose volume gets shifted from hole to sphere in this method.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
Narkis
Padawan Learner
Posts: 391
Joined: 2009-01-02 11:05pm
Location: Greece

Re: Help setting up a double integral

Post by Narkis »

Surlethe wrote:
NomAnor15 wrote:So wait, why do you even have to do this as an integral? It seems to me (unless I'm missing something important) you could just calculate the volume of the original sphere, calculate the volume of the cylinder, and subtract the latter from the former. No integration required. Unless you are specifically told to do it with an integral, then just ignore this.
The hole through the middle is not perfectly cylindrical - you have two little "caps" on top whose volume gets shifted from hole to sphere in this method.
Unless I'm mistaken, it's relatively easy to calculate the volume of those two little "caps" and subtract them from the sphere too. It should still be easier to do than using integration.
User avatar
Surlethe
HATES GRADING
Posts: 12267
Joined: 2004-12-29 03:41pm

Re: Help setting up a double integral

Post by Surlethe »

How would propose to do that without integrating?
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
User avatar
NomAnor15
Padawan Learner
Posts: 383
Joined: 2006-12-11 09:12pm
Location: In the land of cheese, brats, and beer.

Re: Help setting up a double integral

Post by NomAnor15 »

I'm still a little unclear on where these caps are even coming from. If you have a cylindrical drill, and you just drill it straight through the sphere, where are the caps?
"I wish I wish I hadn't killed that fish." - Homer Simpson
Image
Huh. That's less than 10 condoms per person. Though, assuming an even split between gender, that's almost 20 condoms per penis, so I certainly hope that would suffice for the three weeks they're there. -Alferd Packer

This sentence is false.
Narkis
Padawan Learner
Posts: 391
Joined: 2009-01-02 11:05pm
Location: Greece

Re: Help setting up a double integral

Post by Narkis »

The caps are on the cylinder of air we created in the middle of the sphere.

The equation for the volume of a spherical cap is Vcap=1/6*pi*h*(3r2+h2), where r is the radius of the cap's base and h its height. Now, since we don't know this one's height, we'll use the Pythagorean Theorem, which gives us R2=r2+(R-h)2, where R the sphere's radius.
Plugging in the numbers, and we get 52=42+(5-h)2 => (5-h)2=25-16 => 5-h=9 => h=2
Back to the first equation, and it becomes V = 1/6*pi*2*(3*42+22) = 1/3*pi*52=17.33pi
The volume of the sphere is Vsph=4/3*pi*53 = 166.67pi
The volume of the cylinder is Vcyl=pi*r2*H, where H the height of the cylinder. H=2*(R-h)=6 So Vcyl=pi*42*6 =96pi
Putting it all together we have Vring=Vsph-Vcyl-2*Vcap=(166.67-96-2*17.33)pi=36.01pi, which would've been exactly 36pi had I stayed with fractions.

So that's the same result, without using any math that a (smart) high school student wouldn't understant. :D
User avatar
NomAnor15
Padawan Learner
Posts: 383
Joined: 2006-12-11 09:12pm
Location: In the land of cheese, brats, and beer.

Re: Help setting up a double integral

Post by NomAnor15 »

Narkis wrote:The caps are on the cylinder of air we created in the middle of the sphere.
Why? I still don't see it. Maybe a picture will help *searches*. This is what I am imagining it as (with a different scale, of course);
Image

Clearly there are no caps in this picture. What am I missing?
"I wish I wish I hadn't killed that fish." - Homer Simpson
Image
Huh. That's less than 10 condoms per person. Though, assuming an even split between gender, that's almost 20 condoms per penis, so I certainly hope that would suffice for the three weeks they're there. -Alferd Packer

This sentence is false.
User avatar
Steel
Jedi Master
Posts: 1122
Joined: 2005-12-09 03:49pm
Location: Cambridge

Re: Help setting up a double integral

Post by Steel »

They cylinder you bored out does not have flat ends. Thats what you are missing. The volume of the cylinder is larger than 2pi*rh.



Narkis: Great, and where did you get your expression for the volume of a cap?

Of course its possible to do almost all maths without integrating anything yourself if you just use someone elses integral.

Lets compare the approaches:

Integration:

Line 1: Express problem as integral
Line 2: Answer

Long winded method:

*Look answer up in book*
Fiddle
Manipulate
Fudge geometry
Answer

I think we can see which is superior from both an aesthetic and a computational standpoint...
Apparently nobody can see you without a signature.
Narkis
Padawan Learner
Posts: 391
Joined: 2009-01-02 11:05pm
Location: Greece

Re: Help setting up a double integral

Post by Narkis »

The top and bottom of the cylinder in your picture are flat. If we want to make a full sphere out of these pieces, we'll need to "cap" the normal cylinder so that it curves.

Here's a horrible paint image of what I mean: http://img27.imageshack.us/img27/9864/40929718.jpg

edit to answer Steel: It's in my geometry book, but I imagine it can be found with some Google-fu. And I never said my method is faster or more elegant, just easier for someone to use. Chewed food, if you will/
User avatar
NomAnor15
Padawan Learner
Posts: 383
Joined: 2006-12-11 09:12pm
Location: In the land of cheese, brats, and beer.

Re: Help setting up a double integral

Post by NomAnor15 »

Steel wrote:They cylinder you bored out does not have flat ends. Thats what you are missing. The volume of the cylinder is larger than 2pi*rh.
Narkis wrote:The top and bottom of the cylinder in your picture are flat. If we want to make a full sphere out of these pieces, we'll need to "cap" the normal cylinder so that it curves.
Oh, wow, I am an idiot. I was so focused on the shape left (the ring) that I was totally ignoring the cylinder itself. Fuckin' A, I can't believe I just did that. Thanks for the correction.
"I wish I wish I hadn't killed that fish." - Homer Simpson
Image
Huh. That's less than 10 condoms per person. Though, assuming an even split between gender, that's almost 20 condoms per penis, so I certainly hope that would suffice for the three weeks they're there. -Alferd Packer

This sentence is false.
User avatar
Steel
Jedi Master
Posts: 1122
Joined: 2005-12-09 03:49pm
Location: Cambridge

Re: Help setting up a double integral

Post by Steel »

Narkis wrote:edit to answer Steel: It's in my geometry book, but I imagine it can be found with some Google-fu. And I never said my method is faster or more elegant, just easier for someone to use. Chewed food, if you will/
That was kind of my point, that that formula would have been arrived at by doing precisely the integrals done above, and a quick googling will turn up the answer to this problem in its entirety anyway. Once you do a few integrals like this then it becomes quicker than reaching for a textbook.
Apparently nobody can see you without a signature.
User avatar
Wyrm
Jedi Council Member
Posts: 2206
Joined: 2005-09-02 01:10pm
Location: In the sand, pooping hallucinogenic goodness.

Re: Help setting up a double integral

Post by Wyrm »

Narkis wrote:So that's the same result, without using any math that a (smart) high school student wouldn't understant. :D
Strictly speaking, true. However, the OP said this is a calculus problem. Using your cap formula violates the spirit (and letter) of the problem, and would likely earn him a wrong answer.

Also, those formulae you just used were likely derived from calculus.
Darth Wong on Strollers vs. Assholes: "There were days when I wished that my stroller had weapons on it."
wilfulton on Bible genetics: "If two screaming lunatics copulate in front of another screaming lunatic, the result will be yet another screaming lunatic. 8)"
SirNitram: "The nation of France is a theory, not a fact. It should therefore be approached with an open mind, and critically debated and considered."

Cornivore! | BAN-WATCH CANE: XVII | WWJDFAKB? - What Would Jesus Do... For a Klondike Bar? | Evil Bayesian Conspiracy
Post Reply