MATLAB How Do I Find the Volume of a Rotated Solid Using MATLAB?

  • Thread starter Thread starter [sammich]
  • Start date Start date
  • Tags Tags
    Matlab Rotate
AI Thread Summary
The discussion centers on finding the volume of a solid of revolution using MATLAB, specifically for a region defined by the equation x² + (y - 1)² = 1, which represents a circle. The user expresses frustration after attempting various methods, including using symbolic variables and plotting, but is unsure how to proceed with the integration or volume calculation. They recognize that the volume of the solid resembles that of a sphere, suggesting a potential formula of (4/3)π for volume but are confused about implementing this in MATLAB. The conversation highlights the need for clear guidance on using MATLAB to solve this type of calculus problem effectively. Ultimately, the user seeks a step-by-step explanation to ensure they can tackle similar problems in the future.
[sammich]
Messages
4
Reaction score
0
I've been trying to solve one of my MATLAB problems for about 2 weeks now and I am completely lost as to how to solve it. It seems like it would be rather easy to do, but I cannot figure it out.

I have referenced our Calculus 2 textbook, MATLAB textbook, and Google but I'm still stuck.

The problem says:
Code:
"The region bounded by the given curves is rotated about the specified axis.
Find the volume of the resulting solid by any method."

x[SUP]2[/SUP]+(y-1)[SUP]2[/SUP]=1

I tried something along the lines of:

Code:
syms x y
eq=(x^2)+((y-1)^2)-1

fplot(eq, [0,10])

%a=fzero(eq -blah blah etc- )

but that doesn't work, and even if it did, I don't know where to go from that point.

Can anyone walk me through the steps? This type of problem seems quite important, and I'm worried by the fact that I can't find any help on it. I want to make sure I know how to do it in the future!

Thanks in advance :)
 
Physics news on Phys.org
So its a circle with radius 1 from looking at the equation, displaced by 1 along the y axis. Then its rotated around the x axis? Volume = (4/3) pi , the volume of a sphere.

OR integrate it, going to polar coordinates to make it easier.
 
Thanks for the response.

I tried solving for y and all, I just can't make it go through.

We are going to have 4/3*pi*r3 evaluated at r=0 and 1, correct? Or am I completely off?

What would I type into MATLAB to assign the volume, integral, etc?

*slams head against keyboard*
 

Similar threads

Back
Top