0

Consider a line integral $$\int_{(x_1,y_1)}^{(x_2,y_2)}ds$$

evaluated along the straight line joining $(x_1,y_1)$ to $(x_2,y_2)$.

We know that $$\int_{x_1}^{x_2} dx =x_2-x_1=-\int_{x_2}^{x_1}dx \tag{0}$$

Based on the above equation, am I correct to expect the following $$\int_{(x_1,y_1)}^{(x_2,y_2)}ds = -\int_{(x_2,y_2)}^{(x_1,y_1)}ds \tag{1}$$

I've tried proving along the lines indicated at Khan Academy, but I can't seem to get the negative sign in the above equation. I've tried the following change of variables for the LHS of the equation above

$$ x = \frac{x_2+x_1}{2} + \frac{x_2-x_1}{2}t \quad y = \frac{y_2+y_1}{2} + \frac{y_2-y_1}{2}t$$ Therefore, $$ ds = \sqrt{\Big(\frac{dx}{dt}\Big)^2 + \Big(\frac{dy}{dt}\Big)^2}dt = \frac{1}{2}\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}dt = \frac{l}{2}dt$$

Where $$ l = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}$$

So,

$$\int_{(x_1,y_1)}^{(x_2,y_2)}ds = \int_{-1}^{1}\frac{l}{2}dt = l \tag{2}$$

If we make the analogous change of variables on the RHS of $(1)$ i.e.

$$ x = \frac{x_1+x_2}{2} + \frac{x_1-x_2}{2}t \quad y = \frac{y_1+y_2}{2} + \frac{y_1-y_2}{2}t$$

Therefore, we get

$$ -\int_{(x_2,y_2)}^{(x_1,y_1)}ds = -\int_{-1}^{1} \frac{l}{2} dt = -l \tag{3}$$

So, either $(1)$ is not true or I've made a sign error somewhere. I'd be very grateful if someone points out my mistake (most likely a mistake in choosing the sign of the square root in the formula $ds = \sqrt{\Big(\frac{dx}{dt}\Big)^2 + \Big(\frac{dy}{dt}\Big)^2}dt$)

NNN
  • 228

2 Answers2

1

The simple answer is that the arc length of a curve can never be negative (cf. Can arc length be negative?). Your line integral calculates exactly this quantity (and it should be clear that the arc length of a curve does not depend on its orientation).

Your conclusion that (1) is not true is correct. It can generally be shown that scalar line integrals are independent of orientation. For vector-valued functions, however, you would obtain a minus sign.

A similar problem is explained in this question: A misunderstanding on the independence of orientation of line integrals?

NDewolf
  • 1,663
  • I'm not getting what you're trying to say. Right now, I'm not really interested in physical answers like:"arc length cannot be negative", I'm simply interested in evaluating the integral and figuring out whether (1) is true. My final goal is to evaluate the integral numerically, and I'd like to understand the simplest case before I implement it. Also, I wasn't able to follow the discussion on the answer you linked to. – NNN Aug 26 '20 at 08:30
  • @Nach I have added a line addressing your problem. – NDewolf Aug 26 '20 at 08:31
  • I'm surprised that $(1)$ is not true. $(1)$ not being true makes my work easier, but I can't seem to understand why $(1)$ seems to be true when $ds$ is $dx$ (refer equation $(0)$) – NNN Aug 26 '20 at 08:50
  • 1
    There lies your problem. You shouldn't interpret the $ds$ integral in the same way you would interpret a $dx$ integral. By definition the parameter in a line integral should run from $a$ to $b$ with $a<b$, this would not be the case for the coordinate $x$. – NDewolf Aug 26 '20 at 08:56
  • Thanks. As I said,(1) not being true makes my work easier. I'll take your word for it. If you could point me to a place where this is discussed in a way understandable to a mathematical engineer, I'd be extremely grateful. – NNN Aug 26 '20 at 09:14
  • 1
    "By definition the parameter in a line integral should run from a to b with a<b, this would not be the case for the coordinate x" Thanks. I did not know that. – NNN Aug 26 '20 at 09:16
  • I think the online reference https://math.libretexts.org/Bookshelves/Calculus/Book%3A_Vector_Calculus_(Corral)/04%3A_Line_and_Surface_Integrals might be a good introduction. The better you understand the definition, the clearer it will become were exactly your confusion arose. – NDewolf Aug 26 '20 at 09:42
1

There are two types of line integral, in some way connected, the line integral of a function $$ \int_\gamma f(x,y)ds=\int_a^b f(x(t),y(t))\sqrt{x'^2(t)+y'^2(t)}dt $$ and the line integral of a vector field, or equivalently of a differential form, $$ \int_\gamma P(x,y)dx+Q(x,y)dy=\int_a^b\left[P(x(t),y(t))x'(t)+Q(x(t),y(t))y'(t)\right]dt. $$ While the former is independent of the orientation of the curve, the latter change sign when the orientation is changed.

They are connected through the relation $$ \int_\gamma Pdx+Qdy=\int_\gamma(Pt_1+Qt_2)ds $$ where $(t_1,t_2)$ is the tangent unit vector.