Spherical coordinate system
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.
Once the radius is fixed, the three coordinates, 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 is called the reference 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, measured upward between the reference plane and the radial linei.e., from the reference plane upward to the radial line. The depression angle is the negative of the elevation angle. '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 naming tuple gives the order as: radial distance, polar angle, azimuthal angle, or '. In contrast, the conventions in many mathematics books and texts give the naming order differently as: radial distance, "azimuthal angle", "polar angle", and or 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.
According to the conventions of geographical coordinate systems, positions are measured by latitude, longitude, and height. 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;. And these systems of the mathematics convention may measure the azimuthal angle counterclockwise rather than measure clockwise, as done in the horizontal coordinate system.
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.
Definition
To define a spherical coordinate system, one must designate an origin point in space, ', 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 yaxes, either of which may be designated as the azimuth reference direction. The reference plane is perpendicular to the zenith direction, and typically is designated "horizontal" to the zenith direction's "vertical". The spherical coordinates of a point then are defined as follows:- The radius or radial distance is the Euclidean distance from the origin '
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 minus inclination. Thus, if the inclination is 60 degrees, then the elevation is 30 degrees.
In linear algebra, the vector from the origin to the point is often called the position vector of P.
Conventions
Several different conventions exist for representing spherical coordinates and prescribing the naming order of their symbols. The 3-tuple number set 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.As stated above, this article describes the ISO "physics convention"unless otherwise noted.
However, some authors use the symbol ρ for radius, or radial distance, φ for inclination and θ for azimuthwhile others keep the use of r for the radius; all which "provides a logical extension of the usual polar coordinates notation". As to order, some authors list the azimuth before the inclination angle. Some combinations of these choices result in a left-handed coordinate system. The standard "physics convention" 3-tuple set conflicts with the usual notation for two-dimensional polar coordinates and three-dimensional cylindrical coordinates, where is often used for the azimuth.
Angles are typically measured in degrees or in radians, 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 planeas 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 angles are measured eastwards from some prime meridian.
| coordinates set order | corresponding local geographical directions | right/left-handed |
| right | ||
| right | ||
| left |
Note: Easting, Northing , Upwardness. In the case of the local azimuth angle would be measured counterclockwise from to.
Unique coordinates
Any spherical coordinate triplet 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, which is equivalent to or for any,, and. Moreover, is equivalent to.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:
- polar angle:, or,
- azimuth :, or.
For the polar angle, the range for inclination is, which is equivalent to elevation range . In geography, the latitude is the elevation.
Even with these restrictions, if the polar angle is 0° or 180°elevation is −90° or +90°then the azimuth angle is arbitrary; and if is zero, both azimuth and polar angles are arbitrary. To define the coordinates as unique, the user can assert the convention that the arbitrary coordinates are set to zero.
Plotting
To plot any dot from its spherical coordinates, where is inclination, the user would: move units from the origin in the zenith reference direction ; then rotate by the amount of the azimuth angle about the origin from the designated azimuth reference direction, ; and then rotate from the z-axis by the amount of the angle.Applications
Just as the two-dimensional Cartesian coordinate system is usefulhas a wide set of applicationson 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 can be described in spherical coordinates by the simple equation.This 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.
Image:Bosch 36W column loudspeaker polar pattern.png|thumb|upright=1.2|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 equationsthe Laplace and the Helmholtz equationsthat 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 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
In geography
Instead of inclination, the geographic coordinate system uses elevation angle, in the range and rotated north from the equator plane. Latitude may be either geocentric latitude, measured from the Earth's centerand designated variously by or geodetic latitude, measured from the observer's local vertical, and typically designated.The polar angle, which is 90° minus the latitude and ranges from 0 to 180°, is called colatitude in geography.
The azimuth angle of a given position on Earth, commonly denoted by, is measured in degrees east or west from some conventional reference meridian ; thus its domain is 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 geographers commonly use altitude above or below some local reference surface, 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.
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, and take into account the flattening of the Earth at the poles and many other details.
Planetary coordinate systems use formulations analogous to the geographic coordinate system.
In astronomy
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, the celestial equator, the plane of the ecliptic, and the plane of the earth terminator.
Coordinate system conversions
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
The spherical coordinates of a point in the ISO convention can be obtained from its Cartesian coordinates by the formulaewhere.
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. 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, where,,, by
Cylindrical coordinates
may be converted into spherical coordinates, by the formulasConversely, the spherical coordinates may be converted into cylindrical coordinates by the formulae
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.
Ellipsoidal coordinates
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
The modified spherical coordinates of a point in P in the ISO convention can be obtained from its Cartesian coordinates by the formulae
An infinitesimal volume element is given by
The square-root factor comes from the property of the determinant that allows a constant to be pulled out from a column:
Integration and differentiation in spherical coordinates
The following equations assume that the colatitude is the inclination from the positive axis, as in the physics convention discussed.The line element for an infinitesimal displacement from to is
where
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,
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:
The general form of the formula to prove the differential line element, is
that is, the change in is decomposed into individual changes corresponding to changes in the individual coordinates.
To apply this to the present case, one needs to calculate how changes with each of the coordinates. In the conventions used,
Thus,
The desired coefficients are the magnitudes of these vectors:
The surface element spanning from to and to on a spherical surface at radius is then
Thus the differential solid angle is
The surface element in a surface of polar angle constant is
The surface element in a surface of azimuth constant is
The volume element spanning from to, to, and to is specified by the determinant of the Jacobian matrix of partial derivatives,
namely
Thus, for example, a function can be integrated over every point in by the triple integral
The del operator in this system leads to the following expressions for the gradient and Laplacian for scalar fields,
And it leads to the following expressions for the divergence and curl of vector fields,
Further, the inverse Jacobian in Cartesian coordinates is
The metric tensor in the spherical coordinate system is.
Distance in spherical coordinates
In spherical coordinates, given two points with being the azimuthal coordinateThe distance between the two points can be expressed as
Kinematics
In spherical coordinates, the position of a point or particle can be written asIts velocity is then
and its acceleration is
The angular momentum is
Where 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,
The torque is given as
The kinetic energy is given as