Skip to content

2. Coordinate systems

The lecture on coordinate systems consists of 3 parts, each with their own video:

Total video length: 35 minutes and 13 seconds

2.1. Introduction to coordinate systems: Cartesian and polar

Cartesian coordinates

The most common coordinates are Cartesian coordinates, where we use a number of perpendicular axes. The coordinates corresponding to these axes are where .

Cartesian coordinates are simple to describe and operate on. The coordinate axes are straight lines perpendicular to each other. It is therefore very easy to do calculations in Cartesian coordinates. For example, the distance between two points and can be quickly computed using a general formula for n-dimensions:

(A space with such a distance definition is called an Euclidean space.)

In mathematics, we are often dealing with so-called infinitesimally small distances, for example in the definition of derivatives and integrals. In Cartesian coordinates, the expressions for infinitesimal distances and infinitesimal volumes are given as:

Infinitesimal segment and volume elements in n-dimensional Cartesian coordinates

The formula for also indicates that in Cartesian coordinates, the integral over a volume can be expressed as individual integrals over all coordinate directions:

Cartesian coordinates are used a lot and they are particularly suitable for infinite spaces or for rectangular volumes.

image

An example of a vector drawn in a 2D Cartesian plane

Polar coordinates

Definition

It often turns out that a change to a different type of coordinate system makes mathematics easier. For example, if you want to describe vibrations of a circular drum, polar coordinates become very convenient. These are defined for a two-dimensional space (a plane). The position on this plane is characterised by two coordinates: the distance between the point and the origin, and by the angle () between the line connecting the point to the origin and the -axis. The radius is therefore always a non-negative number , and the range for the polar angle is

Note that each Cartesian coordinate has a dimension of length. In polar coordinates, the radius has a dimension of length, but the angular coordinate is dimensionless.

polarplot

In this example of a polar plot, you can distinguish the radial coordinate $( 0.2, 0.4, \text{ etc.. })$ from the angular one expressed in degrees $( 0^\circ, 45^\circ, \text{ etc..} )$

The plot below shows a point on a curve with the polar coordinates indicated. From this, we can see that the Cartesian coordinates of the point are related to the polar ones as follows:

image

The inverse relation

Inverse relation between polar and Cartesian coordinate systems

The last formula for warrants a closer explanation: It is easy to see that , but this is not a unique relation, due to the fact that the has different branches. Convince yourself that the expression above is correct for all the four sectors!

Distances and areas

Now suppose we want to calculate the distance between two points, one with polar coordinates , and the other with . This looks like a difficult exercise. One possible way to perform this is by translating the polar coordinates into Cartesian coordinates and using the expression given above for this distance: so which is not a very convenient expression.

If we consider two points which are very close, the analysis simplifies however. We can use the geometry of the problem to find the distance (see the figure below).

image

When going from point 1 to point 2, we first traverse a small circular arc of radius and then we move a small distance radially outward from to . Provided the difference between the angles and is (very) small, these paths are approximately perpendicular and we can use Pythagoras’ theorem to find the distance . Note that the arc is approximately straight – it has a length , where . So we have:

We can use the same arguments also for the area: since the different segments are approximately perpendicular, we find the area by simply multiplying them:

Infinitesimal surface element in polar coordinates

This is an important formula to remember for integrating in polar coordinates! The extra that appears here can be intuitively understood: the area swept by an angle difference increases as we move further away from the origin.

Example: Integrating over a circular area

To check the area element we just derived, let us compute a simple integral. We compute the integral over a circle with radius with a very simple function that equals to . In this case, we expect to get as a result the are of the region we integrate over.

We find:

which is indeed the area of a circle with radius .

2.2. Converting derivatives between coordinate systems

Important equations in physics often involve derivatives given in terms of Cartesian coordinates. One prominent example are equations of the form The derivative operator is so common it has its own name: the Laplacian (here for two-dimensional space).

This equation is universal, but for particular situations it might be advantageous to use a different coordinate system, such as polar coordinates for a system with rotational symmetry. The question then is: How does the corresponding equation look like in a different coordinate system?

There are different ways to find the answer. Here, we will focus on directly deriving the transformed equation through an explicit calculation involving the chain rule for a function of several variables.

Chain rule for a multi-variable function

Let be a function of variables: , as well as for . Then

We start by replacing the function by a function in polar coordinates , and ask what is . When we look at this expression, we need to understand what it means to take the derivative of a function of in terms of ?

For this, we need to realize that there are relations between the coordinate systems. In particular, and as defined in equations of the inverse relations. In fact, we have been rather sloppy in our notation above, as the functions and do not mean that I substitute and ! It is more precise to state that there are two diferent functions and that are equivalent, in the sense that

In physics, we usually never write this down explicitly, but we are aware that these are two different functions from the fact that they use different coordinates.

With this information, we can now apply the chain rule:

and it is now a matter of (tedious) calculus to arrive at the right result. This is the task of exercises 3 and 4, which lead you to compute the Laplacian in polar coordinates.

Inverse function theorem

In this calculation, one might be tempted to use the inverse function theorem to compute derivatives like from the much simpler . However, note that here we are dealing with functions depending on several variables, so an appropriate Jacobian has to be used (see Wikipedia). A direct calculation is in this particular case considerably easier.

Note that this procedure also applies to transformations to other coordinate systems, although the calculations can become quite tedious. In conventional cases, it is usually advised to look up the correct form.

2.3. Coordinate systems in 3D

Cylindrical coordinates

Three dimensional systems may have axial symmetry. An example is an electrically charged wire of which we would like to calculate the electric field, or a current-carrying wire for which we would like to calculate the magnetic field. For such problems, the most convenient coordinates are cylindrical coordinates. For a further convenience, we choose the symmetry-axis as the -axis. Note that this allowed, because we may choose the coordinate system ourselves - it is not imposed by the problem.

Cylindrical coordinates are defined straightforwardly: we use polar coordinates and in the plane, and the distance along the symmetry-axis as the third coordinate. The radius is therefore again always defined as a non-negative number , and the range for the azimuthal angle is analogically . The height along the cylinder axis can take any real value, hence . If the axis system is chosen in physical space, we have two coordinates which have the dimension of a distance: and . The other coordinate, is of course dimensionless.

What is the distance traveled along a path when we express this in cylindrical coordinates? Let’s consider an example shown in the figure below.

image

We want to find the length of the (small) red segment . By inspecting the figure, we see that the horizontal (i.e. parallel to the -plane) segment is perpendicular to the vertical segment . Using for the length we obtained before for a line segment in the plane expressed in polar coordinates, we immediately find: The volume element is consequently given as:

Infinitesimal volume element in cylindrical coordinates

Spherical coordinates

For problems with spherical symmetry, we use spherical coordinates. These work as follows. For a point in 3D space, we can specify the position of that point by specifying its (1) distance to the origin and (2) the direction of the line connecting the origin to our point. The specification of this direction can be identified with a point on a sphere which is centered at the origin:

image

The position of a point on the sphere is specified using the radius $r$ and two angles (azimuthal) $\varphi$ and (polar) $\theta$ in the given order

Parameter ranges in spherical coordinates

  • The radius () is defined for
  • The azimuthal angle () has the range of
  • The polar angle () has the range

Warning

In mathematics, the angles are often labeled the other way around: there, is used for the angle between a line running from the origin to the point of interest and the -axis, and for the angle of the projection of that line with the -axis. The convention used here is customary in physics.

The relation between Cartesian and spherical coordinates is defined by:

The relation between Cartesian and spherical coordinates

The inverse transformation is easy to find:

The inverse relation between Cartesian and spherical coordinates

These relations can be derived from the following figure:

image

The distance related to a change in the spherical coordinates is calculated using Pythagoras’ theorem. The length of a short segment on the sphere with radius corresponding to the changes in the polar angles of and is given as In order to verify this, it is important to realize that all points with the same coordinate span a circle in a horizontal plane with a radius as shown in the figure below.

From this, we can also infer that for a segment with a radial component in addition to the displacement on the surface of the sphere, the combined displacement is:

The picture below shows the geometry behind the calculation of this displacement.

image

From these arguments we can again also find the volume element, it is here given as

Infinitesimal volume element in spherical coordinates

2.4. Summary

We have discussed four different coordinate systems:

  1. Cartesian coordinates

    This systems can be used for any dimension . It is particularly convenient for: infinite spaces, systems with rectangular symmetry. Distance between two points and :
  2. Polar coordinates

    This system can be used in two dimensions. It is particularly suitable for systems with circular symmetry or functions given in terms of these coordinates.
    Infinitesimal distance: Infinitesimal area:

  3. Cylindrical coordinates

    This system can be used in three dimensions. It is particularly suitable for systems with axial symmetry or functions given in terms of these coordinates.
    Infinitesimal distance: Infinitesimal volume:

  4. Spherical coordinates

    This system can be used in three dimensions. It is particularly suitable for systems with spherical symmetry or functions given in terms of these coordinates.
    Infinitesimal distance: Infinitesimal volume:

2.5. Problems

  1. [😀] Warm-up

    1. Find the polar coordinates of the point with Cartesian coordinates

    2. Find the cylindrical coordinates of the point with Cartesian coordinates

    3. Find the spherical coordinates of the points

  2. [😀] Geometry and different coordinate systems

    What geometric objects do the following boundary conditions describe?

    1. in cylindrical coordinates,
    2. in cylindrical coordinates,
    3. in spherical coordinates,
    4. in spherical coordinates,
    5. and in spherical coordinates,
    6. and in spherical coordinates.
  3. [😏] Partial derivatives

    (a) Consider the function defined using spherical coordinates. Compute .

    (b) Now let us consider a function defined using cylindrical coordinates as (i.e.~very similar to the previous question). Compute again .

  4. [😏] Chain rule practice

    From the transformation from polar to Cartesian coordinates, show that and (Use the chain rule for differentiation).

  5. [😓] Laplace operator in spherical coordinates

    Using the result of problem 4, show that the Laplace operator acting on a function in polar coordinates takes the form

    In a similar fashion it can be shown that for spherical coordinates, the Laplace operator acting on a function becomes: This is however even more tedious (you do not have to show this).

  6. [😀] Integration and coordinates I

    We define in polar coordinates. Explain how a circular region, centered at the origin and with radius , can be described using polar coordinates. Then compute the integral of over this region.

  7. [😀] Integration and coordinates II

    Compute the area of the spherical cap defined by and .

  8. [😏] Integration and coordinates III

    In 2D, we can define a shape by specifying a function :

    image

    (Of course, here we need to have .)

    Show that the area of this shape is given by