We need help to understand how to build the equation of a cylinder given its center, its radius, its vector direction and its height please!
Thank you!
in Geometry Answers by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

A vertical cylinder (of infinite length) is just the 2D equation of a circle (x-x0)2+(y-y0)2=R2 where its central axis passes through (x,y,z)=(x0,y0,0) in 3D, its central axis is parallel to the z-axis, and R is its radius. Therefore a cylinder in 3D is some form of transformation so that the vertical axis is no longer vertical, but is aligned with a vector (a line in parameterised form).

Other equations of a cylinder are (x-x0)2+(z-z0)2=R2 where the central axis (parallel to the y-axis) passes through (x0,0,z0);

and (y-y0)2+(z-z0)2=R2 where the central axis (parallel to the x-axis) passes through (0,y0,z0).

All these cylinders have infinite length and the only way to restrict the length is to define boundaries. In the case for (x-x0)2+(y-y0)2=R2 the boundaries are governed by the range of z values: z∈[low,high]; or low≤z≤high, the length being L=high minus low.

We're now going to consider rotating the cylinder (x-x0)2+(y-y0)2=R2. If the vertical axis is the z-axis, then rotating about this axis only moves the centre (x0,y0). The circular cross-section is unaffected so only x0 and y0 are going to change.

The easiest way to see what the new coordinates will be is to revert temporarily to polar coordinates (r,θ): x=rcosθ, y=rsinθ. Note that x2+y2=r2 and tanθ=y/x. In the polar reference frame, r=OP where O is the origin, r=R is the polar equation of a circle radius R, and P is any point on its circumference. 

We're only interested in (x,y)=(x0,y0) so x0=rcosθ, y0=rsinθ. The angle of rotation we'll call ζ (zeta).

rcos(θ+ζ)=rcosθcosζ-rsinθsinζ=x0cosζ-y0sinζ, rsin(θ+ζ)=rsinθcosζ+rcosθsinζ=y0cosζ+x0sinζ.

The equation of the cylinder now becomes (x-x0cosζ+y0sinζ)2+(y-y0cosζ-x0sinζ)2=R2 in the x-y plane. But in the X-Y plane the equation of the cylinder will be:

(X-x0)2+(Y-y0)2=R2, because the X-axis has become the line y=xtanζ and the Y-axis has become y=-xcotζ in the x-y plane. The relation of the displaced centre to the X and Y axes is the same as the original position of the centre to the x and y axes. In other words, we can express the transformation of any point P(x,y)→P(X,Y) in relation to a new Cartesian frame of reference X-Y using a transformation matrix T=

⎛  cosζ sinζ ⎞

⎝ -sinζ cosζ ⎠

( X Y )=( x y )T.

Since there's no change to z T can be changed to 3D: T=

⎛ cosζ sinζ 0 ⎞

⎜-sinζ cosζ 0 ⎟

⎝   0      0    1 ⎠

so that ( X Y Z )=( x y z )T. The inverse of T is T-1=

⎛ cosζ -sinζ 0 ⎞

⎜ sinζ  cosζ 0 ⎟

⎝   0      0    1 ⎠

which is useful in reversing the transformation process (X-Y→x-y).

The next step is to rotate the cylinder about the X or Y axis. This process will establish the direction vector of the cylinder. Consider rotating the cylinder about the X-axis. An observer looking along the X-axis will see the Y-Z plane with the X-axis represented as superimposed on the Y-Z plane's origin.

The cylinder will appear as a rectangle, length (height) L and width 2R. The Y-coordinate of the inner wall of the cylinder is Y=y0-R and of the leading wall it's Y=y0+R, cylindrical axis being Y=Y0. The cylinder is standing on the X-Y plane so the locations of the vertices of the rectangle (as viewed along the X-axis) are: (Y,Z)=(y0-R,0), (y0-R,L), (y0+R,L), (y0+R,0). Remember that we're using y0 wrt to the Y-Z plane (not the y-z plane). y0 is x0cosζ-y0sinζ in the original 3D plane (x, y, z axes).

If we take any point Q(Y,Z) and convert to polar coordinates Y=rcosφ, Z=rsinφ, tanφ=Z/Y. Rotation of Q through an angle ψ (psi) gives us:

Y'=rcos(φ+ψ)=rcosφcosψ-rsinφsinψ=Ycosψ-Zsinψ;

Z'=rsin(φ+ψ)=rsinφcosψ+rcosφsinψ=Zcosψ+Ysinψ in the Y-Z plane. The Y and Z axes are rotated to become Y' and Z' axes.

(Y,Z)→(Ycosψ-Zsinψ,Zcosψ+Ysinψ) as measured in the Y-Z plane. Relative to the Y'-Z' plane, though, the cylinder from this side point of view will still appear to be the same rectangle as in the X-Z plane, with central axis y0 from the origin.

The central axis of the cylinder has endpoints F(y0,0) and G(y0,L) which transform to:

F(y0cosψ,y0sinψ) and G(y0cosψ-Lsinψ,Lcosψ+y0sinψ) after rotation wrt to the Y-Z plane.

Slope=-Lcosψ/Lsinψ=-cotψ;

Z-y0sinψ=-cotψ(Y-y0cosψ)=-Ycotψ+y0cosψcotψ,

Z=-Ycotψ+y0cos2ψ/sinψ+y0sinψ=-Ycotψ+y0cscψ.

The X-coordinate is not affected by the rotation round the X-axis.

This is the Cartesian line equation of the central axis of the cylinder in the Y-Z plane. To convert to the x-y plane requires back substitution. The final result should involve only the angles ζ and ψ in addition to the variables x, y, z.

The first picture below shows the first transformation of a section of an infinite cylinder (red), centre C1(1,2,0), radius 3, rotated through an angle of ζ=tan-1(0.75) (approx 36.87°)  to the position of the green cylinder, centre C2(-0.4,2.2). The z-axis (blue) is the axis of rotation. The x-axis is red and the y-axis green. The grid is the x-y plane. O is the origin. The centres C1 and C2 are intersections of the cylinder's central axis with the x-y plane. Although not shown, the X axis is the x-axis rotated anticlockwise through angle ζ, similarly, the Y-axis. This preserves the relative position of C2 wrt X and Y to be the same as C1 wrt x and y.

 

Pictures courtesy of GeoGebra Calculator Suite

Below shows the second transformation of rotation about the x-axis, a tilt of tan-1(5/12) degrees (22.62°) from the vertical anticlockwise. The red cylinder has been omitted, showing the transition from the green to the blue only. The central axis of the blue cylinder is shown, together with its centre C3 (centre of tilted base). C2 is also shown but it's quite faint. 

The line equation for the direction vector of the central axis is (-0.04,132/65,11/13)+λ(0,-5,12) and the cylinder's length is 13 units=√(02+(-5)2+122)=13. Note that the x component hasn't changed (from its value -0.04 in the green cylinder, the first transformation). 132/65=y0cosψ (y0 wrt Y-Z plane=x0cosζ-y0sinζ wrt to original 3D reference frame), 11/13=y0sinψ. λ=0 determines the position of C3 in the original frame; λ=1 determines the position of the centre of the top of the cylinder.

This example is intended to illustrate the process of transformation from the simple equation of a cylinder to its representation after rotating and tilting. By backtracking from this representation (reversing the transformation in two stages) the original equation of the cylinder can be derived.

by Top Rated User (1.1m points)

Related questions

1 answer
Welcome to MathHomeworkAnswers.org, where students, teachers and math enthusiasts can ask and answer any math question. Get help and answers to any math problem including algebra, trigonometry, geometry, calculus, trigonometry, fractions, solving expression, simplifying expressions and more. Get answers to math questions. Help is always 100% free!

Most popular tags

algebra problems solving equations word problems calculating percentages math problem geometry problems calculus problems math fraction problems trigonometry problems rounding numbers simplifying expressions solve for x order of operations probability algebra pre algebra problems word problem evaluate the expression slope intercept form statistics problems factoring polynomials solving inequalities 6th grade math how to find y intercept equation of a line sequences and series algebra 2 problems logarithmic equations solving systems of equations by substitution dividing fractions greatest common factor square roots geometric shapes graphing linear equations long division solving systems of equations least to greatest dividing decimals substitution method proving trigonometric identities least common multiple factoring polynomials ratio and proportion trig identity precalculus problems standard form of an equation solving equations with fractions http: mathhomeworkanswers.org ask# function of x calculus slope of a line through 2 points algebraic expressions solving equations with variables on both sides college algebra domain of a function solving systems of equations by elimination differential equation algebra word problems distributive property solving quadratic equations perimeter of a rectangle trinomial factoring factors of a number fraction word problems slope of a line limit of a function greater than or less than geometry division fractions how to find x intercept differentiation exponents 8th grade math simplifying fractions geometry 10th grade equivalent fractions inverse function area of a triangle elimination method story problems standard deviation integral ratios simplify systems of equations containing three variables width of a rectangle percentages area of a circle circumference of a circle place value solving triangles parallel lines mathematical proofs solving linear equations 5th grade math mixed numbers to improper fractions scientific notation problems quadratic functions number of sides of a polygon length of a rectangle statistics zeros of a function prime factorization percents algebra 1 evaluating functions derivative of a function equation area of a rectangle lowest common denominator solving systems of equations by graphing integers algebra 2 diameter of a circle dividing polynomials vertex of a parabola calculus problem perpendicular lines combining like terms complex numbers geometry word problems converting fractions to decimals finding the nth term range of a function 4th grade math greatest to least ordered pairs functions radius of a circle least common denominator slope unit conversion solve for y calculators solving radical equations calculate distance between two points area word problems equation of a tangent line multiplying fractions chemistry binomial expansion place values absolute value round to the nearest tenth common denominator sets set builder notation please help me to answer this step by step significant figures simplifying radicals arithmetic sequences median age problem trigonometry graphing derivatives number patterns adding fractions radicals midpoint of a line roots of polynomials product of two consecutive numbers limits decimals compound interest please help pre-algebra problems divisibility rules graphing functions subtracting fractions angles numbers discrete mathematics volume of a cylinder simultaneous equations integration probability of an event comparing decimals factor by grouping vectors percentage expanded forms rational irrational numbers improper fractions to mixed numbers algebra1 matrices logarithms how to complete the square mean statistics problem analytic geometry geometry problem rounding decimals 5th grade math problems solving equations with variables solving quadratic equations by completing the square simplifying trigonometric equation using identities
87,448 questions
99,050 answers
2,422 comments
4,784 users