# Divergence of a function

1. Feb 18, 2012

### Karol

1. The problem statement, all variables and given/known data
The question is to draw the function:
$$V=\frac {\boldsymbol{\hat {r}}}{r^2}$$
And to compute it's divergence: $\nabla \cdot V$
2. Relevant equations
$$\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}$$
3. The attempt at a solution
$$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}}$$
The x component:
$$\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}$$
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

#### Attached Files:

• ###### Square r.jpg
File size:
15.7 KB
Views:
61
2. Feb 18, 2012

### HallsofIvy

Staff Emeritus
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.

3. Feb 18, 2012

### Karol

Why isn't the derivative correct?
The derivative of a fraction:
$$\frac {u}{v}=\frac {u'v-v'u}{v^2}$$
And, in our case:
$$\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}$$

4. Feb 18, 2012

### HallsofIvy

Staff Emeritus
Yes, that is correct. And not what you had before.

Now calculate the other two partial derivatives and add them.

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook