Multivariable Calculus · Cylindrical coordinates

Cylindrical coordinates

Cylindrical coordinates (r, θ, z) give a point’s distance r from the z-axis, the angle θ of its projection on the xy-plane, measured counterclockwise from the positive x-axis, and its height z: x = r cos θ, y = r sin θ, z = z. Polar coordinates on the floor, plus a height.

Cylindrical coordinates in this visualization

Project a point PP vertically onto the xy-plane and describe its projection in polar coordinates: the distance rr from the origin and the angle θ\theta from the positive x-axis, counterclockwise seen from above. Add zz, the signed height of PP above that plane, and you have the cylindrical coordinates (r,θ,z)(r, \theta, z). In the picture rr runs along the floor, the arc at the origin marks θ\theta and zz is the vertical segment from the projection to PP. Note that rr is the distance from the z-axis, not from the origin.

From cylindrical to Cartesian coordinates and back
x=rcos⁡θ,y=rsin⁡θ,z=z;r=x2+y2,θ=atan2⁡(y,x) (r>0)x = r\cos\theta,\quad y = r\sin\theta,\quad z = z; \qquad r = \sqrt{x^2 + y^2},\quad \theta = \operatorname{atan2}(y, x)\ (r > 0)

Three families of surfaces

Hold one coordinate fixed and let the other two vary. For a fixed r0>0r_0 > 0, the points with r=r0r = r_0 form a cylinder around the z-axis, which gives the system its name. The points with θ=θ0\theta = \theta_0 form a half-plane hinged on the z-axis, and those with z=z0z = z_0 a horizontal plane. Every point off the axis is where exactly one surface of each family meets, and any two of them meet in a coordinate line: a ray along which only rr changes, a circle along which only θ\theta changes, and a vertical line along which only zz changes. On the z-axis itself the cylinder has shrunk to the axis and every θ\theta gives the same point.

Where r dr dθ dz comes from

Step out by Δr\Delta r, round by Δθ\Delta\theta and up by Δz\Delta z and you sweep out a small wedge. Two of its edges are just Δr\Delta r and Δz\Delta z, but the same angle sweeps a longer arc farther from the axis: the third edge is r Δθr\,\Delta\theta, with Δθ\Delta\theta in radians (as in every formula here; the panel shows degrees). So the wedge is nearly a box of volume r Δr Δθ Δzr\,\Delta r\,\Delta\theta\,\Delta z. Its exact volume is (r+Δr/2) Δr Δθ Δz(r + \Delta r/2)\,\Delta r\,\Delta\theta\,\Delta z, because the outer arc is longer than the inner one, and for a fixed r>0r > 0 the ratio 1+Δr/(2r)1 + \Delta r/(2r) goes to 1 as the pieces shrink. That is why a triple integral in cylindrical coordinates carries the factor rr, as the double integral in polar coordinates does with one dimension fewer. For a solid cylinder of radius RR and height hh, ∫0h ⁣∫02π ⁣∫0Rr dr dθ dz=πR2h\int_0^h\!\int_0^{2\pi}\!\int_0^R r\,dr\,d\theta\,dz = \pi R^2 h.

When to use them

Cylindrical coordinates suit anything arranged around an axis: pipes and wires, a spinning fluid, the field of a long charged rod. The expression x2+y2x^2 + y^2 becomes r2r^2. Two cautions. Going back from xx and yy, tan⁡θ=y/x\tan\theta = y/x fixes θ\theta only up to half a turn and fails when x=0x = 0: use the two-argument arctangent, and on the axis (r=0r = 0) θ\theta is undefined. And θ\theta and θ+360∘\theta + 360^\circ name the same point, so a range such as 0∘≤θ<360∘0^\circ \le \theta < 360^\circ has to be chosen.

Things to notice

  • The distance from the origin is ∣OP∣=r2+z2|OP| = \sqrt{r^2 + z^2}. Together with θ\theta and the angle down from the z-axis it gives spherical coordinates.
  • The factor rr is the determinant of the Jacobian of (r,θ,z)↦(x,y,z)(r, \theta, z) \mapsto (x, y, z); change of variables explains the general rule.
  • Notation varies: physics books often write (ρ,φ,z)(\rho, \varphi, z) or (s,φ,z)(s, \varphi, z) for the same three numbers.

Controls

  • Drag P’s projection F on the floor to change r and θ; drag P up and down to change z. Drag anywhere else to turn the view.
  • The Δ knob scales Δr, Δθ and Δz by the same factor; turning it shows the volume element.

Related