Conversion from Cartesian to Cylindrical Coordinates

In summary, the conversation is about the mathematical derivation from Cartesian coordinates Navier-Stokes equation to cylindrical coordinates Navier-Stokes equation. The equations are similar to the basic heat and mass transfer differential governing equations. The person has tried looking online and in various books, but they all skip the math and go straight to stating the equations, making it seem too complicated or trivial. They are curious about how it is done and are stuck on a part involving coordinate transformations. They share their progress and ask for help in simplifying their equations. Ultimately, they are looking for a mathematical identity or approach to simplify the equations.
  • #1
seaspecies
6
0
Hello.

I am interested in learning the mathematical derivation from Cartesian coordinates Navier-Stokes equation to cylindrical coordinates Navier-Stokes equation. These equations have similar forms to the basic heat and mass transfer differential governing equations. I’ve tried looking online and at a variety of fluid mechanics books and heat transfer books and they all simply skip the math and go straight into just stating the equations. It seems like it is too complicated that it is not worth saying. Or it might be so trivial that I might be missing something. Maybe it is not worth it but I am curious of how it is done.

I attached the part the I am most confused about as a jpeg. How do they equal?

[tex]
\frac{\partial T^2}{\partial x^2}+\frac{\partial T^2}{\partial y^2}=\frac{1}{r}\frac{\partial}{\partial r}r\frac{\partial T}{\partial r}+\frac{1}{r^2}\frac{\partial T^2}{\partial\theta^2}

[/tex]

Thanks. I am sorry if I had any errors I am new here.
 

Attachments

  • equation.JPG
    equation.JPG
    12.3 KB · Views: 1,292
Last edited:
Physics news on Phys.org
  • #2
So I've attached how far I've gotten but I am not sure if there are any tricks because I'm stuck.

[tex]
\frac{\partial }{\partial x}=\frac{\partial }{\partial r}\frac{\partial r}{\partial x}=\frac{\partial }{\partial r}cos\theta
[/tex]

[tex]
\frac{\partial }{\partial y}=\frac{\partial }{\partial r}\frac{\partial r}{\partial y}=\frac{\partial }{\partial r}sin\theta
[/tex]

[tex]
\frac{\partial T}{\partial x}=\frac{\partial r}{\partial x}\frac{\partial T}{\partial r} = cos\theta\frac{\partial T}{\partial r}
[/tex]

[tex]
\frac{\partial T}{\partial y}=\frac{\partial r}{\partial y}\frac{\partial T}{\partial r} = sin\theta\frac{\partial T}{\partial r}
[/tex]

[tex]
\frac{\partial T^2}{\partial x^2}+\frac{\partial T^2}{\partial y^2} =
sin\theta \frac{\partial }{\partial r} (sin\theta \frac{\partial T}{\partial r}) + cos\theta \frac{\partial }{\partial r} (cos\theta\frac{\partial T}{\partial r}) =? \frac{1}{r}\frac{\partial }{\partial r}r\frac{\partial T}{\partial r}+\frac{1}{r^2}\frac{\partial T^2}{\partial \theta^2}
[/tex]** Edited so that LaTex would work. (I just figured it out :smile: )
on a side note, I am not sure if this warrents a new topic, but I see my engineering colleagues interchange d and [tex] \partial [/tex]. I believe there is a difference mathamatically but what is it in particular and will it change the meaning the governing equations mathamatically?
 

Attachments

  • Equation2.JPG
    Equation2.JPG
    30.5 KB · Views: 4,379
Last edited:
  • #3
Well, usually, the topic of coordinate transformations would be taught in courses of vector analysis.
It is not particularly complicated (it should be easily understood), but the arithmetic can be quite messy if we wish to keep the notation on an intuitively clear level. Do you have a vector analysis textbook?
 
  • #4
Basically, changeing derivatives from one coordinate system to another is careful application of the chain rule.

Your
[tex]\frac{\partial }{\partial x}=\frac{\partial }{\partial r}\frac{\partial r}{\partial x}=\frac{\partial }{\partial r}cos\theta [/tex]
is only partially correct.
Since in polar coordinates, x depends on two variables, r and [itex]\theta[/itex],
[tex]\frac{\partial \phi}{\partial x}= \frac{\partial r}{\partial x}\frac{\partial \phi}{\partial r}+ \frac{\partial \theta}{\partial x} \frac{\partial \phi}{\partial \theta}[/tex]

[tex]r= \sqrt{x^2+ y^2}= \left(x^2+ y^2\right)^{\frac{1}{2}}[/itex] so
[tex]\frac{\partial r}{\partial x}= \frac{1}{2}\left(x^2+ y^2\right)^{-\frac{1}{2}}\left(2x\right)= \frac{x}{\sqrt{x^2+ y^2}}= \frac{r cos(\theta)}{r}= cos(\theta)[/tex]

Okay, now I see where you got your expression above- but it isn't complete.

[tex]\theta= tan^{-1}\frac{y}{x}[/itex]
so
[tex]\frac{\partial \theta}{\partial x}= \frac{1}{1+ \frac{y^2}{x^2}}\left(-\frac{y}{x^2}\right)= \frac{-y}{x^2+ y^2}= \frac{-r sin(\theta)}{r^2}= -\frac{1}{r}sin(\theta)[/itex]

That gives
[tex]\frac{\partial \phi}{\partial x}= cos(\theta)\frac{\partial \phi}{\partial r}- \frac{1}{r}sin(\theta)\frac{\partial \phi}{\partial \theta}[/tex]

Once again, it really just the chain rule, carefully applied.

Now, make sure you have plenty of time and paper, take a deep breath, and do it again to find [itex]\frac{\partial^2 \phi}{\partial x^2}[/itex]!
 
  • #5
Question

Hello. Thanks for the reply. I am wondering if this is mathematically viable:
Assuming:
[tex]\frac{\partial \phi}{\partial x}= \frac{\partial r}{\partial x}\frac{\partial \phi}{\partial r}+ \frac{\partial \theta}{\partial x} \frac{\partial \phi}{\partial \theta}[/tex] (1)

and

Assuming:
[tex]\frac{\partial}{\partial x}= \frac{\partial r}{\partial x}\frac{\partial}{\partial r}+ \frac{\partial \theta}{\partial x} \frac{\partial}{\partial \theta}[/tex] (2)

Would the following work?
[tex] \frac{\partial^2 \phi}{\partial x^2} = \frac{\partial}{\partial x}\frac{\partial \phi}{\partial x}
[/tex] (3)

Plugging equation 1 and 2 into equation 3.[tex] \frac{\partial^2 \phi}{\partial x^2} = (\frac{\partial r}{\partial x}\frac{\partial}{\partial r}+ \frac{\partial \theta}{\partial x} \frac{\partial}{\partial \theta}) (\frac{\partial r}{\partial x}\frac{\partial \phi}{\partial r}+ \frac{\partial \theta}{\partial x} \frac{\partial \phi}{\partial \theta})[/tex]

[tex]
\frac{\partial^2 \phi}{\partial x^2} =

\frac{\partial r}{\partial x}\frac{\partial}{\partial r}
\frac{\partial r}{\partial x}\frac{\partial \phi}{\partial r}
+
\frac{\partial r}{\partial x}\frac{\partial}{\partial r}
\frac{\partial \theta}{\partial x} \frac{\partial \phi}{\partial \theta}
+
\frac{\partial \theta}{\partial x}\frac{\partial}{\partial \theta}
\frac{\partial r}{\partial x}\frac{\partial \phi}{\partial r}
+
\frac{\partial \theta}{\partial x}\frac{\partial}{\partial \theta}
\frac{\partial \theta}{\partial x} \frac{\partial \phi}{\partial \theta}

[/tex]

[tex]
\frac{\partial^2 \phi}{\partial x^2} + \frac{\partial^2 \phi}{\partial y^2} =

\frac{\partial r}{\partial x}\frac{\partial}{\partial r}
\frac{\partial r}{\partial x}\frac{\partial \phi}{\partial r}
+
\frac{\partial r}{\partial x}\frac{\partial}{\partial r}
\frac{\partial \theta}{\partial x} \frac{\partial \phi}{\partial \theta}
+
\frac{\partial \theta}{\partial x}\frac{\partial}{\partial \theta}
\frac{\partial r}{\partial x}\frac{\partial \phi}{\partial r}
+
\frac{\partial \theta}{\partial x}\frac{\partial}{\partial \theta}
\frac{\partial \theta}{\partial x} \frac{\partial \phi}{\partial \theta}

+

\frac{\partial r}{\partial y}\frac{\partial}{\partial r}
\frac{\partial r}{\partial y}\frac{\partial \phi}{\partial r}
+
\frac{\partial r}{\partial y}\frac{\partial}{\partial r}
\frac{\partial \theta}{\partial y} \frac{\partial \phi}{\partial \theta}
+
\frac{\partial \theta}{\partial y}\frac{\partial}{\partial \theta}
\frac{\partial r}{\partial y}\frac{\partial \phi}{\partial r}
+
\frac{\partial \theta}{\partial y}\frac{\partial}{\partial \theta}
\frac{\partial \theta}{\partial y} \frac{\partial \phi}{\partial \theta}
[/tex]

The
[tex] \frac{\partial}{\partial \theta}\frac{\partial \phi}{\partial r} [/tex]
terms and its other combinations cancel out algebraically leaving only four terms

[tex]
\frac{\partial^2 \phi}{\partial x^2} + \frac{\partial^2 \phi}{\partial y^2} =

\frac{\partial r}{\partial x}\frac{\partial}{\partial r}
\frac{\partial r}{\partial x}\frac{\partial \phi}{\partial r}
+
\frac{\partial \theta}{\partial x}\frac{\partial}{\partial \theta}
\frac{\partial \theta}{\partial x} \frac{\partial \phi}{\partial \theta}

+

\frac{\partial r}{\partial y}\frac{\partial}{\partial r}
\frac{\partial r}{\partial y}\frac{\partial \phi}{\partial r}
+
\frac{\partial \theta}{\partial y}\frac{\partial}{\partial \theta}
\frac{\partial \theta}{\partial y} \frac{\partial \phi}{\partial \theta}
[/tex]If this works, ultimately I get something like this which is so close but I can’t get rid of the sin and cos (4 of the 8 terms cancel out and 2 of the terms could be combined leaving only 3 terms left). Is there a mathamatical identity or any way to approach this?

[tex]
sin\theta\frac{\partial}{\partial r} sin\theta\frac{\partial\phi}{\partial r} + cos\theta\frac{\partial}{\partial r} cos\theta\frac{\partial\phi}{\partial r} + \frac{1}{r^2}\frac{\partial^2 \phi}{\partial\theta^2}
[/tex]

which should ultimately equal the following if everything turns out well?

[tex]
\frac{1}{r}\frac{\partial }{\partial r}r\frac{\partial \phi}{\partial r}+\frac{1}{r^2}\frac{\partial \phi^2}{\partial \theta^2}
[/tex]Appendix:
[tex]\frac{\partial r}{\partial x}= \frac{1}{2}\left(x^2+ y^2\right)^{-\frac{1}{2}}\left(2x\right)= \frac{x}{\sqrt{x^2+ y^2}}= \frac{r cos(\theta)}{r}= cos(\theta)[/tex]

[tex]\frac{\partial r}{\partial y}= \frac{1}{2}\left(x^2+ y^2\right)^{-\frac{1}{2}}\left(2y\right)= \frac{y}{\sqrt{x^2+ y^2}}= \frac{r sin(\theta)}{r}= sin(\theta)[/tex]
 
Last edited:
  • #6
No.
Understand what the symbols mean, before spewing them out.
 
  • #7
Dear Arildno, I am sorry for the confusion. I tried add more text and equations to show my logical flow. Thanks for your reply.

Dear HallsOfIvy, Thanks! It makes much more sense now. I am wonder if my method was what you meant by:
"Now, make sure you have plenty of time and paper, take a deep breath, and do it again"

If my last method would not work did you want me to take the following approach
[tex]
\frac{\partial^2\phi}{\partial x^2}=\frac{\partial^2 r}{\partial x^2}\frac{\partial^2\phi}{\partial r^2}

+ \frac{\partial^2 \theta}{\partial x^2}\frac{\partial^2\phi}{\partial r^2} [/tex]

And compute all the second derivatives. But then my final answer won't have a
[tex]
\frac{\partial }{\partial r}r\frac{\partial \phi}{\partial r}
[/tex]

Thanks!
 
Last edited:
  • #8
I'm sorry about my previous reply, here's how you migth do it:
We have the 2-D Laplacian:
[tex]\nabla^{2}\phi=\frac{\partial^{2}\phi}{\partial{x}^{2}}+\frac{\partial^{2}\phi}{\partial{y}^{2}},\nabla^{2}\equiv\nabla\cdot\nabla,\nabla=\vec{i}\frac{\partial}{\partial{x}}+\vec{j}\frac{\partial}{\partial{y}}[/tex]

If we write the gradient operator [itex]\nabla[/itex] in terms of 2-D polar coordinates, we have:
[tex]\nabla=\vec{i}_{r}\frac{\partial}{\partial{r}}+\vec{i}_{\theta}\frac{\partial}{r\partial\theta}[/itex]

Notice that the unit vectors varies with the angle (but not with the radius!); we have:
[tex]\frac{\partial\vec{i}_{r}}{\partial\theta}=\vec{i}_{\theta},\frac{\partial\vec{i}_{\theta}}{\partial\theta}=-\vec{i}_{r}[/tex]

Now, perform the dot product [itex]\nabla\cdot\nabla[/itex]:
[tex]\nabla^{2}\equiv\nabla\cdot\nabla=\vec{i}_{r}\cdot\frac{\partial}{\partial{r}}(\vec{i}_{r}\frac{\partial}{\partial{r}}+\vec{i}_{\theta}\frac{\partial}{r\partial\theta})+\frac{1}{r}\vec{i}_{\theta}\cdot\frac{\partial}{\partial\theta}(\vec{i}_{r}\frac{\partial}{\partial{r}}+\vec{i}_{\theta}\frac{\partial}{r\partial\theta})[/tex]

By applying the product rules of differentiation, remembering that the unit vectors are constant with respect with r and that [itex]\vec{i}_{r}\cdot\vec{i}_{\theta}=0[/itex], we end up with:
[tex]\nabla^{2}=\frac{\partial^{2}}{\partial{r}^{2}}+\frac{1}{r}\frac{\partial}{\partial{r}}+\frac{1}{r^{2}}\frac{\partial^{2}}{\partial\theta^{2}}=\frac{1}{r}\frac{\partial}{\partial{r}}(r\frac{\partial}{\partial{r}})+\frac{1}{r^{2}}}}\frac{\partial^{2}}{\partial\theta^{2}}[/tex]
This is the desired repesentation of the Laplacian operator in polar coordinates.
 
Last edited:
  • #9
Dear arildno,

Thanks! It makes much more sense now. I had to look back onto my old texts but I've got it figured out. Yet I am alittle confused on the last part. I tried figuring it out but I could not figure out how to combine the two terms into one:

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

[tex]\nabla^{2}=\frac{\partial^{2}}{\partial{r}^{2}}+\frac{1}{r}\frac{\partial}{\partial{r}}+\frac{1}{r^{2}}\frac{\partial^{2}}{\partial\theta^{2}}=\frac{1}{r}\frac{\partial}{\partial{r}}(r\frac{\partial}{\partial{r}})+\frac{1}{r^{2}}}}\frac{\partial^{2}}{\partial\theta^{2}}[/tex]

Thanks
 
Last edited:
  • #10
Well:
[tex]\frac{\partial}{\partial{r}}(r\frac{\partial}{\partial{r}})=\frac{\partial{r}}{\partial{r}}\frac{\partial}{\partial{r}}+r\frac{\partial}{\partial{r}}(\frac{\partial}{\partial{r}})=\frac{\partial}{\partial{r}}+r\frac{\partial^{2}}{\partial{r}^{2}}[/tex]
 
  • #11
Thanks! It all makes sense now. It was so simple I didn't see it. Thanks again!
 
  • #12
My pleasure!
 
  • #13
Hi Sir...

what about this...i could not understand about ur conversion from cartisian to cylinrical coordinate, becoz it has a lot of mistakes, ...please tell me the true method...
 
  • #14
luckyyy said:
what about this...i could not understand about ur conversion from cartisian to cylinrical coordinate, becoz it has a lot of mistakes, ...please tell me the true method...

What do you mean? Please make your request more specific; state an exact question and the work you have done towards it.
 
  • #15
Luckyyy

i think, i did wrong something...but i am very intersting to solution of this, i spent many time to solve this but i could't...
 

What are Cartesian and Cylindrical coordinates?

Cartesian coordinates are a system of coordinates used to locate points on a two-dimensional plane using two perpendicular axes (x and y). Cylindrical coordinates are a system of coordinates used to locate points in three-dimensional space using three variables - radius, angle, and height.

Why would someone want to convert from Cartesian to Cylindrical coordinates?

Converting from Cartesian to Cylindrical coordinates can be useful when dealing with problems involving cylindrical shapes or objects, such as cylinders, cones, or pipes. It simplifies the calculation and makes it easier to visualize the problem.

What is the process for converting from Cartesian to Cylindrical coordinates?

The process involves using the Pythagorean theorem and trigonometric functions to find the radius and angle, and simply keeping the z-coordinate as the height. The formula for converting is:
r = √(x² + y²)
θ = tan⁻¹(y/x)
z = z

Can you convert from Cylindrical to Cartesian coordinates?

Yes, it is possible to convert from Cylindrical to Cartesian coordinates using the inverse of the conversion formula. The formula for converting is:
x = r cos(θ)
y = r sin(θ)
z = z

Are there any real-world applications of converting from Cartesian to Cylindrical coordinates?

Yes, converting from Cartesian to Cylindrical coordinates is commonly used in engineering, physics, and mathematics. It is used to solve problems involving cylindrical objects, such as calculating the volume of a cylinder or determining the trajectory of a projectile launched at an angle.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
649
  • Calculus and Beyond Homework Help
Replies
3
Views
879
Replies
33
Views
3K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
Replies
2
Views
889
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
700
  • Calculus and Beyond Homework Help
Replies
1
Views
911
  • Differential Equations
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
Back
Top