Gradient (1/r): Homework Equation Solutions

  • Thread starter Thread starter physics12
  • Start date Start date
  • Tags Tags
    Gradient
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
8 replies · 33K views
physics12
Messages
4
Reaction score
0

Homework Statement



gradient(1/r) = r(hat) / r^2

Homework Equations


r = (x-x')i + (y-y')j + (z-z')k

[Mentor Note -- Poster was reminded to always show effort on schoolwork questions]
 
Last edited by a moderator:
Physics news on Phys.org
In spherical coordinates, the gradient of a scalar function f is:
[itex]\vec\nabla f(r, \theta, \phi) = \frac{\partial f}{\partial r}\hat r+ \frac{1}{r}\frac{\partial f}{\partial \theta}\hat\theta+ \frac{1}{r \sin\theta}\frac{\partial f}{\partial \phi}\hat\phi[/itex].
And we have [itex]\frac{d}{dr}\frac 1 r=-\frac{1}{r^2}[/itex].
 
can this be done in cartesian coordinates?
 
Or, in Cartesian coordinates,
[tex]\frac{1}{r}= \frac{1}{x^2+ y^2+ z^2}= (x^2+ y^2+ z^2)^{-1/2}[/tex]

[tex]\left(\frac{1}{r}\right)_x= -\frac{1}{2}(x^2+ y^2+ z^2)^{-3/2}(2x)= -\frac{rcos(\theta)sin(\phi)}{r^3}= -\frac{1}{r^3} (rcos(\theta)sin(\phi))[/tex]

[tex]\left(\frac{1}{r}\right)_y= -\frac{1}{2}(x^2+ y^2+ z^2)^{-3/2}(2y)= -\frac{rsin(\theta)sin(\phi)}{r^3}= -\frac{1}{r^3} (rsin(\theta)sin(\phi)([/tex]

[tex]\left(\frac{1}{r}\right)_z= -\frac{1}{2}(x^2+ y^2+ z^2)^{-3/2}(2z)= -\frac{rcos(\phi)}{r^3}= -\frac{1}{r^3} (rcos(\phi))[/tex]

So that [tex]\nabla \frac{1}{r}= -\frac{1}{r^3}\vec{r}= -\frac{1}{r^2}\frac{\vec{r}}{r}= -\frac{1}{r^2}\hat{r}[/tex]

Where [itex]\hat{r}[/itex] is the unit vector in the direction of [itex]\vec{r}[/itex].
 
Last edited by a moderator:
Reply
  • Like
Likes   Reactions: haushofer
kunu said:
but this negative
Yes it is. 1/r decreases with increasing r.
 
Reply
  • Like
Likes   Reactions: scottdave and PhDeezNutz
Sometimes it's easier to work in Cartesian coordinates. For any function ##\Phi(r)## you have
$$\vec{\nabla} \Phi(r)=\Phi'(r) \vec{\nabla} r.$$
Now
$$\vec{\nabla} r= \begin{pmatrix} \partial_1 \\ \partial_2 \\ \partial_3 \end{pmatrix} \sqrt{x_1^2+x_2^2+x_3^2}.$$
The first component thus reads
$$\partial_1 r=2 x_1 \frac{1}{2 \sqrt{x_1^2+x_2^2+x_3^2}}=\frac{x_1}{r}.$$
In the same way you get the other two components, leading to
$$\vec{\nabla} r= \frac{\vec{r}}{r}=\hat{r}.$$
Thus
$$\vec{\nabla} \frac{1}{r} = -\frac{1}{r^2} \hat{r}.$$
 
Reply
  • Like
  • Love
Likes   Reactions: MatinSAR and malawi_glenn