How Do You Compute the Divergence of a Vector Function Over a Scalar Field?

  • Thread starter Thread starter yungman
  • Start date Start date
  • Tags Tags
    Curl Divergence
yungman
Messages
5,741
Reaction score
294
Let ##\vec {F}(\vec {r}')## be a vector function of position vector ##\vec {r}'=\hat x x'+\hat y y'+\hat z z'##. I want to find ##\nabla\cdot\frac {\vec {F}(\vec {r}')}{|\vec {r}-\vec{r}'|}##.

My attempt:
Let ##\vec {r}=\hat x x+\hat y y+\hat z z##. Since ##\nabla## work on ##x,y,z##, not ##x',y',z##'
\Rightarrow\;\nabla\cdot\vec {F}(\vec{r}')=\nabla\times\vec {F}(\vec{r}')=0
Then ##\frac {1}{|\vec {r}-\vec{r}'|}## is not even a vector. How can I perform ##\nabla\cdot\frac {\vec {F}(\vec {r}')}{|\vec {r}-\vec{r}'|}##?




BUT
according to http://faculty.uml.edu/cbaird/95.657%282012%29/Helmholtz_Decomposition.pdf. It uses:
\nabla\cdot (\Phi\vec A)=\vec A\cdot\nabla\Phi+\Phi\nabla\cdot\vec A\;\hbox { Where }\;\Phi=\frac{1}{|\vec {r}-\vec{r}'|}\;\hbox {and }\;\vec A=\vec {F}(\vec {r}')
You can see this from the bottom of page 2 to the top of page 3. I cannot agree with this, ##\vec A=\vec {F}(\vec {r}')## is function of ##x',y',z'##, it's a constant respect to ##x,y,z## as indicated above.

Even the Wikipadia use the same method:http://en.wikipedia.org/wiki/Helmholtz_decomposition. You can see the 5th equation under "Proof".

Please tell me what's going on. Thanks
 
Last edited:
Physics news on Phys.org
With respect to which vector do you want to take the derivatives? It's important to say, whether you want to calculate \partial/\partial \vec{x} or \partial/\partial \vec{x}'!
 
vanhees71 said:
With respect to which vector do you want to take the derivatives? It's important to say, whether you want to calculate \partial/\partial \vec{x} or \partial/\partial \vec{x}'!

I think I got the answer, please verify my finding:

\nabla\cdot\frac {\vec {F}(\vec {r}')}{|\vec {r}-\vec{r}'|}=\frac{\partial}{\partial x}\left(\frac{1}{|\vec {r}-\vec{r}'|}F_{x'}\right)+\frac{\partial}{\partial y}\left(\frac{1}{|\vec {r}-\vec{r}'|}F_{y'}\right)+\frac{\partial}{\partial z}\left(\frac{1}{|\vec {r}-\vec{r}'|}F_{z'}\right)
=\nabla\left(\frac{1}{|\vec {r}-\vec{r}'|}\right)\cdot \vec {F}(\vec {r}')+\left(\frac{1}{|\vec {r}-\vec{r}'|}\right)(\nabla\cdot\vec{F}(\vec{r}'))
\hbox{Because }\;\nabla\cdot \vec {F}(\vec {r}')=0
\Rightarrow\;\nabla\cdot\frac {\vec {F}(\vec {r}')}{|\vec {r}-\vec{r}'|}=\vec {F}(\vec {r}')\cdot\nabla\left(\frac{1}{|\vec {r}-\vec{r}'|}\right)

Even though ##\vec {F}(\vec {r}')## is not a function of ##(x,y,z)## but you still need to tread it as a vector and use the product rule. Am I correct.
 
Last edited:
Indeed, even though \vec{F}(\vec{r}') is independent of \vec{r}, the vector \frac{\vec{F}(\vec{r}')}{|\vec{r}-\vec{r}'|} is not and it will have nonzero divergence with respect to the unprimed coordinates. The formula you gave in your first post is correct, we should have

$$ \nabla \cdot \left( \frac{\vec{F}(\vec{r}')}{|\vec{r}-\vec{r}'|} \right) = \frac{1}{|\vec{r}-\vec{r}'|} \left( \nabla \cdot \vec{F}(\vec{r}') \right) + \vec{F}(\vec{r}') \cdot \left( \nabla \frac{1}{|\vec{r}-\vec{r}'|} \right) $$

where the last term involves a gradient of a scalar. As you say, the first term on the right hand side is zero, so only the last term contributes. The above formula shouldn't be too hard to derive yourself, try writing it out in components.
 
  • Like
Likes 1 person
king vitamin said:
Indeed, even though \vec{F}(\vec{r}') is independent of \vec{r}, the vector \frac{\vec{F}(\vec{r}')}{|\vec{r}-\vec{r}'|} is not and it will have nonzero divergence with respect to the unprimed coordinates. The formula you gave in your first post is correct, we should have

$$ \nabla \cdot \left( \frac{\vec{F}(\vec{r}')}{|\vec{r}-\vec{r}'|} \right) = \frac{1}{|\vec{r}-\vec{r}'|} \left( \nabla \cdot \vec{F}(\vec{r}') \right) + \vec{F}(\vec{r}') \cdot \left( \nabla \frac{1}{|\vec{r}-\vec{r}'|} \right) $$

where the last term involves a gradient of a scalar. As you say, the first term on the right hand side is zero, so only the last term contributes. The above formula shouldn't be too hard to derive yourself, try writing it out in components.

Thanks for the reply, I just updated the last post, please check my work. I think it's agreeing with you.

Thanks
 
Yes, your reasoning in the post looks perfect!
 
king vitamin said:
Yes, your reasoning in the post looks perfect!

Thanks
 
Back
Top