Rectangular to Spherical coordinate conversion

MathsLearner

New member
Joined
Aug 13, 2017
Messages
27
I need to convert from rectangular to spherical coordinates [math] (\sqrt3, -1, 2\sqrt3)[/math]. The formulae are
[math] \rho = \sqrt{(x^2+y^2+z^2)} -eq1 \\ x = \rho \sin\phi \cos\theta; -eq2\\ y = \rho\sin\phi\sin\theta; -eq3\\ z = \rho\cos\phi; -eq4 \\ \rho = \sqrt{(3+1+12)} = 4; \\ \cos\phi = \frac {2\sqrt3} 4; \\ \phi = \frac \pi 6 [/math]The confusion is with the [math] \theta; [/math]. I can have two values using eq 2 and 3,
using eq1
[math] \cos\theta = \frac x {\rho\sin\phi} = \frac {\sqrt3} {4\sin(\frac \pi 6)} \\ \theta = \frac \pi 6; -r1 [/math] using eq2
[math] \sin\theta = \frac y {\rho\sin\phi} = -\frac {1} {4\sin(\frac \pi 6)} = -\frac {1} 2 \\ \theta = -\frac {\pi} 6 [/math].
Since [math] \theta [/math] is negative. The angle is in the anti clockwise direction and lies in the 4th quadrant, the value in terms of clockwise is
[math] 2\pi - \frac \pi 6 = \frac {11\pi} 6 [/math]. It also matches since y is negative.
Does it mean the [math] r1 [/math] is wrong?
 
There is only one [MATH]\theta[/MATH] that satisfies both equations 2 and 3. Neither alone determines the quadrant.

From equation 2, [MATH]\theta = \frac{\pi}{6} \text{ or } -\frac{\pi}{6}[/MATH] or any coterminal angle.

From equation 3, [MATH]\theta = \frac{7\pi}{6} \text{ or } \frac{11\pi}{6}[/MATH] or any coterminal angle.

We conclude that [MATH]\theta = \frac{11\pi}{6}.[/MATH]
 
Ok to avoid confusion i could probably do this satisfying equations 2 and 3, Divide eq3 with eq2 to obtain
[math] \tan\theta = \frac y x = -\frac 1 {\sqrt3}; \\ \theta = -\frac \pi 6 = \frac {11\pi} 6; [/math]
 
Unfortunately, there too we have two solutions, which differ by [MATH]\pi[/MATH] this time. No matter how you approach it, you have to take quadrants into account to decide between [MATH]\frac {5\pi}{6}[/MATH] and [MATH]\frac {11\pi}{6}[/MATH].

But this is the way I prefer, when combined with quadrant considerations.
 
There is only one [MATH]\theta[/MATH] that satisfies both equations 2 and 3. Neither alone determines the quadrant.

From equation 2, [MATH]\theta = \frac{\pi}{6} \text{ or } -\frac{\pi}{6}[/MATH] or any coterminal angle.

From equation 3, [MATH]\theta = \frac{7\pi}{6} \text{ or } \frac{11\pi}{6}[/MATH] or any coterminal angle.

We conclude that [MATH]\theta = \frac{11\pi}{6}.[/MATH]
Note that Dr. Peterson "concludes" that [MATH]\theta = \frac{11\pi}{6}.[/MATH] because [math]\frac{11\pi}{6}= \frac{12\pi}{6}- \frac{\pi}{6}= 2\pi- \frac{\pi}{6}[/math] so is a "coterminal" angle with [math]-\frac{\pi}{6}[/math].
 
Top