Gradient of 1/|r-r'| with different methods

  • Thread starter Thread starter TheGreatDeadOne
  • Start date Start date
  • Tags Tags
    calculus gradient
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 5K views
TheGreatDeadOne
Messages
22
Reaction score
0
Homework Statement
calculate the function gradient with respect to r
Relevant Equations
gradient in spherical coordinates
Doing R=|r-r'|, i get the expected result: [tex]\nabla \frac{1}{|r-r'|} = -\frac{1}{R^2}\hat r=-\frac{(r-r')}{|r-r'|^3}[/tex]

But doing it this way seems extremely wrong, as I seem to be disregarding the module. So I tried to do it by the chain rule, and I got:

[tex]\nabla \frac{1}{|r-r'|}=-\frac{1}{2}(r-r')^{-\frac{3}{2}}[/tex]

but that doing so looks much more correct using Cartesian coordinates. So, does anyone have any tips?
 
Physics news on Phys.org
Let us see physical dimension of the quantity. It should be ##L^{-2}## but your calculation says ##L^{-3/2}##.
 
  • Like
Likes   Reactions: Keith_McClary and TheGreatDeadOne
... not to mention that ##\nabla## is a vector operator. I.e. ##\nabla f## is a vector.
 
  • Like
Likes   Reactions: anuttarasammyak
TheGreatDeadOne said:
Homework Statement:: calculate the function gradient with respect to r
Relevant Equations:: gradient in spherical coordinates

So I tried to do it by the chain rule, and I got:

[tex]\nabla \frac{1}{|r-r'|}=-\frac{1}{2}(r-r')^{-\frac{3}{2}}[/tex]

but that doing so looks much more correct using Cartesian coordinates. So, does anyone have any tips?
Something must have gone terribly wrong in your calculation cause the end result doesn't even make sense: r and r' are vectors and so is their difference r-r', But how do you raise a vector to the power of (-3/2)?

Please show us your calculation in cartesian coordinates to allow us to see where you go wrong.
 
Delta2 said:
Something must have gone terribly wrong in your calculation cause the end result doesn't even make sense: r and r' are vectors and so is their difference r-r', But how do you raise a vector to the power of (-3/2)?

Please show us your calculation in cartesian coordinates to allow us to see where you go wrong.

Spherical coordinates. Using Cartesian coordinates I solve correctly, i am trying for spherical coordinates.
 
TheGreatDeadOne said:
Spherical coordinates. Using Cartesian coordinates I solve correctly, i am trying for spherical coordinates.
Ok, well then please show us your calculation in spherical coordinates how you got $$\nabla \frac{1}{|r-r'|}=-\frac{1}{2}(r-r')^{-\frac{3}{2}}$$ with as much detail as possible.