Changing center point of a cylinder

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
14 replies · 3K views
mpittma1
Messages
55
Reaction score
0

Homework Statement


How could I express a parametric formula for a right circular cylinder centered at (-2, 10, 3)?
with radius 3 and length 12

Homework Equations


Parametric equations for a right circular cylinder are:

x=rcosΘ
y=rsinθ
z = h

The Attempt at a Solution



Not sure how to start this...
 
Physics news on Phys.org
Simon Bridge said:
Well, if you have an equation y=f(x), you will find that equation y=f(x-a) is just f(x) shifted to the right by a units.

It is a coordinate translation.
Your problem is the same thing.

Thats what i thought, the main problem is that this is an assignment using maple, where i have to graph the right circular cylinder with its center at that point.

when ever i try doing that it doesn't move the center to that point...
 
Simon Bridge said:
Please show the adjusted equation followed by the maple code/instructions you are using to draw it.

i posted the same question with the attached maple file here:
 
Last edited:
Wasn't requiring anything, was trying to make it easier for you to just download the whole maple file.

unfortunately my colleges server just went down so I can't use maple for the rest of the night...

What i was doing before it crashed though, was I found the null space of the plane 2x-10y-3z=0

and then using that as a basis i made it into an orthonormal basis by using the Gram Schmidt command in maple, then found the third basis that is perpendicular to both w1 and w2 by taking the cross product of w1 and w2.

then using the parametric equation for the cylinder with radius 3 and length 12

{x = rcostheta
C1= {y = rsintheta
{z = s 0<theat<2pi & 0<s<12

then defined a transition matrix P = <w1 w2 w3>

then found the parametric equations for the cylinder by using

C2 = P.C1

then from that i graphed the image and began messing around with placing the center (-2, 10, 3) into the original C1 parametric equation as you suggested in your first response.

It was looking like i was getting close until the stupid program froze up on me..
 
That sounds way too complicated-a method to possibly get the right equation.
Even if it is supposed to work, you are too likely to misplace something.
Why not just apply the transformation directly to the coordinates?

i.e.
for the origin centered cylinder, the x values will vary between x=-r and x=r - which centers the x values at x=0

for the cylinder you want, what will the values of x vary between in order to get the same radius, but centered on x=-2? How does that suggest you should modify the equation?
 
  • Like
Likes   Reactions: 1 person
I see what your saying, but its a tilted cylinder that previous to this question i had to use transition matrices to find its parametric equation.

would your suggestion work for such a "titlted" cylinder?
 
mpittma1 said:
I see what your saying, but its a tilted cylinder that previous to this question i had to use transition matrices to find its parametric equation.

would your suggestion work for such a "titlted" cylinder?

If you are responding to me you should quote me so I know that. If you can plot your tilted cylinder at the origin, adding v to it will move it wherever you want it.
 
LCKurtz said:
If you are responding to me you should quote me so I know that. If you can plot your tilted cylinder at the origin, adding v to it will move it wherever you want it.

Ok, so what you saying is i take system of parametric equations (C2) that make the titled cylinder and simply add the new center point, v, to it?
 
mpittma1 said:
Ok, so what you saying is i take system of parametric equations (C2) that make the titled cylinder and simply add the new center point, v, to it?

I haven't checked anything about your tilted cylinder. What I am saying is if you have figured out how to plot it at the origin then, yes, just add v to it to move it. It's just a translation.
 
LCKurtz said:
I haven't checked anything about your tilted cylinder. What I am saying is if you have figured out how to plot it at the origin then, yes, just add v to it to move it. It's just a translation.

i understand, don't know why i didnt think of that lol

thanks a lot!