Line integral of a vector field over a square curve

  • Thread starter marineric
  • Start date
  • #1
10
0

Homework Statement



Please evaluate the line integral [itex]\oint[/itex] dr[itex]\cdot[/itex][itex]\vec{v}[/itex], where [itex]\vec{v}[/itex] = (y, 0, 0) along the curve C that is a square in the xy-plane of side length a center at [itex]\vec{r}[/itex] = 0

a) by direct integration

b) by Stokes' theorem


Homework Equations



Stokes' theorem: [itex]\oint[/itex] V [itex]\cdot[/itex] dr = ∫∫ (∇ x V)[itex]\cdot[/itex]n d[itex]\sigma[/itex]


The Attempt at a Solution



I know I have to split up the sides of the square. I get confused when [itex]\vec{r}[/itex] is involved. I know the limits are at a/2.. not sure where to go after that.
 

Answers and Replies

  • #2
938
9
For the direct integration, just write it out. What is [itex] d\vec{r} \cdot \vec{v} [/itex]? Since you're integrating over a square, you can just write the integral as a sum of four one-dimensional integrals wrt. x and y.
 
  • #3
10
0
Ok well I'll try the top line of the square and you can tell me what I'm doing wrong.

From left to right:
[itex]\oint[/itex] d[itex]\vec{r}[/itex][itex]\cdot[/itex][itex]\vec{v}[/itex] from -a/2 to a/2

[itex]\vec{v}[/itex] = (y,0,0)

[itex]\vec{r}[/itex] = (x, a/2, 0)

d[itex]\vec{r}[/itex] = (1, 0, 0)

d[itex]\vec{r}[/itex][itex]\cdot[/itex][itex]\vec{v}[/itex] = y

but aren't the y limits a/2 to a/2, making the integral zero?
 
  • #4
10
0
wait hold on [itex]\vec{r}[/itex] = (d[itex]\vec{x}[/itex], 0, 0) ??

then it would be the integral from -a/2 to a/2 of y*dx where y = a/2?

but that's (a/2*x) from -a/2 to a/2 ... which equals zero?
 
  • #5
938
9
but that's (a/2*x) from -a/2 to a/2 ... which equals zero?
Are you sure it equals zero? :)
 
  • #6
10
0
oh, right, minus sign.. so it equals a^2/2 for the top line, and i just do it similarly for all the other sides? do i have to do it in the same order (clockwise)?
 
  • #7
938
9
You got it
 
  • #8
10
0
for the stokes' theorem part, would it just be the ∇[itex]\times[/itex][itex]\vec{v}[/itex] times the area of the square, which is a^2?
 
  • #9
938
9
for the stokes' theorem part, would it just be the ∇[itex]\times[/itex][itex]\vec{v}[/itex] times the area of the square, which is a^2?
Yep, although it's not immediately clear what's the correct sign.
 

Related Threads on Line integral of a vector field over a square curve

  • Last Post
Replies
11
Views
755
  • Last Post
Replies
9
Views
1K
  • Last Post
Replies
17
Views
1K
  • Last Post
Replies
1
Views
6K
  • Last Post
Replies
3
Views
854
Replies
8
Views
2K
Replies
2
Views
3K
Replies
10
Views
5K
Replies
7
Views
5K
Replies
13
Views
2K
Top