View Full Version : gradient in spherical coordinates
ehrenfest
Nov19-07, 04:14 PM
1. The problem statement, all variables and given/known data
Given the gradient
del = x-hat d/dx + y-hat d/dy + z-hat d/dz
in rectangular coordinates, how would you write that in spherical coordinates. I can transform the derivatives into spherical coordinates. But then I need to express the rectangular basis vectors in terms of the spherical basis vectors. Is that possible?
2. Relevant equations
3. The attempt at a solution
ehrenfest
Dec17-07, 11:24 PM
Anyone?
quasar987
Dec17-07, 11:56 PM
Sure it's possible!
If you're working on Zwiebach, I'm sure you have a mechanics texbook lying around somewhere! Or a Griffith's E&M ! It's done in there if you ever get tired of looking. But it's not very difficult.
ehrenfest
Dec19-07, 11:39 AM
del = x-hat d/dx + y-hat d/dy + z-hat d/dz
I am sorry. This is really bothering me. Can someone please walk me through how you would convert this to spherical coordinates? All of my books just say something like "after tedious calculations," and then show the gradient and the Laplacian in spherical coordinates.
You do not need to show me the tedious calculations. Just tell me what to do!
arildno
Dec19-07, 12:01 PM
Okay, so you wish to represent rectangular coordinates in terms of spherical ones.
We have:
\vec{i}_{r}=\sin\phi(\cos\theta\vec{i}+\sin\theta\ vec{j})+\cos\phi\vec{k}
\vec{i}_{\phi}=\cos\phi(\cos\theta\vec{i}+\sin\the ta\vec{j})-\sin\phi\vec{k}
\vec{i}_{\theta}=-\sin\theta\vec{i}+\cos\theta\vec{j}
Now,
Compute the following quantity:
\sin\phi\cos\theta\vec{i}_{r}+\cos\phi\cos\theta\v ec{i}_{\phi}-\sin\theta\vec{i}_{\theta}
see if that helps you
ehrenfest
Dec19-07, 12:25 PM
That equals \vec{i}.
So, the best way to find the expressions for \vec{j} and \vec{k} in terms of \vec{i_r},\vec{i_{\phi}},\vec{i_{\theta}} is probably by inverting that matrix, right?
arildno
Dec19-07, 01:24 PM
Sure, but you should be able to do that without a full row reduction procedure.
Remember that the square of cosine plus the sine square equals 1.
What should you therefore multiply your vectors with to get, say, k?
ehrenfest
Dec19-07, 05:49 PM
OK. Got the gradient. Now, to calculate the Laplacien, I just dot that with itself. But in the equation of the Laplacian, it seems like there are cross-terms between the coefficients of different spherical basis vectors. Does that make sense. Why do you not just square the coefficients of \vec{i_r},\vec{i_{\phi}},\vec{i_{\theta}} in the gradient and add them up? Since \vec{i_r},\vec{i_{\phi}},\vec{i_{\theta}} I thought you could do that.
ehrenfest
Dec20-07, 04:52 PM
Does my question make sense to anyone?
ehrenfest
Dec20-07, 08:19 PM
Please?
Ok. Sure. You don't dot a gradient with itself to get the laplacian. You take the divergence of the gradient to get the laplacian.
arildno
Dec21-07, 09:26 AM
OK. Got the gradient. Now, to calculate the Laplacien, I just dot that with itself. But in the equation of the Laplacian, it seems like there are cross-terms between the coefficients of different spherical basis vectors. Does that make sense. Why do you not just square the coefficients of \vec{i_r},\vec{i_{\phi}},\vec{i_{\theta}} in the gradient and add them up? Since \vec{i_r},\vec{i_{\phi}},\vec{i_{\theta}} I thought you could do that.
Sure you can "dot" the gradient with itself to get the Laplacian operator, as long as you do so PROPERLY.
The gradient in spherical coordinates is:
\nabla=\vec{i}_{r}\frac{\partial}{\partial{r}}+\ve c{i}_{\phi}\frac{\partial}{r\partial\phi}+\vec{i}_ {\theta}\frac{\partial}{r\sin\phi\partial\theta}
The Laplacian is now gained as follows:
\nabla^{2}=\vec{i}_{r}\cdot\frac{\partial\nabla}{\ partial{r}}+\vec{i}_{\phi}\cdot\frac{\partial\nabl a}{r\partial\phi}+\vec{i}_{\theta}\cdot\frac{\part ial\nabla}{r\sin\phi\partial\theta}
Remember that unit vectors are varying functions of the angles.
ehrenfest
Dec23-07, 01:24 PM
I see. Thanks.
s.maryam
Feb2-10, 10:25 AM
could anyone help me in preparing my presentation?
who introduce the spherical coordinates? its back ground?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.