Conversion of a vector from cylindrical to cartesian

Click For Summary
SUMMARY

The discussion focuses on converting a cylindrical vector, specifically $$\vec A = \vec a_r(3\cos(\phi) - \vec a_{\phi} \cdot 2r + \vec a_z \cdot 5)$$, into Cartesian coordinates. Key formulas derived include $$A_x = 3\cos^2(\phi) + 2\sin(\phi) \cdot r$$, $$A_y = 3\sin(\phi)\cos(\phi) - 2\cos(\phi) \cdot r$$, and $$A_z = 5$$. Participants emphasize the importance of correctly applying the relationship $$\phi = \tan^{-1}\left(\frac{y}{x}\right)$$ and clarify that the unit vectors $$\hat{a_r}$$ and $$\hat{a_{\phi}}$$ vary with $$\phi$$. The discussion concludes that using established vector formulas is essential for accurate conversion.

PREREQUISITES
  • Understanding of cylindrical coordinates and their representation.
  • Familiarity with trigonometric identities and functions.
  • Knowledge of vector notation and operations.
  • Ability to apply inverse tangent functions in coordinate transformations.
NEXT STEPS
  • Research "Cylindrical to Cartesian coordinate conversion formulas".
  • Study "Trigonometric identities and their applications in vector calculus".
  • Learn about "Unit vectors in cylindrical coordinates".
  • Explore "Common mistakes in coordinate transformations in physics".
USEFUL FOR

Students and professionals in physics, engineering, and mathematics who are working with coordinate transformations, particularly those dealing with vector analysis in cylindrical coordinates.

Armani
Messages
8
Reaction score
0
(mentor note: thread moved from general to here hence no template)

Hi,

I need some help with converting this cylindrical vector: $$\vec A = \vec a_r(3*cos(\phi)-\vec a_{\phi}*2r+\vec a_z5$$ into the cartesian:

I have found these:
where

$$A_x =3cos^2(\phi)+2sin(\phi)*r\\
A_y=3sin(\phi)cos(\phi)-2cos(\phi)*r\\
A_z=5$$

Also
$$x=rcos(\phi)=3*cos(\phi)cos(\phi)=3cos^2(\phi)\\
y=rsin(\phi)=3cos(\phi)sin(\phi)\\
z=5$$

I am a bit stuck after this:
I know that i have to use this formula: $$\phi=tan^{-1}\left(\frac{y}{x}\right)$$ but i am not getting the right solution...
Can someone help?
 
Last edited by a moderator:
Physics news on Phys.org
You also need ## \hat{a_r}=cos(\phi) \hat{i} +\sin(\phi) \hat{j} ## where ## cos(\phi)=x/(x^2+y^2)^{1/2} ## and ## sin(\phi)=y/(x^2+y^2)^{1/2} ##. I let you try to figure out ## \hat{a_{\phi}} ##. Also, do you see that ## r=(x^2+y^2)^{1/2} ##?
 
  • Like
Likes Armani
are those two expressions for ##cos(\phi)## and ##sin(\phi)## already given? Or did you derive them?
And thanks:)
 
Last edited by a moderator:
Armani said:
are those two expressions for ##cos(\phi)## and ##sin(\phi)## already given? Or did you derive them?
And thanks:)
You could probably google them. ##cos(\phi)=x/r ##. ## sin(\phi)=y/r ##. That's how cylindrical coordinates work. Meanwhile, the unit vectors ## \hat{a_r} ## and ## \hat{a_{\phi}} ## are not fixed. They change with ## \phi ##.
 
Last edited by a moderator:
Okay, thanks for your help.
 
Armani said:
(mentor note: thread moved from general to here hence no template)

Hi,

I need some help with converting this cylindrical vector: $$\vec A = \vec a_r(3*cos(\phi)-\vec a_{\phi}*2r+\vec a_z5$$ into the cartesian:

I have found these:
where

$$A_x =3cos^2(\phi)+2sin(\phi)*r\\
A_y=3sin(\phi)cos(\phi)-2cos(\phi)*r\\
A_z=5$$

Also
$$x=rcos(\phi)=3*cos(\phi)cos(\phi)=3cos^2(\phi)\\
y=rsin(\phi)=3cos(\phi)sin(\phi)\\
z=5$$

I am a bit stuck after this:
I know that i have to use this formula: $$\phi=tan^{-1}\left(\frac{y}{x}\right)$$ but i am not getting the right solution...
Can someone help?
If you apply what @Charles Link suggested, you will find that your first attempt was correct. Your 2nd approach only works for a position vector from the origin.
 
Chestermiller said:
If you apply what @Charles Link suggested, you will find that your first attempt was correct. Your 2nd approach only works for a position vector from the origin.
I think @Chestermiller is pointing out an error in the OP's work that I didn't spot on the first reading: the OP assumed the vector ## A ## is of the form ## r \hat{a_r}+...## so that he thought ## r=3 \cos(\phi) ## which is not the case. In any case, converting from cylindrical to Cartesian simply involves using vector formulas that can be googled. Anyone who has good command of trigonometry can derive the necessary vector formulas with very little effort. Otherwise, the simplest way to work a problem like this is to look up the coordinate conversion formulas which are often found in the back cover of E&M textbooks and other math books. No doubt a google of the topic would work equally well.
 
Charles Link said:
I think @Chestermiller is pointing out an error in the OP's work that I didn't spot on the first reading: the OP assumed the vector ## A ## is of the form ## r \hat{a_r}+...## so that he thought ## r=3 \cos(\phi) ## which is not the case. In any case, converting from cylindrical to Cartesian simply involves using vector formulas that can be googled. Anyone who has good command of trigonometry can derive the necessary vector formulas with very little effort. Otherwise, the simplest way to work a problem like this is to look up the coordinate conversion formulas which are often found in the back cover of E&M textbooks and other math books. No doubt a google of the topic would work equally well.
I agree that the method you suggested using the unit vectors will lead to the correct answer, as obtained by the OP with his first method.
 
  • Like
Likes Armani and Charles Link

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
33
Views
4K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K