Shortest distance between two points

  • Context: High School 
  • Thread starter Thread starter brotherbobby
  • Start date Start date
  • Tags Tags
    Shortest distance
Click For Summary

Discussion Overview

The discussion centers around the problem of finding the shortest distance between two points, A and B, with a vertical distance d and a horizontal distance s. Participants explore the mathematical formulation of the distance and the implications of differentiability in determining the shortest path. The scope includes mathematical reasoning and conceptual clarification.

Discussion Character

  • Mathematical reasoning
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant proposes that the shortest distance can be expressed as ##y=\sqrt{s^2+d^2}## and suggests that the path should be extremized by considering an intermediary point C.
  • Another participant corrects the distance expression to include the absolute value, stating it should be ##y = |x| + \sqrt{d^2 + (s-x)^2}##, noting that this expression is not differentiable at ##x = 0##.
  • Some participants discuss the implications of the triangle inequality, asserting that the sum of the lengths of any two sides of a triangle must be greater than or equal to the length of the third side.
  • There is confusion regarding the use of absolute values in the distance expression, with participants expressing uncertainty about how negative values for x affect the length of segment AC.
  • One participant introduces the concept of the "first law of the butterfly," suggesting that the shortest distance is a zigzag line, while another humorously contrasts this with a crow's sense.
  • Several participants express difficulties with quoting mathematical expressions accurately in the forum, leading to discussions about the limitations of the quoting feature.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correct formulation of the distance or the implications of differentiability. Multiple competing views and corrections are presented throughout the discussion.

Contextual Notes

There are unresolved issues regarding the assumptions made about the distance expressions and the implications of differentiability at specific points. The discussion also highlights the challenges of accurately representing mathematical expressions in the forum format.

brotherbobby
Messages
764
Reaction score
170
TL;DR
I am trying to convince myself that the shortest distance between two points on a plane is indeed along a straight line and not the distance along a pair of lines that join them via a third intermediary point as shown below.
1715670366681.png
I copy and paste the diagram I drew for the problem to the right. The two points in question are A and B. The vertical from B is ##d## units long and is ##s## units away from A.

What is the shortest way to go from A to B?

We expect it to be a distance of (say) ##y=\sqrt{s^2+d^2}##.

Thus, if we travel from A to B via an intermediary point C at a distance ##x## from A and extremise the path ##\text{AC}\rightarrow \text{CB}##, we should obtain ##\boxed{\boldsymbol{x=0}}## for shortest path.

Let's see.



The distance ##\small{\text{AC}+\text{CB}=y=x+\sqrt{d^2+(s-x)^2}\Rightarrow \dfrac{dy}{dx}= 1-\dfrac{s-x}{\sqrt{d^2+(s-x)^2}}}##.

For minimum (extremum, more generally), ##\small{\dfrac{dy}{dx}=0\Rightarrow \dfrac{s-x}{\sqrt{d^2+(s-x)^2}}=1\Rightarrow (s-x)^2=d^2+(s-x)^2}##.

The last expression is not true for all ##x##. I was hoping I'd get an expression that would say ##x=0##.

Where am I going wrong?
 
Last edited:
Physics news on Phys.org
Your expression for the distance is incorrect. It should be:
$$
y = |x| + \sqrt{d^2 + (s-x)^2}
$$
This is not differentiable at ##x = 0##. Here is a plot of ##y(x)## for ##d = 2## and ##s = 1##:
1715673273173.png
 
Apart from that, there is the triangle inequality, which is a basic result in geometry:
$$
A + B \geq C
$$
which is true for any sides of a triangle.

Edit: This is easy to show in any inner product space. Given an inner product and vectors ##\vec v = \vec u + \vec w##, it holds that
$$
v^2 = \vec v^2 = \vec u^2 + \vec w^2 + 2\vec u \cdot \vec w \leq u^2 + v^2 + 2uv = (u+v)^2
$$
 
Last edited:
Orodruin said:
our expression for the distance is incorrect. It should be:
y=|x|+d2+(s−x)2
I didn't understand the ##|x|## bit.

(I am aware that it is not differentiable at ##x=0##)
 
1715674269946.png

You meant to say ##A+B\ge C##, right?
 
The first law of the butterfly, states simply that, the shortest distance between two points is a zigzag line.
 
brotherbobby said:
I didn't understand the ##|x|## bit.

(I am aware that it is not differentiable at ##x=0##)
Your expression says that if ##x## is negative, then the line segment ##AC## has negative length. The actual length of the line segment ##AC## is the absolute value of ##x## (or ##\sqrt{x^2}## if you will, but that's the same for real numbers).

brotherbobby said:
View attachment 345212
You meant to say ##A+B\ge C##, right?
Yes, I thought I edited that out before anyone saw it ... brain jumped to Pythagoras' theorem for some reason. (Also, using the quote feature is more efficient than screen shots)
 
Baluncore said:
The first law of the butterfly, states simply that, the shortest distance between two points is a zigzag line.
The crow has more sense.
 
Orodruin said:
Your expression says that if x is negative, then the line segment AC has negative length. The actual length of the line segment AC is the absolute value of x (or x2 if you will, but that's the same for real numbers).
Yes, pardon me. So it's ##|x|##, and yes that invalidates my procedure even if I had put the ##|x|## correctly owing to the lack of differentiability.

Orodruin said:
Also, using the quote feature is more efficient than screen shots
I could never use the "Quote" feature here. I copy the statement and select "Reply" instead. However, copying is poor with mathematics. Let me show you.

Orodruin said:
Edit: This is easy to show in any inner product space. Given an inner product and vectors v→=u→+w→, it holds that
An example of how it looks. You, being the writer of the statement, can barely understand what's written. Not to mention that the second line which was entirely mathematicsl did not even appear.
 
  • #10
Orodruin said:
Edit: This is easy to show in any inner product space. Given an inner product and vectors v→=u→+w→, it holds that
Ok, still no luck with "Insert Quotes". The inline mathematics is garbled. The displaymath line does not appear.
A screenshot seems the only option for now.
 
  • #11
brotherbobby said:
I could never use the "Quote" feature here. I copy the statement and select "Reply" instead. However, copying is poor with mathematics. Let me show you.
Use the ”Reply” feature and delete any part you don’t want to quote.

Like so:

brotherbobby said:
Yes, pardon me. So it's ##|x|##, and yes that invalidates my procedure even if I had put the ##|x|## correctly owing to the lack of differentiability.
Not invalidate. It is still important to conclude that the function has no local extrema where differentiable. Once you know that, check the point where it is not differentiable.
 
  • #12
Orodruin said:
Apart from that, there is the triangle inequality, which is a basic result in geometry:
$$
A + B \geq C
$$
which is true for any sides of a triangle.

Edit: This is easy to show in any inner product space. Given an inner product and vectors ##\vec v = \vec u + \vec w##, it holds that
$$
v^2 = \vec v^2 = \vec u^2 + \vec w^2 + 2\vec u \cdot \vec w \leq u^2 + v^2 + 2uv = (u+v)^2
$$
Let's see how this works without me deleting anything. Only by clicking on Post Reply am I going to find out.

Yes looks alright (edit).
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 49 ·
2
Replies
49
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
23
Views
2K
  • · Replies 20 ·
Replies
20
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
82
Views
5K
  • · Replies 14 ·
Replies
14
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K