# Jacobian in spherical coordinates?

1. Aug 24, 2013

### Uan

Hi,

Started to learn about Jacobians recently and found something I do not understand.

Say there is a vector field F(r, phi, theta), and I want to find the flux across the surface of a sphere. eg:

∫∫F⋅dA

Do I need to use the Jacobian if the function is already in spherical coordinates?

My notes has an similar example that show you do use the Jacobian but I do not understand why. My understanding is you only use the Jacobian when there is a change in coordinates, but the function F is already in the desired coordinate system.

Thanks!
Uan

Last edited: Aug 24, 2013
2. Aug 24, 2013

### tiny-tim

Hi Uan! Welcome to PF!
Suppose you want to find a volume (or area) by integrating, and everything is already in spherical coordinates …

you still need to use the jacobian (instead of just drdθdφ) because volume (or area) is defined in terms of cartesian (x,y,z) coordinates, so you have made a transformation!

Similarly, flux is defined in terms of cartesian coordinates.

3. Aug 24, 2013

### Uan

Ok that makes sense.

One other question...

How do they get the side lengths r*d(theta) and r*sin(theta)*d(phi) of element dA in the diagram below?

4. Aug 24, 2013

### tiny-tim

Hi Uan!
rdθ (the length of the side of A) is length of the side of that triangle with two sides r and angle dθ …

so it's 2rsin(dθ/2), = 2r(dθ/2), = rdθ

(alternatively, if you're happy using arc-length instead of "straight" length, then the arc-length is rdθ by definition)

and the other one is calculated the same way, except that the side of the triangle is rsinθ instead of r

5. Aug 24, 2013

### Uan

Ohh yeaahhh!! Small angle approximation duh! Thanks tiny-tim! I really appreciate your help!

By the way, I derived it as rsin(dθ), = rdθ, as when the angle dθ goes infinitely small in the triangle with sidelengths r, r and dθ (I've redrawn it), its like it has 2 right angles (180° ~= 90° + 90° + ~0°) so hence rsin(dθ), = rdθ

[Broken]

My way is correct yes?
How did you get your 2s in 2rsin(dθ/2)?

(Time for F1 break)

Last edited by a moderator: May 6, 2017
6. Aug 24, 2013

### tiny-tim

(what's "F1 break"?)
i used a triangle with two equal sides, and split it in two to make two right-angled triangles, so that my result of 2rsin(dθ/2) was precise

7. Aug 24, 2013

### Uan

Ah yes! That works out beautifully! Cheers! :thumbs:

(Formula 1 Qualifying at Spa! )

8. Aug 27, 2013

### vanhees71

Of course, for the spherical shell it's pretty easy to get the surface vector element $\mathrm{d}^2 \vec{A}$ in this geometrical way, but it can become difficult for more complicated shapes. Thus, here the general way to get it.

The surface-element vector is defined as a vector perpendicular to the surface and of the length of the area element. If you have given the surface $S$ in parameter form
$$S: \quad \vec{r}=\vec{r}(u,v),$$
where $u$ and $v$ are real parameters, then the surface-element vector is given by
$$\mathrm{d} \vec{A}=\mathrm{d} u \mathrm{d} v \frac{\partial \vec{r}}{\partial u} \times \frac{\partial \vec{r}}{\partial v}.$$
That's so, because obviously this vector is perpendicular to the two (by assumption linearly independent) tangent vectors $\partial_u \vec{r}$ and $\partial_v \vec{r}$ and thus to all tangent vectors of the surface in the point under consideration, and the cross product has the magnitude corresponding to the infinitesimal parallelogram spanned by the vectors $\mathrm{d} u \partial_u \vec{r}$ and $\mathrm{d} v \partial_v \vec{r}$. You only must be careful concerning the orientation of the surface element, beause obviously it switches sign when you change the order of the parameters, because the cross product in skew symmetric.

For the sphere you take
$$\vec{r}=R \begin{pmatrix} \cos \varphi \sin \vartheta \\ \sin \varphi \sin \vartheta \\ \cos \vartheta \end{pmatrix}$$
with $u=\vartheta$ and $v=\varphi$. This gives
$$\mathrm{d} \vec{A} =\mathrm{d} \vartheta \mathrm{d} \varphi R^2 \begin{pmatrix} \cos \varphi \cos \vartheta \\ \sin \varphi \cos \vartheta \\ -\sin \vartheta \end{pmatrix} \times \begin{pmatrix} -\sin \varphi \sin \vartheta \\ -\cos \varphi \sin \vartheta \\ 0 \end{pmatrix}=R^2 \mathrm{d} \vartheta \mathrm{d} \varphi \begin{pmatrix} \cos \varphi \sin \vartheta \\ \sin \varphi \sin \vartheta \\ \cos \vartheta \end{pmatrix}$$.
For the full sphere the parameters run over the ranges $\vartheta=(0,\pi)$ and $\varphi \in [0,2 \pi)$.