Spherical coordinates in three-dimensional coordinate space

 
 
 
 
 

Defining spherical coordinates in three-dimensional space

Like cartesian (or rectangular) coordinates and polar coordinates, spherical coordinates are just another way to describe points in three-dimensional space.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 
 
Diagram of spherical coordinates in three dimensions
 

Rectangular coordinates are given as (x,y,z)(x,y,z).

xx is the distance of (x,y,z)(x,y,z) from the origin along the xx-axis

yy is the distance of (x,y,z)(x,y,z) from the origin along the yy-axis

zz is the distance of (x,y,z)(x,y,z) from the origin along the zz-axis

Spherical coordinates are given as (ρ,θ,ϕ)(\rho,\theta,\phi)

ρ\rho is the distance of (ρ,θ,ϕ)(\rho,\theta,\phi) from the origin, ρ0\rho\geq 0

θ\theta is the angle between rr (the shadow of the line connecting (ρ,θ,ϕ)(\rho,\theta,\phi) to the origin) and the positive direction of the xx-axis

ϕ\phi is the angle between the line connecting (ρ,θ,ϕ)(\rho,\theta,\phi) to the origin and the positive direction of the zz-axis, 0ϕπ0\leq\phi\leq\pi

To convert between spherical coordinates and rectangular coordinates, we will need to use the formulas

x=ρsinϕcosθx=\rho\sin{\phi}\cos{\theta}

y=ρsinϕsinθy=\rho\sin{\phi}\sin{\theta}

z=ρcosϕz=\rho\cos{\phi}

and

ρ2=x2+y2+z2\rho^2=x^2+y^2+z^2

 
 

How to convert between spherical coordinates and rectangular coordinates


 
Krista King Math Signup.png
 
Calculus 3 course.png

Take the course

Want to learn more about Calculus 3? I have a step-by-step course for that. :)

 
 

 
 

Converting a rectangular coordinate point to a spherical coordinate point, then a spherical coordinate point to a rectangular coordinate point

Let’s try an example where we convert rectangular coordinates to spherical coordinates.

Example

Convert the rectangular coordinate point to a spherical coordinate point.

(0,0,1)(0,0,1)

We’ll start by plugging (0,0,1)(0,0,1) into ρ2=x2+y2+z2\rho^2=x^2+y^2+z^2.

ρ2=02+02+12\rho^2=0^2+0^2+1^2

ρ2=1\rho^2=1

Since ρ0\rho\geq 0, ρ=1\rho=1

We’ll plug (0,0,1)(0,0,1) and ρ=1\rho=1 into z=ρcosϕz=\rho\cos{\phi} to solve for ϕ\phi.

z=ρcosϕz=\rho\cos{\phi}

1=(1)cosϕ1=(1)\cos{\phi}

cosϕ=1\cos{\phi}=1

ϕ=0, 2π\phi=0,\ 2\pi

Since 0ϕπ0\leq\phi\leq\pi, ϕ=0\phi=0

We’ll plug (0,0,1)(0,0,1), ρ=1\rho=1, and ϕ=0\phi=0 into y=ρsinϕsinθy=\rho\sin{\phi}\sin{\theta} to solve for θ\theta.

y=ρsinϕsinθy=\rho\sin{\phi}\sin{\theta}

0=(1)sin(0)sinθ0=(1)\sin{(0)}\sin{\theta}

0=(1)(0)sinθ0=(1)(0)\sin{\theta}

Since we have 00 on the right-hand side, θ\theta could be any value and the equation would still be true. This makes sense, since the given point is on the zz-axis, and θ\theta is the angle between rr (the shadow of the line connecting (ρ,θ,ϕ)(\rho,\theta,\phi) to the origin) and the positive direction of the xx-axis.

Since it can be any value, let’s just choose θ=0\theta=0.

Putting these values together, we can say that the spherical coordinate (1,0,0)(1,0,0) is the same as the rectangular coordinate (0,0,1)(0,0,1).


Let’s try an example where we convert spherical coordinates to rectangular coordinates.


Like cartesian (or rectangular) coordinates and polar coordinates, spherical coordinates are just another way to describe points in three-dimensional space.

Example

Convert the spherical coordinate point to a rectangular coordinate point.

(1,π,π2)\left(1,\pi,\frac{\pi}{2}\right)

We know that

ρ=1\rho=1

ϕ=π2\phi=\frac{\pi}{2}

θ=π\theta=\pi

Plugging these into the conversion formulas, we get

x=ρsinϕcosθx=\rho\sin{\phi}\cos{\theta}

x=(1)sinπ2cosπx=(1)\sin{\frac{\pi}{2}}\cos{\pi}

x=(1)(1)(1)x=(1)(1)(-1)

x=1x=-1

and

y=ρsinϕsinθy=\rho\sin{\phi}\sin{\theta}

y=(1)sinπ2sinπy=(1)\sin{\frac{\pi}{2}}\sin{\pi}

y=(1)(1)(0)y=(1)(1)(0)

y=0y=0

and

z=ρcosϕz=\rho\cos{\phi}

z=(1)cosπ2z=(1)\cos{\frac{\pi}{2}}

z=(1)(0)z=(1)(0)

z=0z=0

The rectangular coordinate (1,0,0)(-1,0,0) is the same as the spherical coordinate (1,π,π/2)(1,\pi,\pi/2).


 
Krista King.png
 

Get access to the complete Calculus 3 course