How to find the quickest path?
- Thread starter En Joy
- Start date
-
- Tags
- Path Snell's law
Click For Summary
The discussion focuses on finding the quickest path between two points, A and B, using calculus and potentially Snell's Law. Participants emphasize the importance of deriving equations for time as a function of angle to minimize total travel time. A nonlinear equation must be solved to determine the angles and crossing point on the boundary between mud and pavement. While the problem can be expressed as a fourth-degree polynomial, numerical solutions are suggested as more manageable than exact analytical solutions. The conversation highlights the complexity of the problem and the necessity of calculus for a proper resolution.
Physics news on Phys.org
Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
- 7,864
- 1,602
What level of mathematics are we allowed to use in solving this problem? Calculus?
It seems simplest to begin by finding distance DO.
It seems simplest to begin by finding distance DO.
En Joy
- 16
- 0
But how?Stephen Tashi said:What level of mathematics are we allowed to use in solving this problem? Calculus?
It seems simplest to begin by finding distance DO.
berkeman
Admin
- 69,201
- 24,312
You didn't answer this question. It's important.Stephen Tashi said:What level of mathematics are we allowed to use in solving this problem? Calculus?
I don't think your attempt to fit this problem into Snell's Law is correct. You need to write the equations for the time to the pavement as a function of angle, and the time to the final point on the pavement starting at that landing point. If you can use calculus, you just minimize the total time as a function of the angle you take to the pavement.En Joy said:But how?
Last edited:
Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
- 7,864
- 1,602
En Joy said:But how?
Express DO as a function of AD and unknown angle ##\angle OAD = \theta_m##.
berkeman
Admin
- 69,201
- 24,312
Come to think of it, it might end up looking like Snell's Law. I'll have to try deriving it...berkeman said:I don't think your attempt to fit this problem into Snell's Law is correct
berkeman
Admin
- 69,201
- 24,312
@En Joy -- Were you given a hint about using Snell's Law for the solution of this problem?
A quick Google search turns up all kinds of interesting stuff... http://dev.physicslab.org/Document.aspx?doctype=3&filename=GeometricOptics_LeastTime.xml
A quick Google search turns up all kinds of interesting stuff... http://dev.physicslab.org/Document.aspx?doctype=3&filename=GeometricOptics_LeastTime.xml
En Joy
- 16
- 0
I know calculus and the derivation of Shell's law because I have completed graduation (Physics honours) and I am a primary school teacher also. The problem came to my mind suddenly while studying calculus of variation, so this is not a school homework. Trust me.berkeman said:You didn't answer this question. It's important.
I don't think your attempt to fit this problem into Snell's Law is correct. You need to write the equations for the time to the pavement as a function of angle, and the time to the final point on the pavement starting at that landing point. If you can use calculus, you just minimize the total time as a function of the angle you take to the pavement.
Yes, calculus will need here to sove this problem but I tried my best and did already show my attempt in the picture.
berkeman
Admin
- 69,201
- 24,312
I think the analogy with Snell's Law is good. Did you look through the links? The minimum time condition seems very applicable to the problem you came up with...En Joy said:I know calculus and the derivation of Shell's law because I have completed graduation (Physics honours) and I am a primary school teacher also. The problem came to my mind suddenly while studying calculus of variation, so this is not a school homework. Trust me.
Yes, calculus will need here to sove this problem but I tried my best and did already show my attempt in the picture.
En Joy
- 16
- 0
Yes, I have read the link. It illustrates nothing but the derivation of Snell's law using calculus.berkeman said:I think the analogy with Snell's Law is good. Did you look through the links? The minimum time condition seems very applicable to the problem you came up with...
I actually want to know something like this. Suppose you are in position A(in mud) and your friend is at B(in pavement) as in picture. Now how can you find the path of least time to reach your friend? All the distances and the two angles are known(see the main image).
I think may be Snell's law and some calculus may help in this case but I could not try further.
Please solve this completely.
berkeman
Admin
- 69,201
- 24,312
But that's what the derivation of Snell's law is about -- the path with the least time...En Joy said:find the path of least time to reach your friend?
En Joy
- 16
- 0
I want to know the value of θmberkeman said:But that's what the derivation of Snell's law is about -- the path with the least time...
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
- 10,704
- 1,723
En Joy said:I know calculus and the derivation of Shell's law because I have completed graduation (Physics honours) and I am a primary school teacher also. The problem came to my mind suddenly while studying calculus of variation, so this is not a school homework. Trust me.
Yes, calculus will need here to sove this problem but I tried my best and did already show my attempt in the picture.
En Joy said:I want to know the value of θm
The solution is pretty horrible.
First, I will change the picture to put point A on the y-axis at ##(0,h)## and point B to the right at ##(a,-b)##. So, the path crosses the horizontal axis at ##x \in (0,a)##. (Basically, instead of putting the origin at the crossing point and the having variable endpoints, I prefer to fix the ends---but of course, it is equivalent.) We have two equations. Since ##x = h \tan(\theta_m)## and ##a-x = b \tan(\theta_p)## we have
$$h \tan(\theta_m) + b\tan(\theta_p) = a.$$
We also have ##\sin(\theta_p) = r \sin(\theta_m)##, where ##r = v_p/v_m##. Expressing everything in terms of ##z = \sin(\theta_m)## the problem reduces to the solution of the equation
$$ (1)\;\;\frac{h z}{\sqrt{1-z^2}}+\frac{b r z}{\sqrt{1-r^2 z^2}} = a.$$
This can be re-written as a rather horrible 4th degree polynomial in ##u =z^2## that is too long and complicated to reproduce here. Using 4th degree solution formulas, the equation can be solved in principle, but the results are not pretty. Maple takes about 59 pages of nasty, and complicated formulas to write out all four solutions to the polynomial. I'm not sure what use that would be to anybody.
Note added in edit: a much easier equation results if we look at the crossing point ##x## as the variable, instead of the angles. Snell's law gives
$$(2) \;\;\frac{1}{v_m} \frac{x}{\sqrt{x^2+h^2}} = \frac{1}{v_p} \frac{a-x}{\sqrt{(a-x)^2+b^2}}.$$
Squaring both sides leads to a relatively tractable 4th degree polynomial. Exact solutions are still lengthy and un-enlightening. However, numerical solution of the ##x##-problem is simpler than for the ##\theta_m##-problem. Eq. (2) also follows directly by setting the ##x##-derivative to zero of the total time function ##T = \sqrt{x^2+h^2} / v_m + \sqrt{(a-x)^2 + b^2} / v_p.##
Last edited:
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
- 10,704
- 1,723
En Joy said:Yes, I have read the link. It illustrates nothing but the derivation of Snell's law using calculus.
I actually want to know something like this. Suppose you are in position A(in mud) and your friend is at B(in pavement) as in picture. Now how can you find the path of least time to reach your friend? All the distances and the two angles are known(see the main image).
I think may be Snell's law and some calculus may help in this case but I could not try further.
Please solve this completely.
If the locations of A and B are and the two velocities are known you do NOT know the angles; you know only a relationship between the angles. To find the actual angles and the crossing point on the mud-pavement boundary you need to solve a nonlinear equation (numerically). See post #13 for details.
BTW: PF rules forbid us from solving problems completely; we are allowed to help and to give hints.
En Joy
- 16
- 0
THANK YOU VERY MUCH @Ray VicksonRay Vickson said:The solution is pretty horrible.
First, I will change the picture to put point A on the y-axis at ##(0,h)## and point B to the right at ##(a,-b)##. So, the path crosses the horizontal axis at ##x \in (0,a)##. (Basically, instead of putting the origin at the crossing point and the having variable endpoints, I prefer to fix the ends---but of course, it is equivalent.) We have two equations. Since ##x = h \tan(\theta_m)## and ##a-x = b \tan(\theta_p)## we have
$$h \tan(\theta_m) + b\tan(\theta_p) = a.$$
We also have ##\sin(\theta_p) = r \sin(\theta_m)##, where ##r = v_p/v_m##. Expressing everything in terms of ##z = \sin(\theta_m)## the problem reduces to the solution of the equation
$$ (1)\;\;\frac{h z}{\sqrt{1-z^2}}+\frac{b r z}{\sqrt{1-r^2 z^2}} = a.$$
This can be re-written as a rather horrible 4th degree polynomial in ##u =z^2## that is too long and complicated to reproduce here. Using 4th degree solution formulas, the equation can be solved in principle, but the results are not pretty. Maple takes about 59 pages of nasty, and complicated formulas to write out all four solutions to the polynomial. I'm not sure what use that would be to anybody.
Note added in edit: a much easier equation results if we look at the crossing point ##x## as the variable, instead of the angles. Snell's law gives
$$(2) \;\;\frac{1}{v_m} \frac{x}{\sqrt{x^2+h^2}} = \frac{1}{v_p} \frac{a-x}{\sqrt{(a-x)^2+b^2}}.$$
Squaring both sides leads to a relatively tractable 4th degree polynomial. Exact solutions are still lengthy and un-enlightening. However, numerical solution of the ##x##-problem is simpler than for the ##\theta_m##-problem. Eq. (2) also follows directly by setting the ##x##-derivative to zero of the total time function ##T = \sqrt{x^2+h^2} / v_m + \sqrt{(a-x)^2 + b^2} / v_p.##
Similar threads
- Replies
- 10
- Views
- 2K
- Replies
- 1
- Views
- 1K
- Replies
- 3
- Views
- 2K
- Replies
- 6
- Views
- 2K
- Replies
- 2
- Views
- 2K
- Replies
- 14
- Views
- 2K
- Replies
- 9
- Views
- 625
- Replies
- 3
- Views
- 1K
- Replies
- 3
- Views
- 2K
- Replies
- 6
- Views
- 1K