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

  • Context: MATLAB 
  • Thread starter Thread starter [sammich]
  • Start date Start date
  • Tags Tags
    Matlab Rotate
Click For Summary
SUMMARY

The discussion focuses on calculating the volume of a solid of revolution using MATLAB, specifically for the region defined by the equation x² + (y - 1)² = 1, which represents a circle of radius 1 displaced along the y-axis. The user seeks guidance on implementing this calculation in MATLAB, expressing frustration over their inability to progress despite referencing textbooks and online resources. The solution involves using integration techniques, potentially converting to polar coordinates, and applying the formula for the volume of a sphere, V = (4/3)πr³, evaluated at r = 1.

PREREQUISITES
  • Understanding of Calculus, specifically volume of solids of revolution
  • Familiarity with MATLAB syntax and functions
  • Knowledge of polar coordinates and their application in integration
  • Basic concepts of symbolic computation in MATLAB
NEXT STEPS
  • Learn how to implement integration in MATLAB using the 'integral' function
  • Study the conversion of Cartesian coordinates to polar coordinates for integration
  • Explore the use of symbolic variables in MATLAB with the 'syms' function
  • Review examples of calculating volumes of solids of revolution in MATLAB
USEFUL FOR

Students in calculus courses, MATLAB users seeking to perform geometric computations, and educators looking for practical examples of volume calculations in programming environments.

[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

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