Spherical to Cartesian coordinates - Formulas and Examples

Spherical coordinates have the form (ρ, θ, φ), where, ρ is the distance from the origin to the point, θ is the angle in the xy plane with respect to the x-axis and φ is the angle with respect to the z-axis. These coordinates can be transformed to Cartesian coordinates using right triangles and trigonometry. We use the sine and cosine functions to find the vertical and horizontal components and obtain expressions for x, y, z in terms of ρ, θ, φ.

Here, we will derive the formulas that we can use to transform from spherical to Cartesian coordinates. Then, we will apply these formulas by solving some practice problems.

TRIGONOMETRY
diagram of spherical coordinates

Relevant for...

Learning to transform from spherical to Cartesian coordinates.

See examples

TRIGONOMETRY
diagram of spherical coordinates

Relevant for...

Learning to transform from spherical to Cartesian coordinates.

See examples

How to transform from spherical coordinates to Cartesian coordinates?

Spherical coordinates have the form (ρ, θ, φ). In this form, ρ represents the distance from the origin to the point, θ represents the angle in the xy plane with respect to the x-axis and φ represents the angle with respect to the z-axis.

On the other hand, three-dimensional Cartesian coordinates have the form (x, y, z).

diagram of spherical coordinates

To transform from spherical to Cartesian coordinates, we have to use right triangles and trigonometry. To facilitate the derivation of the transformation formulas, we can start by transforming from spherical to cylindrical coordinates, and then, we can transform from cylindrical to Cartesian coordinates.

Therefore, we use the following diagram:

diagram to find spherical coordinates

We know that the angle between the z-axis and ρ is equal to φ. Using a bit of geometry, we also know that φ is the angle between ρ and the vertical side of the triangle. Then, using trigonometry, we have:

$latex z=\rho \cos(\phi)$

$latex r=\rho \sin(\phi)$

We also have $latex \theta= \theta$. These are the formulas that allow us to convert from spherical to cylindrical coordinates. Now, we can use the cylindrical to Cartesian coordinate transformation formulas:

$latex x=r~\cos(\theta)$

$latex y=r~\sin(\theta)$

$latex z=z~~~~~$

Using these two sets of equations, we can obtain the transformation formulas from spherical to Cartesian coordinates:

$latex x=\rho \sin(\phi)\cos(\theta)$

$latex y=\rho \sin(\phi)\sin(\theta)$

$latex z=\rho \cos(\phi)~~$

Spherical to Cartesian coordinates – Examples with answers

The following exercises are solved using the formulas for converting spherical to Cartesian coordinates. Each example has its respective solution, but it is recommended that you try to solve the problems yourself before looking at the answer.

EXAMPLE 1

We have the point $latex (10, \frac{\pi}{4}, \frac{\pi}{4})$ in spherical coordinates. What is its equivalence in Cartesian coordinates?

Solution

EXAMPLE 2

The point $latex (5, \frac{3 \pi}{2}, \frac{\pi}{3})$ is in spherical coordinates. What is its equivalence in Cartesian coordinates?

Solution

EXAMPLE 3

If we have the spherical coordinates $latex (8, \frac{2 \pi}{5}, \frac{\pi}{5})$, what is their Cartesian coordinate equivalence?

Solution

EXAMPLE 4

We have the point $latex (10, \frac{\pi}{4}, \frac{4 \pi}{3})$ in spherical coordinates. What is its equivalence in Cartesian coordinates?

Solution

Spherical to Cartesian coordinates – Practice problems

Use the transformation formulas seen above to solve the following exercises and convert the spherical coordinates to Cartesian coordinates. If you need help with this, you can look at the solved examples above.

If we have the spherical coordinates $latex (4, \frac{\pi}{3}, \frac{\pi}{5})$, what is its equivalent in Cartesian coordinates?

Choose an answer






We have the spherical coordinates $latex (6, \frac{5\pi}{3}, \frac{\pi}{4})$. What is its equivalent in Cartesian coordinates?

Choose an answer






What is the Cartesian coordinate equivalent of the spherical coordinates $latex (2, \frac{6\pi}{5}, \frac{2\pi}{5})$?

Choose an answer






If we have the spherical coordinates $latex (6, \frac{3\pi}{4}, \frac{\pi}{2})$, what is its equivalent in Cartesian coordinates?

Choose an answer






See also

Interested in learning more about spherical coordinates? Take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE