Easy question about divergence in cylindrical coordinates

Click For Summary
SUMMARY

The discussion centers on the correct procedure for calculating the divergence of a vector field in cylindrical coordinates, specifically when evaluating the radial component \( A_{r} = P \cos \theta \) at a constant radius \( r = a \). The consensus is that one should first differentiate the expression \( \frac{1}{r}\frac{\partial}{\partial r}(rA_{r}) \) and then substitute \( r = a \), leading to the result \( \frac{P \cos \theta}{r} \) evaluated at \( r = a \). Substituting \( r = a \) before differentiation yields an incorrect result of zero, as it treats certain terms as constants.

PREREQUISITES
  • Understanding of cylindrical coordinates in vector calculus
  • Familiarity with divergence and its mathematical expression
  • Knowledge of partial derivatives and their application
  • Basic grasp of vector fields and their components
NEXT STEPS
  • Study the derivation of divergence in cylindrical coordinates
  • Learn about the implications of evaluating limits in calculus
  • Explore vector calculus identities and their applications
  • Review examples of divergence in different coordinate systems
USEFUL FOR

Students and professionals in mathematics, physics, and engineering who are working with vector fields and need clarity on divergence calculations in cylindrical coordinates.

EricVT
Messages
165
Reaction score
6
Consider a cylindrical shell so that the cross sectional radius is some constant a.

In the first term of the divergence expression in cylindrical coordinates:

\frac{1}{r}\frac{\partial}{\partial r}(rA_{r})

When I multiply the radial component by r, do I go ahead and substitute r=a before I take the derivative with respect to r or do I substitute r=a after I take the derivative with respect to r?

Thanks a lot.
 
Physics news on Phys.org
Well for example, I have the A_r component of my vector:

A_{r}=Pcos\theta

And r=a is constant.

So if I do the divergence by multiplying A_r by r and then taking the derivative with respect to r, I get that that the first term is:

\frac{1}{r}\frac{\partial}{\partial r}(rA_{r}) = \frac{1}{r}\frac{\partial}{\partial r}(rPcos\theta) = \frac{Pcos\theta}{r}

And then evaluate at r=a.

However, if I put in r=a before taking the derivative then I get:

\frac{1}{r}\frac{\partial}{\partial r}(rA_{r}) = \frac{1}{r}\frac{\partial}{\partial r}(aPcos\theta) = 0

Which way is correct?
 
EricVT said:
Well for example, I have the A_r component of my vector:

A_{r}=Pcos\theta

And r=a is constant.

So if I do the divergence by multiplying A_r by r and then taking the derivative with respect to r, I get that that the first term is:

\frac{1}{r}\frac{\partial}{\partial r}(rA_{r}) = \frac{1}{r}\frac{\partial}{\partial r}(rPcos\theta) = \frac{Pcos\theta}{r}

And then evaluate at r=a.

However, if I put in r=a before taking the derivative then I get:

\frac{1}{r}\frac{\partial}{\partial r}(rA_{r}) = \frac{1}{r}\frac{\partial}{\partial r}(aPcos\theta) = 0

Which way is correct?

I was backing and forthing on this and finally deleted my post because I was second-guessing things. I believe the correct thing to do is to differentiate first and then evaluate at r = a . If you set r = a first, you set certain terms constant which will seem to have zero derivative, but don't in fact. Seeing your example satisfied me as to this point. So I'm reasonably sure your first result is the correct one.
 

Similar threads

Replies
3
Views
1K
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
1K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K