What Are the Differences in Line Integrals Using Different Coordinate Systems?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 9K views
yungman
Messages
5,741
Reaction score
291
I want to integrate around a closed circular path on xy plane around the origin. Say the radius is b. So

##\oint d\vec l## where ##d\vec l=\hat{\phi}b d\phi##

1) If I just use polar( or spherical or even cylindrical) coordinates. R=b and
[tex]\oint d\vec l\;=\;\hat{\phi}\int_0^{2\pi} b d\phi\;=\;2\pi b[/tex]

2) Using rectangular co where ##\hat{\phi}=-\hat x \sin \phi +\hat y \cos \phi##
[tex]\oint d\vec l\;=\;b\int_0^{2\pi} (-\hat x \sin\phi+\hat y \cos \phi) d\phi\;=\;0[/tex]

What did I do wrong?
 
Physics news on Phys.org
yungman said:
I want to integrate around a closed circular path on xy plane around the origin. Say the radius is b. So

##\oint d\vec l## where ##d\vec l=\hat{\phi}b d\phi##

1) If I just use polar( or spherical or even cylindrical) coordinates. R=b and
[tex]\oint d\vec l\;=\;\hat{\phi}\int_0^{2\pi} b d\phi\;=\;2\pi b[/tex]
This is a common mistake when you are first learning these things so don't worry. What you did wrong was pull out the ##\hat\phi## from the ##d\phi## integral. ##\hat\phi## is not a constant vector like the standard cartesian basis vectors! You can't simply pull out ##\hat\phi## from the ##d\phi## integral because ##\hat\phi## varies as ##\phi## varies. What you did in (2) was the correct way to evaluate integrals in such coordinates. Cheers!
 
WannabeNewton said:
This is a common mistake when you are first learning these things so don't worry. What you did wrong was pull out the ##\hat\phi## from the ##d\phi## integral. ##\hat\phi## is not a constant vector like the standard cartesian basis vectors! You can't simply pull out ##\hat\phi## from the ##d\phi## integral because ##\hat\phi## varies as ##\phi## varies. What you did in (2) was the correct way to evaluate integrals in such coordinates. Cheers!

Thanks for the pointers. So this means we have to resolve down to a constant vector ( or whatever you call it) that have constant direction. WHICH in our common rectangular, cylindrical and spherical coordinates, we have NO CHOICE but have to transform the vector into x,y,z coordinates no matter what.