Attempt at Deriving the Volume of a Cone

  • Context: Undergrad 
  • Thread starter Thread starter mburt
  • Start date Start date
  • Tags Tags
    Cone deriving Volume
Click For Summary
SUMMARY

The discussion revolves around calculating the volume of a cone using JavaScript and calculus concepts. The user successfully implemented a JavaScript script that approximates the volume of a cone as one-third of the volume of a cylinder, yielding a cone volume of 10473.5 units2 and a cylinder volume of 31419.1 units2. The user also attempted to express this relationship using calculus, specifically through summation and integration, but encountered difficulties in correctly applying these mathematical principles. The correct formula for the volume of a cone is established as V = (πr2h)/3.

PREREQUISITES
  • JavaScript programming (basic syntax and loops)
  • Understanding of calculus concepts (integration and differentiation)
  • Familiarity with geometric volume calculations (cone and cylinder)
  • Knowledge of mathematical notation (summation and limits)
NEXT STEPS
  • Research the disk method for calculating volumes in calculus
  • Learn about integration techniques in calculus
  • Explore JavaScript libraries for mathematical computations, such as Math.js
  • Study the relationship between geometric shapes and their volumes
USEFUL FOR

Students and educators in mathematics, software developers interested in mathematical programming, and anyone looking to deepen their understanding of calculus and geometric volume calculations.

mburt
Messages
52
Reaction score
0
Hi, so this morning I made an attempt at this... With javascript (website programming language) I was able to successfully yield the ratio of the volume of a cone compared with the volume of a cylinder (1/3).

This is the source code:

<script>
var pi = Math.PI,
cone_v = 0,
h = 0,
r = 1;

for (var i = 0, h = 0;i < r; i = i+0.0001, h++) {
cone_v += pi*i*i;
}

var cyl_v = pi*r*r*h;

var cone_constant = cone_v/cyl_v;

//cone_constant = 1/3
</script>

And basically this is the idea. It's a summation of the area of a circle from radius 0 to 1 (adding on 0.0001 each time), where the height is the number of times the summation is iterated. So in this case it iterates 1000 times... Therefore this is the height, in units.

The volume of the cone = 10473.5 units^2
The volume of the cylinder = 31419.1 units^2

If you divide the volume of cone by cylinder you get approximately one third.

... Now I attempted represent this with calculus but I think I failed. This is as far as I got:

[tex]\sum_{0} i = i + \frac{1}{\infty}[/tex]
therefore
[tex]h = 1^\infty[/tex]

Vcone = [tex]\pi(5^\infty)^2 = 25\pi^\infty[/tex]

Vcylinder = [tex]\pi{(1)^2}1^\infty = \pi^\infty[/tex]

But clearly 25/1 doesn't equal 1/3. What am I doing wrong here? Is it possible to represent this relationship with a summation formula?

**EDIT: accidentally said "area" not volume. Whoops
 
Last edited:
Physics news on Phys.org
You can solve for the volume of a cone by the disk method.
Let r = h so that r varies as h varies exactly.

Imagine the volume of a cone as stacked disks, the radius of every disk different.

The approx volume of a disk at any r is:

[tex]\Delta V = \pi r^2 \, \, \Delta r[/tex]
The exact volume of a disk at any r is:

[tex]dV = \pi r^2 \, \, dr[/tex]
Integrate to find volume of a cone

[tex]V = \int \pi r^2 \, \, dr[/tex]

[tex]=\frac {\pi r^3}{3}[/tex]

since h = r

[tex]=\frac {\pi r^2h}{3}[/tex]
 
Last edited:
I'm just getting differentiation down now, I guess I need to do some research on integration. Thanks!

And the "disks" method is exactly how I had pictured it, I just didn't know how to describe it
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K