There is a hemisphere with known volume. It is sliced across dividing it into sections A and B. The volume of B is known, and the volume of A can then be obtained by subtracting B from the whole. The thicknesses of the sections X and Y add up to the radius of the sphere R. How do I calculate X or Y when given the volume and radius?
for the volume of A I came up with this:
Pi*R^2*Y-(Pi*Y^3)/3
But I don't recall if I ever learned to solve this type of equation.
the equation you have there for the volume of section a is correct. there are direct formulas for finding the roots of cubic equations like this but you're probably not expected to use them as they're complicated to derive, you definitely would have remembered learning about them. unless we're both missing something obvious my best guess would be that you're probably expected to solve the equation numerically using newton's method, which to understand requires that you're familiar with approximating functions with a linearization using the function's first derivative - does this sound familiar?
more information about where you got this question may be helpful in determining how you're expected to go about solving it. was this a question given to you in a math class you're taking? if so what particular subject and section/what kind of things are you studying at the moment?
Yes, looking at their diagram... I would like to solve for h, but I didn`t see any solutions given for h. I looked also at the "spherical cap" page.
the equation you have there for the volume of section a is correct. there are direct formulas for finding the roots of cubic equations like this but you're probably not expected to use them as they're complicated to derive, you definitely would have remembered learning about them.
I just googled cubic equations and it appears that this may be above my pay grade, so to speak. It`s not a homework problem, just something I was trying to code as part of an experiment, purely for my own amusement. I may have to resort to an iterative routine that converges on a solution. Either that or dumb-down my model and assume a conical shape.
@antron
that's what i did and i ended up with the same equation ED-057 posted for the volume of section a. the equation does provide a relationship between y and vol_a, but it's cubic in terms of y.
if i understand correctly solving for the roots of the equation posted:
0 = pi*(y*r^2 - (y^3)/3) - vol_a
should provide a correct answer.
the question is are we both doing something wrong? is there another (possibly simpler) way to go about solving this? and if the above is correct then how is he expected to solve for y? (my guess was he's supposed to use newton's method)
just to restate the problem, all that's given is the radius of the hemisphere and the volume of section b in the figure, with that info solve for y and x.
edit:
i typed the above up just as you posted back on this.. anyway you should be able to use newton's method with a guess based on the ratio between vol_a and the volume of the hemisphere as a starting point, i bet it will converge just fine. let me know if you need help on the details.
@antron
i dunno, that doesn't look any easier to solve in terms of y to me. at first glance i'm not sure how it could be turned into something more workable. if you want to give it a shot that's cool but at this point, seeing as it's something that's going to be solved in program code anyway i think newton's method is definitely the way to go (or the conical approximation), iterative methods are usually faster than direct methods anyway.
i would think that using an initial value based on the ratio of vol_a and the volume of the hemisphere (y_0 = r*vol_a/vol) will converge to the correct solution for pretty much any values associated with the problem. in the off chance it doesn't you can just use the original estimate as a fallback. the simplest approach is to just use a fixed number of iterations and then check if the solution is within bounds (0 <= y_n <= r). you can experiment with how many iterations you'll need but something like 3 will probably be good enough.