Spherical coordinate system (original) (raw)
Coordinates comprising a distance and two angles
The physics convention. Spherical coordinates (r, θ, φ) as commonly used: (ISO 80000-2:2019): radial distance r (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 plane). This is the convention followed in this article.
In mathematics, a spherical coordinate system is a coordinate system for three-dimensional space where the position of a given point in space is specified by three real numbers: the radial distance r along the radial line connecting the point to the fixed point of origin; the polar angle θ between the radial line and a given polar axis;[a] and the azimuthal angle φ as the angle of rotation of the radial line around the polar axis.[b] (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).
The physics convention is followed in this article; (See both graphics re "physics convention" and re "mathematics convention".)
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 ignore the inclination angle and use the elevation angle instead, which is 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[1] frequently encountered in physics, where the naming tuple gives the order as: radial distance, polar angle, azimuthal angle, or ( r , θ , φ ) {\displaystyle (r,\theta ,\varphi )} . (See graphic re the "physics convention".) In contrast, the conventions in many mathematics books and texts give the naming order differently as: radial distance, "azimuthal angle", "polar angle", and ( ρ , θ , φ ) {\displaystyle (\rho ,\theta ,\varphi )} or ( r , θ , φ ) {\displaystyle (r,\theta ,\varphi )} —which switches the uses and meanings of symbols θ and φ. Other conventions may also be used, such as r for a radius from the _z-_axis that is not from the point of origin. Particular care must be taken to check the meaning of the symbols.
The mathematics convention. Spherical coordinates (r, θ, φ) as typically used: radial distance r, azimuthal angle θ, and polar angle φ. + _The meanings of θ and φ have been swapped_—compared to the physics convention. The 'south'-direction x-axis is depicted but the 'north'-direction x-axis is not. (As in physics, ρ (rho) is often used instead of r to avoid confusion with the value r 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 π/2 radians). And these systems of the mathematics convention may measure the azimuthal angle counterclockwise (i.e., from the south direction x-axis, or 180°, towards the east direction y-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.[2] (See graphic re "mathematics convention".)
The spherical coordinate system of the physics convention can be seen as a generalization of the polar coordinate system in three-dimensional space. It can be further extended to higher-dimensional spaces, and is then referred to as a hyperspherical coordinate system.
To define a spherical coordinate system, one must designate an origin point in space, O, and two orthogonal directions: the zenith reference direction and the azimuth reference direction. These choices determine a reference plane that is typically defined as containing the point of origin and the x– and y–axes, either of which may be designated as the azimuth reference direction. The reference plane is perpendicular (orthogonal) to the zenith direction, and typically is desiginated "horizontal" to the zenith direction's "vertical". The spherical coordinates of a point P then are defined as follows:
- The radius or radial distance is the Euclidean distance from the origin O to P.
- The inclination (or polar angle) is the signed angle from the zenith reference direction to the line segment OP. (Elevation may be used as the polar angle instead of inclination; see below.)
- The azimuth (or azimuthal angle) is the signed angle measured from the azimuth reference direction to the orthogonal projection of the radial line segment OP on the reference plane.
The sign of the azimuth is determined by designating the rotation that is the positive sense of turning about the zenith. This choice is arbitrary, and is part of the coordinate system definition. (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 OP, where positive angles are designated as upward, towards the zenith reference. Elevation is 90 degrees (= π/2 radians) minus inclination. Thus, if the inclination is 60 degrees (= π/3 radians), then the elevation is 30 degrees (= π/6 radians).
In linear algebra, the vector from the origin O to the point P is often called the position vector of P.
Several different conventions exist for representing spherical coordinates and prescribing the naming order of their symbols. The 3-tuple number set ( r , θ , φ ) {\displaystyle (r,\theta ,\varphi )} denotes radial distance, the polar angle—"inclination", or as the alternative, "elevation"—and the azimuthal angle. It is the common practice within the physics convention, as specified by ISO standard 80000-2:2019, and earlier in ISO 31-11 (1992).
As stated above, this article describes the ISO "physics convention"—unless otherwise noted.
However, some authors (including mathematicians) use the symbol ρ (rho) for radius, or radial distance, φ for inclination (or elevation) and θ for azimuth—while others keep the use of r for the radius; all which "provides a logical extension of the usual polar coordinates notation".[3] As to order, some authors list the azimuth before the inclination (or the elevation) angle. Some combinations of these choices result in a left-handed coordinate system. The standard "physics convention" 3-tuple set ( r , θ , φ ) {\displaystyle (r,\theta ,\varphi )} conflicts with the usual notation for two-dimensional polar coordinates and three-dimensional cylindrical coordinates, where θ is often used for the azimuth.[3]
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.
Major conventions
coordinates set order | corresponding local geographical directions (Z, X, Y) | right/left-handed |
---|---|---|
(r, _θ_inc, _φ_az,right) | (U, S, E) | right |
(r, _φ_az,right, _θ_el) | (U, E, N) | right |
(r, _θ_el, _φ_az,right) | (U, N, E) | left |
Note: Easting (E), Northing (N), Upwardness (U). In the case of (U, S, E) the local azimuth angle would be measured counterclockwise from S to E.
Any spherical coordinate triplet (or tuple) ( r , θ , φ ) {\displaystyle (r,\theta ,\varphi )} specifies a single point of three-dimensional space. On the reverse view, any single point has infinitely many equivalent spherical coordinates. That is, the user can add or subtract any number of full turns to the angular measures without changing the angles themselves, and therefore without changing the point. It is convenient in many contexts to use negative radial distances, the convention being ( − r , θ , φ ) {\displaystyle (-r,\theta ,\varphi )} , which is equivalent to ( r , θ + 180 ∘ , φ ) {\displaystyle (r,\theta {+}180^{\circ },\varphi )} or ( r , 90 ∘ − θ , φ + 180 ∘ ) {\displaystyle (r,90^{\circ }{-}\theta ,\varphi {+}180^{\circ })} for any r, θ, and φ. Moreover, ( r , − θ , φ ) {\displaystyle (r,-\theta ,\varphi )} is equivalent to ( r , θ , φ + 180 ∘ ) {\displaystyle (r,\theta ,\varphi {+}180^{\circ })} .
When necessary to define a unique set of spherical coordinates for each point, the user must restrict the range, aka interval, of each coordinate. A common choice is:
- radial distance: r ≥ 0,
- polar angle: 0° ≤ θ ≤ 180°, or 0 rad ≤ θ ≤ π rad,
- azimuth : 0° ≤ φ < 360°, or 0 rad ≤ φ < 2π rad.
But instead of the interval [0°, 360°), the azimuth φ is typically restricted to the half-open interval (−180°, +180°], or (−π, +π ] radians, which is the standard convention for geographic longitude.
For the polar angle θ, the range (interval) for inclination is [0°, 180°], which is equivalent to elevation range (interval) [−90°, +90°]. In geography, the latitude is the elevation.
Even with these restrictions, if the polar angle (inclination) is 0° or 180°—elevation is −90° or +90°—then the azimuth angle is arbitrary; and if r is zero, both azimuth and polar angles are arbitrary. To define the coordinates as unique, the user can assert the convention that (in these cases) the arbitrary coordinates are set to zero.
To plot any dot from its spherical coordinates (r, θ, φ), where θ is inclination, the user would: move r units from the origin in the zenith reference direction (z-axis); then rotate by the amount of the azimuth angle (φ) about the origin from the designated azimuth reference direction, (i.e., either the x– or y–axis, see Definition, above); and then rotate from the z-axis by the amount of the θ angle.
In the mathematics convention: A globe showing a unit sphere, with tuple coordinates of point P (red): its radial distance r (red, not labeled); its azimuthal angle θ (not labeled); and its polar angle of inclination φ (not labeled). The radial distance upward along the zenith–axis from the point of origin to the surface of the sphere is assigned the value unity, or 1. + In this image, r appears to equal 4/6, or .67, (of unity); i.e., four of the six 'nested shells' to the surface. The azimuth angle θ appears to equal positive 90°, as rotated counterclockwise from the azimuth-reference x–axis; and the inclination φ appears to equal 30°, as rotated from the zenith–axis. (Note the 'full' rotation, or inclination, from the zenith–axis to the y–axis is 90°).
Just as the two-dimensional Cartesian coordinate system is useful—has a wide set of applications—on a planar surface, a two-dimensional spherical coordinate system is useful on the surface of a sphere. For example, one sphere that is described in Cartesian coordinates with the equation _x_2 + _y_2 + _z_2 = _c_2 can be described in spherical coordinates by the simple equation r = c. (In this system—_shown here in the mathematics convention_—the sphere is adapted as a unit sphere, where the radius is set to unity and then can generally be ignored, see graphic.)
This (unit sphere) simplification is also useful when dealing with objects such as rotational matrices. Spherical coordinates are also useful in analyzing systems that have some degree of symmetry about a point, including: volume integrals inside a sphere; the potential energy field surrounding a concentrated mass or charge; or global weather simulation in a planet's atmosphere.
The output pattern of the industrial loudspeaker shown here uses spherical polar plots taken at six frequencies
Three dimensional modeling of loudspeaker output patterns can be used to predict their performance. A number of polar plots are required, taken at a wide selection of frequencies, as the pattern changes greatly with frequency. Polar plots help to show that many loudspeakers tend toward omnidirectionality at lower frequencies.
An important application of spherical coordinates provides for the separation of variables in two partial differential equations—the Laplace and the Helmholtz equations—that arise in many physical problems. The angular portions of the solutions to such equations take the form of spherical harmonics. Another application is ergonomic design, where r is the arm length of a stationary person and the angles describe the direction of the arm as it reaches out. The spherical coordinate system is also commonly used in 3D game development to rotate the camera around the player's position[4]
Instead of inclination, the geographic coordinate system uses elevation angle (or latitude), in the range (aka domain) −90° ≤ φ ≤ 90° and rotated north from the equator plane. Latitude (i.e., the angle of latitude) may be either geocentric latitude, measured (rotated) from the Earth's center—and designated variously by ψ, q, _φ_′, _φ_c, _φ_g—or geodetic latitude, measured (rotated) from the observer's local vertical, and typically designated φ. The polar angle (inclination), which is 90° minus the latitude and ranges from 0 to 180°, is called colatitude in geography.
The azimuth angle (or longitude) of a given position on Earth, commonly denoted by λ, is measured in degrees east or west from some conventional reference meridian (most commonly the IERS Reference Meridian); thus its domain (or range) is −180° ≤ λ ≤ 180° and a given reading is typically designated "East" or "West". For positions on the Earth or other solid celestial body, the reference plane is usually taken to be the plane perpendicular to the axis of rotation.
Instead of the radial distance r geographers commonly use altitude above or below some local reference surface (vertical datum), which, for example, may be the mean sea level. When needed, the radial distance can be computed from the altitude by adding the radius of Earth, which is approximately 6,360 ± 11 km (3,952 ± 7 miles).
However, modern geographical coordinate systems are quite complex, and the positions implied by these simple formulae may be inaccurate by several kilometers. The precise standard meanings of latitude, longitude and altitude are currently defined by the World Geodetic System (WGS), and take into account the flattening of the Earth at the poles (about 21 km or 13 miles) and many other details.
Planetary coordinate systems use formulations analogous to the geographic coordinate system.
A series of astronomical coordinate systems are used to measure the elevation angle from several fundamental planes. These reference planes include: the observer's horizon, the galactic equator (defined by the rotation of the Milky Way), the celestial equator (defined by Earth's rotation), the plane of the ecliptic (defined by Earth's orbit around the Sun), and the plane of the earth terminator (normal to the instantaneous direction to the Sun).
Coordinate system conversions
[edit]
As the spherical coordinate system is only one of many three-dimensional coordinate systems, there exist equations for converting coordinates between the spherical coordinate system and others.
Cartesian coordinates
[edit]
The spherical coordinates of a point in the ISO convention (i.e. for physics: radius r, inclination θ, azimuth φ) can be obtained from its Cartesian coordinates (x, y, z) by the formulae
r = x 2 + y 2 + z 2 θ = arccos z x 2 + y 2 + z 2 = arccos z r = { arctan x 2 + y 2 z if z > 0 π + arctan x 2 + y 2 z if z < 0 + π 2 if z = 0 and x 2 + y 2 ≠ 0 undefined if x = y = z = 0 φ = sgn ( y ) arccos x x 2 + y 2 = { arctan ( y x ) if x > 0 , arctan ( y x ) + π if x < 0 and y ≥ 0 , arctan ( y x ) − π if x < 0 and y < 0 , + π 2 if x = 0 and y > 0 , − π 2 if x = 0 and y < 0 , undefined if x = 0 and y = 0. {\displaystyle {\begin{aligned}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\\+{\frac {\pi }{2}}&{\text{if }}z=0{\text{ and }}{\sqrt {x^{2}+y^{2}}}\neq 0\\{\text{undefined}}&{\text{if }}x=y=z=0\\\end{cases}}\\\varphi &=\operatorname {sgn}(y)\arccos {\frac {x}{\sqrt {x^{2}+y^{2}}}}={\begin{cases}\arctan({\frac {y}{x}})&{\text{if }}x>0,\\\arctan({\frac {y}{x}})+\pi &{\text{if }}x<0{\text{ and }}y\geq 0,\\\arctan({\frac {y}{x}})-\pi &{\text{if }}x<0{\text{ and }}y<0,\\+{\frac {\pi }{2}}&{\text{if }}x=0{\text{ and }}y>0,\\-{\frac {\pi }{2}}&{\text{if }}x=0{\text{ and }}y<0,\\{\text{undefined}}&{\text{if }}x=0{\text{ and }}y=0.\end{cases}}\end{aligned}}}
The inverse tangent denoted in φ = arctan y/_x_ must be suitably defined, taking into account the correct quadrant of (x, y), 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 xy plane from (x, y) to (R, φ), where R is the projection of r onto the xy-plane, and the second in the Cartesian zR-plane from (z, R) to (r, θ). 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 xy plane, that θ is inclination from the z direction, and that the azimuth angles are measured from the Cartesian x axis (so that the y axis has φ = +90°). If θ measures elevation from the reference plane instead of inclination from the zenith the arccos above becomes an arcsin, and the cos θ and sin θ below become switched.
Conversely, the Cartesian coordinates may be retrieved from the spherical coordinates (radius r, inclination θ, azimuth φ), where r ∈ [0, ∞), θ ∈ [0, π], φ ∈ [0, 2π), by x = r sin θ cos φ , y = r sin θ sin φ , z = r cos θ . {\displaystyle {\begin{aligned}x&=r\sin \theta \,\cos \varphi ,\\y&=r\sin \theta \,\sin \varphi ,\\z&=r\cos \theta .\end{aligned}}}
Cylindrical coordinates
[edit]
Cylindrical coordinates (axial radius ρ, azimuth φ, elevation z) may be converted into spherical coordinates (central radius r, inclination θ, azimuth φ), by the formulas
r = ρ 2 + z 2 , θ = arctan ρ z = arccos z ρ 2 + z 2 , φ = φ . {\displaystyle {\begin{aligned}r&={\sqrt {\rho ^{2}+z^{2}}},\\\theta &=\arctan {\frac {\rho }{z}}=\arccos {\frac {z}{\sqrt {\rho ^{2}+z^{2}}}},\\\varphi &=\varphi .\end{aligned}}}
Conversely, the spherical coordinates may be converted into cylindrical coordinates by the formulae
ρ = r sin θ , φ = φ , z = r cos θ . {\displaystyle {\begin{aligned}\rho &=r\sin \theta ,\\\varphi &=\varphi ,\\z&=r\cos \theta .\end{aligned}}}
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 z axis.
It is also possible to deal with ellipsoids in Cartesian coordinates by using a modified version of the spherical coordinates.
Let P be an ellipsoid specified by the level set
a x 2 + b y 2 + c z 2 = d . {\displaystyle 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 r, inclination θ, azimuth φ) can be obtained from its Cartesian coordinates (x, y, z) by the formulae
x = 1 a r sin θ cos φ , y = 1 b r sin θ sin φ , z = 1 c r cos θ , r 2 = a x 2 + b y 2 + c z 2 . {\displaystyle {\begin{aligned}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{aligned}}}
An infinitesimal volume element is given by
d V = | ∂ ( x , y , z ) ∂ ( r , θ , φ ) | d r d θ d φ = 1 a b c r 2 sin θ d r d θ d φ = 1 a b c r 2 d r d Ω . {\displaystyle \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:
| k a b c k d e f k g h i | = k | a b c d e f g h i | . {\displaystyle {\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}}.}
Integration and differentiation in spherical coordinates
[edit]
Unit vectors in spherical coordinates
The following equations (Iyanaga 1977) assume that the colatitude θ is the inclination from the positive z axis, as in the physics convention discussed.
The line element for an infinitesimal displacement from (r, θ, φ) to (r + d_r_, θ + d_θ_, φ + d_φ_) is d r = d r r ^ + r d θ θ ^ + r sin θ d φ φ ^ , {\displaystyle \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 r ^ = sin θ cos φ x ^ + sin θ sin φ y ^ + cos θ z ^ , θ ^ = cos θ cos φ x ^ + cos θ sin φ y ^ − sin θ z ^ , φ ^ = − sin φ x ^ + cos φ y ^ {\displaystyle {\begin{aligned}{\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{aligned}}} are the local orthogonal unit vectors in the directions of increasing r, θ, and φ, respectively, and x̂, ŷ, and ẑ are the unit vectors in Cartesian coordinates. The linear transformation to this right-handed coordinate triplet is a rotation matrix, R = ( sin θ cos φ sin θ sin φ − cos θ cos θ cos φ cos θ sin φ − sin θ − sin φ cos φ − 0 ) . {\displaystyle 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: [ x ^ y ^ z ^ ] = [ sin θ cos φ cos θ cos φ − sin φ sin θ sin φ cos θ sin φ − cos φ cos θ − sin θ − 0 ] [ r ^ θ ^ φ ^ ] {\displaystyle {\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[5] d r = ∑ i ∂ r ∂ x i d x i = ∑ i | ∂ r ∂ x i | ∂ r ∂ x i | ∂ r ∂ x i | d x i = ∑ i | ∂ r ∂ x i | d x i x ^ i , {\displaystyle \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 r {\displaystyle \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 r {\displaystyle \mathbf {r} } changes with each of the coordinates. In the conventions used, r = [ r sin θ cos φ r sin θ sin φ r cos θ ] , x 1 = r , x 2 = θ , x 3 = φ . {\displaystyle \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, ∂ r ∂ r = [ sin θ cos φ sin θ sin φ cos θ ] = r ^ , ∂ r ∂ θ = [ r cos θ cos φ r cos θ sin φ − r sin θ ] = r θ ^ , ∂ r ∂ φ = [ − r sin θ sin φ − r sin θ cos φ 0 ] = r sin θ φ ^ . {\displaystyle {\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:[5] | ∂ r ∂ r | = 1 , | ∂ r ∂ θ | = r , | ∂ r ∂ φ | = r sin θ . {\displaystyle \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 θ + d_θ_ and φ to φ + d_φ_ on a spherical surface at (constant) radius r is then d S r = ‖ ∂ r ∂ θ × ∂ r ∂ φ ‖ d θ d φ = | r θ ^ × r sin θ φ ^ | d θ d φ = r 2 sin θ d θ d φ . {\displaystyle \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 d Ω = d S r r 2 = sin θ d θ d φ . {\displaystyle \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 d S θ = r sin θ d φ d r . {\displaystyle \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 d S φ = r d r d θ . {\displaystyle \mathrm {d} S_{\varphi }=r\,\mathrm {d} r\,\mathrm {d} \theta .}
The volume element spanning from r to r + d_r_, θ to θ + d_θ_, and φ to φ + d_φ_ is specified by the determinant of the Jacobian matrix of partial derivatives, J = ∂ ( x , y , z ) ∂ ( r , θ , φ ) = ( sin θ cos φ r cos θ cos φ − r sin θ sin φ sin θ sin φ r cos θ sin φ − r sin θ cos φ cos θ − r sin θ − 0 ) , {\displaystyle 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 d V = | ∂ ( x , y , z ) ∂ ( r , θ , φ ) | d r d θ d φ = r 2 sin θ d r d θ d φ = r 2 d r d Ω . {\displaystyle \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 f(r, θ, φ) can be integrated over every point in R3 by the triple integral ∫ 0 2 π ∫ 0 π ∫ 0 ∞ f ( r , θ , φ ) r 2 sin θ d r d θ d φ . {\displaystyle \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, ∇ f = ∂ f ∂ r r ^ + 1 r ∂ f ∂ θ θ ^ + 1 r sin θ ∂ f ∂ φ φ ^ , ∇ 2 f = 1 r 2 ∂ ∂ r ( r 2 ∂ f ∂ r ) + 1 r 2 sin θ ∂ ∂ θ ( sin θ ∂ f ∂ θ ) + 1 r 2 sin 2 θ ∂ 2 f ∂ φ 2 = ( ∂ 2 ∂ r 2 + 2 r ∂ ∂ r ) f + 1 r 2 sin θ ∂ ∂ θ ( sin θ ∂ ∂ θ ) f + 1 r 2 sin 2 θ ∂ 2 ∂ φ 2 f , {\displaystyle {\begin{aligned}\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{aligned}}} And it leads to the following expressions for the divergence and curl of vector fields,
∇ ⋅ A = 1 r 2 ∂ ∂ r ( r 2 A r ) + 1 r sin θ ∂ ∂ θ ( sin θ A θ ) + 1 r sin θ ∂ A φ ∂ φ , {\displaystyle \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 },} ∇ × A = 1 r sin θ [ ∂ ∂ θ ( A φ sin θ ) − ∂ A θ ∂ φ ] r ^ + 1 r [ 1 sin θ ∂ A r ∂ φ − ∂ ∂ r ( r A φ ) ] θ ^ + 1 r [ ∂ ∂ r ( r A θ ) − ∂ A r ∂ θ ] φ ^ , {\displaystyle {\begin{aligned}\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(rA_{\varphi }\right)\right]{\hat {\boldsymbol {\theta }}}\\[4pt]&{}+{\frac {1}{r}}\left[{\partial \over \partial r}\left(rA_{\theta }\right)-{\partial A_{r} \over \partial \theta }\right]{\hat {\boldsymbol {\varphi }}},\end{aligned}}}
Further, the inverse Jacobian in Cartesian coordinates is J − 1 = ( x r y r z r x z r 2 x 2 + y 2 y z r 2 x 2 + y 2 − ( x 2 + y 2 ) r 2 x 2 + y 2 − y x 2 + y 2 x x 2 + y 2 0 ) . {\displaystyle J^{-1}={\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 {\displaystyle g=J^{T}J} .
Distance in spherical coordinates
[edit]
In spherical coordinates, given two points with φ being the azimuthal coordinate r = ( r , θ , φ ) , r ′ = ( r ′ , θ ′ , φ ′ ) {\displaystyle {\begin{aligned}{\mathbf {r} }&=(r,\theta ,\varphi ),\\{\mathbf {r} '}&=(r',\theta ',\varphi ')\end{aligned}}} The distance between the two points can be expressed as[6] D = r 2 + r ′ 2 − 2 r r ′ ( sin θ sin θ ′ cos ( φ − φ ′ ) + cos θ cos θ ′ ) {\displaystyle {\begin{aligned}{\mathbf {D} }&={\sqrt {r^{2}+r'^{2}-2rr'(\sin {\theta }\sin {\theta '}\cos {(\varphi -\varphi ')}+\cos {\theta }\cos {\theta '})}}\end{aligned}}}
In spherical coordinates, the position of a point or particle (although better written as a triple ( r , θ , φ ) {\displaystyle (r,\theta ,\varphi )} ) can be written as[7] r = r r ^ . {\displaystyle \mathbf {r} =r\mathbf {\hat {r}} .} Its velocity is then[7] v = d r d t = r ˙ r ^ + r θ ˙ θ ^ + r φ ˙ sin θ φ ^ {\displaystyle \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[7] a = d v d t = + ( r ¨ − r θ ˙ 2 − r φ ˙ 2 sin 2 θ ) r ^ + ( r θ ¨ + 2 r ˙ θ ˙ − r φ ˙ 2 sin θ cos θ ) θ ^ + ( r φ ¨ sin θ + 2 r ˙ φ ˙ sin θ + 2 r θ ˙ φ ˙ cos θ ) φ ^ {\displaystyle {\begin{aligned}\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 +2r\,{\dot {\theta }}\,{\dot {\varphi }}\,\cos \theta \right){\hat {\boldsymbol {\varphi }}}\end{aligned}}}
The angular momentum is L = r × p = r × m v = m r 2 ( − φ ˙ sin θ θ ^ + θ ˙ φ ^ ) {\displaystyle \mathbf {L} =\mathbf {r} \times \mathbf {p} =\mathbf {r} \times m\mathbf {v} =mr^{2}\left(-{\dot {\varphi }}\sin \theta \,\mathbf {\hat {\boldsymbol {\theta }}} +{\dot {\theta }}\,{\hat {\boldsymbol {\varphi }}}\right)} Where m {\displaystyle m} is mass. In the case of a constant φ or else θ = π/2, this reduces to vector calculus in polar coordinates.
The corresponding angular momentum operator then follows from the phase-space reformulation of the above, L = − i ℏ r × ∇ = i ℏ ( θ ^ sin ( θ ) ∂ ∂ ϕ − ϕ ^ ∂ ∂ θ ) . {\displaystyle \mathbf {L} =-i\hbar ~\mathbf {r} \times \nabla =i\hbar \left({\frac {\hat {\boldsymbol {\theta }}}{\sin(\theta )}}{\frac {\partial }{\partial \phi }}-{\hat {\boldsymbol {\phi }}}{\frac {\partial }{\partial \theta }}\right).}
The torque is given as[7] τ = d L d t = r × F = − m ( 2 r r ˙ φ ˙ sin θ + r 2 φ ¨ sin θ + 2 r 2 θ ˙ φ ˙ cos θ ) θ ^ + m ( r 2 θ ¨ + 2 r r ˙ θ ˙ − r 2 φ ˙ 2 sin θ cos θ ) φ ^ {\displaystyle \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[7] E k = 1 2 m [ ( r ˙ ) 2 + ( r θ ˙ ) 2 + ( r φ ˙ sin θ ) 2 ] {\displaystyle 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]}
- Celestial coordinate system – System for specifying positions of celestial objectsPages displaying short descriptions of redirect targets
- Coordinate system – Method for specifying point positions
- Del in cylindrical and spherical coordinates – Mathematical gradient operator in certain coordinate systems
- Double Fourier sphere method
- Elevation (ballistics) – Angle in ballistics
- Euler angles – Description of the orientation of a rigid body
- Gimbal lock – Loss of one degree of freedom in a three-dimensional, three-gimbal mechanism
- Hypersphere – Generalized sphere of dimension n (mathematics)Pages displaying short descriptions of redirect targets
- Jacobian matrix and determinant – Matrix of all first-order partial derivatives of a vector-valued function
- List of canonical coordinate transformations
- Sphere – Set of points equidistant from a center
- Spherical harmonic – Special mathematical functions defined on the surface of a spherePages displaying short descriptions of redirect targets
- Theodolite – Optical surveying instrument
- Vector fields in cylindrical and spherical coordinates – Vector field representation in 3D curvilinear coordinate systems
- Yaw, pitch, and roll – Principal directions in aviationPages displaying short descriptions of redirect targets
^ An oriented line, so the polar angle is an oriented angle reckoned from the polar axis main direction, not its opposite direction.
^ If the polar axis is made to coincide with positive _z_-axis, the azimuthal angle φ may be calculated as the angle between either of the _x_-axis or _y_-axis and the orthogonal projection of the radial line onto the reference _x-y_-plane — which is orthogonal to the _z_-axis and passes through the fixed point of origin, completing a three-dimensional Cartesian coordinate system.
^ "ISO 80000-2:2019 Quantities and units – Part 2: Mathematics". ISO. 19 May 2020. pp. 20–21. Item no. 2-17.3. Retrieved 2020-08-12.
^ Duffett-Smith, P and Zwart, J, p. 34.
^ a b Eric W. Weisstein (2005-10-26). "Spherical Coordinates". MathWorld. Retrieved 2010-01-15.
^ "Video Game Math: Polar and Spherical Notation". Academy of Interactive Entertainment (AIE). Retrieved 2022-02-16.
^ a b "Line element (dl) in spherical coordinates derivation/diagram". Stack Exchange. October 21, 2011.
^ a b c d e Reed, Bruce Cameron (2019). Keplerian ellipses : the physics of the gravitational two-body problem. Morgan & Claypool Publishers, Institute of Physics. San Rafael [California] (40 Oak Drive, San Rafael, CA, 94903, US). ISBN 978-1-64327-470-6. OCLC 1104053368.
{{[cite book](/wiki/Template:Cite%5Fbook "Template:Cite book")}}
: CS1 maint: location (link) CS1 maint: location missing publisher (link)
- Iyanaga, Shōkichi; Kawada, Yukiyosi (1977). Encyclopedic Dictionary of Mathematics. MIT Press. ISBN 978-0262090162.
- Morse PM, Feshbach H (1953). Methods of Theoretical Physics, Part I. New York: McGraw-Hill. p. 658. ISBN 0-07-043316-X. LCCN 52011515.
- Margenau H, Murphy GM (1956). The Mathematics of Physics and Chemistry. New York: D. van Nostrand. pp. 177–178. LCCN 55010911.
- Korn GA, Korn TM (1961). Mathematical Handbook for Scientists and Engineers. New York: McGraw-Hill. pp. 174–175. LCCN 59014456. ASIN B0000CKZX7.
- Sauer R, Szabó I (1967). Mathematische Hilfsmittel des Ingenieurs. New York: Springer Verlag. pp. 95–96. LCCN 67025285.
- Moon P, Spencer DE (1988). "Spherical Coordinates (r, θ, ψ)". Field Theory Handbook, Including Coordinate Systems, Differential Equations, and Their Solutions (corrected 2nd ed., 3rd print ed.). New York: Springer-Verlag. pp. 24–27 (Table 1.05). ISBN 978-0-387-18430-2.
- Duffett-Smith P, Zwart J (2011). Practical Astronomy with your Calculator or Spreadsheet, 4th Edition. New York: Cambridge University Press. p. 34. ISBN 978-0521146548.
- "Spherical coordinates", Encyclopedia of Mathematics, EMS Press, 2001 [1994]
- MathWorld description of spherical coordinates
- Coordinate Converter – converts between polar, Cartesian and spherical coordinates