Easy question about divergence in cylindrical coordinates

AI Thread Summary
In cylindrical coordinates, when calculating the divergence of a vector field, it is crucial to differentiate the radial component before substituting a constant value for r. The divergence expression involves multiplying the radial component by r and then taking the derivative with respect to r, yielding a non-zero result when evaluated at r=a. If r is substituted with a before differentiation, it leads to an incorrect result of zero due to treating certain terms as constants. Therefore, the correct approach is to differentiate first and then evaluate at the constant radius. This method ensures accurate results in divergence calculations for cylindrical shells.
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.
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top