Section 2.3 · Topic 6 of 11

2.3.6 Spherical coordinates

Interactive: Coordinate Systems in 3-D

Cartesian coordinates are perfect for boxes and planes, and the cylindrical coordinates of Section 2.3.4 are perfect for wires and pipes. Many of the most important problems of electromagnetics, however, are organised around a single point: the field of a point charge, of a charged sphere, of a small antenna seen from far away. In such problems the natural questions are "how far from the centre?" and "in which direction?". Spherical coordinates answer exactly these two questions.

You already use spherical coordinates whenever you look at a map. A place on the Earth is given by two angles, its latitude (how far north or south of the equator) and its longitude (how far east or west of a reference meridian). Together with the distance from the centre of the Earth, these two angles fix the point completely. Spherical coordinates are the same idea, with two small changes of convention that we explain below (Figure 2.3.16).

We build the spherical system in the same way as the cylindrical one: coordinates, position vector, unit vectors and scale factors, and differential elements. We then compare the three systems of the course, learn to convert vector components between them, and finally use the new elements to compute areas, volumes and fluxes over spheres.

Definition of the coordinates

A point in space is located by three numbers , see Figure 2.3.18(a):

  • the radial distance is the distance from the origin O to P, ,
  • the polar angle (zenith angle) is the angle between the positive axis and the line OP, , and
  • the azimuthal angle is the angle, measured in the -plane from the positive axis towards the positive axis, between the axis and the projection of OP onto the -plane, . It is the same angle as in cylindrical coordinates.

Note the ranges carefully: sweeps a full turn, but only runs from the "north pole" () to the "south pole" (). This is enough: once we know how far down from the north pole the point is () and on which side of the axis it lies (), every direction has been reached exactly once.

Spherical coordinates as “geographic” coordinates. The parallels (circles of constant latitude) are the curves \theta=\text{const}, the meridians are the half circles \phi=\text{const}. The polar angle \theta is measured from the north pole, so it is the colatitude, \theta=90^\circ-\text{latitude}. The azimuth \phi plays the role of the longitude, measured eastwards from the reference meridian from 0 to 360^\circ. A place at 40^\circ\,N, 30^\circ\,E has \theta=50^\circ, \phi=30^\circ, and the radial distance r is the distance from the centre of the globe.
Figure 2.3.16. Spherical coordinates as “geographic” coordinates. The parallels (circles of constant latitude) are the curves , the meridians are the half circles . The polar angle is measured from the north pole, so it is the colatitude, . The azimuth plays the role of the longitude, measured eastwards from the reference meridian from to . A place at N, E has , , and the radial distance is the distance from the centre of the globe.

The geographic picture

Figure 2.3.16 makes the analogy with the globe precise. Geographers measure the latitude from the equator (from S to N), whereas we measure from the north pole, from to , so for points in the northern hemisphere and in the southern one. Geographers measure the longitude from to east or west, while we measure eastwards only, from to (in radians ). A circle of latitude (a parallel) is a curve on which is constant, and a meridian is a half circle from pole to pole on which is constant. We shall use the words "parallel" and "meridian" in exactly this sense.

Common mistake

Letting run from to . Every point would then be covered twice (once with and once "from the other side" with ), and surface and volume integrals come out wrong: since for , the second half cancels the first (for example would give a sphere zero area), and with everything would be counted twice. The correct ranges are and .

Coordinate surfaces

Each coordinate, held constant, defines a coordinate surface (Figures 2.3.17 and 2.3.18(b)):

  • is a sphere centred at the origin,
  • is a circular cone with its apex at the origin and the axis as its axis (for the cone opens up into the -plane, and for it opens downwards), and
  • is a half-plane hinged on the axis.

The point P is the single common point of one sphere, one cone and one half-plane. These three surfaces meet at right angles to each other at every point, which is why the spherical system, like the Cartesian and the cylindrical ones, is an orthogonal coordinate system. The intersection of two coordinate surfaces is a coordinate curve: the sphere and the cone meet in a parallel (along which only varies), the sphere and the half-plane in a meridian (only varies), and the cone and the half-plane in a ray from the origin (only varies).

(a) r=\text{const}: a sphere
Figure 2.3.17. (a) : a sphere
(b) \theta=\text{const}: a cone
(b) : a cone
(c) \phi=\text{const}: a half-plane. The three spherical coordinate surfaces, one at a time. Holding r fixed and varying the two angles sweeps out a sphere. Holding \theta fixed and varying r and \phi sweeps out a cone around the z axis, and holding \phi fixed and varying r and \theta sweeps out a half-plane that ends on the z axis (like a page of a half-open book). The point P lies on one surface of each kind.
(c) : a half-plane. The three spherical coordinate surfaces, one at a time. Holding fixed and varying the two angles sweeps out a sphere. Holding fixed and varying and sweeps out a cone around the axis, and holding fixed and varying and sweeps out a half-plane that ends on the axis (like a page of a half-open book). The point P lies on one surface of each kind.
Spherical coordinates. (a) The point \mathrm P(r,\theta,\phi), its position vector \vec r, the polar angle \theta measured from the z axis, the azimuthal angle \phi measured in the xy-plane from the x axis, and the three unit vectors \vec a_r,\vec a_\theta,\vec a_\phi attached to P. The projection of \vec r onto the xy-plane has length r\sin\theta.
Figure 2.3.18. Spherical coordinates. (a) The point , its position vector , the polar angle measured from the axis, the azimuthal angle measured in the -plane from the axis, and the three unit vectors attached to P. The projection of onto the -plane has length .
(b) The three coordinate surfaces through P, now together: the sphere r=\text{const}, the cone \theta=\text{const} and the half-plane \phi=\text{const}. P is their only common point.
(b) The three coordinate surfaces through P, now together: the sphere , the cone and the half-plane . P is their only common point.
InteractiveLoading simulation…

Drag , and and watch the sphere, the cone and the half-plane through P move, and see how the three unit vectors , , turn with the point while staying mutually perpendicular.

Quick check

Which surfaces are described by (i) , (ii) , (iii) , (iv) , (v) ?

(i) The -plane (the "cone" has opened up flat). (ii) A cone with half-angle opening upwards around the axis. (iii) A cone with half-angle opening downwards around the axis. (iv) The half-plane , (the right half of the -plane). (v) The sphere of radius centred at the origin.

Position vector and the relations with Cartesian coordinates

To relate to we project the position vector of P (length ) twice, as shown in Figure 2.3.19.

  1. In the vertical half-plane that contains P (panel a), the projection of onto the axis is , and its projection onto the -plane has length . This horizontal length is precisely the cylindrical radial distance of Section 2.3.4.
  2. In the -plane (panel b), the horizontal projection of length makes the angle with the axis, so it splits into along and along .

Hence

and the position vector of P reads

Finding the Cartesian coordinates of P in two projections. (a) The half-plane \phi=\text{const} through P: the vector \vec r of length r splits into a vertical part z=r\cos\theta and a horizontal part of length r\sin\theta (which is the cylindrical \rho).
Figure 2.3.19. Finding the Cartesian coordinates of P in two projections. (a) The half-plane through P: the vector of length splits into a vertical part and a horizontal part of length (which is the cylindrical ).
(b) The xy-plane seen from above: the horizontal part splits again into x=r\sin\theta\cos\phi and y=r\sin\theta\sin\phi.
(b) The -plane seen from above: the horizontal part splits again into and .

Inverting Eq. (2.3.30),

The first relation is Pythagoras' theorem in three dimensions. The arccos function returns values in , which is exactly the range of , so the polar angle is uniquely fixed by . For the azimuth this is not so: alone cannot distinguish from , and alone cannot distinguish from . The azimuth is the angle whose cosine and sine are given by Eq. (2.3.32). Equivalently, with the quadrant chosen according to the signs of and . Since , these are the same relations as for the cylindrical . On the axis () the azimuth is undefined, just as is undefined at the origin. Such exceptional points are harmless in integrals.

Common mistake

Computing the azimuth as with a calculator and stopping there. The calculator returns an angle between and , which is wrong whenever . Always look at the signs of and to decide the quadrant (or use the two-argument function atan2(y,x)).

Quick check

Find the spherical coordinates of the point .

and . Then , so and , i.e. (, second quadrant). The calculator value points into the wrong quadrant.

Remark

The magnitude of is the coordinate , which is why the same letter is used. Do not confuse the spherical (distance from the origin) with the cylindrical (distance from the axis): , and the two coincide only in the -plane.

Unit vectors and scale factors

In Section 2.3.2 we learnt the recipe that produces the unit vectors and the scale factors of any orthogonal coordinate system : differentiate the position vector with respect to one coordinate while keeping the other two fixed,

The vector is tangent to the curve traced out by P when only changes. Its direction is the unit vector , and its length tells us how many metres P moves per unit change of . Let us apply the recipe to Eq. (2.3.31), one coordinate at a time.

Radial direction

Only changes, so we differentiate Eq. (2.3.31) with and held fixed:

Increasing moves P straight away from the origin, one metre per metre: .

Polar direction

Only changes:

Increasing moves P "southwards" along a meridian, a circle of radius , so a change (in radians) is an arc of length , hence .

Azimuthal direction

Only changes:

Increasing moves P "eastwards" along a parallel (a circle of latitude) whose radius is the distance from the axis. Hence (recall that for ).

Spherical unit vectors and scale factors
What the scale factors mean. (a) Increasing \theta moves P along its meridian, a circle of radius r centred at O, whereas increasing \phi moves P along its parallel, a smaller circle of radius r\sin\theta centred on the z axis. A change of one radian therefore moves P by r metres in the first case and by r\sin\theta metres in the second.
Figure 2.3.20. What the scale factors mean. (a) Increasing moves P along its meridian, a circle of radius centred at O, whereas increasing moves P along its parallel, a smaller circle of radius centred on the axis. A change of one radian therefore moves P by metres in the first case and by metres in the second.
(b) In the meridian half-plane: the step dr along the ray and the arc r\,d\theta along the meridian. The scale factor of a coordinate is the radius of the circle along which that coordinate moves the point (or 1 if the coordinate is itself a length).
(b) In the meridian half-plane: the step along the ray and the arc along the meridian. The scale factor of a coordinate is the radius of the circle along which that coordinate moves the point (or if the coordinate is itself a length).
In plain words

A scale factor converts "how much did the coordinate change" into "how many metres did the point move". The radial distance is already a length (). An angle is not: one radian of is an arc of the meridian, which has radius , but one radian of is an arc of the parallel, which has the smaller radius (Figure 2.3.20). Near the poles the parallels shrink to points, so changing there hardly moves P at all.

It is worth checking that these vectors really form an orthonormal, right-handed triple. Each has unit length by construction. Their mutual dot products vanish, e.g.

and similarly . A short computation of the cross product gives

so the order is right-handed, just like and . The order matters: in formulas such as the curl determinant of Section 2.3.10, the coordinates must always be listed as .

Comparing Eq. (2.3.34) with Eq. (2.3.31) we notice that : in spherical coordinates the position vector has a single component. The information about the direction of P, i.e. about and , is hidden inside the unit vector itself. This brings us to the most important practical difference between Cartesian and curvilinear coordinates.

Quick check

A point P has and . How far does P move if (i) increases by , (ii) increases by ? What happens to (ii) at the north pole?

(i) . (ii) . At the north pole : changing does not move the point at all, which is why is undefined there.

The unit vectors depend on position

The Cartesian unit vectors point the same way everywhere. The spherical unit vectors do not: at the north pole is , while on the positive axis is . On the globe, is "up" (towards the sky), is "south" and is "east". But "up", "south" and "east" in Ankara are different directions in space from "up", "south" and "east" in Tokyo. Figure 2.3.21 shows the triad at several points of a sphere, and Figure 2.3.22(a) shows and along one meridian. They turn as the point moves.

The spherical unit vectors at four points of a sphere (and \vec a_r=\vec a_z at the north pole). At every point the three vectors are mutually perpendicular: \vec a_r is normal to the sphere, \vec a_\theta is tangent to the meridian (pointing south) and \vec a_\phi is tangent to the parallel (pointing east). From point to point, however, the triad turns: the unit vectors are functions of \theta and \phi.
Figure 2.3.21. The spherical unit vectors at four points of a sphere (and at the north pole). At every point the three vectors are mutually perpendicular: is normal to the sphere, is tangent to the meridian (pointing south) and is tangent to the parallel (pointing east). From point to point, however, the triad turns: the unit vectors are functions of and .

Differentiating Eqs. (2.3.34) to (2.3.36) and re-expressing the results in the spherical unit vectors gives

For instance, : tilting the direction southwards turns "up" towards "south". None of the unit vectors changes along the radial direction (moving outwards along a ray does not turn anything), but all of them change with the angles.

Spherical unit vectors seen in a meridian half-plane \phi=\text{const} (horizontal axis: distance \rho from the z axis). (a) \vec a_r and \vec a_\theta at four points of a circle r=\text{const}: the pair rotates as the point moves, so the unit vectors are functions of position.
Figure 2.3.22. Spherical unit vectors seen in a meridian half-plane (horizontal axis: distance from the axis). (a) and at four points of a circle : the pair rotates as the point moves, so the unit vectors are functions of position.
(b) At a point P the spherical pair (\vec a_\theta,\vec a_r) is the cylindrical pair (\vec a_\rho,\vec a_z) rotated by the angle \theta, which is the content of the cylindrical to spherical transformation, Eq. (2.3.46).
(b) At a point P the spherical pair is the cylindrical pair rotated by the angle , which is the content of the cylindrical to spherical transformation, Eq. (2.3.46).

Two consequences will accompany us through the whole course.

  1. Differentiation. When we differentiate a vector field written in spherical (or cylindrical) components, the unit vectors must be differentiated too. This is why the operator formulas of Section 2.3.10 contain extra factors such as and : they are the fingerprints of Eq. (2.3.38).

  2. Integration. A unit vector such as may not be taken outside an integral over a region in which it changes direction. For example, integrating over a sphere of radius centred at the origin does not give (which would not even be well defined: at which point is that evaluated?). Writing in Cartesian form, Eq. (2.3.34), whose unit vectors are constant, and using (see Eq. (2.3.40) below),

    because and . Physically: the outward directions on opposite sides of the sphere cancel. The rule is simple. Before integrating a vector, convert its unit vectors to Cartesian ones. (Scalar integrands, such as a flux , have no such problem.)

Common mistake

Adding or integrating unit vectors that belong to different points as if they were the same vector, e.g. writing , or pulling , , (or , ) out of an integral. Only , , are the same everywhere.

Quick check

Write , and in Cartesian unit vectors at the point where the positive axis pierces a sphere (, ).

From Eqs. (2.3.34) to (2.3.36): , , . (Check: .)

Differential elements of length, surface and volume

With the scale factors at hand, the general formula of Section 2.3.2, , gives the differential length

Each term has the dimension of length: is a radial step, an arc along a meridian of radius , and an arc along a parallel of radius . The angles themselves are dimensionless, so it is the scale factors that carry the metres.

Let the three coordinates increase by , , . The point P then sweeps out the small "curved brick" of Figure 2.3.23, bounded by two spheres, two cones and two half-planes. Since the surfaces are mutually orthogonal, its edges , and are mutually perpendicular, and to first order the brick is a rectangular box. Its faces give the differential surface elements (the vector is normal to the face, with magnitude equal to its area):

where the sign is chosen according to the required orientation (for a closed surface: outwards). Each area is simply the product of the two edges that lie in that face: on the sphere the edges are and , and so on. The volume is the product of all three edges,

The factor is the Jacobian of the transformation, Eq. (2.3.30). It expresses two simple geometric facts: bricks of the same are larger far from the origin (factor ), and they are thinner near the poles, where the parallels shrink to a point (factor ). Figure 2.3.24 shows the second fact on a globe.

The differential volume element of spherical coordinates: the region between the spheres r and r+dr, the cones \theta and \theta+d\theta, and the half-planes \phi and \phi+d\phi. Its three mutually perpendicular edges are dr, r\,d\theta (an arc of a meridian) and r\sin\theta\,d\phi (an arc of a parallel of radius r\sin\theta), so dV=r^2\sin\theta\,dr\,d\theta\,d\phi. Each face is a surface element of Eq. (2.3.40). For example, the outer face has area r^2\sin\theta\,d\theta\,d\phi.
Figure 2.3.23. The differential volume element of spherical coordinates: the region between the spheres and , the cones and , and the half-planes and . Its three mutually perpendicular edges are , (an arc of a meridian) and (an arc of a parallel of radius ), so . Each face is a surface element of Eq. (2.3.40). For example, the outer face has area .
Two patches with the same coordinate ranges, \Delta\theta=15^\circ and \Delta\phi=30^\circ, on the same sphere. Both are equally tall (r\,\Delta\theta), but the patch near the pole is much narrower, because there the parallels have the small radius r\sin\theta. Their areas are in the ratio (\cos15^\circ-\cos30^\circ)/(\cos75^\circ-\cos90^\circ)\approx0.39. This is the factor \sin\theta in dS=r^2\sin\theta\,d\theta\,d\phi at work.
Figure 2.3.24. Two patches with the same coordinate ranges, and , on the same sphere. Both are equally tall (), but the patch near the pole is much narrower, because there the parallels have the small radius . Their areas are in the ratio . This is the factor in at work.
Common mistake

Forgetting the factor and writing "" (or "" on a sphere). Besides giving wrong numbers, such an element does not even have the units of a volume (or an area): and are dimensionless. A quick unit check catches this error every time.

Quick check

Which surface element do you need to find the area of the curved surface of a cone between its apex and the slant distance ? What is the area?

On the cone , so . This is the familiar .

← Back to Section 2.3 contents

Electromagnetic Fields and Waves · Prof. Gökhan Çınar© 2026 Gökhan Çınar. All rights reserved. Copyright