# 10.1: Coordinate Systems

• • Contributed by Marcia Levitus

The simplest coordinate system consists of coordinate axes oriented perpendicularly to each other. These coordinates are known as cartesian coordinates or rectangular coordinates, and you are already familiar with their two-dimensional and three-dimensional representation. In the plane, any point $$P$$ can be represented by two signed numbers, usually written as $$(x,y)$$, where the coordinate $$x$$ is the distance perpendicular to the $$x$$ axis, and the coordinate $$y$$ is the distance perpendicular to the $$y$$ axis (Figure $$\PageIndex{1}$$, left). In space, a point is represented by three signed numbers, usually written as $$(x,y,z)$$ (Figure $$\PageIndex{1}$$ , right).

Often, positions are represented by a vector, $$\vec{r}$$, shown in red in Figure $$\PageIndex{1}$$. In three dimensions, this vector can be expressed in terms of the coordinate values as $$\vec{r}=x\hat{i}+y\hat{j}+z\hat{k}$$, where $$\hat{i}=(1,0,0)$$, $$\hat{j}=(0,1,0)$$ and $$\hat{z}=(0,0,1)$$ are the so-called unit vectors. Figure $$\PageIndex{1}$$: Cartesian coordinates (CC BY-NC-SA; Marcia Levitus)

We already know that often the symmetry of a problem makes it natural (and easier!) to use other coordinate systems. In two dimensions, the polar coordinate system defines a point in the plane by two numbers: the distance $$r$$ to the origin, and the angle $$\theta$$ that the position vector forms with the $$x$$-axis. Notice the difference between $$\vec{r}$$, a vector, and $$r$$, the distance to the origin (and therefore the modulus of the vector). Vectors are often denoted in bold face (e.g. r) without the arrow on top, so be careful not to confuse it with $$r$$, which is a scalar. Figure $$\PageIndex{2}$$: Plane polar coordinates (CC BY-NC-SA; Marcia Levitus)

While in cartesian coordinates $$x$$, $$y$$ (and $$z$$ in three-dimensions) can take values from $$-\infty$$ to $$\infty$$, in polar coordinates $$r$$ is a positive value (consistent with a distance), and $$\theta$$ can take values in the range $$[0,2\pi]$$.

The relationship between the cartesian and polar coordinates in two dimensions can be summarized as:

$\label{eq:coordinates_1} x=r\cos\theta$

$\label{eq:coordinates_2} y=r\sin\theta$

$\label{eq:coordinates_3} r^2=x^2+y^2$

$\label{eq:coordinates_4} \tan \theta=y/x$

In three dimensions, the spherical coordinate system defines a point in space by three numbers: the distance $$r$$ to the origin, a polar angle $$\phi$$ that measures the angle between the positive $$x$$-axis and the line from the origin to the point $$P$$ projected onto the $$xy$$-plane, and the angle $$\theta$$ defined as the is the angle between the $$z$$-axis and the line from the origin to the point $$P$$: Figure $$\PageIndex{3}$$: Spherical coordinates (CC BY-NC-SA; Marcia Levitus)

Before we move on, it is important to mention that depending on the field, you may see the Greek letter $$\theta$$ (instead of $$\phi$$) used for the angle between the positive $$x$$-axis and the line from the origin to the point $$P$$ projected onto the $$xy$$-plane. That is, $$\theta$$ and $$\phi$$ may appear interchanged. This can be very confusing, so you will have to be careful. When using spherical coordinates, it is important that you see how these two angles are defined so you can identify which is which.

Spherical coordinates are useful in analyzing systems that are symmetrical about a point. For example a sphere that has the cartesian equation $$x^2+y^2+z^2=R^2$$ has the very simple equation $$r = R$$ in spherical coordinates. Spherical coordinates are the natural coordinates for physical situations where there is spherical symmetry (e.g. atoms). The relationship between the cartesian coordinates and the spherical coordinates can be summarized as:

$\label{eq:coordinates_5} x=r\sin\theta\cos\phi$

$\label{eq:coordinates_6} y=r\sin\theta\sin\phi$

$\label{eq:coordinates_7} z=r\cos\theta$

These relationships are not hard to derive if one considers the triangles shown in Figure $$\PageIndex{4}$$: Figure $$\PageIndex{4}$$: Spherical coordinates (CC BY-NC-SA; Marcia Levitus)