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

10
votes
1answer
728 views

Can someone please explain the cube to sphere mapping formula to me?

I am wondering if anyone could explain how the following formula works, it is supposed to take the input as a point on a cube then map that to points on a sphere, please go gentle on me, I'm in 9th ...
9
votes
2answers
2k views

How can I pick a random point on the surface of a sphere with equal distribution?

I've got a random number generator that yields values between 0 and 1, and I'd like to use it to select a random point on the surface of a sphere where all points on the sphere are equally likely. ...
8
votes
3answers
13k views

Surface Element in Spherical Coordinates

In spherical polars, $$x=r\cos(\phi)\sin(\theta)$$ $$y=r\sin(\phi)\sin(\theta)$$ $$z=r\cos(\theta)$$ I want to work out an integral over the surface of a sphere - ie $r$ constant. I'm able to derive ...
7
votes
1answer
3k views

How to perform a Fourier transform in spherical coordinates?

For a function $f(r, \vartheta, \varphi)$ given in spherical coordinates, how can the Fourier transform be calculated best? Possible ideas: express $(r,\vartheta,\varphi)$ in cartesian coordinates, ...
6
votes
0answers
94 views

When is separation of variables possible?

In classical PDE courses it is common to learn to perform a change of variables without really learning how to find the adequate equations of the change (polar coordinates or spherical are just plain ...
5
votes
4answers
1k views

How to find the distance between a point and line joining two points on a sphere?

How do I calculate the distance between the line joining the two points on a spherical surface and another point on same surface? I have illustrated my problem in the image below. In the above ...
5
votes
4answers
847 views

What is the geodesic between a point and a line (geodesic between two points) on an oblate spheroid?

I found a similiar question that also asks for the distance from a point to a line but works on a sphere. Now I'm trying to figure out the length of the geodesic line ...
5
votes
1answer
3k views

Vector sum in spherical coordinates

I can't seem to come up with a simple formula to head-tail adding two vectors in spherical coordinates. So I'd like to know: Can anybody point out a way to do it in spherical coordinates (without ...
5
votes
0answers
473 views

3d-diffusion equation in spherical coordinates (numerical), boundary problem

There is one boundary problem $$\frac{\partial u}{\partial t}= \operatorname{div}\left(a^2 E \nabla u\left(r,\varphi,\psi \right) \right) $$ in a ball $$ B_{1}(0)=\left\{x \in \mathbb{R^3}: \left\| ...
4
votes
4answers
2k views

Why is the differential solid angle have a $\sin\theta$ term in integration in spherical coordinates?

When you integrate in spherical coordinates, the differential element isn't just $ d\theta d\phi $. No. It's $\sin\theta d\theta d\phi$, where $\theta$ is the inclination angle and $\phi$ is the ...
4
votes
1answer
158 views

Are spherical coordinates unique orthogonal coordinates on sphere?

Spherical coordinates on unit sphere are defined by the following transformation: $$\begin{cases}x=\sin\theta\cos\varphi\\ y=\sin\theta\sin\varphi\\ z=\cos\theta\end{cases}$$ Are these coordinates ...
4
votes
2answers
311 views

How do I convert a vector field in Cartesian coordinates to spherical coordinates?

I have a vector field in terms of $\mathbf{\hat i}$, $\mathbf{\hat j}$, and $\mathbf{\hat k}$, $$\mathbf{F} = x\mathbf{\hat i} + y\mathbf{\hat j} + z\mathbf{\hat k}$$ How do I convert it to the ...
4
votes
1answer
674 views

How to integrate by parts in spherical coordinates

I'm running into some troubles with the integration of a spherically symmetric 3D function. I'm having the following expression to evaluate : $$ I=\int_0^{2\pi} d\phi \int_0^\pi \sin\theta ...
4
votes
2answers
109 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 ...
4
votes
1answer
674 views

How to calculate a Vector Field in Spherical Coordinates

I am having trouble with the following problem. I keep on getting a long unmanagable result - so any suggestion as to where I've gone wrong/how to do this would be a lifesaver! Please? Consider a ...
4
votes
1answer
290 views

Laplace-Beltrami on a sphere

I'm trying to compute the Laplace-Beltrami of the function $u(r,\varphi,\theta) = 12\sin(3\varphi)\sin^3(\theta)$ on a unit sphere. Note that $\varphi$ is the azimuth, i.e. $\varphi \in [0,2\pi]$ and ...
4
votes
2answers
778 views

derivatives transformation

I'm currently doing a calculation for the connection coefficients using the standard space-time coordinates, namely x[0],x[1],x[2],x[3]. The setup is a spherically symmetric problem. In my ...
4
votes
1answer
321 views

Stokes' and Divergence Theorem Problems

I have 2 questions on stokes and divergence theorem each. I think I have done both and I just want to make sure that I did them correctly. Question 1 Let $C$ be the boundary of the surface ...
4
votes
0answers
104 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 ...
4
votes
0answers
64 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 ...
3
votes
3answers
8k views

What is the general formula for calculating dot and cross products in spherical coordinates?

I was writing a C++ class for working with 3D vectors. I have written operations in the Cartesian coordinates easily, but I'm stuck and very confused at spherical coordinates. I googled my question ...
3
votes
1answer
1k views

Three Dimensional Fourier Transform of Radial Function without Bessel and Neumann

I am trying to compute the Fourier transform of $\frac1{|\mathbf{x}|^2+1}$ where $\mathbf{x}\in\mathbb{R}^3$. Just writing out the integral: ...
3
votes
3answers
218 views

Integration with Spherical Coordinates

Use spherical coordinates to find the volume of the solid inside both $x^2+y^2+z^2=16$ and $z=(x^2+y^2)^{1/2}$.
3
votes
1answer
34 views

Surface area of the part of the sphere $x^2+y^2+z^2=a^2$ that is inside the cylinder $x^2+y^2=ax$

I've been solving some surface area problems lately, but I don't think that the same approach that I was using will work with this one (or at least will result in a lot work). So, I believe I should ...
3
votes
1answer
53 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 ...
3
votes
1answer
734 views

How to integrate a vector function in spherical coordinates?

How to integrate a vector function in spherical coordinates? In my specific case, it's an electric field on the axis of charged ring (see image below), the integral is pretty easy, but I don't ...
3
votes
1answer
111 views

problem or doubt regarding visualizing angles of spherical triangle

I must confess that I am not able to visualize or understand what is the angle of a spherical triangle say $ABC$ where $A,B,C$ are vertices of the triangle which is formed by intersection of three ...
3
votes
1answer
132 views

Integration on a sphere

I have an integral at hand which has the form of $$I = \int_{u\in \mathbb{S}^2} f(\mathbf{u}\cdot \mathbf{s}_1) f(\mathbf{u}\cdot \mathbf{s}_2) d\mathbf{u}$$ where $\mathbb{S}^2$ is the unit sphere ...
3
votes
1answer
385 views

Coordinate transformation

I have some problems with a geometrical calculation. I want to know the coordinates of the point $P_2$ in my coordinate system $A \ (x,y,z)$ as shown in the following figure. Point $P_1$ (in $A \ ...
3
votes
1answer
1k views

Projection of Gaussian in Spherical Coordinates

Consider a point with spherical coordinates $\vec{r}_0=(r_0, \theta_0, 0)$. The spherical gaussian distribution centered at $\vec{r}_0$ is $f(\vec{r})=Ne^{|\vec{r}-\vec{r}_0|^2/A}$, where $N$ is the ...
3
votes
1answer
268 views

What am I actually doing when I integrate using spherical coordinates in $\mathbb{R}^3$?

When learning vector fields and using Green's Theorem with the Jacobian to find the area of a level surface, I actually realized that most of the examples shown in my book would be much easier to ...
3
votes
1answer
346 views

Monte carlo integration in spherical coordinates

I was playing around with writing a code for Montecarlo integration of a function defined in spherical coordinates. As a first simple rapid test I decided to write a test code to obtain the solid ...
3
votes
1answer
59 views

How to compute triple integral in spherical coordinates

I need to compute: $\displaystyle\int \int \int z dxdydz$ over the domain: $\left\{x^2+y^2+z^2\leqslant 16,z\geqslant 0\right\}$ Im trying to use spherical coords as: \begin{equation} ...
3
votes
1answer
76 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
130 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 ...
3
votes
1answer
134 views

Laplacian on Sphere of Function Only Depending on Angle Between Points

Consider a function $f:S^2 \to \mathbb{R}$ , with $S^2$ the unit $2$-sphere in $\mathbb{R}^3$. Let's say that $f$ depends only on the polar angle $\theta$ from the north pole (e.g., $f(r,\theta,\phi) ...
3
votes
1answer
357 views

integrating a vector over a sphere

I have the following triple integral in spherical coordinates $(r,\theta,\phi)$: $$\int_0^{2\pi}\int_0^\pi\int_0^RCr^3\hat\theta\cdot r^2dr\sin{\theta}d\theta d\phi$$ How do I handle the ...
3
votes
1answer
844 views

How to find the 3D coordinates on a celestial sphere's surface?

With celestial I don't mean a normal sphere, but I mean one that uses the altitude and an azimuth angle system. This is what I mean for example: (the star in the image represents an example of a ...
3
votes
2answers
54 views

Integral using spherical coordinates

I am trying to compute the volume of the following set : intersection of cylinder $x^2 + y^2 \leq R$ and sphere $x^2 + y^2 + z^2 \leq 4R^2$. I am having trouble setting up the integral properly ...
3
votes
1answer
120 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 ...
3
votes
0answers
789 views

Spherical coordinates grad and div.

Struggling with the following: Prove the identity $$ \nabla = e_{r}(e_{r} \cdot \nabla) + e_{\theta}(e_{\theta} \cdot \nabla) + e_{\phi}(e_{\phi} \cdot \nabla).$$ Given the vector fields ...
3
votes
2answers
729 views

Lat/Long grid points covered by projecting rectangle onto sphere

Before my question proper, a little background: I'm wanting to optimise some computer rendering by eliminating the drawing of things that aren't visible given the current view. Suppose we have a ...
2
votes
2answers
185 views

Calculating longitude degrees from distance?

I need to calculate how many longitude degrees a certain distance from a point are, with the latitude held constant. Here's an illustration: Here x represents the longitude degrees, the new point ...
2
votes
2answers
5k views

Great arc distance between two points on a unit sphere

Suppose I have two points on a unit sphere whose spherical coordinates are $(\theta_1, \varphi_1)$ and $(\theta_2, \varphi_2)$. What is the great arc distance between these two points? I found ...
2
votes
4answers
1k views

How can I get a square starting with a latitude and longitude point?

Is there a formula that given one latitude/longitude point and a radius (in kilometers ideally) would give me a square around the center? A picture is worth some quantity of words: I have the ...
2
votes
4answers
1k views

Latitude and longitude of points on a line

How could you get the latitude and longitude of four points (equal distance apart) on a line from $(27,-82)$ to $(28,-81)$? The four points should split the line into 5 parts.
2
votes
3answers
177 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 ...
2
votes
2answers
73 views

Deriving equations of motion in spherical coordinates

OK, we've been asked to derive the equations of motion in spherical coordinates. According to the assignment, we should end up with this: $$ \bf \vec{v} \rm = \frac{d \bf \vec{r} \rm}{dt} = \dot{r} ...
2
votes
4answers
742 views

Intersection of two arcs on sphere

I have two arcs on a sphere that are defined as pair of points: (θ₀, φ₀), (θ₁, φ₁). I need to find a point where they intersect, or some indication if they don't. What is important is that they are ...
2
votes
1answer
43 views

Del on Riemannian manifolds

I was supposed to figure out what $grad(div(e_r))$ is, where $e_r$ is the unit vector in spherical coordinates. In the following I assume $g:=diag(1,r^2,r^2sin^2(\theta))$ be the metric tensor. My ...