Calculating the Divergence of a Vector Field

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
Karol
Messages
1,380
Reaction score
22

Homework Statement


The question is to draw the function:
[tex]V=\frac {\boldsymbol{\hat {r}}}{r^2}[/tex]
And to compute it's divergence: [itex]\nabla \cdot V[/itex]

Homework Equations


[tex]\nabla\cdot V=\left ( \frac {\partial}{\partial x} \boldsymbol{\hat {x}}+\frac {\partial}{\partial y} \boldsymbol{\hat {y}}+\frac {\partial}{\partial z} \boldsymbol{\hat {z}}\right )\left ( v_x \boldsymbol{\hat {x}}+v_y \boldsymbol{\hat {y}}+v_z \boldsymbol{\hat {z}}\right )=\frac {\partial v_x}{\partial x}+\frac {\partial v_y}{\partial y}+\frac {\partial v_z}{\partial z}[/tex]

The Attempt at a Solution


[tex]V=\frac {x}{x^2+y^2+z^2}\boldsymbol{\hat {x}}+\frac {y}{x^2+y^2+z^2}\boldsymbol{\hat {y}}+\frac {x}{x^2+y^2+z^2}\boldsymbol{\hat {x}}[/tex]
The x component:
[tex]\frac {\partial}{\partial x}\left( \frac {x}{x^2+y^2+z^2}\right)=\frac {-2x^2+y^2+z^2}{(x^2+y^2+z^2)^2}[/tex]
And the other components are similar
I don't think this is the answer, since i was told to expect something special, maybe a number?
The vector field is, to my opinion, as in the picture attached
 

Attachments

  • Square r.jpg
    Square r.jpg
    10.7 KB · Views: 475
Physics news on Phys.org
Karol said:

Homework Statement


The question is to draw the function:
[tex]V=\frac {\boldsymbol{\hat {r}}}{r^2}[/tex]
And to compute it's divergence: [itex]\nabla \cdot V[/itex]

Homework Equations


[tex]\nabla\cdot V=\left ( \frac {\partial}{\partial x} \boldsymbol{\hat {x}}+\frac {\partial}{\partial y} \boldsymbol{\hat {y}}+\frac {\partial}{\partial z} \boldsymbol{\hat {z}}\right )\left ( v_x \boldsymbol{\hat {x}}+v_y \boldsymbol{\hat {y}}+v_z \boldsymbol{\hat {z}}\right )=\frac {\partial v_x}{\partial x}+\frac {\partial v_y}{\partial y}+\frac {\partial v_z}{\partial z}[/tex]

The Attempt at a Solution


[tex]V=\frac {x}{x^2+y^2+z^2}\boldsymbol{\hat {x}}+\frac {y}{x^2+y^2+z^2}\boldsymbol{\hat {y}}+\frac {x}{x^2+y^2+z^2}\boldsymbol{\hat {x}}[/tex]
The x component:
[tex]\frac {\partial}{\partial x}\left( \frac {x}{x^2+y^2+z^2}\right)=\frac {-2x^2+y^2+z^2}{(x^2+y^2+z^2)^2}[/tex]
This derivative is incorrect. And even if it were it wouldn't be "the answer" because you haven't calculated the other two partial derivatives.

I don't think this is the answer, since i was told to expect something special, maybe a number?
The vector field is, to my opinion, as in the picture attached
 
Why isn't the derivative correct?
The derivative of a fraction:
[tex]\frac {u}{v}=\frac {u'v-v'u}{v^2}[/tex]
And, in our case:
[tex]\left ( \frac {x}{x^2+y^2+z^2} \right )'=\frac {1 \cdot (x^2+y^2+z^2)-2x \cdot x}{(x^2+y^2+z^2)^2}=\frac {-x^2+y^2+z^2}{(x^2+y^2+z^2)^2}[/tex]