Vector calculus: line element dr in cylindrical coordinates

In summary, the conversation discusses the use of cylindrical coordinates in expressing the position vector and line element. It also explains how this can be used to do line integrals with a vector field. The conversation also addresses a question about the equations of a path and how it affects the line element. Finally, there is a discussion about the relationship between the position vector, the unit vector, and the angle in cylindrical coordinates.
  • #1
chiyu
5
2
We were taught that in cylindrical coodrinates, the position vector can be expressed as
IMG-20230422-WA0029.jpeg


And then we can write the line element by differentiating to get
IMG-20230422-WA0031.jpeg
.

We can then use this to do a line integral with a vector field along any path. And this seems to be what is done on all questions I've seen.However, if we are given the equations of the path, and it say rho is dependant on the other coordinates, wouldn't that change what dr is? For example:
IMG-20230422-WA0039.jpeg

Wouldn't this be the right equation? Or am I misunderstanding something?
 
Physics news on Phys.org
  • #2
Think of ##d\vec r## as a directed length element in space. It has components in three mutually perpendicular direction defined by the three unit vectors in cylindrical coordinates.
  • In the radial direction the component is a radial element of length ##d\rho##.
  • In the azimuthal direction the component is an arc element of length ##\rho~d\phi##.
  • In the axial direction the component is an axial element of length ##dz##.
So putting these components together to form a directed element, you get
##d\vec{r}=d\rho~\hat{\rho}+\rho~d\phi~\hat{\phi}+dz~\hat z.##
Knowing this, you can construct the volume element in cylindrical coordinates as the procuct of the three "sides", ##dV=\rho~d\rho~ d\phi~ dz.## An area element parallel to the ##xy##-plane is ##dA=\rho~d\rho~ d\phi## and so on.
 
  • #3
The factor of [itex]\rho[/itex] can also be deduced on dimensional grounds: [itex]d\rho[/itex] and [itex]dz[/itex] are lengths, but [itex]d\phi[/itex] is dimensionless (an angle).

Also, the unit vectors [itex]e_\rho[/itex] and [itex]e_\phi[/itex] are not constant, but depend on [itex]\phi[/itex]. Hence [tex]\begin{split}
\frac{\partial \mathbf{F}}{\partial \phi} &= \frac{\partial F_r}{\partial \phi}e_r + F_r\frac{\partial e_r}{\partial \phi} + \frac{\partial F_\phi}{\partial \phi} e_\phi + F_\phi \frac{\partial e_\phi}{\partial \phi} + \frac{\partial F_z}{\partial \phi} e_z \\
&= \left(\frac{\partial F_r}{\partial \phi} - F_\phi\right)e_r + \left(F_r + \frac{\partial F_\phi}{\partial \phi}\right)e_\phi + \frac{\partial F_z}{\partial \phi}e_z.\end{split}[/tex]
 
Last edited:
  • #4
pasmith said:
The factor of [itex]\rho[/itex] can also be deduced on dimensional grounds: [itex]d\rho[/itex] and [itex]dz[/itex] are lengths, but [itex]d\phi[/itex] is dimensionless (an angle).
That is true. However @chiyu's expression has an additional term ##\dfrac{\partial\rho}{\partial \phi}\hat{\rho}~d\phi## which is dimensionally correct but does not belong. Of course, one can always argue that this term is zero because ##\rho## by definition does not explicitly depend on ##\phi##, but why complicate matters?
 
  • #5
The easiest way is to express the Cartesian coordinates in terms of the cylinder coordinates,
$$\vec{x}=\begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix}=\begin{pmatrix} \rho \cos \varphi \\ \rho \sin \varphi \\ z \end{pmatrix}.$$
Then
$$\mathrm{d} \vec{x} = \mathrm{d} \rho \begin{pmatrix}\cos \varphi \\ \sin \varphi \\ 0 \end{pmatrix} + \mathrm{d} \varphi \rho \begin{pmatrix}-\sin \varphi \\ \cos \varphi \\ 0 \end{pmatrix} + \mathrm{d} z \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix}.$$
It's easy to see that the three column vectors appearing in this equation form a Cartesian bases and thus
$$\mathrm{d} \vec{r}^2 = \mathrm{d} \rho^2 + \rho^2 \mathrm{d} \varphi^2 +\mathrm{d} z^2.$$
 
  • #6
kuruman said:
That is true. However @chiyu's expression has an additional term ##\dfrac{\partial\rho}{\partial \phi}\hat{\rho}~d\phi## which is dimensionally correct but does not belong. Of course, one can always argue that this term is zero because ##\rho## by definition does not explicitly depend on ##\phi##, but why complicate matters?
Hey thanks for your help. I am a bit confused about why ##\rho## doesn't depend on ##\phi##? I get that that is the case for a position vector to any point in space, but if the curve we defined has ##\rho## as a function of ##\phi##, why would it still be the case that the additional term is 0?
 
  • #7
chiyu said:
Hey thanks for your help. I am a bit confused about why ##\rho## doesn't depend on ##\phi##? I get that that is the case for a position vector to any point in space, but if the curve we defined has ##\rho## as a function of ##\phi##, why would it still be the case that the additional term is 0?
##\rho## is the distance (a scalar) and does not depend on. Imagine a circle of radius ##\rho##. It is the same regardless of the angle relative to a Cartesian coordinate system.
##\hat {\rho}## is a unit vector and does depend on the angle relative to a Cartesian coordinate system.

Consider a point in the xy-plane. In Cartesian coordinates you write its position vector as
##\vec r=x~\hat x+y~\hat y.##
In cylindrical coordinates the same position vector is
##\vec r=\rho~\hat \rho.##
You can connect the two by noting that ##x=\rho\cos\!\phi## and ##y=\rho\sin\!\phi.## Then
##\vec r=\rho\cos\!\phi~\hat x+\rho\sin\!\phi~\hat y=\rho(\cos\!\phi~\hat x+\sin\!\phi~\hat y)=\rho~\hat \rho.##
It follows that ##\hat \rho=(\cos\!\phi~\hat x+\sin\!\phi~\hat y)##
Clearly, it's the unit vector ##\hat \rho## that depends on the angle not the coordinate ##\rho##.
 
  • Like
Likes vanhees71
  • #8
kuruman said:
##\rho## is the distance (a scalar) and does not depend on. Imagine a circle of radius ##\rho##. It is the same regardless of the angle relative to a Cartesian coordinate system.
##\hat {\rho}## is a unit vector and does depend on the angle relative to a Cartesian coordinate system.

Consider a point in the xy-plane. In Cartesian coordinates you write its position vector as
##\vec r=x~\hat x+y~\hat y.##
In cylindrical coordinates the same position vector is
##\vec r=\rho~\hat \rho.##
You can connect the two by noting that ##x=\rho\cos\!\phi## and ##y=\rho\sin\!\phi.## Then
##\vec r=\rho\cos\!\phi~\hat x+\rho\sin\!\phi~\hat y=\rho(\cos\!\phi~\hat x+\sin\!\phi~\hat y)=\rho~\hat \rho.##
It follows that ##\hat \rho=(\cos\!\phi~\hat x+\sin\!\phi~\hat y)##
Clearly, it's the unit vector ##\hat \rho## that depends on the angle not the coordinate ##\rho##.
But let's say instead of a circle, we take the surface of a oblong cylinder, then depending on the angle the distance will change right?
 
  • #9
chiyu said:
But let's say instead of a circle, we take the surface of a oblong cylinder, then depending on the angle the distance will change right?
You are confusing the general expression of a directed element ##d\mathbf{ r}## with a specific directed element subject to constraints for doing a specific line integral. Let me show you what I mean. Say you have a vector field $$\mathbf{E}=E_{\rho}(\rho,\phi,z)\hat {\rho}+E_{\phi}(\rho,\phi,z)\hat {\phi}+E_z(\rho,\phi,z)\hat {z}.$$In this expression, coordinates ##\rho##, ##\phi## and ##z## are placeholders for any radial distance ##\rho##, any polar angle ##\phi## and any axial distance ##z##. They are completely independent of each other and the field doesn't give a hoot whether you want to do a line integral along a circle or an ellipse or a squiggle. It is what it is. Likewise the directed element ##d\mathbf{r}## is, as has already been said, is always $$d\mathbf{r}=d\rho~\hat{\rho}+\rho~d\phi~\hat{\phi}+dz~\hat z.$$It follows that the integrand of a line integral in cylindrical coordinates is $$\begin{align}\mathbf{E}\cdot d\mathbf{r} & =[E_{\rho}(\rho,\phi,z)\hat {\rho}+E_{\phi}(\rho,\phi,z)\hat {\phi}+E_z(\rho,\phi,z)\hat {z}]\cdot (d\rho~\hat{\rho}+\rho~d\phi~\hat{\phi}+dz~\hat z)\nonumber \\
&= E_{\rho}(\rho,\phi,z)d\rho+E_{\phi}(\rho,\phi,z)\rho~d\phi+E_z(\rho,\phi,z)dz \nonumber \\
\end{align}.$$The above expression is always the integrand of a line integral regardless of the shape of the line you are integrating over. I repeat once more that ##r##, ##\phi## and ##z## are independent coordinates which means that the partial derivative of one with respect to another is zero.

Now how do you set up a specific line integral? Say you want to do a line integral in the xy-plane along a circle of radius ##R## from ##\phi_1## to ##\phi_2##. The equation of a circle in cylindrical coordinates in the xy-plane is ##\rho=R##, ##d\rho=0## and ##z=dz=0.## With these replacements, the integrand becomes
$$\mathbf{E}\cdot d\mathbf{r} = E_{\phi}(R,\phi,0)R~d\phi$$and you have to integrate from ##\phi_1## to ##\phi_2.##

Now say you want to do a line integral along an ellipse of semi-major axis ##a## and eccentricity ##e##. The equation of this ellipse in cylindrical coordinates in the xy plane is $$\rho(\phi)=\frac{a(1-e^2)}{1+e\cos\phi}\implies d\rho=\frac{ae(1-e^2)\sin\phi}{(1+e\cos\phi)^2}d\phi$$ and, of course ##z=dz=0.## Then $$\mathbf{E}\cdot d\mathbf{r}=E_{\rho}(\rho(\phi),\phi,0)\frac{ae(1-e^2)\sin\phi}{(1+e\cos\phi)^2}d\phi+E_{\phi}(\rho(\phi),\phi,0)\rho(\phi)~d\phi$$and you have to integrate from ##\phi_1## to ##\phi_2.##
To summarize, the general expression for a directed element is
$$d\mathbf{r}=d\rho~\hat{\rho}+\rho~d\phi~\hat{\phi}+dz~\hat z.$$ The specific directed element along a circle in the xy-plane is $$d\mathbf{r}=\rho~d\phi~\hat{\phi}.$$The specific directed element along an ellipse in the xy-plane is $$d\mathbf{r}=\frac{a(1-e^2)}{1+e\cos\phi}\left[\frac{e\sin\phi}{(1+e\cos\phi)}~\hat{\rho}+\hat{\phi}\right]d\phi.$$Do you see how it works?
 
  • Like
Likes nasu and vanhees71
  • #10
kuruman said:
To summarize, the general expression for a directed element is
$$d\mathbf{r}=d\rho~\hat{\rho}+\rho~d\phi~\hat{\phi}+dz~\hat z.$$ The specific directed element along a circle in the xy-plane is $$d\mathbf{r}=\rho~d\phi~\hat{\phi}.$$The specific directed element along an ellipse in the xy-plane is $$d\mathbf{r}=\frac{a(1-e^2)}{1+e\cos\phi}\left[\frac{e\sin\phi}{(1+e\cos\phi)}~\hat{\rho}+\hat{\phi}\right]d\phi.$$Do you see how it works?
Ah I think I do now! Am I right in saying then that $$d\mathbf{r}=d\rho~\hat{\rho}+\rho~d\phi~\hat{\phi}+dz~\hat z$$ is the general expression, and if in the specific case where ##\rho## depend on ##\phi##, we can write ##d\rho## as ##\frac{\partial \rho}{\partial \phi} d\phi##, so that will still get us with a line integral of only ##d\phi## in our example?

Also, I see why the general expression is right now, but I still don't think I quite understand why the second expression of ##dr## I wrote in the original images was wrong, as in, what's wrong in the reasoning to get there if we started with a ##\rho## that depends on ##\phi##, and differentiated it?
 
  • #11
chiyu said:
Also, I see why the general expression is right now, but I still don't think I quite understand why the second expression of ##dr## I wrote in the original images was wrong, as in, what's wrong in the reasoning to get there if we started with a ##\rho## that depends on ##\phi##, and differentiated it?
Because the first expression that you wrote as the directed element ##d\mathbf{r}## is not $$d\mathbf{r}=\frac{\partial\mathbf{r}}{\partial {\rho}}d\rho+\frac{\partial\mathbf{r}}{\partial {\phi}}d\phi+\frac{\partial\mathbf{r}}{\partial {z}}dz.$$ One more time, the general expression is $$d\mathbf{r}= d\rho~\hat{\rho}+\rho~d\phi ~\hat{\phi}+dz~\hat z.$$That's the general form for any ##\rho##. If ##\rho## is a function of ##\phi## only, i.e. ##\rho=g(\phi)##, then $$d\rho=\frac{\partial g}{\partial{\phi}}d\phi$$ and the general expression takes the specific form $$d\mathbf{r}=\frac{\partial g}{\partial{\phi}}d\phi~\hat{\rho}+\rho(\phi)~d\phi ~\hat{\phi}+dz~\hat z=\left[\frac{\partial g}{\partial{\phi}}~\hat{\rho}+g(\phi)~\hat{\phi}\right]d\phi+dz~\hat z.$$ There is no ##d\rho## term in the specific form for ##d\mathbf{r}.## I thought that was obvious when I posted the two specific examples of the circle and ellipse.

Your expression has a ##d\rho## term and that makes it incorrect. You can't have your cake and eat it too. When you say "Consider ##\rho=\rho(\phi)##", ##\rho## as a placeholder variable disappears and is replaced by a function of ##\phi##. Only the radial unit vector remains.
 
  • Like
Likes vanhees71
  • #12
kuruman said:
Your expression has a ##d\rho## term and that makes it incorrect. You can't have your cake and eat it too. When you say "Consider ##\rho=\rho(\phi)##", ##\rho## as a placeholder variable disappears and is replaced by a function of ##\phi##. Only the radial unit vector remains.
Ohhhh I see now! I think I'm 100% clear now, that makes a lot of sense. Thank you for being patient with me.
 
  • Like
Likes BvU and kuruman

1. What is a line element in vector calculus?

A line element in vector calculus is a small segment on a curve or surface that is used to calculate the length, direction, and magnitude of a vector. It is represented by the symbol "dr" and is commonly used in differential calculus to find the derivative of a vector function.

2. How is the line element dr used in cylindrical coordinates?

In cylindrical coordinates, the line element dr is used to represent a small change in the radial, angular, and height components of a vector. It is written as dr = drr + r dθ + dz, where drr is the change in the radial component, dθ is the change in the angular component, and dz is the change in the height component.

3. What is the relationship between the line element dr and the cylindrical coordinate system?

The line element dr is an essential part of the cylindrical coordinate system, as it helps to define the direction and magnitude of vectors in this system. It is used to calculate the length of a curve or surface in cylindrical coordinates and is also used in integration to find the area, volume, and other quantities in this coordinate system.

4. How is the line element dr calculated in cylindrical coordinates?

The line element dr in cylindrical coordinates is calculated using the Pythagorean theorem, where drr = √(dxr2 + dyr2) and dθ = dθ. This formula takes into account the changes in the radial and angular components of a vector and is used to find the length of a curve or surface in cylindrical coordinates.

5. What are some real-life applications of vector calculus with line element dr in cylindrical coordinates?

Vector calculus with line element dr in cylindrical coordinates has many real-life applications, such as in engineering, physics, and computer graphics. It is used to calculate the forces and moments on cylindrical objects, to model fluid flow in pipes, and to create 3D graphics in computer simulations. It is also used in the study of electromagnetic fields and in the development of mathematical models for physical systems.

Similar threads

  • Classical Physics
Replies
2
Views
1K
Replies
3
Views
491
  • Linear and Abstract Algebra
Replies
9
Views
164
Replies
1
Views
572
  • Special and General Relativity
Replies
9
Views
1K
Replies
8
Views
533
  • Advanced Physics Homework Help
Replies
4
Views
769
  • Classical Physics
Replies
6
Views
753
  • Introductory Physics Homework Help
Replies
3
Views
2K
Back
Top