Calculating Gradient of 1/|r-r'|: Tips & Results

  • Thread starter Thread starter TheGreatDeadOne
  • Start date Start date
  • Tags Tags
    calculus gradient
Click For Summary
The discussion centers on calculating the gradient of the function 1/|r-r'|, where the initial calculation using R=|r-r'| yields a result consistent with expectations. However, an alternative approach using the chain rule leads to a result that appears incorrect, as it suggests a dimensional inconsistency. Participants emphasize the need for clarity in vector operations, particularly when raising vectors to fractional powers, which is deemed nonsensical. The conversation shifts towards the necessity of demonstrating calculations in Cartesian coordinates to identify errors in the spherical coordinate approach. Ultimately, the focus remains on achieving a correct gradient calculation in spherical coordinates.
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: \nabla \frac{1}{|r-r'|} = -\frac{1}{R^2}\hat r=-\frac{(r-r')}{|r-r'|^3}

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:

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

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 Keith_McClary and TheGreatDeadOne
... not to mention that ##\nabla## is a vector operator. I.e. ##\nabla f## is a vector.
 
  • Like
Likes 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:

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

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.
 
The book claims the answer is that all the magnitudes are the same because "the gravitational force on the penguin is the same". I'm having trouble understanding this. I thought the buoyant force was equal to the weight of the fluid displaced. Weight depends on mass which depends on density. Therefore, due to the differing densities the buoyant force will be different in each case? Is this incorrect?

Similar threads

Replies
2
Views
1K
Replies
6
Views
1K
  • · Replies 9 ·
Replies
9
Views
768
  • · Replies 10 ·
Replies
10
Views
1K
Replies
3
Views
1K
  • · Replies 17 ·
Replies
17
Views
866
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 24 ·
Replies
24
Views
2K
  • · Replies 18 ·
Replies
18
Views
1K