Questions on spherical coordinates, a three-dimensional coordinate system where a point is represented in terms of its distance from the origin, and its latitude and longitude angles (or complements thereof).

learn more… | top users | synonyms

-1
votes
1answer
904 views

How to use geometry to express unit vectors of spherical coordinate system in terms of Cartesian unit vectors

It's quite easy to express unit vector $\hat{r}$ in sum linear combinations of Cartesian unit vectors $\hat{x}$, $\hat{y}$ and $\hat{z}$. But I am not sure how I can use geomtery to find a Cartesian ...
4
votes
0answers
124 views

$\operatorname{div}$ and $\operatorname{grad}$ in spherical coordinates. Formula from general relativity goes crazy

I try to calculate the gradient of a function and the divergence of a vector field in spherical coordinates. Nothing special so far, but a formula that I learned in a general relativity lecture ...
1
vote
2answers
2k views

Equation for calculating azimuth between two points

Does anybody know an equation or approximation for calculating the azimuth as a function of latitudes and longitudes of both the points. For example I have Princeton, NJ is at 40.3571° N, 74.6702° ...
1
vote
1answer
59 views

Problem with Laplacian while treating polar coordinates as special case of spherical coordinates.

I thought that polar coordinates ($r, \phi$) can be viewed as a special case of cylindrical coordinates ($\rho, \phi, z$) with $z=0$, or as spherical coordinates ($r, \theta, \phi$) with ...
2
votes
1answer
258 views

Find the volume of the solid bounded by the surface given in spherical coordinates by $R = 4-3\cos(\phi)$.

It is worth noting that $R$ in this case denotes the distance from origin to a point $P$ in space. You may be more familiar with $\rho$ instead of $R$. Here is my attempted solution: I am assuming ...
0
votes
2answers
356 views

Center of mass of one octant of a non-homogenous sphere

Find the center of mass of that part of the sphere $x^2+y^2+z^2 \le a^2$ having $x,y,z \ge 0$ (that is, the part in the first octant) With density given by $\rho(x,y,z)=(x^2+y^2+z^2)^{3/2}$ It ...
0
votes
1answer
16 views

Uniform sampling from part of sphere surface

I'd like to pose a question about uniform sampling on the surface of a sphere. I searched this site, and uniform sampling on a sphere surface seems to be quite a common problem. The common solution ...
0
votes
2answers
441 views

How to move a camera in “Flight Simulator” style (Roll, Pitch, Yaw) using a joystick

I am working on a video game where the camera movement (what the viewer sees) is controlled by a joystick. I want the camera movement to act like a flight simulator meaning the following: When the ...
3
votes
3answers
591 views

Find volume between two spheres using cylindrical & spherical coordinates

I've got two spheres, one of which is the other sphere just shifted, and I'm trying to find the volume of the shared region. The spheres are $x^2 + y^2 +z^2 = 1$ and $x^2 + y^2 +(z-1)^2 = 1$ I know ...
0
votes
0answers
157 views

Calculate Phi & Theta in Sphere

My target is to calculate phi and theta in a sphere. I built a panoramic viewer. In this viewer the user can load a picture. This picture will be load onto an sphere with a radius of 50. The user ...
0
votes
1answer
63 views

Trouble with understanding a spherical coordinate system.

We have a sphere with $r=1$, and we want the coordinates of $C$. $A$ is the north pole, and $AB$ is our prime meridian. See picture: I'm familiar with an $(x,y,z)$ coordinate system, but not so ...
3
votes
1answer
273 views

Transforming a matrix from cartesian to spherical coordinates

Consider a variable matrix $$\left[\begin{array}{ccc}a_{11}(x,y,z) \quad a_{12}(x,y,z) \quad a_{13}(x,y,z)\\ a_{21}(x,y,z) \quad a_{22}(x,y,z) \quad a_{23}(x,y,z)\\ ...
3
votes
2answers
73 views

Triple integral over a sphere with parameter $2n$?

I need to intergrate $x^{2n}+y^{2n}+z^{2n}$ over a sphere of equation $x²+y²+z²=1$. I have thought of changing the coordinates from cartesian to spherical but I don't know how to deal with the ...
1
vote
2answers
79 views

Multivariable Calculus Volume of Integration Question

I have an integral $$ \iiint\sqrt{x^{2} + y^{2} + z^{2}\,}\,{\rm e}^{-\left(x^{2} + y^{2} + z^{2}\right)}\, {\rm d}x\,{\rm d}y\,{\rm d}z $$ The integration region is bounded by the sphere ...
0
votes
1answer
43 views

Sphere to Caresian Coordinates and vis versa

I want to convert from Cartesian to sphere coordinates and back Here is my code ...
0
votes
1answer
39 views

Curving points to a sphere

I think math.stackexchange is the right place to post this, but if not, feel free to tell me. I have a series of points to be plotted on a sphere (Each one has a latitude and longitude value). These ...
1
vote
1answer
45 views

Spherical symmetry math

For spherical symmetry how the last four equations calculations is done? ccan you explain please? For reference see the equations 44
0
votes
1answer
59 views

Spherical Coordinates Representation

I just wanted to know what the set of all points in which spherical coordinates can be shown in more than one way is? I think it is only the origin but I am not sure
1
vote
1answer
76 views

Numerical solution needed for the quadratic equation (spheres)

There are three point coordinates $A(x_1,y_1,z_1),B(x_2,y_2,z_2),C(x_3,y_3,z_3)$, where $z_1=z_2=z_3$ Now, $(x-x_1)^2+(y-y_1)^2+(z-z_1)^2=d_1^2$ this equation can be written for my system as ...
1
vote
2answers
107 views

Computing distance from line to point in geodetic environment

Supposing to be in a cartesian plan and that I have the following point: $$A(x_{1},y_{1}), B(x_{2},y_{2}), C(x_{3},y_{3}), D(x_{4},y_{4})$$ $$P(x_{0},y_{0})$$ Now immagine two lines, the fist one ...
4
votes
2answers
116 views

Integral in 3 dimensions

I am trying to integrate $$ \iiint \delta(|\mathbf r| -R)\:\mathrm{d}^{3}\mathbf{r} $$ I know that $ \int f(r) \delta(r-R) d^3 \mathbf r =f(R) $, but when I try to apply this here I end up ...
2
votes
2answers
2k views

Different ways for calculating distance between two geodetic points give me different results

I'm trying to calculate the distance between two geodetic points in two different ways. The points are: A:(41.466138, 15.547839) B:(41.467216, 15.547025) The ...
0
votes
1answer
229 views

How to calculate this integral in 3 dimensions involving the Dirac delta function?

How would I go about calculating the integral $ \int d^3 \mathbf r {1\over 1+ \mathbf r \cdot \mathbf r} \delta(\mathbf r - \mathbf r_0) $ where $\mathbf r_0 = (2,-1,3)$ My attempt so far: I have ...
2
votes
0answers
112 views

Given 3 Vertices of a Tetrahedron, Find the 4th

A regular tetrahedron is circumscribed by the Earth (assume spherical). You are given 3 of the 4 vertices (as latitude and longitude in decimal format), and asked to find the 4th. Any help is most ...
1
vote
1answer
66 views

Spherical coordinates + Laplacian

If $f(x, y,z)=f(r\sin(\phi)\cos(\theta), r\sin(\phi)\sin(\theta),r\cos(\phi))$, what is the value of $\Delta f$, in terms of $r$, $\phi$ and $\theta$?
2
votes
2answers
402 views

How to find all 3 orthogonal vectors to a 4D vector

For a program I'm writing, I need to find the vectors orthogonal to a given vector rotated at an arbitrary angle, and in 4D. It is a unit vector. For 3D, I found the two orthogonal vectors like ...
4
votes
0answers
80 views

Probably Riemann surface integral

Here is the integral: May you please suggest some beautiful idea on using Riemann surface, or some Gauss-Ostrogradsky at the beginning. Also, the initial integral looks really symmetric, so maybe ...
1
vote
2answers
1k views

How to calculate volume of a cylinder using triple integration in “spherical” co-ordinate system?

Lets have a cylinder given by $x^2+y^2=1$ which is cut from the top by plane $z=2$ and bottom by $z=-2$.I am having problem regarding the limits of ρ for the equation ∭ ρ sin^2ϕ dρ dϕ dθ where ϕ is ...
1
vote
0answers
71 views

Integrating Over Truncated Sphere

Consider the volume bounded by the sphere of radius R (with center $r_0$ = R/2 z) and the plane z = 0. Evaluate $\int dS$ over the surface of the truncated sphere. I'm not sure how to integrate over ...
2
votes
2answers
1k views

Volume of a sphere (r=2a) with hole(r=a) drilled through centre, using spherical polar coordinates.

Need help solving 11.bi), A cylindrical hole of radius a is bored through the center of a sphere of radius 2a. Find the volume of the remaining material, using spherical polar coordinates. (You ...
1
vote
0answers
233 views

Conversion from Spherical Coordinates to Cartesian Coordinates aligned along arbitrary polar axis

I have spherical coordinates $w = (\theta, \phi)$ such that $\theta$ is the angle between $w$ and the polar axis (let's assume $z$ is up). Assuming $w$ is a unit vector, the conversion to cartesian ...
1
vote
3answers
908 views

Interpolating GPS coordinates

I can't profess to being a hardcore mathematician, I'm a computer scientist by nature, so please take it easy on me! There are a couple of similar questions on this, however, none seem to discuss the ...
1
vote
1answer
83 views

How to derive curl in spherical coordinates

This is one of those questions where I know I am making a dumb mistake someplace and I am trying to check where it is. $$ \begin{vmatrix} \frac{\bf\hat r}{r^2\sin\theta} & ...
2
votes
3answers
127 views

Writing triple integrals in spherical coordinates over nonspherical/nonconical regions

Defining upper and lower limits of integration for $\rho$, $\theta$, and $\phi$ is relatively easy when writing a triple integral in spherical coordinates if the region of integration is defined by ...
1
vote
1answer
143 views

Angled Spherical Sector - formulas?

I am glad to be here. First off, please excuse my almost saddening lack of knowledge. Math (in general) isn't my strong point. I might ask some really basic questions, you have been warned :) The ...
3
votes
1answer
62 views

Energy of particles on sphere and uniform rotation

I have a computer program containing some particles on a unit sphere, characterized by their positions $\{(\theta_i,\phi_i)\}$. They have a total energy given by the arc distance between particle ...
1
vote
1answer
145 views

Project point onto line in Latitude/Longitude

Given line AB made from two Latitude/Longitude co-ordinates, and point C, how can I calculate the position of D, which is C projected onto D. Diagram:
2
votes
1answer
284 views

Prove that hyperspherical coordinates are a diffeomorphism, derive Jacobian

The explicit form for the transformation into hyperspherical coordinates is $$x_1 = r\sin\theta_1 \sin\theta_2 \dotsb \sin \theta_{n-1} \\ x_2 = r\sin\theta_1 \sin\theta_2 \dotsb \cos \theta_{n-1} \\ ...
1
vote
1answer
61 views

Consider the region shared by ρ=8cos(φ) and ρ=4. Find the volume of the region.

Consider the region shared by ρ=8cos(φ) and ρ=4. Find the volume of the region. I know it involves a triple integral, but do not understand how to set up the integral.
0
votes
2answers
682 views

How to calculate the angle between two vectors, defined by 3 points on the earth?

I want to develop a formula to calculate the angle between two vectors. The vectors will be OX and OY (from point O to X , and Y), where the points are defined by their latitude and longitude values. ...
3
votes
1answer
170 views

Integration in n-spherical coordinates

I'd like to compute the following integral: $$I = \int_{\mathbb{R}^n} {\rm d}^n x \; \frac{e^{i \vec x \cdot \vec k}}{\vec x^2}$$ My first step is to use generalized spherical coordinates and then I ...
1
vote
3answers
1k views

Solve the triple integral $\iiint_D (x^2 + y^2 + z^2)\, dxdydz$

How does one go about solving the integral: $$ \iiint_D (x^2 + y^2 + z^2)\, dxdydz, $$ where $$ D=\{(x,y,z) \in \mathbb{R}^3: x^2 + y^2 + z^2 \le 9\}. $$ I believe I am supposed to convert to ...
2
votes
1answer
149 views

Divergence in spherical coordinates

On the one hand there is an explicit formula for divergence in spherical coordinates, namely: $$ \nabla \cdot \vec{F} = \frac{1}{r^2} \partial_r (r^2 F^r) + \frac{1}{r \sin \theta} \partial_\theta ...
2
votes
2answers
107 views

can a great circle route be predicted from initial condition?

Assuming the world is a sphere with no wind, can the great circle route of a vessel be predicted from the current position $\{\phi_i,\lambda_i\}$ and the current true course $\theta_i$? Presently, ...
0
votes
1answer
79 views

Finding a 3D co-ordinate using triangluation

I'm trying to find a real world coordinate where 3 spheres collide and interact. At the moment I have been able to set up my triangulation equations so that I can work out the 2D position of where my ...
3
votes
2answers
164 views

Maximum Gravity Around a Unit Sphere

Most simulations that involve planetary gravity use Newton's law of universal gravitation and treat planets like point-masses. This is very accurate at large distances, and fairly accurate all the ...
0
votes
1answer
184 views

Interpolating geographic coordinates

I have two geographic coordinates. Let's call them $A$ and $B$: A = latitude 41.34759, longitude -75.77415 B = latitude 41.34769, longitude -75.77404 My unknown ...
-4
votes
1answer
421 views

$dxdydz \to -r^2\sin(\theta)\sin(\phi+\theta)dr d\phi d\theta$?

So I got this answer $-r^2\sin \theta\sin(\phi+\theta)dr d(\phi)d(\theta)$ which I think is wrong because I googled it and it must be $-r^2\sin\theta dr d\phi d\theta,$ but $\sin(\phi+\theta$) clearly ...
0
votes
1answer
84 views

Why there is discontinuity at Zenith in Spherical-coordinate system?

I tried to plot the following function in spherical-coordinate system : $$ r(\phi,\theta)=\left(\frac{\sin\phi}{\phi}\frac{\sin\theta}{\theta}\right)^2$$ (definition/references for ...
2
votes
2answers
253 views

Proving that $\nabla \times (U(r) \hat{r} = 0 $

I was just checking to see if I wsa doing this right, as it isn't a formal proof. Just showing the identity. Let $U(r) \hat{r}$ b a vector in spherical coordinates. Given that the vector is only ...