Homework for Static Fields

  1. (DivergencePractice) Calculate the divergence for several made-up functions using rectangular and curvilinear coordinates.

    Calculate the divergence of each of the following vector fields. You may look up the formulas for divergence in curvilinear coordinates.

    1. $\FF=z^2\,\hat{x} + x^2 \,\hat{y} -y^2 \,\hat{z}$

    2. $\GG = e^{-x} \,\hat{x} + e^{-y} \,\hat{y} +e^{-z} \,\hat{z}$

    3. $\HH = yz\,\hat{x} + zx\,\hat{y} + xy\,\hat{z}$

    4. $\II = x^2\,\hat{x} + z^2\,\hat{y} + y^2\,\hat{z}$

    5. $\JJ = xy\,\hat{x} + xz\,\hat{y} + yz\,\hat{z}$

    6. $\KK = s^2\,\hat{s}$

    7. $\LL = r^3\,\hat{\phi}$

    8. $\MM = r^3 \cos{\phi}\,\hat{r} + \frac{1}{r^2} \sin^2{\theta}\,\hat{\phi}$

  2. (DivergencePrism) Verify the Divergence Theorem on a prism.

    Consider the vector field $\Vec F=(x+2)\hat{x} +(z+2)\hat{z}$.

    1. Calculate the divergence of $\Vec F$.

    2. In which direction does the vector field $\Vec F$ point on the plane $z=x$? What is the value of $\Vec F\cdot \hat n$ on this plane where $\hat n$ is the unit normal to the plane?

    3. Verify the divergence theorem for this vector field where the volume involved is drawn below.

      Figure: Volume for divergence
%*theorem.

  3. (DivergenceSpherical) Verify divergence theorem for a spherical shell of matter, starting with an expression for the gravitational field.

    The gravitational field due to a spherical shell of matter (or equivalently, the electric field due to a spherical shell of charge) is given by:

    \begin{equation} \Vec g = \begin{cases}

    	0&\textrm{for } r<a\\
    	-G \,\frac{M}{b^3-a^3}\,

    \left( r-\frac{a^3}{r^2}\right)\, \hat r & \textrm{for } a<r<b\\

    1. G\,\frac{M}{r^2}\, \hat r & \textrm{for } r>b \\

    \end{cases} \end{equation} (If you want extra practice with Gauss's law, this is a good question to practice on!)

    Figure: a spherical shell of matter

    This problem explores the consequences of the divergence theorem for this shell.

    1. Using the given value of the gravitational field, find the divergence of the gravitational field everywhere in space. You will need to divide this question up into three parts: $r<a$, $a<r<b$, and $r>b$.

    2. Discuss the physical meaning of the divergence in this particular example.

    3. For this gravitational field, verify the divergence theorem on a sphere, concentric with the shell, with radius $Q$, where $a<Q<b$.

    4. Discuss how this example would change if you were discussing the electric field of a uniformly charged spherical shell.

  4. (DivergencePractice2)

    Choose some simple vector fields of your own and find the divergence of them both by hand and using Mathematica or Maple. Choose some that are written in terms of rectangular coordinates and others in cylindrical and/or spherical.

  5. (DivergenceVisualizePractice)

    If you need more practice visualizing divergence, go through the Mathematica notebook on the course website.


Personal Tools