Solving Line Integral Limits: Negative Result?

1 reply · 2K views · last reply
OmegaKV
Messages
22
Reaction score
1
I want to the line integral in the following picture:

Vector field diagram: rows of blue arrows all pointing right, with an orange line segment from the right endpoint (0,1) to the left endpoint (0,0) and an arrowhead pointing left.


The field is the blue arrows that go left to right, and the path is the orange line that is going from right to left.

Just by looking at the picture, it is clear that the result will be negative, but when I set up the integration this is what I get:

I'm letting the field be:

[tex]f(x)=\hat{x}[/tex]

and since the path is pointing left, ds will be:

[tex]ds=dx*(-\hat{x})=-dx\hat{x}[/tex]

and the path goes from x=1 to x=0, so the integration limits are from 1 to 0.

so the line integral is:

[tex]\int^b_a f \cdot ds=\int^0_1 (\hat{x} \cdot (-dx\hat{x})) = \int^0_1 (-dx) = 1[/tex]

Why am I getting a positive number?
 
You are double counting the negative sign of dx by both inserting it explicitly and letting the integration go from 1 to 0.
 
  • Like
Likes   Reactions: OmegaKV