Finding Line Integral of Vector Field

xxbigelxx
Messages
82
Reaction score
0

Homework Statement


You are given a vector field A= kx2 x.
a. First, calculate the line integral of A from x=-2 to x=2 along the x axis.
b. Next, calculate the line integral of A between the same 2 points, but use
a semicircular path with a center at the origin. Recall that in cylindrical
coordinates, dl= ds s + sdφ φ + dz z.
c. Are the 2 results the same? Explain.


Homework Equations





The Attempt at a Solution



I believe I did the first part correctly and I got (16/3)k. I am getting confused on the second part though. My value for dl ended up being 2d(phi)phi. This is as far as I could get though.
 
Physics news on Phys.org
So the integrand is equal to

\vec{A}\cdot d\vec{l} = (kx^2\,\hat{x})\cdot(s\,d\phi\,\hat{\phi}) = kx^2s\,d\phi\,(\hat{x}\cdot\hat{\phi})

What is \hat{x}\cdot\hat{\phi} equal to?
 
Last edited:
I'm not sure. Should I change the 'x' into cylindrical form? That would make x=rcos(theta).
 
Is x the "position vector" <x, y>? On the x-axis, of course, that is <x, 0> so the vector field, restricted to the x-axis is <kx^3, 0>. The integral, then, from x=-2 to 2 is
\int_{-2}^2 kx^3dx= \frac{k}4}x^4\right|_{-2}^2= 0

Or is x the unit vector in the x direction? (I would use \vec{i} for that. If so, then the vector field is just <kx^2, 0> and the integral is
\int_{-2}^2 kx^2 dx= \frac{k}{3}x^3\right|_{-2}^2= \frac{16k}{3}.

I would NOT change to cylindrical form. In Cartesian coordinates, the upper semi circle from -2 to 2 can be written in parametric form as x= 2cos(t), y= 2sin(t), t going from -\pi to 0. d\vec{s}= (-2sin(t)\vec{i}+ 2cos(t)\vec{j}) dt.<br /> <br /> With <b>x</b>= &lt;x, y&gt;, kx^2<b>x</b> is &amp;lt;x^3, x^2y&amp;gt; and on the upper semi-circle that is 8sin^3(t)\vec{i}+ 8sin(t)cos^2(t)\vec{j}<br /> <br /> The integral would be <br /> 16\int_{-\pi}^0 -sin^4(t)+ sin(t)cos^3(t) dt<br /> For the first,sin^4(t), use the trig identity sin^2(t)= (1/2)(1- cos(2t). For the second, sin(t)cos^3(t), use the substitution u= cos(t), du= -sin(t)dt. When t= -\pi, u= -1 and when t= 0, u= 1.
 
xxbigelxx said:
I'm not sure. Should I change the 'x' into cylindrical form? That would make x=rcos(theta).
If you're referring to the variable x and not the unit vector \hat{x}, then yes, you need to express it in terms of the cylindrical variables in the integrand. You're going to be integrating with respect to \phi, so any quantity that varies with \phi has to be expressed in terms of it.

In your textbook or in your notes, you have probably been told what \hat{\phi} is equal to. Use it to evaluate the dot product.
 
HallsofIvy: I see what you are saying, but I think the teacher wants us to convert to cylindrical coordinates. I think that's why he put 'dl' in terms of cylindrical coordinates in the problem.
Vela: I don't have anything in my notes, but I found this online...Phi-hat= -sin(phi)(x-hat) + cos(phi)(y-hat). Is that the appropriate form?
If so, if I dot that value with x-hat, I just get -sin(phi)?
 
Yes, that's exactly what you want. \hat{\phi} points in the direction a point would move if you increase φ infinitesimally. If you try evaluate \hat{\phi} for a few values of φ, you should see that expression is correct.
 
Ok so I plugged x=Rcos(phi) and Phi-hat= -sin(phi)(x-hat) + cos(phi)(y-hat) into what I had. Shouldn't I have a dPhi somewhere though?
 
Yes. What did you do with it?
 
  • #10
Ohhh I found it. Ok so here is my work. I think I got it. Also for part C, I just stated that they were supposed to be equal since line integrals are path independent.
 

Attachments

  • photo.jpg
    photo.jpg
    35.6 KB · Views: 430
  • #11
I couldn't read part of it, but the set-up looked fine. For part (c), remember that line integrals aren't always path-independent. You should show that this vector field satisfies the condition required for path independence.
 
  • #12
Well I ended up getting 16k/3 for both part A and B, so I hope it's correct. And for part C, I know that independence requires a line integral of a vector field to be equal to the gradient of a scalar field.
 
  • #13
I didn't mean to cast any doubt on your work. I just didn't want to imply that I had checked all of it carefully. I think you did everything correctly.

Can you guess a scalar field Φ that satisfies \vec{A} = \nabla \phi?
 
  • #14
Oh ok.

And I honestly am not sure how you even got that to start with. I understand the general format, but I don't see why it's the gradient of Phi. Phi is the angle that the particle travels, but I am still confused on the relation that allowed you to write gradientPhi
 
  • #15
Oops, I'm sorry. I should have used a different symbol. I meant just some scalar function (phi is common notation for such a function). It has nothing to do with the angle.
 
  • #16
Ohhh ok. I understand it now, but I still don't know what the function would be. Would it be
(kx^3)/3?
 
  • #17
Yes, that works.
 
  • #18
So should I say something like this...


As long as the relationship of A=gradient((kx^3)/3) holds, then the line integral is path independent.
 
  • #19
It would be better to say, "Because the vector field A can be expressed as a gradient of the scalar function kx3/3, blah blah blah."
 
  • #20
Ok I see what you are saying. I wrote this...


Yes because the vector filed A can be expressed as a gradient of the scalar function kx^3/3. We know that if the line integral of a vector field is equal to the gradient of a scalar field, the line integral is path independent.
 
  • #21
The first sentence/fragment is fine, but the second one isn't. It isn't the case that the line integral of a vector field is equal to the gradient of a scalar field; it's that the vector field itself is the gradient of a scalar field.
 
  • #22
Ok so how about this...
Yes because the vector field A can be expressed as a gradient of the scalar function kx^3/3. We know that the vector field is equal to the gradient of a scalar field, so the line integral is path independent.

I feel like I am not really explaining why though. Is it just because that's one of the requirements for path independence?
 
  • #23
You're explaining why the two results in this problem should be equal. By showing the vector field is of the right form, you've explained why the two results have to be equal. The problem isn't asking you to explain why, in general, if a vector field can be written as the gradient of a scalar field, the line integral between two points is path-independent.

If you feel like you need to explain more, you could calculate

\int_C \vec{A}\cdot d\vec{l} = \int_C (\nabla f)\cdot d\vec{l} = \cdots

where f=kx3/3 and show it only depends on the endpoints and gives the same result 16k/3.
 
  • #24
Oh ok I understand it now. Ok I will just put what I said in my last message, and I think it will be good. Thank you so much again for your help.
 
Back
Top