Find Distance Between Spherical Polar & Cartesian Points

  • Thread starter Thread starter MathematicalPhysics
  • Start date Start date
  • Tags Tags
    Spherical
Click For Summary
SUMMARY

The discussion focuses on calculating the distance between points represented in spherical polar coordinates and Cartesian coordinates. The distance formula derived from spherical coordinates is d² = r₁² + r₂² - 2r₁r₂(sinθ₁sinθ₂cosφ₁cosφ₂ + sinθ₁sinθ₂sinφ₁sinφ₂ + cosθ₁cosθ₂). The user successfully converts point A on the z-axis into spherical coordinates and simplifies the distance formula to AP = √(R² - 2aRcosθ + a²). Finally, the user formulates a triple integral for AP over a sphere defined by R ≤ a.

PREREQUISITES
  • Spherical polar coordinates and their representation
  • Cartesian coordinates and their conversion
  • Distance formula in both spherical and Cartesian systems
  • Triple integrals in spherical coordinates
NEXT STEPS
  • Study the derivation of the distance formula in spherical coordinates
  • Learn about converting between spherical and Cartesian coordinates
  • Explore the application of triple integrals in spherical coordinates
  • Investigate the geometric interpretations of spherical and Cartesian distances
USEFUL FOR

Mathematicians, physicists, and engineers who need to calculate distances between points in different coordinate systems, as well as students studying multivariable calculus and coordinate transformations.

MathematicalPhysics
Messages
40
Reaction score
0
I have two points, one given in spherical polar coordinates and the other in cartesian coordinates. If I want to work out the distance inbetween these points do I need to convert the cartesian into spherical polars?
 
Physics news on Phys.org
Unless you happen to be able to visualize these things in your head, then yes, writing the point in sphericals in cartesian coords would seem like a good step, especially as distance is usually calculated in terms of cartesion coordinates.
 
the formula for the distance between two points in spherical coordinates is:

d^2=r_1^2+r_2^2-2 r_1 r_2(sin\theta_1 sin\theta_2 cos\phi_1 cos\phi_2 + sin\theta_1 sin\theta_2 sin\phi_1 sin\phi_2 + cos\theta_1 cos\theta_2)

obviously, the cartesian formula is a lot simpler.
 
Okay so I have point P with spherical polar coordinates
(R, \theta , \phi)
and point A with cartesian coordinates
(0, 0, a)

so A is just the z axis with length a? so in spherical polars:

A is (a, 0, 0) ? or maybe (a, \theta, \phi) ?

Im getting confused!
 
With \theta being the angle in the horizontal plane, whereas \phi the angle to the z-axis, a given point at distance abs(a) ("a" itself either positive or negative) on the z-axis has the polar representation:
(abs(a),\theta,\frac{\pi}{2}(1-sign(a))
where sign(a) is 1 when a is positive or -1 when a is negative.
 
Thanks, I've now worked out:

x = r\sin\theta\cos\phi , y = r\sin\theta\sin\phi, z = r\cos\theta

I'll see how far I can get now!
 
Note:
In your notation, the angles are interchanged from how I've used them!
 
Yeah, sorry forgot to mention that I had interchanged them.

So now I have two points in cartesian coordinates:

P (R\sin\theta\cos\theta , R\sin\theta\sin\phi , R\cos\theta)

A (0, 0, a)

In order to work out the distance AP do I need to square that awful looking thing?!
 
Yep, that's what you need to do.
 
  • #10
Okay so I need:

(R\sin\theta\cos\phi)^2 + (R\sin\theta\sin\phi)^2 + (R\cos\theta)^2

How can I simplify this? In a book I have it just sets a "similar" expression equal to 1 with no intermediate steps:

(\sin\theta\cos\phi)^2 + (\sin\theta\sin\phi)^2 + (\cos\theta)^2 = 1

Also this has no 'R' in it.

edit: sorry had theta where there should have been phi
 
Last edited:
  • #11
MathematicalPhysics said:
Okay so I need:

(R\sin\theta\cos\phi)^2 + (R\sin\theta\sin\phi)^2 + (R\cos\theta)^2

How can I simplify this? In a book I have it just sets a "similar" expression equal to 1 with no intermediate steps:

(\sin\theta\cos\phi)^2 + (\sin\theta\sin\phi)^2 + (\cos\theta)^2 = 1

Also this has no 'R' in it.

edit: sorry had theta where there should have been phi

Did you notice that
(R\sin\theta\cos\phi)^2 + (R\sin\theta\sin\phi)^2 + (R\cos\theta)^2
=R^2(\sin\theta\cos\phi)^2 + R^2(\sin\theta\sin\phi)^2 + R^2(\cos\theta)^2
= R^2((\sin\theta\cos\phi)^2 + (\sin\theta\sin\phi)^2 + (\cos\theta)^2)
?
 
  • #12
Yeah, I've got the distance AP to be

(R^2 - 2aR\cos\theta + a^2)^(1/2)

which I think is correct?

Now writing the triple integral of AP over the sphere R less than or equal to a in terms of spherical polar coords gives:

\iiint {\sqrt(R^2 - 2aR\cos\theta + a^2)} R^2 \sin\theta\,dR\,d\theta\,d\phi

with the integration over R between 0 and a
the integration over \theta between 0 and pi
the integration over \phi between 0 and 2pi

correct so far?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
3K
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 12 ·
Replies
12
Views
2K