Spherical coordinate system

Uses your system voice; voice and rate in settings.

Snapshot

≈ 18 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

80000-2:2019): radial distance (slant distance to origin), polar angle (theta) (angle with respect to positive polar axis), and azimuthal angle (phi) (angle of rotation from the initial meridian half-plane). This is the convention followed in this article. In mathematics, a spherical coordinate system specifies a given point in three-dimensional space by using a distance and two angles as its three coordinates. These are * the radial distance, , along the line connecting the point to a fixed point called the origin; * the polar angle, , between this radial line and a given polar axis; and * the azimuthal angle, , which is the angle of rotation of the radial line around the polar axis. (See graphic regarding the "physics convention".) Once the radius is fixed, the three coordinates (r, θ, φ), known as a 3-tuple, provide a coordinate system on a sphere, typically called the spherical polar coordinates. The plane passing through the origin and perpendicular to the polar axis (where the polar angle is a right angle) is called the reference plane (sometimes fundamental plane).

80000-2:2019): radial distance (slant distance to origin), polar angle (theta) (angle with respect to positive polar axis), and azimuthal angle (phi) (angle of rotation from the initial meridian half-plane). This is the convention followed in this article. In mathematics, a spherical coordinate system specifies a given point in three-dimensional space by using a distance and two angles as its three coordinates. These are the radial distance, , along the line connecting the point to a fixed point called the origin; the polar angle, , between this radial line and a given polar axis; and the azimuthal angle, , which is the angle of rotation of the radial line around the polar axis. (See graphic regarding the "physics convention".) Once the radius is fixed, the three coordinates (r, θ, φ), known as a 3-tuple, provide a coordinate system on a sphere, typically called the spherical polar coordinates. The plane passing through the origin and perpendicular to the polar axis (where the polar angle is a right angle) is called the reference plane (sometimes fundamental plane).

Terminology

The radial distance from the fixed point of origin is also called the radius, or radial line, or radial coordinate. The polar angle may be called inclination angle, zenith angle, normal angle, or the colatitude. The user may choose to replace the inclination angle by its complement, the elevation angle (or altitude angle), measured upward between the reference plane and the radial line i.e., from the reference plane upward (towards to the positive z-axis) to the radial line. The depression angle is the negative of the elevation angle. (See graphic re the "physics convention" not "mathematics convention".) Both the use of symbols and the naming order of tuple coordinates differ among the several sources and disciplines. This article will use the ISO convention frequently encountered in physics, where the triple of coordinates are listed in the naming order: (radial distance, polar angle, azimuthal angle), denoted by (r,\theta,\varphi) . (See graphic re the "physics convention".) Confusingly, the conventions in many mathematics texts use a different naming order: (radial distance, azimuthal angle, polar angle), denoted by (\rho,\theta,\varphi) or (r,\theta,\varphi) switching both the list order of the angle coordinates and the meaning of the letters \theta and \varphi . Other conventions may also be used, such as r for the radius from the z-axis, while using \rho for radius from the origin. The mathematics convention (\rho,\theta,\varphi) and r has the advantage that its letters are consistent with cylindrical coordinates in space and polar coordinates in the plane. ) is often used instead of to avoid confusion with the value in cylindrical and 2D polar coordinates.) According to the conventions of geographical coordinate systems, positions are measured by latitude, longitude, and height (altitude). There are a number of celestial coordinate systems based on different fundamental planes and with different terms for the various coordinates. The spherical coordinate systems used in mathematics normally use radians rather than degrees; (note 90 degrees equals radians). And these systems of the mathematics convention may measure the azimuthal angle counterclockwise (i.e., from the south direction -axis, or 180°, towards the east direction -axis, or +90°) rather than measure clockwise (i.e., from the north direction x-axis, or 0°, towards the east direction y-axis, or +90°), as done in the horizontal coordinate system. (See graphic re "mathematics convention".) The spherical coordinate system can be seen as an extension of the planar polar coordinate system to three-dimensional space, and it can be similarly extended to define a hyperspherical coordinate system in n -dimensional space. (If the inclination is either zero or 180 degrees (= radians), the azimuth is arbitrary. If the radius is zero, both azimuth and inclination are arbitrary.) The elevation is the signed angle from the x-y reference plane to the radial line segment , where positive angles are designated as upward, towards the zenith reference. Elevation is 90 degrees (= radians) minus inclination. Thus, if the inclination is 60 degrees (= radians), then the elevation is 30 degrees (= radians). In linear algebra, the vector from the origin to the point is often called the position vector of P. Angles are typically measured in degrees (°) or in radians (rad), where 360° = 2 rad. The use of degrees is most common in geography, astronomy, and engineering, where radians are commonly used in mathematics and theoretical physics. The unit for radial distance is usually determined by the context, as occurs in applications of the 'unit sphere', see applications. When the system is used to designate physical three-space, it is customary to assign positive to azimuth angles measured in the counterclockwise sense from the reference direction on the reference plane as seen from the "zenith" side of the plane. This convention is used in particular for geographical coordinates, where the "zenith" direction is north and the positive azimuth (longitude) angles are measured eastwards from some prime meridian. Note: Easting ( ), Northing ( ), Upwardness ( ). In the case of the local azimuth angle would be measured counterclockwise from to . \begin{align} r &= \sqrt{x^2 + y^2 + z^2} \\ \theta &= \arccos\frac{z}{\sqrt{x^2 + y^2 + z^2}} = \arccos\frac{z}{r}= \begin{cases} \arctan\frac{\sqrt{x^2+y^2}}{z} &\text{if } z > 0 \\ \pi +\arctan\frac{\sqrt{x^2+y^2}}{z} &\text{if } z 0, \\ \arctan(\frac{y}{x}) + \pi &\text{if } x 0, \\ -\frac{\pi}{2} &\text{if } x = 0 \text{ and } y where . The inverse tangent denoted in must be suitably defined, taking into account the correct quadrant of , as done in the equations above. See the article on atan2. Alternatively, the conversion can be considered as two sequential rectangular to polar conversions: the first in the Cartesian plane from to , where is the projection of onto the -plane, and the second in the Cartesian -plane from to . The correct quadrants for and are implied by the correctness of the planar rectangular to polar conversions. These formulae assume that the two systems have the same origin, that the spherical reference plane is the Cartesian plane, that is inclination from the direction, and that the azimuth angles are measured from the Cartesian axis (so that the axis has ). If θ measures elevation from the reference plane instead of inclination from the zenith the arccos above becomes an arcsin, and the and below become switched. Conversely, the Cartesian coordinates may be retrieved from the spherical coordinates (radius , inclination , azimuth ), where , , , by \begin{align} x &= r \sin\theta \, \cos\varphi, \\ y &= r \sin\theta \, \sin\varphi, \\ z &= r \cos\theta. \end{align} \begin{align} r &= \sqrt{\rho^2 + z^2}, \\ \theta &= \arctan\frac{\rho}{z} = \arccos\frac{z}{\sqrt{\rho^2 + z^2}}, \\ \varphi &= \varphi. \end{align} Conversely, the spherical coordinates may be converted into cylindrical coordinates by the formulae \begin{align} \rho &= r \sin \theta, \\ \varphi &= \varphi, \\ z &= r \cos \theta. \end{align} These formulae assume that the two systems have the same origin and same reference plane, measure the azimuth angle in the same senses from the same axis, and that the spherical angle is inclination from the cylindrical axis. ax^2 + by^2 + cz^2 = d. The modified spherical coordinates of a point in P in the ISO convention (i.e. for physics: radius , inclination , azimuth ) can be obtained from its Cartesian coordinates by the formulae \begin{align} x &= \frac{1}{\sqrt{a}} r \sin\theta \, \cos\varphi, \\ y &= \frac{1}{\sqrt{b}} r \sin\theta \, \sin\varphi, \\ z &= \frac{1}{\sqrt{c}} r \cos\theta, \\ r^{2} &= ax^2 + by^2 + cz^2. \end{align} An infinitesimal volume element is given by \mathrm{d}V = \left|\frac{\partial(x, y, z)}{\partial(r, \theta, \varphi)}\right| \, dr\,d\theta\,d\varphi = \frac{1}{\sqrt{abc}} r^2 \sin \theta \,\mathrm{d}r \,\mathrm{d}\theta \,\mathrm{d}\varphi = \frac{1}{\sqrt{abc}} r^2 \,\mathrm{d}r \,\mathrm{d}\Omega. The square-root factor comes from the property of the determinant that allows a constant to be pulled out from a column: \begin{vmatrix} ka & b & c \\ kd & e & f \\ kg & h & i \end{vmatrix} = k \begin{vmatrix} a & b & c \\ d & e & f \\ g & h & i \end{vmatrix}. \mathrm{d}\mathbf{r} = \mathrm{d}r\,\hat{\mathbf r} + r\,\mathrm{d}\theta \,\hat{\boldsymbol\theta } + r \sin{\theta} \, \mathrm{d}\varphi\,\mathbf{\hat{\boldsymbol\varphi}}, where \begin{align} \hat{\mathbf r} &= \sin \theta \cos \varphi \,\hat{\mathbf x} + \sin \theta \sin \varphi \,\hat{\mathbf y} + \cos \theta \,\hat{\mathbf z}, \\ \hat{\boldsymbol\theta} &= \cos \theta \cos \varphi \,\hat{\mathbf x} + \cos \theta \sin \varphi \,\hat{\mathbf y} - \sin \theta \,\hat{\mathbf z}, \\ \hat{\boldsymbol\varphi} &= - \sin \varphi \,\hat{\mathbf x} + \cos \varphi \,\hat{\mathbf y} \end{align} are the local orthogonal unit vectors in the directions of increasing , , and , respectively, and , , and are the unit vectors in Cartesian coordinates. The linear transformation to this right-handed coordinate triplet is a rotation matrix, R = \begin{pmatrix} \sin\theta\cos\varphi&\sin\theta\sin\varphi&\hphantom{-}\cos\theta\\ \cos\theta\cos\varphi&\cos\theta\sin\varphi&-\sin\theta\\ -\sin\varphi&\cos\varphi &\hphantom{-}0 \end{pmatrix}. This gives the transformation from the Cartesian to the spherical, the other way around is given by its inverse. Note: the matrix is an orthogonal matrix, that is, its inverse is simply its transpose. The Cartesian unit vectors are thus related to the spherical unit vectors by: \begin{bmatrix}\mathbf{\hat x} \\ \mathbf{\hat y} \\ \mathbf{\hat z} \end{bmatrix} = \begin{bmatrix} \sin\theta\cos\varphi & \cos\theta\cos\varphi & -\sin\varphi \\ \sin\theta\sin\varphi & \cos\theta\sin\varphi & \hphantom{-}\cos\varphi \\ \cos\theta & -\sin\theta & \hphantom{-}0 \end{bmatrix} \begin{bmatrix} \boldsymbol{\hat{r}} \\ \boldsymbol{\hat\theta} \\ \boldsymbol{\hat\varphi} \end{bmatrix} The general form of the formula to prove the differential line element, is \mathrm{d}\mathbf{r} = \sum_i \frac{\partial \mathbf{r}}{\partial x_i} \,\mathrm{d}x_i = \sum_i \left|\frac{\partial \mathbf{r}}{\partial x_i}\right| \frac{\frac{\partial \mathbf{r}}{\partial x_i}}{\left|\frac{\partial \mathbf{r}}{\partial x_i}\right|} \, \mathrm{d}x_i = \sum_i \left|\frac{\partial \mathbf{r}}{\partial x_i}\right| \,\mathrm{d}x_i \, \hat{\boldsymbol{x}}_i, that is, the change in \mathbf r is decomposed into individual changes corresponding to changes in the individual coordinates. To apply this to the present case, one needs to calculate how \mathbf r changes with each of the coordinates. In the conventions used, \mathbf{r} = \begin{bmatrix} r \sin\theta \, \cos\varphi \\ r \sin\theta \, \sin\varphi \\ r \cos\theta \end{bmatrix}, x_1=r, x_2=\theta, x_3=\varphi. Thus, \frac{\partial\mathbf r}{\partial r} = \begin{bmatrix} \sin\theta \, \cos\varphi \\ \sin\theta \, \sin\varphi \\ \cos\theta \end{bmatrix}=\mathbf{\hat r}, \quad \frac{\partial\mathbf r}{\partial \theta} = \begin{bmatrix} r \cos\theta \, \cos\varphi \\ r \cos\theta \, \sin\varphi \\ -r \sin\theta \end{bmatrix}=r\,\hat{\boldsymbol\theta }, \quad \frac{\partial\mathbf r}{\partial \varphi} = \begin{bmatrix} -r \sin\theta \, \sin\varphi \\ \hphantom{-}r \sin\theta \, \cos\varphi \\ 0 \end{bmatrix} = r \sin\theta\,\mathbf{\hat{\boldsymbol\varphi}} . The desired coefficients are the magnitudes of these vectors: \left|\frac{\partial\mathbf r}{\partial r}\right| = 1, \quad \left|\frac{\partial\mathbf r}{\partial \theta}\right| = r, \quad \left|\frac{\partial\mathbf r}{\partial \varphi}\right| = r \sin\theta. The surface element spanning from to and to on a spherical surface at (constant) radius is then \mathrm{d}S_r = \left\|\frac{\partial {\mathbf r}}{\partial \theta} \times \frac{\partial {\mathbf r}}{\partial \varphi}\right\| \mathrm{d}\theta \,\mathrm{d}\varphi = \left|r {\hat \boldsymbol\theta} \times r \sin \theta {\boldsymbol\hat \varphi} \right|\mathrm{d}\theta \,\mathrm{d}\varphi= r^2 \sin\theta \,\mathrm{d}\theta \,\mathrm{d}\varphi ~. Thus the differential solid angle is \mathrm{d}\Omega = \frac{\mathrm{d}S_r}{r^2} = \sin\theta \,\mathrm{d}\theta \,\mathrm{d}\varphi. The surface element in a surface of polar angle constant (a cone with vertex at the origin) is \mathrm{d}S_\theta = r \sin\theta \,\mathrm{d}\varphi \,\mathrm{d}r. The surface element in a surface of azimuth constant (a vertical half-plane) is \mathrm{d}S_\varphi = r \,\mathrm{d}r \,\mathrm{d}\theta. The volume element spanning from to , to , and to is specified by the determinant of the Jacobian matrix of partial derivatives, J =\frac{\partial(x,y,z)}{\partial(r,\theta,\varphi)} =\begin{pmatrix} \sin\theta\cos\varphi & r\cos\theta\cos\varphi & -r\sin\theta\sin\varphi\\ \sin\theta\sin\varphi & r\cos\theta\sin\varphi & \hphantom{-}r\sin\theta\cos\varphi\\ \cos\theta & -r\sin\theta & \hphantom{-}0 \end{pmatrix}, namely \mathrm{d}V = \left|\frac{\partial(x, y, z)}{\partial(r, \theta, \varphi)}\right| \,\mathrm{d}r \,\mathrm{d}\theta \,\mathrm{d}\varphi= r^2 \sin\theta \,\mathrm{d}r \,\mathrm{d}\theta \,\mathrm{d}\varphi = r^2 \,\mathrm{d}r \,\mathrm{d}\Omega ~. Thus, for example, a function can be integrated over every point in by the triple integral \int\limits_0^{2\pi} \int\limits_0^\pi \int\limits_0^\infty f(r, \theta, \varphi) r^2 \sin\theta \,\mathrm{d}r \,\mathrm{d}\theta \,\mathrm{d}\varphi ~. The del operator in this system leads to the following expressions for the gradient and Laplacian for scalar fields, \begin{align} \nabla f &= {\partial f \over \partial r}\hat{\mathbf r} + {1 \over r}{\partial f \over \partial \theta}\hat{\boldsymbol\theta} + {1 \over r\sin\theta}{\partial f \over \partial \varphi}\hat{\boldsymbol\varphi}, \\[8pt] \nabla^2 f &= {1 \over r^2}{\partial \over \partial r} \left(r^2 {\partial f \over \partial r}\right) + {1 \over r^2 \sin\theta}{\partial \over \partial \theta} \left(\sin\theta {\partial f \over \partial \theta}\right) + {1 \over r^2 \sin^2\theta}{\partial^2 f \over \partial \varphi^2} \\[8pt] & = \left(\frac{\partial^2}{\partial r^2} + \frac{2}{r} \frac{\partial}{\partial r}\right) f + {1 \over r^2 \sin\theta}{\partial \over \partial \theta} \left(\sin\theta \frac{\partial}{\partial \theta}\right) f + \frac{1}{r^2 \sin^2\theta}\frac{\partial^2}{\partial \varphi^2}f ~, \\[8pt] \end{align} And it leads to the following expressions for the divergence and curl of vector fields, \nabla \cdot \mathbf{A} = \frac{1}{r^2}{\partial \over \partial r}\left( r^2 A_r \right) + \frac{1}{r \sin\theta}{\partial \over \partial\theta} \left( \sin\theta A_\theta \right) + \frac{1}{r \sin \theta} {\partial A_\varphi \over \partial \varphi}, \begin{align} \nabla \times \mathbf{A} = {} & \frac{1}{r\sin\theta} \left[{\partial \over \partial \theta} \left( A_\varphi\sin\theta \right) - {\partial A_\theta \over \partial \varphi}\right] \hat{\mathbf r} \\[4pt] & {} + \frac 1 r \left[{1 \over \sin\theta}{\partial A_r \over \partial \varphi} - {\partial \over \partial r} \left( r A_\varphi \right) \right] \hat{\boldsymbol\theta} \\[4pt] & {} + \frac 1 r \left[{\partial \over \partial r} \left( r A_\theta \right) - {\partial A_r \over \partial \theta}\right] \hat{\boldsymbol\varphi}, \end{align} Further, the inverse Jacobian in Cartesian coordinates is J^{-1} = \frac{\partial (r,\theta,\varphi)}{\partial (x,y,z)} = \begin{pmatrix} \dfrac{x}{r}&\dfrac{y}{r}&\dfrac{z}{r}\\\\ \dfrac{xz}{r^2\sqrt{x^2+y^2}}&\dfrac{yz}{r^2\sqrt{x^2+y^2}}&\dfrac{-\left(x^2 + y^2\right)}{r^2\sqrt{x^2+y^2}}\\\\ \dfrac{-y}{x^2+y^2}&\dfrac{x}{x^2+y^2}&0 \end{pmatrix}. The metric tensor in the spherical coordinate system is g = J^T J . \begin{align} {\mathbf r} &= (r,\theta,\varphi), \\ {\mathbf r'} &= (r',\theta',\varphi') \end{align} The distance between the two points can be expressed as \begin{align} D &= \sqrt{r^2+r'^2-2rr'(\sin{\theta}\sin{\theta'}\cos{(\varphi-\varphi')} + \cos{\theta}\cos{\theta'})} \end{align} The angle \gamma between the two points can be found from their dot product in Cartesian coordinates: \cos \gamma = \cos \theta \cos \theta' + \sin \theta \sin \theta' (\cos \phi \cos \phi' + \sin \phi \sin \phi') which by the angle difference identity for cosine is \cos \gamma = \cos \theta \cos \theta' + \sin \theta \sin \theta' \cos(\phi - \phi') \mathbf{r} = r \mathbf{\hat r} . Its velocity is then \mathbf{v} = \frac{\mathrm{d}\mathbf{r}}{\mathrm{d}t} = \dot{r} \mathbf{\hat r} + r\,\dot\theta\,\hat{\boldsymbol\theta } + r\,\dot\varphi \sin\theta\,\mathbf{\hat{\boldsymbol\varphi}} and its acceleration is \begin{align} \mathbf{a} = {} & \frac{\mathrm{d}\mathbf{v}}{\mathrm{d}t} \\[1ex] = {} & \hphantom{+}\; \left( \ddot{r} - r\,\dot\theta^2 - r\,\dot\varphi^2\sin^2\theta \right)\mathbf{\hat r} \\ & {} + \left( r\,\ddot\theta + 2\dot{r}\,\dot\theta - r\,\dot\varphi^2\sin\theta\cos\theta \right) \hat{\boldsymbol\theta } \\ & {} + \left( r\ddot\varphi\,\sin\theta + 2\dot{r}\,\dot\varphi\,\sin\theta + 2 r\,\dot\theta\,\dot\varphi\,\cos\theta \right) \hat{\boldsymbol\varphi} \end{align} The angular momentum is \mathbf{L} = \mathbf{r} \times \mathbf{p} = \mathbf{r} \times m\mathbf{v} = m r^2 \left(- \dot\varphi \sin\theta\,\mathbf{\hat{\boldsymbol\theta}} + \dot\theta\,\hat{\boldsymbol\varphi }\right) Where m is mass. In the case of a constant or else , this reduces to vector calculus in polar coordinates. The corresponding angular momentum operator then follows from the phase-space reformulation of the above, \mathbf{L}= -i\hbar ~\mathbf{r} \times \nabla =i \hbar \left(\frac{\hat{\boldsymbol{\theta}}}{\sin(\theta)} \frac{\partial}{\partial\phi} - \hat{\boldsymbol{\varphi}} \frac{\partial}{\partial\theta}\right). The torque is given as \mathbf{\tau} = \frac{\mathrm{d}\mathbf{L}}{\mathrm{d}t} = \mathbf{r} \times \mathbf{F} = -m \left(2r\dot{r}\dot{\varphi}\sin\theta + r^2\ddot{\varphi}\sin{\theta} + 2r^2\dot{\theta}\dot{\varphi}\cos{\theta} \right)\hat{\boldsymbol\theta} + m \left(r^2\ddot{\theta} + 2r\dot{r}\dot{\theta} - r^2\dot{\varphi}^2\sin\theta\cos\theta \right) \hat{\boldsymbol\varphi} The kinetic energy is given as E_k = \frac{1}{2}m \left[ \left(\dot{r}\right)^2 + \left(r\dot{\theta}\right)^2 + \left(r\dot{\varphi}\sin\theta\right)^2 \right]

Text derived from https://en.wikipedia.org/w/index.php?oldid=1377013475 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

6 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.