Converting from Cartesian to cylindrical coordinates is a fundamental skill in multivariable calculus, physics, and engineering that allows problems with axial symmetry to be simplified. Mastering this transformation enables easier integration over cylinders, cones, and other rotationally symmetric shapes, and it is frequently encountered when dealing with electromagnetic fields, fluid flow, and heat transfer. In Cartesian coordinates a point is described by ((x, y, z)), while cylindrical coordinates use ((r, \theta, z)) where (r) measures the distance from the (z)-axis, (\theta) is the angle measured from the positive (x)-axis in the (xy)-plane, and (z) remains the same vertical coordinate. The following sections break down the conversion process, provide the underlying mathematical reasoning, illustrate with worked examples, and answer common questions that students often have.
Understanding the Coordinate Systems
Before diving into the conversion formulas, it helps to visualize how the two systems relate. Imagine a point (P) in three‑dimensional space. In the (xy)-plane, the polar coordinates ((r, \theta)) describe the same projection: (r) is the length of the vector from the origin to ((x, y, 0)), and (\theta) is the angle that vector makes with the positive (x)-axis. On the flip side, drop a perpendicular from (P) to the (xy)-plane; the foot of this perpendicular is the point’s projection ((x, y, 0)). The (z) coordinate is unchanged because the cylindrical system simply stacks these polar circles along the vertical axis Still holds up..
- Cartesian coordinates: ((x, y, z)) – orthogonal axes, each measured in linear units.
- Cylindrical coordinates: ((r, \theta, z)) – radial distance (r \ge 0), angle (\theta) (usually in radians, (0 \le \theta < 2\pi)), and height (z).
The relationship between the two systems is rooted in basic trigonometry and the Pythagorean theorem.
Conversion Formulas
The transformation from Cartesian to cylindrical coordinates consists of three equations:
- Radial distance:
[ r = \sqrt{x^{2} + y^{2}} ] - Azimuthal angle:
[ \theta = \operatorname{atan2}(y, x) ] (The two‑argument arctangent ensures the correct quadrant for (\theta).) - Vertical coordinate:
[ z = z ]
Conversely, to go from cylindrical back to Cartesian you use:
- (x = r \cos \theta)
- (y = r \sin \theta)
- (z = z)
These formulas are derived directly from the definitions of sine and cosine in a right triangle whose hypotenuse is (r) and whose adjacent and opposite sides are the (x) and (y) components.
Step‑by‑Step Procedure
When faced with a point or an expression in Cartesian form, follow these steps to convert it to cylindrical coordinates:
-
Identify the given (x), (y), and (z) values.
If you are working with an equation, treat (x), (y), and (z) as variables Easy to understand, harder to ignore.. -
Compute the radial distance (r).
Square (x) and (y), add them, then take the square root.
Example: For ((x, y, z) = (3, 4, 5)), (r = \sqrt{3^{2}+4^{2}} = \sqrt{9+16}= \sqrt{25}=5). -
Determine the angle (\theta) using (\operatorname{atan2}(y, x)).
This function returns an angle in the correct quadrant.
Example: (\theta = \operatorname{atan2}(4, 3) \approx 0.927) radians (about (53.13^\circ)). -
Keep the (z) coordinate unchanged.
In the example, (z = 5). -
Write the cylindrical triple ((r, \theta, z)).
Result: ((5, 0.927, 5)).
If you are converting an entire equation, replace (x) and (y) everywhere with (r\cos\theta) and (r\sin\theta) respectively, then simplify using trigonometric identities where possible Simple, but easy to overlook..
Scientific Explanation: Why the Formulas Work
The derivation rests on two geometric facts:
-
Pythagorean theorem in the (xy)-plane: The distance from the origin to the point’s projection ((x, y, 0)) is (\sqrt{x^{2}+y^{2}}). By definition, this distance is the radial coordinate (r).
-
Definition of tangent in a right triangle: In the same triangle, the side opposite the angle (\theta) is (y) and the side adjacent is (x). Hence (\tan\theta = y/x). Solving for (\theta) gives (\theta = \arctan(y/x)), but the plain arctangent only returns values between (-\pi/2) and (\pi/2). The (\operatorname{atan2}) function extends this to the full circle by considering the signs of both (x) and (y).
Because the (z)-axis is orthogonal to the (xy)-plane, moving up or down does not affect the radial distance or the angular position; therefore (z) remains invariant under the transformation That's the part that actually makes a difference. That's the whole idea..
Worked Examples
Example 1: Simple Point
Convert ((-2, 2, 7)) to cylindrical coordinates.
- (r = \sqrt{(-2)^{2}+2^{2}} = \sqrt{4+4}= \sqrt{8}=2\sqrt{2}\approx 2.828).
- (\theta = \operatorname{atan2}(2, -2)). Since (x<0) and (y>0), the point lies in the second quadrant; (\theta = \pi - \operatorname{atan2}(2,2)= \pi - \pi/4 = 3\pi/4 \approx 2.356) rad.
- (z = 7).
Result: ((2\sqrt{2},, 3\pi/4,, 7)) Simple as that..
Example 2: Equation of a Cylinder
Here's the thing about the Cartesian equation (x^{2}+y^{2}=9) describes a cylinder of radius 3 centered on the (z)-axis.
Replace (x^{2}+y^{2}) with (r^{2}) (since (r^{2}=x^{2}+y^{2})). The equation becomes (r^{2}=9), or simply (r=3). Notice that (\theta) and (z
Notice that θ and z are free variables.
The Cartesian equation (x^{2}+y^{2}=9) describes a right circular cylinder of radius 3 whose axis coincides with the (z)‑axis. In cylindrical coordinates the radial coordinate already encodes the distance from that axis, so the condition reduces to a single constraint:
[ r^{2}=x^{2}+y^{2}=9 ;\Longrightarrow; r=3 . ]
Because the cylinder extends infinitely in both the positive and negative (z)‑direction, the (z)‑coordinate can be any real number. Likewise, the angular coordinate (\theta) may take any value in ([0,2\pi)) (or ((-\pi,\pi]) depending on the convention). Thus the cylindrical description of the same surface is simply
[ \boxed{r=3,\qquad \theta\in[0,2\pi),\qquad z\in\mathbb{R}} . ]
Example 3 – Converting a Point in the (yz)‑Plane
Convert the Cartesian point ((0,5,-2)) to cylindrical coordinates.
-
Radial distance
[ r=\sqrt{x^{2}+y^{2}}=\sqrt{0^{2}+5^{2}}=5 . ] -
Angle
[ \theta=\operatorname{atan2}(y,x)=\operatorname{atan2}(5,0)=\frac{\pi}{2};(90^{\circ}) . ] -
Height
[ z=-2 . ]
The cylindrical triple is (\displaystyle (5,;\tfrac{\pi}{2},;-2)).
Example 4 – Converting a Surface Equation
Consider the sphere given by (x^{2}+y^{2}+z^{2}=25) in Cartesian coordinates.
To rewrite it in cylindrical form:
-
Replace (x^{2}+y^{2}) with (r^{2}).
[ r^{2}+z^{2}=25 . ] -
This is the standard cylindrical equation of a sphere of radius 5 centered at the origin.
No further trigonometric simplification is needed because the equation already contains only (r) and (z).
Practical Tips for Conversions
| Situation | Recommended Approach |
|---|---|
| Single point | Compute (r=\sqrt{x^{2}+y^{2}}), (\theta=\operatorname{atan2}(y,x)), keep (z). |
| Full equation | Substitute (x=r\cos\theta) and (y=r\sin\theta) everywhere, then simplify using (\cos^{2}\theta+\sin^{2}\theta=1) and other identities. |
| Origin ((0,0,z)) | (r=0); (\theta) is undefined (any value may be chosen, often set to 0). |