Mysterious Factor of 2 in Divergence Theorem

In summary: You have calculated correctly.thx! :)Remember that there is a singularity at the origin.Yes, \lim_{r->0} \frac {1}{r^2} -> \infty.Hence, strictly speaking, the volume integral doesn't exist, and the divergence theorem isn't violated. :smile:Say what?!? :confused:That seems contradictory to me. How can it be that:the lhs of the div theorem doesn't exist (\int_V d\tau doesn't exist)the rhs yields a value of 4\pithe div theorem is still not violated?!?I just re-read Griffith's question. He doesn't say we should prove the divergence theorem but rather that
  • #1
Living_Dog
100
0
Let [tex]\vec{v} = r^{2} \hat{r}[/tex]. Show that the divergence theorm is correct using [tex]0 <= r <= R , 0 <= \theta <= \pi , and 0 <= \phi <= 2\pi [/tex].

[tex]$ \int \nabla \cdot \vec{v} d \tau = \int \vec{v} \cdot d \vec{a} $[/tex]

First the divergence of [tex]\vec{v}[/tex].

[tex]\nabla \cdot \vec{v} = 2r[/tex].

Then the volume integral:
[tex]
$ \int \int \int (2r) r^{2}sin \theta dr d\theta d\phi = 2 \int r^{3} dr \int sin \theta d\theta \int d\phi = 2 \cdot \frac{1}{4} r^{4} \left|^{R}_{0} \cdot 2 \cdot 2 \pi = 2 \pi R^{4}$
[/tex].

Ok, fine. But now do the area integral on the right. Since it is over the surface only, then [tex] r = R [/tex] and the integral is only over [tex]\theta[/tex] and [tex]\phi[/tex].

[tex]$ \int \vec{v} \cdot d\vec{a} = \int r^{2}\left|_{r=R} \cdot R^2 \int sin \theta d \theta \int d \phi = R^{4} \cdot 2 \cdot 2 \pi $[/tex]

And the last time I checked, [tex]2 \pi R^{4} \not= 4 \pi R^{4}[/tex]

Please help since I am going nuts with this minute detail!

-LD
 
Last edited:
Physics news on Phys.org
  • #2
Living_Dog said:
[tex]\nabla \cdot \vec{v} = 2r[/tex].
Are you sure about that?
 
  • #3
Factor of 2 won't go away!

Well, I thought the problem was that [tex]\nabla \cdot \vec{v}[/tex] was not a simple derivative. But after thinking about it a while I think it is. So I am "sure" that [tex]\nabla \cdot \vec{v} = 2r[/tex].

Here's my reasoning: [tex]\nabla = \hat{r} \partial_r + \theta [/tex] and [tex]\phi[/tex] terms. However, [tex]\vec{v}[/tex] only has the [tex]\hat{r}[/tex] component. I.e. [tex]v_\theta[/tex] and [tex]v_\phi[/tex] are both 0 (zero).

So when you take the dot product you obtain: [tex]\partial_r (r^{2})[/tex] which most definitely equals 2r.

...or show me where I'm wrong.

-LD
 
Last edited:
  • #4
Living_Dog said:
...or show me where I'm wrong.

-LD

Well, the expression for the radial component of divergence in spherical coordinates is
[tex]\frac{1}{r^2} \frac{\partial (r^2 v_r)}{\partial r}[/tex]
 
Last edited:
  • #5
Living-Dog:
Your understanding of polar coordinate description is rather shaky, in particular when it comes to differntiating a vector properly.
Remember that the unit vectors in a polar coordinate system are dependent upon the variables; therefore, in order to differentiate correctly, you must, in essence, also differentiate the unit vectors themselves, in addition to differentiating the vector components.

Let's rewrite your velocity field in Cartesian coordinates, and calculate the divergence first by means of this:
[tex]\hat{r}=\frac{x}{r}\hat{x}+\frac{y}{r}\hat{y}+\frac{z}{r}\hat{z}, r=\sqrt{x^{2}+y^{2}+z^{2}}[/tex]
[tex]\vec{v}=r^{2}\hat{r}=r(x\hat{x}+y\hat{y}+z\hat{z})[/tex]
[tex]\nabla\cdot\vec{v}=\frac{\partial(xr)}{\partial{x}}+\frac{\partial(yr)}{\partial{y}}+\frac{\partial(zr)}{\partial{z}}=r+\frac{x^{2}}{r}+r+\frac{y^{2}}{r}+r+\frac{z^{2}}{r}=4r[/tex]

Note that this is in accordance with neutrino's answer, and that this is where the mysterious factor of 2 comes in..
 
Last edited:
  • #6
neutrino said:
Well, the expression for the radial component of divergence in spherical coordinates is
[tex]\frac{1}{r^2} \frac{\partial (r^2 v_r)}{\partial r}[/tex]

As arildno so accurately described my understanding of polar coordinates, the spherical coordinate del is still a mystery to me.

Sorry and thanks for your patience.

-LD
 
Last edited:
  • #7
arildno said:
Living-Dog:
Your understanding of polar coordinate description is rather shaky,
...
Note that this is in accordance with neutrino's answer, and that this is where the mysterious factor of 2 comes in..

Good point. I am going to study polar coordinates before I move on. I copied and pasted your reply to my notes. Thanks! :)

-LD
 
  • #8
Problem 1.38 part (b)

I have thought about this part for a while and after making 2 separate attempts (one using the polar coordinates and one using rectangular coordinates) I am stuck for the solution. I keep getting 0 (zero) and I know that is incorrect. The surface integral yields the correct answer, [tex]4 \pi[/tex].

[tex]\int_V \nabla \cdot \vec{v}_2 d\tau[/tex]

where [tex]\vec{v}_2 = \frac{1}{r^2} \hat{r}[/tex].

As neutrino pointed out, the r-component of del is:
[tex]\frac{1}{r^2} \frac{\partial (r^2 v_r)}{\partial r}[/tex].

First the polar coordinate method:

[tex] \frac{1}{r^2} \frac{\partial (r^2 \cdot \frac{1}{r^2})}{\partial r} = \frac{1}{r^2} \cdot \frac{\partial (1)}{\partial r} = 0[/tex].

Next the rectangular coordinate method:

[tex]\vec{v_2} = \frac{\hat{r}}{r^2}[/tex],

which in rectangular coordinates is:

[tex]\vec{v_2} = \frac{sin \theta cos \phi \hat{x} + sin \theta sin \phi \hat{y} + cos \theta \hat{z}}{x^2 + y^2 + z^2}[/tex].

But

[tex]
\begin{array} {c}
sin \theta cos \phi = \frac{x}{r} \\
sin \theta sin \phi = \frac{y}{r} \\
cos \theta = \frac{z}{r} \\
\end{array}
[/tex]

Putting all the pieces together and taking the rectangular coordinate divergence yields:

[tex]
\nabla \cdot \vec{v_2}
=
\frac{\partial}{\partial x} (\frac{x}{r^3}) +
\frac{\partial}{\partial y} (\frac{y}{r^3}) +
\frac{\partial}{\partial z} (\frac{z}{r^3})
=
\frac{1}{r^3} - \frac{3x^2}{r^5} +
\frac{1}{r^3} - \frac{3y^2}{r^5} +
\frac{1}{r^3} - \frac{3z^2}{r^5}
=
\frac{3}{r^3} - \frac{3(x^2 + y^2 + z^2)}{r^5}
=
\frac{3}{r^3} - \frac{3r^2}{r^5}
=
\frac{3}{r^3} - \frac{3}{r^3}
=
0
[/tex].

HELP! :frown:
 
Last edited:
  • #9
You have calculated correctly.
Remember that there is a singularity at the origin.
Hence, strictly speaking, the volume integral doesn't exist, and the divergence theorem isn't violated. :smile:
 
  • #10
arildno said:
You have calculated correctly.

thx! :)

arildno said:
Remember that there is a singularity at the origin.

Yes, [tex]\lim_{r->0} \frac {1}{r^2} -> \infty[/tex].

arildno said:
Hence, strictly speaking, the volume integral doesn't exist, and the divergence theorem isn't violated. :smile:

Say what?!? :confused:

That seems contradictory to me. How can it be that:
  1. the lhs of the div theorem doesn't exist ([tex]\int_V d\tau[/tex] doesn't exist)
  2. the rhs yields a value of [tex]4\pi[/tex]
  3. the div theorem is still not violated?!?

I just re-read Griffith's question. He doesn't say we should prove the divergence theorem but rather that we compare our answer to problem 1.16. Problem 1.16 is the same as #1.38(b) except he said that the answer should surprise us and then asked "...can you explain it?"

Besides my questions above, it seems to me that the divergence of a singularity is 0 (zero) because the singularity looks like a flat empty space?!? This is too weird.

"Onward through the fog!"
-LD
 
Last edited:
  • #11
No, you've misunderstood.
The divergence theorem is derived under the asumption that the divergence of the function is DEFINED at all points within the volume.

Since the function v2 is not defined at the origin, neither is any of its derivatives defined there.
Hence, the underlying assumption behind the divergence theorem is not fulfilled, and therefore, it is in principle no reason why the theorem should hold for this case.

It should be mentioned, though, that since the value of the surface integral is independent of the size&shape of the region enclosing the origin, we are entitled to define the divergence of v2 as:
[tex]\nabla\cdot\vec{v}_{2}=4\pi\delta[/tex]
where [itex]\delta[/itex] denotes Dirac's delta "function".
By the properties of the delta "function", we have, indeed:
[tex]\int_{V}4\pi\delta{dV}=4\pi[/tex]
where V is a volume enclosing the origin.
 
Last edited:
  • #12
arildno said:
No, you've misunderstood.
The divergence theorem is derived under the asumption that the divergence of the function is DEFINED at all points within the volume.

Since the function v2 is not defined at the origin, neither is any of its derivatives defined there.
Hence, the underlying assumption behind the divergence theorem is not fulfilled, and therefore, it is in principle no reason why the theorem should hold for this case.

It should be mentioned, though, that since the value of the surface integral is independent of the size&shape of the region enclosing the origin, we are entitled to define the divergence of v2 as:
[tex]\nabla\cdot\vec{v}_{2}=4\pi\delta[/tex]
where [itex]\delta[/itex] denotes Dirac's delta "function".
By the properties of the delta "function", we have, indeed:
[tex]\int_{V}4\pi\delta{dV}=4\pi[/tex]
where V is a volume enclosing the origin.

Excellent! I don't think Griffith mentions this requirement in the chapter. But that's ok, I got it now. :) Also, the next section after this one is the Dirac Delta function.

---

BTW, I did Prob. 1.39 with similar errors. The divergence and the volume integral went easily. But then I did the surface integral and the answer didn't agree.

I re-did the divergence and the volume integral and then checked the surface integral again. Still nothing. Then I said I must be doing something wrong and realized that I was only taking the top spherical part of the volume (it's a bowl on the xy-plane with the "open" end down).

So happily I did the 2nd surface integral and expected the sum to give the correct result.

But before I rushed off to do this second (flat) surface I realized that d[tex]\vec{a}[/tex] is different for this surface than it is for the spherical top portion. Correct! ... except I was getting a minus sign somewhere...

After some thinking I decided to check the definition of [tex]\hat{z}[/tex] and sure enough, since the unit normal vector for this surface was -[tex]\hat{z}[/tex], and -[tex]\hat{z} = -cos\theta\hat{r} + sin \theta\hat{\theta}[/tex] I realized my last mistake and added the last portion to the first to get the correct answer!

-LD (aka "Learning_Dog" :)
 
Last edited:

Related to Mysterious Factor of 2 in Divergence Theorem

1. What is the "mysterious factor of 2" in the Divergence Theorem?

The "mysterious factor of 2" refers to the coefficient of a particular term in the Divergence Theorem, which states that the flux of a vector field through a closed surface is equal to the integral of the divergence of the vector field over the volume enclosed by that surface. This factor of 2 arises due to the orientation of the surface and is necessary for the theorem to hold.

2. Why is the "mysterious factor of 2" important in the Divergence Theorem?

The factor of 2 is important because it ensures that the Divergence Theorem holds true for all closed surfaces, regardless of their orientation. Without this factor, the theorem would only hold for specific orientations of the surface, limiting its applicability.

3. Can the "mysterious factor of 2" be derived or is it just a mathematical convention?

The factor of 2 can be derived using mathematical proofs, such as the divergence theorem in Gauss's law. It is not just a convention, but rather a necessary component of the theorem to ensure its validity.

4. How does the "mysterious factor of 2" affect the computation of flux in the Divergence Theorem?

The factor of 2 affects the computation of flux by doubling the calculated value. This means that the flux through a closed surface will be twice the value of the integral of the vector field's divergence over the enclosed volume.

5. Are there any practical applications of the "mysterious factor of 2" in the Divergence Theorem?

Yes, the Divergence Theorem and its "mysterious factor of 2" have practical applications in various fields such as fluid mechanics, electromagnetism, and thermodynamics. It allows for the calculation of flux and flow rates through closed surfaces, which is essential in understanding and analyzing various physical phenomena.

Similar threads

  • Calculus and Beyond Homework Help
Replies
4
Views
383
  • Calculus and Beyond Homework Help
Replies
3
Views
662
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
Replies
14
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
374
  • Calculus and Beyond Homework Help
Replies
9
Views
873
  • Calculus and Beyond Homework Help
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
949
  • Calculus and Beyond Homework Help
Replies
8
Views
941
  • Calculus and Beyond Homework Help
Replies
4
Views
870
Back
Top