Spherical Coordinates
Try to compute the electric field of a charged ball in Cartesian coordinates and you will fight the geometry in every line: the charge sits in a sphere, the field points radially, and yet every integral wants to talk about , , and . The lesson of this article is that coordinates are not neutral bookkeeping — they are a choice of language, and physics is dramatically easier in a language whose grid lines follow the symmetry of the problem. For anything round — point charges, atoms, planets, radiating antennas — that language is spherical coordinates : distance from the origin, polar angle down from the -axis, azimuthal angle around it. The price of the new language is modest but real, and paying it carefully now saves an entire track of confusion. The unit vectors are no longer fixed arrows: they swing around as you move from point to point, which changes how derivatives work. And displacements are not " in the direction" — sweeping the angle moves you an arc length . Those stretch factors, , , and , are the DNA of everything here: they build the volume element , the gradient, the divergence, and the Laplacian. Master this machinery and the payoff is immediate: the Coulomb field becomes the simplest object in the theory, Gauss's law becomes one-line algebra, and — a few tiers from now — the hydrogen atom separates into pieces you can actually solve.
- Spherical coordinates locate a point by : distance from the origin , polar angle measured from the axis, azimuth around it; , , .
- The unit vectors form a right-handed orthonormal triad at each point — but they rotate as the point moves, so vector components cannot be differentiated or integrated as if they were constants.
- Displacements carry stretch factors: ; the factors generate the volume element and the spherical surface element .
- Gradient, divergence, curl, and Laplacian all pick up these factors; the divergence's structure is why is divergence-free away from the origin.
- Spherical coordinates own every problem with a natural centre: Coulomb fields, multipoles, hydrogen, antennas, planets.
- Key idea: measure position by distance from a centre and two angles, and let the stretch factors 1, r, r sin θ convert angle sweeps into real lengths — everything else (volume elements, gradients, divergences) follows from those three factors.
Measure position by a radius and two angles; the stretch factors convert coordinate sweeps into real displacements, and every differential operator and integration element in spherical coordinates is assembled from them.
Where this lives today
Every satellite fix you have ever taken is a spherical-coordinate computation: GPS receivers convert ranges to satellites into latitude, longitude, and altitude — , , and with the reference shifted — and global weather and climate models integrate their dynamics on exactly the grid of this article, complete with the pole problems the limiting-cases table warned about (modern codes often swap to cubed-sphere grids precisely to dodge the singularity). At the research frontier the coordinates live inside the harmonics they generate. Maps of the cosmic microwave background are decomposed into spherical harmonics — the angular power spectrum that cosmology's precision parameters are read from is literally a list of coefficients in this coordinate system. Antenna engineers publish radiation patterns as functions of ; nuclear and atomic physics label states by the and of these same harmonics; and gravitational-wave astronomers reconstruct sky positions of black-hole mergers on the celestial sphere. Anything that radiates from a centre reports for duty in spherical coordinates.
The physical picture
You already use spherical coordinates every day: latitude and longitude are and in thin disguise (latitude is measured from the equator rather than the pole), and altitude is minus the Earth's radius. A point in space is fixed by answering three questions: how far from the centre? (), how far down from the north pole? (), and how far around? ().
The crucial mental adjustment concerns lengths. Change by and you move a distance — fine. But change by and you swing along an arc of radius : the distance moved is . Change by and you swing around a circle whose radius is not but — the distance from the axis, which shrinks to zero at the poles (walk "one degree east" a metre from the North Pole and you have barely moved). These three stretch factors are worth memorizing as a chant — one, , sine theta — because every formula in this article is built from them.
Multiply the three edges of the little curvilinear brick and you get the single most important integration fact of this coordinate system: . That — the Jacobian — is geometry, not convention: bricks far from the origin are fatter, and bricks near the poles are thinner. Forget it once in an exam and every subsequent line is wrong; understand where it comes from and you will never forget it.
The dictionary between Cartesian and spherical
The coordinate transformation itself is read off the hero figure: project the radius onto the axis and onto the equatorial plane, then resolve the projection by the azimuth. The result, together with its inverse, is
where: , , (quadrant-corrected). The restricted range of is not pedantry: polar angle plus azimuth already reach every direction once, and letting run beyond would count each point twice. Each coordinate grows its own unit vector, pointing in the direction that coordinate increases with the other two held fixed. Differentiating (1) and normalizing gives the explicit triad:
where: completes the right-handed set . Look at what (2) is telling you: every unit vector is a function of position. The position vector itself collapses to the deceptively simple — all the angular information hides inside . This position-dependence of the basis is the single most fertile source of errors in the subject, and the warning box below is devoted to it. The general displacement — the master formula from which all else follows — collects the three stretch factors:
where: each term is (stretch factor) × (coordinate change) × (direction). From (3): the volume element (product of the three edges), and the outward surface element on a sphere of radius , (product of the two tangential edges). Integrating the angular part over all directions gives — the full solid angle, and the ancestor of every in electromagnetism.
The goal is equation (3) and its offspring — the area and volume elements — derived from nothing but arc-length geometry, so that the Jacobian is something you can reconstruct rather than memorize. The strategy: hold two coordinates fixed, vary the third infinitesimally, and measure how far the point actually travels; then assemble the three mutually perpendicular displacements into a box. The step to watch is the sweep — its radius is the distance to the axis, not to the origin, and that is where the enters.
Step 1. Vary alone: the point slides radially outward a distance . Stretch factor .
Step 2. Vary alone: the point swings along a meridian — a circle of radius centred at the origin. Arc length equals radius times angle: . Stretch factor . Why the radius is : the meridian circle passes through the point and is centred on the origin, so its radius is the full distance .
Step 3. Vary alone: the point swings around the -axis on a circle of latitude. That circle's radius is the perpendicular distance to the axis, — read it off the hero figure's dashed projection. Arc length: . Stretch factor . Why and not anything else: at the equator () the latitude circle is as big as the meridian, while at the poles () it collapses to a point — exactly the behaviour of .
Step 4. The three displacements are mutually perpendicular (each unit vector is orthogonal to the others), so a general infinitesimal move is their vector sum — equation (3) — and the volume they span is the product of the edges:
Step 5. Sanity-check on the simplest solid: the volume of a ball of radius is — correct. Holding fixed instead gives the sphere's surface element and total area . Verified: reproduces Griffiths §1.4.1; the ball volume and sphere area come out exactly, confirming both stretch factors and the orthogonality of the triad.
The differential operators, honestly
Because coordinate sweeps are not unit-length moves, the del operator must divide each derivative by its stretch factor. The gradient — "rate of change per unit length in each direction" — reads
where: each converts "per radian" into "per metre". Apply it to the workhorse : only the radial term survives, — the mathematical spine of the Coulomb field, obtained in one line where Cartesian coordinates would demand a page. The divergence and curl inherit the stretch factors in a subtler pattern — derivatives act on the products of the field components with the transverse stretch factors:
where: the inside the radial derivative is the area factor of the spherical cell's inner and outer faces — the derivation below shows it appearing with no choice in the matter. Equation (5) is the formula that makes electrostatics tick: feed it and the radial term reads — the Coulomb field is divergence-free everywhere except the origin, the fact whose delta-function resolution is the punchline of this chapter. The Laplacian is (5) applied to (4), and the curl follows the same scale-factor logic; both are catalogued in the cheat sheet, and the general machine that generates all of them at once is the subject of the curvilinear-coordinates article.
Go deeper · Derivation B · 1 minThe spherical divergence from the flux out of a curvilinear cell
The goal is the radial part of equation (5) — in particular, why appears inside the derivative — derived from the coordinate-free definition of divergence: flux out per unit volume, applied to the little brick of the second figure. The strategy is identical to the Cartesian cell computation in the divergence-theorem article, with one crucial difference to watch: opposite faces of a spherical brick have different areas, so the flux difference picks up derivatives of the geometry as well as of the field.
Step 1. Take the cell spanning . Its inner and outer spherical faces have areas and . Why they differ: the outer face sits farther out, where the same angular sweep spans more area — this never happens for a Cartesian box.
Step 2. The net radial flux is outflow minus inflow, both field and area varying:
Why the product rule is the physics here: even a constant pushes net flux out of the cell, because the outer face is bigger — that is the piece, and it is exactly what cancels the of a Coulomb field.
Step 3. Divide by the cell volume : the radial contribution to flux-per-volume is — the first term of (5).
Step 4. The faces play the same game with area factor (a cap-side face nearer the pole is smaller), producing ; the faces are congruent, so enters undressed as . Assembling the three gives equation (5).
Step 5. The payoff check: for , and every term vanishes for — yet the flux through any sphere is . The divergence hides at the origin, where this derivation's smoothness assumptions fail; the three-dimensional delta function article resolves the standoff. Verified: matches Griffiths §1.4.1 and Jackson's inside-cover formulas; setting , gives , agreeing with from the Cartesian computation.
Which formula answers which question
| you want | use | notes |
|---|---|---|
| convert a point or field to spherical | equation (1) and (2) | mind the quadrant of |
| any length, area, or volume element | equation (3) | multiply the edges you sweep |
| all-directions integral | the solid-angle normalizer | |
| slope of a scalar field | equation (4) | divide by the stretch factors |
| sources of a vector field | equation (5) | note inside the derivative |
| radial fields | one term; the E&M special case |
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| on the -axis () | is undefined on the axis — a coordinate singularity, not a physical one | |
| at the origin () | both angles lose meaning; fields regular at the origin must have vanishing angular structure there | |
| equatorial plane () | spherical reduces to plane-polar coordinates | |
| radial field | , | central fields are curl-free; divergence controlled by |
| for | the Coulomb paradox — resolved by | |
| small patch far from origin | elements Cartesian | locally, is just an orthogonal box |
Worked examples
1 · Total charge of a ball with radially growing density (confidence builder)
A solid ball of radius carries charge density with . Find the total charge.
Step 1. Set up with the spherical volume element. The density depends only on , so the angular integrals give the full solid angle at once: .
Step 2. Radial integral: , so .
Step 3. Numbers: .
Step 4. Sanity checks: the answer is of the uniform-density value — sensible, since this density is depleted near the centre; and the units work because carried the full .
2 · How much of the Earth lies above the Arctic Circle? (exam level)
Treat the Earth as a sphere of radius . Find the area of the polar cap north of latitude (i.e. from to ), its fraction of the total surface, and the solid angle it subtends at the centre.
Step 1. The cap area uses the spherical surface element : .
Step 2. Numbers: ; ; so — about 67 times the area of India.
Step 3. Fraction of the globe: . Note the elegance: the fraction depends only on , which is why (not ) is the "uniform" variable on a sphere — a fact that will resurface in every angular integral of this track.
Step 4. Solid angle: , out of the total — the same , as it must be, since solid angle is area at unit radius.
Step 5. Limiting checks: gives , the whole sphere; gives , a flat disk of radius — the curved formula knows about flat geometry in the small-angle limit.
Origins · 1 minLeonhard Euler and how this was discovered
Euler wrote roughly a third of the eighteenth century's mathematics and physics, and the analytic machinery of coordinates is his everywhere. Where earlier geometers treated angles on a sphere case by case, Euler made them variables — objects to differentiate, integrate, and change at will. His rigid-body theory introduced the angle triples that still parametrize every satellite's attitude; his fluid equations were the first field theory written in coordinates; his work on the "curvilinear" description of surfaces seeded what became scale factors and, ultimately, differential geometry. He computed through blindness for his last seventeen years, dictating to assistants — the joke in St. Petersburg was that he calculated as other men breathe. When you sweep and write without ceremony, you are speaking a language Euler standardized.
Going further
References. Griffiths, Introduction to Electrodynamics, 4th ed., §1.4 (curvilinear coordinates) · Jackson, Classical Electrodynamics, 3rd ed., front-cover formulas and §3.1 · Purcell & Morin, Electricity and Magnetism, 3rd ed., Appendix F · Zangwill, Modern Electrodynamics, Appendix on curvilinear coordinates · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 3
Provenance. All conversion relations, basis vectors, and operator formulas are standard and may be verified against Griffiths §1.4, Jackson's inside-cover formula sheet, and Arfken Ch. 3. A verifier should recompute: (1) the basis-vector derivatives by differentiating the Cartesian expressions; (2) for ; (3) ; (4) the sphere-volume integral yielding and angular total . Constant appears only in physical examples and is the standard SI Coulomb constant. Worked-example numbers on this page ( nC for ; cap area , fraction , solid angle sr) are illustrative arithmetic recomputed from the boxed formulas.
Builds on: Scalar and Vector Fields · The Del Operator (Nabla) · The Gradient Operator Leads to: Second Derivatives and the Laplacian · Volume Integrals · The Divergence (Gauss) Theorem
How do I remember which angle is θ and which is φ — and is it true that mathematicians swap them?
In the physics convention (used by Griffiths, Jackson, and this entire track) θ is the polar angle, measured down from the +z axis, and φ is the azimuthal angle around the axis. Most mathematics textbooks — and some software libraries — swap the letters. The safe habit is to anchor the meaning, not the letter: the angle appearing inside the volume-element sine is always the polar one ( here), and the angle with the range is always the azimuth. When using unfamiliar software (or reading a math text), check the volume element or one worked integral before trusting any formula; a silent convention swap produces answers that are wrong by factors like everywhere.
When should I choose spherical over cylindrical or Cartesian coordinates?
Match the grid to the symmetry of the sources and boundaries, not to personal comfort. A natural centre point — point charge, atom, star, radiating antenna — calls for spherical: the field will depend on few coordinates and the boundary conditions sit on coordinate surfaces (spheres). A natural axis — wire, cylinder, solenoid, beam — calls for cylindrical. No symmetry at all, or rectangular boundaries, calls for Cartesian. The payoff of the right choice is not cosmetic: in the sphere-of-charge example the entire angular integration collapsed to in one line. Choosing the wrong system rarely makes a problem impossible — just three pages longer, with the same answer.
The stretch factor for φ vanishes at the poles. Is something physically wrong there?
Nothing physical — the sphere is perfectly smooth at its poles — but the coordinates degenerate there: on the axis, every value of φ labels the same point, so φ simply stops being a good coordinate. This is called a coordinate singularity, and it has real consequences for anyone computing: formulas with blow up numerically near the axis even when the physics is finite, which is why global climate models suffer the "pole problem" and often switch to grids without one. The test for whether a singularity is physical or coordinate-made: compute an invariant quantity (field magnitude, energy density). If it stays finite, only your labels misbehaved.
Why is the position vector just r r-hat, with no θ or φ terms?
Because is defined as the unit vector pointing from the origin to your location — so the arrow from the origin to you is, by construction, its length times that direction. The angular information has not vanished; it is packed inside , which by equation (2) depends on both angles. The subtlety erupts the moment you differentiate: , and that second term — the moving basis — regenerates precisely the of the displacement formula. Compact notation, live ammunition.
Where does the ubiquitous 4π of electromagnetism actually come from?
It is the total solid angle of the sphere: steradians, the "all directions" normalizer. Every time a point source spreads its influence democratically over all directions, a appears: the in the inverse-square law's dilution, the flux of , the of Coulomb's constant (placed there so that later, cleaner equations shed their s), and the of the point-source identity. When a surprises you in this track, trace it back — it is almost always this angular integral in disguise.
Can I integrate the r-component of a vector field over a surface and call the result the r-component of the total?
No — and this error looks so reasonable that graders see it every year. "The total vector's r-component" is not even well-defined: points in different directions at different patches, so there is no single "r-direction" for the total to have a component along. The legal procedure: expand the field's spherical components into Cartesian ones using equation (2) (Cartesian unit vectors hold still), integrate each Cartesian component separately, and reassemble. Symmetry often rescues you — for a hemisphere's force, the x and y integrals vanish by azimuthal symmetry and only the z-integral survives — but that shortcut must be derived from the Cartesian decomposition, not assumed.
Do I need to memorize the divergence, curl, and Laplacian formulas in spherical coordinates?
Memorize the three stretch factors and the shape of the formulas; look up or re-derive the rest. Every exam-critical structure follows from the factors: the volume element is their product; the gradient divides by them; the divergence puts the transverse factors inside the derivative ( with the radial term, with the polar term). The one formula worth having cold is the radial-field divergence , because electrostatics runs on it. The curvilinear-coordinates article gives the master formulas that generate all of these mechanically from the -factors — that machine, once understood, replaces a page of memorization.