Skip to main content
Physics LibreTexts

4.3: Cylindrical Coordinates

  • Page ID
    24239
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Cartesian coordinates (Section 4.1) are not convenient in certain cases. One of these is when the problem has cylindrical symmetry. For example, in the Cartesian coordinate system, the cross-section of a cylinder concentric with the \(z\)-axis requires two coordinates to describe: \(x\) and \(y\). However, this cross section can be described using a single parameter – namely the radius – which is \(\rho\) in the cylindrical coordinate system. This results in a dramatic simplification of the mathematics in some applications.

    The cylindrical system is defined with respect to the Cartesian system in Figure \(\PageIndex{1}\). In lieu of \(x\) and \(y\), the cylindrical system uses \(\rho\), the distance measured from the closest point on the \(z\) axis, and \(\phi\), the angle measured in a plane of constant \(z\), beginning at the \(+x\) axis (\(\phi=0\)) with \(\phi\) increasing toward the \(+y\) direction.

    m0096_fCylindricalCoordinates.png Figure \(\PageIndex{1}\): Cylindrical coordinate system and associated basis vectors. (CC BY SA 4.0; K. Kikkeri).

    The basis vectors in the cylindrical system are \(\hat{\bf \rho}\), \(\hat{\bf \phi}\), and \(\hat{\bf z}\). As in the Cartesian system, the dot product of like basis vectors is equal to one, and the dot product of unlike basis vectors is equal to zero. The cross products of basis vectors are as follows:

    \[\hat{\bf \rho} \times \hat{\bf \phi} = \hat{\bf z} \nonumber \]

    \[\hat{\bf \phi} \times \hat{\bf z} = \hat{\bf \rho} \nonumber \]

    \[\hat{\bf z} \times \hat{\bf \rho} = \hat{\bf \phi} \nonumber \]

    A useful diagram that summarizes these relationships is shown in Figure \(\PageIndex{2}\).

    m0096_fCylindricalBasisCrossProducts.png Figure \(\PageIndex{2}\): Cross products among basis vectors in the cylindrical system. (See Figure 4.1.10 for instructions on the use of this diagram.) (CC BY SA 4.0; K. Kikkeri).

    The cylindrical system is usually less useful than the Cartesian system for identifying absolute and relative positions. This is because the basis directions depend on position. For example, \(\hat{\bf \rho}\) is directed radially outward from the \(\hat{\bf z}\) axis, so \(\hat{\bf \rho}=\hat{\bf x}\) for locations along the \(x\)-axis but \(\hat{\bf \rho}=\hat{\bf y}\) for locations along the \(y\) axis. Similarly, the direction \(\hat{\bf \phi}\) varies as a function of position. To overcome this awkwardness, it is common to set up a problem in cylindrical coordinates in order to exploit cylindrical symmetry, but at some point to convert to Cartesian coordinates. Here are the conversions: \[x = \rho\cos\phi \nonumber \] \[y = \rho\sin\phi \nonumber \] and \(z\) is identical in both systems. The conversion from Cartesian to cylindrical is as follows:

    \[\rho = \sqrt{x^2+y^2} \nonumber \] \[\phi = \arctan\left(y,x\right) \nonumber \]

    where \(\arctan\) is the four-quadrant inverse tangent function; i.e., \(\arctan(y/x)\) in the first quadrant (\(x>0\), \(y>0\)), but possibly requiring an adjustment for the other quadrants because the signs of both \(x\) and \(y\) are individually significant.

    Similarly, it is often necessary to represent basis vectors of the cylindrical system in terms of Cartesian basis vectors and vice-versa. Conversion of basis vectors is straightforward using dot products to determine the components of the basis vectors in the new system. For example, \(\hat{\bf x}\) in terms of the basis vectors of the cylindrical system is

    \[\hat{\bf x} = \hat{\bf \rho}\left(\hat{\bf \rho}\cdot\hat{\bf x}\right) +\hat{\bf \phi}\left(\hat{\bf \phi}\cdot\hat{\bf x}\right) +\hat{\bf z }\left(\hat{\bf z}\cdot\hat{\bf x}\right) \nonumber \]

    The last term is of course zero since \(\hat{\bf z}\cdot\hat{\bf x}=0\). Calculation of the remaining terms requires dot products between basis vectors in the two systems, which are summarized in Table \(\PageIndex{1}\). Using this table, we find

    \[\hat{\bf x} = \hat{\bf \rho}\cos\phi -\hat{\bf \phi}\sin\phi \nonumber \] \[\hat{\bf y} = \hat{\bf \rho}\sin\phi +\hat{\bf \phi}\cos\phi \nonumber \]

    and of course \(\hat{\bf z}\) requires no conversion. Going from Cartesian to cylindrical, we find

    \[\hat{\bf \rho} = \hat{\bf x}\cos\phi +\hat{\bf y}\sin\phi \nonumber \] \[\hat{\bf \phi} =-\hat{\bf x}\sin\phi +\hat{\bf y}\cos\phi \nonumber \]

    Table \(\PageIndex{1}\): Dot products between basis vectors in the cylindrical and Cartesian coordinate systems.
    \(\cdot\) \(\hat{\bf \rho}\) \(\hat{\bf \phi}\) \(\hat{\bf z}\)
    \(\hat{\bf x}\) \(\cos\phi\) \(-\sin\phi\) 0
    \(\hat{\bf y}\) \(\sin\phi\) \(~\cos\phi\) 0
    \(\hat{\bf z}\) 0 0 1

    Integration Over Length

    A differential-length segment of a curve in the cylindrical system is described in general as

    \[d{\bf l} = \hat{\bf \rho}d\rho + \hat{\bf \phi}\rho d\phi + \hat{\bf z}~dz \nonumber \]

    Note that the contribution of the \(\phi\) coordinate to differential length is \(\rho d\phi\), not simply \(d\phi\). This is because \(\phi\) is an angle, not a distance. To see why the associated distance is \(\rho d\phi\), consider the following. The circumference of a circle of radius \(\rho\) is \(2\pi\rho\). If only a fraction of the circumference is traversed, the associated arclength is the circumference scaled by \(\phi/2\pi\), where \(\phi\) is the angle formed by the traversed circumference. Therefore, the distance is \(2\pi\rho \cdot \phi/2\pi = \rho \phi\), and the differential distance is \(\rho d\phi\).

    As always, the integral of a vector field \({\bf A}({\bf r})\) over a curve \({\mathcal C}\) is

    \[\int_{\mathcal C}{ {\bf A}\cdot d{\bf l} } \nonumber \]

    To demonstrate the cylindrical system, let us calculate the integral of \({\bf A}({\bf r})=\hat{\bf \phi}\) when \(\mathcal{C}\) is a circle of radius \(\rho_0\) in the \(z=0\) plane, as shown in Figure \(\PageIndex{3}\). In this example, \(d{\bf l} = \hat{\bf \phi}~\rho_0~d\phi\) since \(\rho=\rho_0\) and \(z=0\) are both constant along \({\mathcal C}\). Subsequently, \({\bf A}\cdot d{\bf l}=\rho_0 d\phi\) and the above integral is

    \[\int_{0}^{2\pi}{ \rho_0~d\phi } = 2\pi\rho_0 \nonumber \]

    i.e., this is a calculation of circumference.

    m0096_Circle.png Figure \(\PageIndex{3}\): Example in cylindrical coordinates: The circumference of a circle. (CC BY SA 4.0; K. Kikkeri).

    Note that the cylindrical system is an appropriate choice for the preceding example because the problem can be expressed with the minimum number of varying coordinates in the cylindrical system. If we had attempted this problem in the Cartesian system, we would find that both \(x\) and \(y\) vary over \({\mathcal C}\), and in a relatively complex way.

    Integration Over Area

    Now we ask the question, what is the integral of some vector field \({\bf A}\) over a circular surface \({\mathcal S}\) in the \(z=0\) plane having radius \(\rho_0\)? This is shown in Figure Figure \(\PageIndex{4}\). The differential surface vector in this case is

    \[d{\bf s} = \hat{\bf z}~\left( d\rho \right) \left( \rho d\phi \right) = \hat{\bf z}~\rho~d\rho~d\phi \label{eq10} \]

    m0096_CircleArea.png Figure \(\PageIndex{4}\): Example in cylindrical coordinates: The area of a circle. (CC BY SA 4.0; K. Kikkeri).

    The quantities in parentheses of Equation \ref{eq10} are the radial and angular dimensions, respectively. The direction of \(d{\bf s}\) indicates the direction of positive flux – see the discussion in Section 4.2 for an explanation. In general, the integral over a surface is

    \[\int_{\mathcal S} {\bf A}\cdot d{\bf s} \nonumber \]

    To demonstrate, let’s consider \({\bf A}=\hat{\bf z}\); in this case \({\bf A}\cdot d{\bf s} = \rho~d\rho~d\phi\) and the integral becomes

    \[\begin{align} \int_{0}^{\rho_0}\int_{0}^{2\pi} \rho~d\rho~d\phi &= \left( \int_{0}^{\rho_0} \rho~d\rho \right) \left( \int_{0}^{2\pi} d\phi \right) \\[4pt] &= \left( \frac{1}{2}\rho_0^2 \right) \left( 2\pi \right) \\[4pt] &= \pi \rho_0^2 \end{align} \nonumber \]

    which we recognize as the area of the circle, as expected. The corresponding calculation in the Cartesian system is quite difficult in comparison.

    Whereas the previous example considered a planar surface, we might consider instead a curved surface. Here we go. What is the integral of a vector field \({\bf A}=\hat{\bf \rho}\) over a cylindrical surface \({\mathcal S}\) concentric with the \(z\) axis having radius \(\rho_0\) and extending from \(z=z_1\) to \(z=z_2\)? This is shown in Figure \(\PageIndex{5}\).

    m0096_CylinderArea.png Figure \(\PageIndex{5}\): Example in cylindrical coordinates: The area of the curved surface of a cylinder. (CC BY SA 4.0; K. Kikkeri).

    The differential surface vector in this case is \[d{\bf s} = \hat{\bf \rho}\left( \rho_0 d\phi \right) \left( dz \right) = \hat{\bf \rho}\rho_0~d\phi~dz \nonumber \] The integral is

    \[\begin{align} \int_{\mathcal S} {\bf A}\cdot d{\bf s} &= \int_{0}^{2\pi}\int_{z_1}^{z_2} \rho_0~d\phi dz \\[4pt] &= \rho_0 \left( \int_{0}^{2\pi} d\phi \right) \left( \int_{z_1}^{z_2} dz \right)\\[4pt] &= 2\pi \rho_0 \left(z_2-z_1\right) \\[4pt] \end{align} \nonumber \]

    which is the area of \({\mathcal S}\), as expected. Once again, the corresponding calculation in the Cartesian system is quite difficult in comparison.

    Integration Over Volume

    The differential volume element in the cylindrical system is

    \[dv ~=~ d\rho~\left(\rho d\phi\right)~dz ~=~ \rho~d\rho~d\phi~dz \nonumber \]

    For example, if \(A({\bf r})=1\) and the volume \(\mathcal{V}\) is a cylinder bounded by \(\rho\le \rho_0\) and \(z_1\le z \le z_2\), then

    \[\begin{align} \int_{\mathcal V} A({\bf r})~dv &= \int_{0}^{\rho_0} \int_{0}^{2\pi} \int_{z_1}^{z_2} \rho~d\rho~d\phi~dz \\[4pt] &= \left(\int_{0}^{\rho_0} \rho~d\rho \right) \left( \int_{0}^{2\pi} d\phi \right) \left( \int_{z_1}^{z_2} dz\right) \\[4pt] & = \pi \rho_0^2 \left(z_2-z_1\right) \end{align} \nonumber \]

    i.e., area times length, which is volume.

    Once again, the procedure above is clearly more complicated than is necessary if we are interested only in computing volume. However, if the integrand is not constant-valued then we are no longer simply computing volume. In this case, the formalism is appropriate and possibly necessary.


    This page titled 4.3: Cylindrical Coordinates is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Steven W. Ellingson (Virginia Tech Libraries' Open Education Initiative) .