News for hackers. Stuff that matters.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Sunday January 01, 2017 @03:15PM (#13297098)
Along those lines (no pun intended), I think every STEM college graduate ought to be able to prove that the shortest path between 2 points is a line segment instead of taking it for granted.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Monday January 02, 2017 @06:10AM (#13300475)
EDIT: Whoops! I just realized the entire point of this problem was missed, and it's my fault -- I worded my comment pretty poorly in hindsight.

I meant to say that STEM college graduates ought to be able to solve problems such as this one. That would include less-trivial instances, like the light-ray example I gave in another comment where you have to find the path that light travels when it crosses between media with different velocities. Unfortunately I made the mistake of posing the most trivial instance of this kind of problem as an example (Euclidean vector space), which resulted in many people missing the point I was trying to make. Sorry about that. The point wasn't solving this specific problem, the point was this kind of problem, and my example was overly simplified and therefore not representative of what I was trying to convey.

With that aside, note that this is still not a basic geometry problem, since you need to be able to discuss the lengths of arbitrary smooth curves, not just lines/angles/circular arcs.

Re:What Scientific Term or Concept Ought to be More Widely K... by rxhernandez on Monday January 02, 2017 @01:54AM (#13299524)
It isn't though, the shortest path between two points is a geodesic.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Monday January 02, 2017 @02:03AM (#13299548)
I'm trying not to be a smart aleck and instead I'm putting the question into terms anyone who's finished high school would understand. We're not talking general relativity here, we're just talking about plain Euclidean geometry. The kind you (or maybe everyone except you) automatically thinks of... the kind you learn in middle/high school.
Re:What Scientific Term or Concept Ought to be More Widely K... by rxhernandez on Monday January 02, 2017 @11:08PM (#13306624)
> I'm trying not to be a smart aleck and instead I'm putting the question into terms anyone who's finished high school would understand.

How's it being a smart aleck? A geodesic is a very easy concept to understand. Not only that, but it's ridiculous to dumb down information when the whole point of the conversation was to understand truths. If this question was on history concepts, and you said that Columbus discovered America, it would be a bit ridiculous for you to criticize me on calling you out on it, right? A straight line being the shortest distance between two points is about as true as Columbus discovering America. You have to add on a bunch of qualifiers for either to be remotely true.

> We're not talking general relativity here, we're just talking about plain Euclidean geometry.

See this is the thing, you don't even need to understand general relativity to understand this. Airplane pilots understand this, they fly on great circles because of this concept, which has absolutely nothing to do with general relativity.

> or maybe everyone except you

Or maybe anyone with a math degree, 4 or 5 physics classes, an aerospace degree, airplane pilots, optical engineers. It's really not that esoteric.

Re:What Scientific Term or Concept Ought to be More Widely K... by ams6110 on Sunday January 01, 2017 @03:20PM (#13297121)
That's a high school freshman geometry problem.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Sunday January 01, 2017 @03:33PM (#13297181)
> That's a high school freshman geometry problem.

Looks like we found another person who doesn't know how to do it :) look it up! In pre-college geometry this isn't something you prove, it's something you postulate and take for granted.

Re:What Scientific Term or Concept Ought to be More Widely K... by ams6110 on Sunday January 01, 2017 @03:42PM (#13297224)
Maybe these days. We definitely proved it in my geometry class in 1980/81.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Sunday January 01, 2017 @03:47PM (#13297248)
Share your "proof"?
Re:What Scientific Term or Concept Ought to be More Widely K... by ams6110 on Sunday January 01, 2017 @03:56PM (#13297303)
Well it's been 35 years ... as I recall it's an indirect proof, it starts with assuming there is some other shorter path, and then showing that to be impossible by creating a contradiction of other proven theorems and postulates.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Sunday January 01, 2017 @04:00PM (#13297323)
> Well it's been 35 years ... as I recall it's an indirect proof, it starts with assuming there is some other shorter path, and then showing that to be impossible by creating a contradiction of other proven theorems and postulates.

Then I'm gonna call B.S. on this until you can show me the proof somewhere. Every single time I've searched this the only rigorous proof I've found has been using calculus (often calculus of variations).

Re:What Scientific Term or Concept Ought to be More Widely K... by systoll on Monday January 02, 2017 @01:06AM (#13299391)
I recall doing a proof of the form:

1. Prove the triangle inequality, & extend via induction to show that [A] a straight line is the shortest polygonal path, and that [B] adding a point to a polygonal path can only make it longer.

2. Arc length is defined as the limit of the length of a polygonal approximations to a curve. From (B), we know our approximations would approach the arc length from below.

So if an curve A->B has an arc length, there's a polygon A->B which is at least as short. And from [A] we know there's no polygon shorter than the straight line.

This is weaker than proofs you can do with calculus -- it doesn't prove uniqueness, and it completely ignores non-rectifiable curves, for instance. But I suspect that's what ams6110 is remembering.

Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Monday January 02, 2017 @01:58AM (#13299537)
2. Arc length is defined as the limit of the length of a polygonal approximations to a curve. From (B), we know our approximations would approach the arc length from below.

You call this "geometry"? Since when does geometry involve a function limiting and bounding process? We didn't even know what a limit was until calculus...

Re:What Scientific Term or Concept Ought to be More Widely K... by ams6110 on Sunday January 01, 2017 @04:41PM (#13297536)
Well maybe I'm mistaken. It struck me that this is one of the proofs we discussed in class. I took calculus in high school also, maybe we discussed it there. However I've forgotten most of the geometry, and calculus I ever learned, having never had a practical professional need to use any of it. I'm not sure whether that reinforces or contradicts your original point on this subthread.
Re:What Scientific Term or Concept Ought to be More Widely K... by wyager on Sunday January 01, 2017 @11:52PM (#13299124)
Variational minimization is one approach. The details of the proof would come down to what sort of space you're working in, though. Euclidian spaces are a lot simpler to prove this in than more complicated spaces with different notions of intrinsic and extrinsic curvature. For example, the shortest path on a sphere is also a line, but it's extrinsically curved and also might not be unique. On the other hand, the proof in a one-dimensional Euclidean space sort of comes from the definition of the metric over the space.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Monday January 02, 2017 @12:03AM (#13299173)
We're just talking plain Euclidean space here. It's still not a basic geometry problem as the parent was suggesting.
Re:What Scientific Term or Concept Ought to be More Widely K... by m00n on Monday January 02, 2017 @05:28AM (#13300338)
Since the notion of curved path (maybe aside from circular arcs) is not discussed in basic geometry, the problem would be impossible to state.

If you assume given the notion of arc-length as the least-upper-bound on lengths of piecewise-linear paths between the two points, then the triangle inequality of basic geometry suffices. This seems not more hand-wavy a proof as something about "light-travelling-at-constant-speed" analogies.

Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Monday January 02, 2017 @05:46AM (#13300392)
> Since the notion of curved path (maybe aside from circular arcs) is not discussed in basic geometry, the problem would be impossible to state.

>> It's still not a basic geometry problem

seems we're in agreement?

Re:What Scientific Term or Concept Ought to be More Widely K... by obastani on Sunday January 01, 2017 @03:48PM (#13297256)
How did the proof you learned go? As far as I know, calculus is required to rigorously prove this fact.
Re:What Scientific Term or Concept Ought to be More Widely K... by monochromatic on Monday January 02, 2017 @01:29AM (#13299452)
Is there a way to prove this that doesn't get into calculus of variations?
Re:What Scientific Term or Concept Ought to be More Widely K... by Chinjut on Monday January 02, 2017 @02:34AM (#13299623)
I don't know what does or doesn't get into what, but the argument for the shortest path from A to B being the direct straight-line path is conceptually simple, like so: let f(t) be a curve which passes from A to B. We can split f(t) into coordinate functions x(t), y(t), …, and we can choose a coordinate system such that A and B differ only on their x coordinate, with B having the larger x coordinate.

The total length of the curve described by f is the integral of |df/dt| dt, which is to say, the integral of sqrt((dx/dt)^2 + (dy/dt)^2 + ...) dt. This integrand is at least as large as dx/dt dt. But the integral of this latter integrand is the difference of B's and A's x coordinates, which is to say, the length of the direct straight-line path from A to B.

Thus, every path from A to B is at least as long as the direct straight-line path. [In fact, paying more careful attention, we have by this same argument the slightly stronger result that every other path is strictly longer than the straight-line path]

Re:What Scientific Term or Concept Ought to be More Widely K... by Noughmad on Monday January 02, 2017 @03:22AM (#13299793)
Now, without some context, this is not a good proof because you don't say your assumptions/axioms up front. Did you already prove that sqrt(x2+y2)>=x? Did you already prove that this particual integral exists? That you are allowed to choose a coordinate system so that A and B are both on the x axis?

If you take all of the above for granted (or "obvious"), you may as well say that the straight line being shortest is obvious.

Re:What Scientific Term or Concept Ought to be More Widely K... by Chinjut on Monday January 02, 2017 @04:27AM (#13300071)
Every proof is like this [except in the particular context of 100% formalized proof systems agreed upon in all details beforehand, but that is a niche context, not the default for mathematical discussion or thought].

I spelt out the parts of the argument that might be unfamiliar. I'm sure anyone here can readily convince themselves that sqrt(x^2 + y^2) >= x [x^2 is increasing for positive inputs, thus so is its inverse function, so sqrt(x^2 + y^2) >= sqrt(x^2) = |x| >= x], and that you can choose a coordinate system so that A and B are both on the x axis [take A to be the origin; take the vector from A to B to give the positive x axis, and other axes accordingly perpendicular to this one], and so on.

The integral business can be phrased however one likes, formally or informally, to account for the idea of a rectifiable curve as one whose length is given by treating it as built of many component straight-line pieces. The conceptual argument is the same, regardless of any particular choice of technical framework.

And if you furthermore aren't sure that, say, x^2 is increasing on positive inputs, we can explore that as well. If you furthermore aren't sold on modus ponens, we can explore that as well. Everything is infinitely explorable (and malleable!). But I noted only what here seemed directly relevant to the curiosity at hand.

Re:What Scientific Term or Concept Ought to be More Widely K... by monochromatic on Tuesday January 03, 2017 @01:23AM (#13307147)
I think it was exactly the right level of rigor for a HN comment. Gets the important idea across, doesn't get bogged down in the details that would be easy enough to fill in.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Monday January 02, 2017 @01:51AM (#13299518)
I'm not totally sure; I think it depends on what exactly you classify as calculus of variations, and what assumptions you're willing to make along the way. For what it's worth, I don't think I know how to prove the most general case possible. But given that I encountered this in physics rather than in math, I was satisfied with proving the physical analog, which would be the claim that the path of light in Euclidean space is always linear. Assuming we're talking about light allowed me to make 3 useful assumptions: (1) that the speed of the particle doing the traveling is constant, which comes in quite handy in the proof [1], (2) that there is only 1 independent variable (i.e., time) rather than 3 space coordinates, and (3) that our functions are all sufficiently smooth and such. The nice thing about this proof is it doesn't need the Euler-Lagrange equation that everybody uses... it doesn't need calculus of variations at all. Every step is an elementary calculus step. But the downside is the thought process that actually leads to the derivation is the one you'd only really get after studying a bit of calculus of variations, so you wouldn't come up with it without having that foundation (even though it's not required). (Yes, you can try to remove time from this proof and still keep it rigorous, but then it'd require a stronger background than just freshman calculus in order to be understood.)

[1] The reason I was satisfied with this is that it's obvious that the speed of the particle is irrelevant to the length of the path so long as the medium is uniform, so once I proved it for light of constant speed, I was done. It's not necessarily satisfying for a mathematician though.

Re:What Scientific Term or Concept Ought to be More Widely K... by m00n on Monday January 02, 2017 @05:14AM (#13300280)
This is a pictorial description of the proof in the sibling comment. It does not use calculus of variations, just the definition of the path length of a (differentiable parametrized) curve. If you want to call your parametrization a "light-ray" thats fine, but muddies the waters for me.

Just spell out what we mean by path, length of a path, and use calculus of a single variable. No need to introduce 'time', 'constant speed' or the like.

BTW, a truly variational proof is in the wikipedia article [0].

[0] https://en.wikipedia.org/wiki/Calculus_of_variations#Example

Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Monday January 02, 2017 @05:44AM (#13300386)
> This is a pictorial description of the proof in the sibling comment.

Well, for starters, it was also posted an hour before that one...

But it's not the same. The sibling comment performs a change of basis. I don't.

Re:What Scientific Term or Concept Ought to be More Widely K... by swiley on Sunday January 01, 2017 @11:10PM (#13298983)
Every STEM student at my university learns enough to do this as a freshman, I don't think most are ever actually asked to though.
Re:What Scientific Term or Concept Ought to be More Widely K... by wfunction on Sunday January 01, 2017 @11:26PM (#13299030)
"Learns enough to do this"... in what sense? If you compare this to a puzzle, are you claiming they have all the pieces, or are you claiming they actually would be able to put the pieces together if you asked them to? The proof steps are tricky, it's not just a straightforward evaluation of some expression.

Also -- are you really claiming every STEM student at your university learns calculus of variations as a freshman? Because that's the only way I've actually seen others prove this. While doing it with plain calculus isn't impossible, it requires a similar kind of thought process that you get after learning calculus of variations, so I'm really skeptical what you're saying is the case, unless you're thinking of a different proof or something.