The definition of length (The wrong time to use calculus of variations)

In summary, the conversation discusses the definition of length of a path given a continuous function, which is calculated as the supremum of the sum of distances between points on the path. This theorem is mentioned in Calculus 3 and states that if the path is piecewise differentiable, the length is equal to the integral of the absolute value of the derivative. The conversation then goes on to discuss the significance of this definition and how it can be used in calculus of variations to prove that the shortest path between two points is a straight line. The conversation also touches on the historical background of this definition and its relation to the integral. Finally, the conversation considers practical applications of this definition and potential methods for calculating error bounds.
  • #1
rudinreader
167
0
This is nearly vacuous thing to say, but there was just a post about the rigorous definition of area under a curve, and so I decided to go ahead and mention this..

Given a path (just say a continuous function) [tex]p(t):[a,b] \rightarrow \mathbb{R}^n [/tex], the "length" of the path is defined as
[tex]\Lambda(p) = \ sup \ \sum_{i = 1}^k |p(t_i)-p(t_{i-1})|[/tex]
where the sup is taken over all partitions [tex]P = \{ a = t_0 <... < t_k = b \}[/tex] of [a,b]. The theorem mentioned in Cal 3 is that if p is piecewise differentiable, then [tex]\Lambda(p) = \int_a^b |p'(t)| dt[/tex].

Once upon a time I would have only tried to remember the integral, and not necessarily the definition. But if you give any thought to it at all, it's clear that the definition of length is much more interesting than the integral which you use to calculate length. The definition shows you the straightforward process to find length: you choose points on the path, and add up the lengths of the lines connecting the points to come up with an approximation. As you choose a finer partition, the approximation gets closer, and by the triangle inequality, the approximation keeps getting larger.. And a monotonic increasing limiting process either converges or goes to infinity.. And that is the length.

Now to the punchline... In calculus of variations it is proved that "the shortest path between two points is a straight line". But that is almost obvious from the definition of length. You first have to check that for a line p connecting p(a) to p(b), you get [tex]\Lambda (p) = |p(b)-p(a)|[/tex]. By the triangle inequality, [tex]|p(b)-p(a)| \leq \sum_{i=1}^k |p(t_k)-p(t_{k-1})| \leq \Lambda(p)[/tex].

etc., etc., etc...
 
Physics news on Phys.org
  • #2
Isn't the formula with the sup basically just the definition of the formula with the integral?
I mean; if the Riemann integral exists, its value is equal to the supremum of the lower sums (probably that's not the correct English expression, you hopefully know what I mean), which is then also equal to the infimum of the upper sums?

Also, in some spaces it is not trivial. For example, on a sphere (like the Earth is in most calculations :smile:) the shortest path can relatively straightforward be found from calculus of variations, and it is not a straight line.

Anyway, I agree it's a nice example of the consistency of apparently different pieces of math.
 
  • #3
It's not "the same" as a Riemann integral, in that an integral is of the form [tex]I_a^b (f) = \lim_{|P| \rightarrow 0} \sum_{i=1}^k f(\tau_i)(x_i - x_{i-1})[/tex], and a length of a curve is of the form [tex]\lim_{|P| \rightarrow 0} \sum_{i=1}^k |p(t_i)-p(t_{i-1})|[/tex].

But applying an epsilon-delta argument you can prove that the integral above (in the first post) is the same as the sup expression, under the hypothesis that p is [tex]continuously[/tex] differentiable (or see baby Rudin 6.27). I accidentally ommited the continuous part in the first post, and I'm not sure that the formula is still valid if you remove that.

Certainly the sup definition alone is not going to get you far in optimization theory in R^k. But it is definitely what the "length" of a curve is, in a sense that agrees with the standard ruler and protractor.
 
Last edited:
  • #4
I would assume the variational proof of the straight line as the shortest path between two points reaches all the way back to Lagrange&Euler, and that it has remained customary since then to include in thextbooks the proof as a first application of the calculus of variations.
I am very skeptical that the definition of length, as you posted it, dates back to the 18th century.

I'm just speculating, though..
 
  • #5
arildno said:
I am very skeptical that the definition of length, as you posted it, dates back to the 18th century.

I'm far from a math historian, but I think that approximating the length of a curve with polygons was done in ancient greek math. The "sup" is just a marvel of the epsilon and delta language, which is a way of saying the limit exists.

It's not so much a matter of history. The most straightforward way of finding the length of a path given nothing but a ruler is to find a polygon close to the path and calculate it's length.
 
  • #6
rudinreader said:
I'm far from a math historian, but I think that approximating the length of a curve with polygons was done in ancient greek math. The "sup" is just a marvel of the epsilon and delta language, which is a way of saying the limit exists.

It's not so much a matter of history. The most straightforward way of finding the length of a path given nothing but a ruler is to find a polygon close to the path and calculate it's length.
True enough, but along with the definitions of the integral they used back in the 18th century might have obscured the relation so that it was seen as worthwhile to offer a variational proof of something everybody "knew" was correct.
 
  • #7
Just wanted to summarize... actually the sup definition [tex]on \ its \ own[/tex] is not nice in the sense that it's theoretical, and doesn't give a clear way to come up with an answer, whereas the length integral reduces the problem to numerical integration (in cases where there's no closed form antiderivative).. (In calculating the length of the upper circumference of the unit circle, it's not like you could expect to get 3+3/7 = [tex]\pi[/tex]!).

On the other hand, there's probably a way to come up with error bounds between the length of a curve and a close polygon, that is, to make a practical implementation of the sup definition. One thing that comes to mind, is to keep choosing finer partitions until the "y-difference" of the curve is bounded within the y-difference of [tex]p(t_k),p(t_{k-1})[/tex].

The final point is that of course the definition would not make sense unless it agreed with the length of a polygon! But in the case of a straight line between vectors u,v, for starters, you can define [tex]p(t) = (1-t)u + tv[/tex], then check that whenever [tex]t_1 < t_2 < t_3[/tex] you get [tex]|p(t_3)-p(t_1)| = |p(t_2)-p(t_1)| + |p(t_3)-p(t_2)|[/tex].

etc.etc.etc...
 
Last edited:
  • #8
There are probably ways to come up with error bounds. In fact, this sort of stuff is how pi was originally calculated. Take a circle, inscribe a polygon in it (which would be the actual calculation attempt), then circumscribe the polygon (which gives you something definitely too large, though stating this rigorously might be tricky?) and you have a tight error bound on your calculation of the circumference for large sided polygons
 
  • #9
Office_Shredder said:
There are probably ways to come up with error bounds. In fact, this sort of stuff is how pi was originally calculated. Take a circle, inscribe a polygon in it (which would be the actual calculation attempt), then circumscribe the polygon (which gives you something definitely too large, though stating this rigorously might be tricky?) and you have a tight error bound on your calculation of the circumference for large sided polygons

If you are disregarding rigor to the extent one uses geometric methods to calculate pi, I'm sure it won't matter if you just say "This value is too big, because the shaded area takes up more space than the circle".
 
  • #10
Office_Shredder said:
There are probably ways to come up with error bounds. In fact, this sort of stuff is how pi was originally calculated. Take a circle, inscribe a polygon in it (which would be the actual calculation attempt), then circumscribe the polygon (which gives you something definitely too large, though stating this rigorously might be tricky?) and you have a tight error bound on your calculation of the circumference for large sided polygons
The text I boldfaced is, indeed, a problem. It's a subtle, but significant, gap in this argument.
 
  • #11
If I'm correctly reading "which gives you something definitely too large", then it's backwards. The polygon of course has a smaller length than the path it's inscribing.

It would be nice if you could find an upper bounding polygon, but even that's not trivial. For example, the upper square (1,0),(1,1),(-1,1),(-1,0) bounds the upper circle, and has length 4. The problem is that refining the partition doesn't decrease the length of the right triangles:
Oth the right side, take (1,0),(1,1/sqrt(2)),(1-1/sqrt(2),1/sqrt(2)),(1-1/sqrt(2),1),(0,1). You add up the edges, and do the same on the left side, you get 4 again!

In fact, I think any time you cover the top of the circles with little right triangles, it always adds up to 4!

Another approach, is to take a partition [tex]P_n = \{-1, -1 + 2/n,..., -1 + \frac{2(n-1)}{n}, 1 \}[/tex], and for fixed e > 0, keep increasing n until [itex]|v(f,P_n)-v(f,P_{n+1})| < e[/itex]. That might work..
 
  • #12
Some Matlab Code

Here's some MATLAB code and output that calculates the length of the inscribed polygon based on the partition P = {-1, -1 + 2/n, ..., -1 + 2(n-1)/n, 1}, and using p(x) = (x,sqrt(1-x^2)). Evidently it would be very time consuming without a calculator!

input: calc_pi(n), where n as in the above partition.

[tex]Output[/tex]

EDU>> calc_pi(1) % the poly connecting (1,0) to (-1,0)
ans = 2

EDU>> calc_pi(2) %the poly connecting (1,0),(0,1),(-1,0)
ans = 2.8284

EDU>> calc_pi(4)
ans = 3.0353

EDU>> calc_pi(100)
ans = 3.1408

EDU>> calc_pi(1000)
ans = 3.1416

EDU>> pi
ans = 3.1416

[tex]Code[/tex]

function L = calc_pi(n)

L = 0;
i = 1;
% y(x) = sqrt(1-x^2)
% L = L + |pi - p{i-1}|
% L = L + sqrt( (1/n)^2 + (y(-1+2i/n)-y(-1+2(i-1)/n))^2)
while i <= n
L = L + sqrt( (2/n)^2 + ( sqrt(1-(-1+2*i/n)^2) - sqrt(1-(-1+2*(i-1)/n)^2) )^2 );
i = i+1;
end
 
Last edited:
  • #13
I don't remember the exact limit, but I've set up a polygon area limit that approaches pi from above, and showed that it approached the same limit as the polygons that approached the limit from below. I also did the same thing for the perimeter of inscribed and circumscribed polygons, its wasn't very difficult. Of course, the limit turned out to involve trig functions, and when ones learned calculus the limit looks trivial.
 

Related to The definition of length (The wrong time to use calculus of variations)

1. What is the definition of length?

The definition of length is the measurement of the distance between two points. It is a fundamental concept in mathematics and is often used to describe the size or extent of an object or space.

2. How is length typically measured?

Length is typically measured using a unit of measurement, such as inches, centimeters, or meters. These units are based on standardized measurements and allow for consistent comparisons of length.

3. What is the difference between length and distance?

Length and distance are often used interchangeably, but they have different technical definitions. Length refers to the measurement of a specific object or space, while distance refers to the measurement of the space between two objects or points.

4. When is the calculus of variations not the right method to use for finding the length of a curve?

The calculus of variations is not the right method to use for finding the length of a curve when the curve is not smooth and continuous, or when the curve has sharp corners or cusps. In these cases, a different method, such as the arc length formula, should be used.

5. Can length be negative?

No, length cannot be negative. It is a physical quantity and is always a positive value. However, it is possible to have a negative displacement, which is the change in length between two points in a specific direction.

Similar threads

Replies
16
Views
3K
Replies
2
Views
1K
Replies
12
Views
1K
Replies
1
Views
976
Replies
3
Views
1K
Replies
24
Views
2K
Replies
7
Views
1K
Replies
1
Views
2K
Replies
4
Views
2K
Back
Top