Converting vector field to cylindrical coordinates for line integral

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
12 replies · 3K views
msd213
Messages
24
Reaction score
0

Homework Statement



Calculate the line integral of A between to points x=1 and x=3 along the semicircular path with a center at x=2

Homework Equations



A=kx in the x hat direction.

[tex]\int A \bullet dl[/tex]

dl = ds s hat +s d[tex]\phi[/tex] [tex]\phi[/tex] hat +dz z hat


The Attempt at a Solution



My biggest problem seems to be getting that A into cylindrical coordinates so I can take the dot product with the dl.
 
Last edited:
Physics news on Phys.org
HI msd213, welcome to PF!:smile:

msd213 said:

Homework Equations



A=kx in the x hat direction.

[tex]\int A \bullet dl[/tex]

dl = ds s hat +s d[tex]\phi[/tex] [tex]\phi[/tex] hat +dz z hat

You can write this more clearly as follows (click on the [itex]\LaTeX[/itex] images to see the code used to generate them!):

[tex]\textbf{A}=kx\mathbf{\hat{x}}[/tex]

[tex]\int \textbf{A}\cdot d\textbf{l}[/tex]

[tex]d\textbf{l}=ds\mathbf{\hat{s}}+s d\phi\mathbf{\hat{\phi}}+dz\mathbf{\hat{z}}[/tex]

My biggest problem seems to be getting that A into cylindrical coordinates so I can take the dot product with the dl.

In cylindrical coordinates, centered at [itex]x=2[/itex] (since that is the center of your curve, you might as well choose the origin of your cylindrical coordinates to be there) [itex]x-2=s\cos\phi[/itex] and [itex]\mathbf{\hat{x}}=\cos\phi\mathbf{\hat{s}}-\sin\phi\mathbf{\hat{\phi}}[/itex]
 
gabbagabbahey said:
HI msd213, welcome to PF!:smile:



You can write this more clearly as follows (click on the [itex]\LaTeX[/itex] images to see the code used to generate them!):

[tex]\textbf{A}=kx\mathbf{\hat{x}}[/tex]

[tex]\int \textbf{A}\cdot d\textbf{l}[/tex]

[tex]d\textbf{l}=ds\mathbf{\hat{s}}+s d\phi\mathbf{\hat{\phi}}+dz\mathbf{\hat{z}}[/tex]



In cylindrical coordinates, centered at [itex]x=2[/itex] (since that is the center of your curve, you might as well choose the origin of your cylindrical coordinates to be there) [itex]x-2=s\cos\phi[/itex] and [itex]\mathbf{\hat{x}}=\cos\phi\mathbf{\hat{s}}-\sin\phi\mathbf{\hat{\phi}}[/itex]

Thanks for your response but I'm still confused. How did you derive that [itex]\mathbf{\hat{x}}[/itex]?
 
I didn't derive it...I looked it up!:smile:

The derivation is done in most Multi-variable calculus texts, and I think is done in an Appendix in Griffiths' Introduction to Electrodynamics as-well. But it is really just a matter of drawing a picture and doing some very basic trig.
 
gabbagabbahey said:
I didn't derive it...I looked it up!:smile:

The derivation is done in most Multi-variable calculus texts, and I think is done in an Appendix in Griffiths' Introduction to Electrodynamics as-well. But it is really just a matter of drawing a picture and doing some very basic trig.

I think I see now. But when you take the dot product between the A (now converted into cylindrical coordinates, and dl, aren't you going to have terms multiplied by differentials such as (some term)*[tex]ds[/tex] +(another term)*[tex]d\phi[/tex]...etc. How can you take the integrals with that? Where does the volume element fit in?
 
Last edited:
msd213 said:
I think I see now. But when you take the dot product between the A (now converted into cylindrical coordinates, and dl, aren't you going to have terms multiplied by differentials such as (some term)*[tex]ds[/tex] +(another term)*[tex]d\phi[/tex]...etc. How can you take the integrals with that? Where does the volume element fit in?

Well, for your particular curve (the semicircle), [itex]s=1[/itex] and [itex]z[/itex] are both constant, so [itex]ds=dz=0[/itex] and hence [itex]d\textbf{l}=d\phi\mathbf{\hat{\phi}}[/itex]

In general, any 3D curve can be described by a single parameter. So, in cylindrical coordinates, for example, you would have something like [itex]s=s(u)[/itex], [itex]\phi=\phi(u)[/itex] and [itex]z=z(u)[/itex] and so all the differentials ([itex]ds[/itex], [itex]d\phi[/itex] and [itex]dz[/itex]) can be written in terms of a single differential [itex]du[/itex]. (For your particular curve, the easiest way is just to use [itex]\phi[/itex] as your parameter)

If instead you wanted to integrate over a surface, you would express each coordinate in terms of two independent parameters, and your surface area element in terms of their differentials.
 
gabbagabbahey said:
Well, for your particular curve (the semicircle), [itex]s=1[/itex] and [itex]z[/itex] are both constant, so [itex]ds=dz=0[/itex] and hence [itex]d\textbf{l}=d\phi\mathbf{\hat{\phi}}[/itex]

In general, any 3D curve can be described by a single parameter. So, in cylindrical coordinates, for example, you would have something like [itex]s=s(u)[/itex], [itex]\phi=\phi(u)[/itex] and [itex]z=z(u)[/itex] and so all the differentials ([itex]ds[/itex], [itex]d\phi[/itex] and [itex]dz[/itex]) can be written in terms of a single differential [itex]du[/itex]. (For your particular curve, the easiest way is just to use [itex]\phi[/itex] as your parameter)

If instead you wanted to integrate over a surface, you would express each coordinate in terms of two independent parameters, and your surface area element in terms of their differentials.

I'm still a little confused about how this clears up the problem with the repeated differentials. For example, in my problem, isn't the integral going to look like.

[tex]\int -k s^2\\\ cos\phi\\ sin\phi\\ d\phi\\\ s\\ ds\\ d\phi\\ dz[/tex]

Using [itex]\mathbf{\hat{x}}=\cos\phi\mathbf{\hat{s}}-\sin\phi\mathbf{\hat{\phi}}[/itex]
and [tex]kx=kscos\phi[/tex]

I'm not sure how I can write these in terms of one parameter.
 
msd213 said:
I'm still a little confused about how this clears up the problem with the repeated differentials. For example, in my problem, isn't the integral going to look like.

[tex]\int -k s^2\\\ cos\phi\\ sin\phi\\ d\phi\\\ s\\ ds\\ d\phi\\ dz[/tex]

No,

[tex]\begin{aligned} \textbf{A} & = kx\mathbf{\hat{x}} \\ & = k(s\cos\phi+2)\left(\cos\phi\mathbf{\hat{s}}-\sin\phi\mathbf{\hat{\phi}}\right) \\ & = k(\cos^2\phi+2\cos\phi)\mathbf{\hat{s}}-k(\sin\phi\cos\phi+2\sin\phi)\mathbf{\hat{\phi}} \end{aligned}[/tex]

(Since [itex]s=1[/itex] along your curve)

And [itex]d\textbf{l}=d\phi\mathbf{\hat{\phi}}[/itex], so

[tex]\begin{aligned} \textbf{A}\cdot d\textbf{l} & = \left(k(\cos^2\phi+2\cos\phi)\mathbf{\hat{s}}-k(\sin\phi\cos\phi+2\sin\phi)\mathbf{\hat{\phi}}\right)\cdot(d\phi\mathbf{\hat{\phi}}) \\ & = -k(\sin\phi\cos+2\sin\phi)\phi d\phi\end{aligned}[/tex]
 
Last edited:
gabbagabbahey said:
No,

[tex]\begin{aligned} \textbf{A} & = kx\mathbf{\hat{x}} \\ & = k(s-2)\cos\phi\left(\cos\phi\mathbf{\hat{s}}-\sin\phi\mathbf{\hat{\phi}}\right) \\ & = -k\cos^2\phi\mathbf{\hat{s}}+k\sin\phi\cos\phi\mathbf{\hat{\phi}} \end{aligned}[/tex]

(Since [itex]s=1[/itex] along your curve)

And [itex]d\textbf{l}=d\phi\mathbf{\hat{\phi}}[/itex], so

[tex]\begin{aligned} \textbf{A}\cdot d\textbf{l} & = \left(-kcos^2\phi\mathbf{\hat{s}}+k\sin\phi\cos\phi\mathbf{\hat{\phi}}\right)\cdot(d\phi\mathbf{\hat{\phi}}) \\ & = k\sin\phi\cos\phi d\phi\end{aligned}[/tex]

Thanks for your patience and prompt responses.

Whenver I use cylindrical coordinates, I suppose I just reflexively put in that [tex]s\\ ds\\ d\phi\\ dz[/tex] whenever I convert to cylindrical coordinates and integrate. Why exactly isn't it needed here?
 
[itex]d\tau=s ds d\phi dz[/itex] is the differential volume element...you're not performing a volume integral here, so [itex]d\tau[/itex] is pretty useless to you.
 
gabbagabbahey said:
No,

[tex]\begin{aligned} \textbf{A} & = kx\mathbf{\hat{x}} \\ & = k(s-2)\cos\phi\left(\cos\phi\mathbf{\hat{s}}-\sin\phi\mathbf{\hat{\phi}}\right) \\ & = -k\cos^2\phi\mathbf{\hat{s}}+k\sin\phi\cos\phi\mathbf{\hat{\phi}} \end{aligned}[/tex]

(Since [itex]s=1[/itex] along your curve)

And [itex]d\textbf{l}=d\phi\mathbf{\hat{\phi}}[/itex], so

[tex]\begin{aligned} \textbf{A}\cdot d\textbf{l} & = \left(-kcos^2\phi\mathbf{\hat{s}}+k\sin\phi\cos\phi\mathbf{\hat{\phi}}\right)\cdot(d\phi\mathbf{\hat{\phi}}) \\ & = k\sin\phi\cos\phi d\phi\end{aligned}[/tex]

Thanks, I guess I've just been conditioned from calc to put that there.

Also, I think the whole idea of this section is path independence.

So, when you just take the path just along the x-axis, you have

[tex]\int_1^3 k\\ x\\ dx[/tex]

This integral yields 4k. But the integral you derive yields zero, unless I'm way off. The bounds should be 0 to [tex]\pi[/tex] correct? Shouldn't the integrals yield the same answer?
 
msd213 said:
Thanks, I guess I've just been conditioned from calc to put that there.

Also, I think the whole idea of this section is path independence.

So, when you just take the path just along the x-axis, you have

[tex]\int_1^3 k\\ x\\ dx[/tex]

This integral yields 4k. But the integral you derive yields zero, unless I'm way off. The bounds should be 0 to [tex]\pi[/tex] correct? Shouldn't the integrals yield the same answer?

Right, sorry my post contained an error (substituted [itex]x=(s-2)\cos\phi[/itex] instead of [itex]x-2=s\cos\phi[/itex])...i'll edit it to fix the error...
 
gabbagabbahey said:
Right, sorry my post contained an error (substituted [itex]x=(s-2)\cos\phi[/itex] instead of [itex]x-2=s\cos\phi[/itex])...i'll edit it to fix the error...

Thank you, that should clear everything up. You've been a great help.:smile: