How Can You Optimize Travel Time with Varying Speeds in Calculus of Variations?

Click For Summary

Homework Help Overview

The discussion revolves around a problem in the calculus of variations, specifically focusing on optimizing travel time for a particle moving in the (x,y) plane. The particle's speed is defined as a function of its distance from the x-axis, and participants are tasked with determining the angle of travel that minimizes time between two specified points.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the formulation of the time integral for travel and the application of the Euler equation to derive necessary conditions for optimization. There are inquiries about the implications of constants in the equations and how they affect the final direction of travel.

Discussion Status

The conversation is ongoing, with participants sharing their calculations and seeking clarification on specific steps in the derivation process. Some have suggested simplifying assumptions, such as setting certain constants to specific values, to facilitate the analysis. There is no explicit consensus on the final approach yet, as multiple interpretations and methods are being explored.

Contextual Notes

Participants are working under the constraints of a homework problem, which may limit the information available or the methods that can be employed. The discussion includes considerations of boundary conditions and the role of constants in the equations being analyzed.

touqra
Messages
284
Reaction score
0
I have another difficult question regarding calculus of variations.
A particle travels in the (x,y) plane has a speed u(y) that depends on the distance of the particle from the x-axis. The direction of travel subtends an angle [tex]\theta[/tex] with the x-axis that can be controlled to give the minimum time to move between two points.
Let [tex]u(y) = Ue^{-y/h}[/tex] whereby, U and h are constants.
If the particles starts at (0,0) and has to get to the point [tex](\pi{h}/4,h)[/tex] in the shortest time, show that, the final direction is [tex]\theta = tan^{-1}(e\sqrt{2}-1)[/tex]
 
Last edited:
Physics news on Phys.org
touqra said:
I have another difficult question regarding calculus of variations.
A particle travels in the (x,y) plane has a speed u(y) that depends on the distance of the particle from the x-axis. The direction of travel subtends an angle [tex]\theta[/tex] with the x-axis that can be controlled to give the minimum time to move between two points.
Let [tex]u(y) = Ue^{-y/h}[/tex] whereby, U and h are constants.
If the particles starts at (0,0) and has to get to the point [tex](\pi{h}/4,h)[/tex] in the shortest time, show that, the final direction is [tex]\theta = tan^{-1}(e\sqrt{2}-1)[/tex]

The time it takes to travel from point a to b is given by:

[tex]t_{a,b}=\int_{p_1}^{p_2}\frac{ds}{v}[/tex]

Where s is the arclength and v is the speed. Note that:

[tex]ds=\sqrt{dx^2+dy^2}=\sqrt{1+(y^{'})^2}dx[/tex]

The final direction is just the slope of the extremal function at the end point right?
 
saltydog said:
The time it takes to travel from point a to b is given by:
[tex]t_{a,b}=\int_{p_1}^{p_2}\frac{ds}{v}[/tex]
Where s is the arclength and v is the speed. Note that:
[tex]ds=\sqrt{dx^2+dy^2}=\sqrt{1+(y^{'})^2}dx[/tex]
The final direction is just the slope of the extremal function at the end point right?
yup, that's what I did initially. But, when I used the Euler equation to get me an equation, I have an equation with some unknown constants, ie, U and h. But the final direction which was needed to be proven does not contain any constants.
What I get was:
[tex]F=\sqrt{1+y'^2}{e^{y/h}}/U[/tex]
Using Euler equation and the Beltrami identity (since F is independent of x),
[tex]F-{y'}\frac{\partialF}{\partialy'}=constant[/tex]
[tex]\sqrt{1+y'^2}{e^{y/h}}-{y'^2}{(1+y'^2)}^{-1/2}{e^{y/h}}/2= constant[/tex]
 
Last edited:
touqra said:
yup, that's what I did initially. But, when I used the Euler equation to get me an equation, I have an equation with some unknown constants, ie, U and h. But the final direction which was needed to be proven does not contain any constants.
What I get was:
[tex]F=\sqrt{1+y'^2}{e^{y/h}}/U[/tex]
Using Euler equation and the Beltrami identity (since F is independent of x),
[tex]F-{y'}\frac{\partialF}{\partialy'}=constant[/tex]
[tex]\sqrt{1+y'^2}{e^{y/h}}-{y'^2}{(1+y'^2)}^{-1/2}{e^{y/h}}/2= constant[/tex]

For the moment, let h=1, leave U as just some constant: This is sufficient to lead to the angle you posted above.

So we start here:

[tex]t_{a,b}=\int_{p_1}^{p_2}\frac{ds}{v}[/tex]

and extremize:

[tex]\mathbf{T}[y(x)]=\int_{p_1}^{p_2}\frac{\sqrt{1+(y^{'})^2}}{Ue^{-y/h}}dx[/tex]

(v above in my post is just u(y(x)), the speed of travel)

with the boundary conditions you posted.

so:

[tex]F(x,y,y^{'})=\frac{\sqrt{1+(y^{'})^2}}{Ue^{-y/h}}[/tex]

So we employ Euler's equation and calculate 3 derivatives. Can you post the first two?

[tex]\frac{\partial F}{\partial y}=[/tex]

[tex]\frac{\partial F}{\partial y^{'}}=[/tex]
 
Last edited:
saltydog said:
For the moment, let h=1, leave U as just some constant: This is sufficient to lead to the angle you posted above.
So we start here:
[tex]t_{a,b}=\int_{p_1}^{p_2}\frac{ds}{v}[/tex]
and extremize:
[tex]\mathbf{T}[y(x)]=\int_{p_1}^{p_2}\frac{\sqrt{1+(y^{'})^2}}{Ue^{-y/h}}dx[/tex]
(v above in my post is just u(y(x)), the speed of travel)
with the boundary conditions you posted.
so:
[tex]F(x,y,y^{'})=\frac{\sqrt{1+(y^{'})^2}}{Ue^{-y/h}}[/tex]
So we employ Euler's equation and calculate 3 derivatives. Can you post the first two?
[tex]\frac{\partial F}{\partial y}=[/tex]
[tex]\frac{\partial F}{\partial y^{'}}=[/tex]
I obtain
[tex]\frac{\partial F}{\partial y'} = Uy'e^{y/h}/\sqrt{1+y'^2} = J[/tex]
[tex]\frac{\partial F}{\partial y} = U\sqrt{(1+y'^2)}e^{y/h}/h[/tex]
[tex]\frac{dJ}{dx}=\frac{K-L}{M}[/tex]
where, [tex]K = e^{y/h}(1+y'^2)(y''+\frac{y'^2}{h})[/tex]
[tex]L = y''y'e^{y/h}[/tex]
[tex]M = (1+y'^2)\sqrt{(1+y'^2)}[/tex]
How do you proceed from here?
Why do you say that putting h=1 will give the final angle?
 
Last edited:
Touqra, it looks like you're having problems calculating partials. Looks so, maybe not.

First, let's clean up the functional: Really, if we want to minimize that integral, we can just move U across the integral sign right, and let's put the exponential in the numerator:

[tex]\mathbf{T}[y(x)]=\frac{1}{U}\int_{p_1}^{p_2} e^{y/h}\sqrt{1+(y^{'})^2}dx[/tex]


So:

[tex]F(x,y,y^{'})=e^{y/h}\sqrt{1+(y^{'})^2}[/tex]

and therefore:

[tex]\frac{\partial F}{\partial y}=\frac{e^{y/h}\sqrt{1+(y^{'})^2}}{h}[/tex]

and:

[tex]\frac{\partial F}{\partial y^{'}}=\frac{e^{y/h}y^{'}}{\sqrt{1+(y^{'})^2}}[/tex]

and so:

[tex] \begin{align*}<br /> \frac{d}{dx}\left(\frac{\partial F}{\partial y^{'}}\right)&=\frac{d}{dx}\left[\frac{e^{y/h}y^{'}}{\sqrt{1+(y^{'})^2}}\right] \\<br /> <br /> &=\frac{d}{dx}\left[e^{y/h}y^{'} \cdot \frac{1}{\sqrt{1+(y^{'})^2}}\right] \\<br /> <br /> &=e^{y/h}y^{'}\cdot\frac{-1/2}{(1+(y^{'})^2)^{3/2}}\cdot 2 y^{'}y^{''} \\<br /> <br /> &+\frac{1}{\sqrt{1+(y^{'})^2}}\left(e^{y/h}y^{''}+y^{'}\frac{1}{h}y^{'}e^{y/h}\right) \\<br /> <br /> &=\frac{e^{y/h}y^{''}}{\sqrt{1+(y^{'})^2}}-\frac{e^{y/h}(y^{'})^2y^{''}}{(1+(y^{'})^2)^{3/2}}+<br /> \frac{e^{y/h}(y^{'})^2}{h\sqrt{1+(y^{'})^2}}<br /> <br /> \end{align}[/tex]

So, once we obtain the partials, then we substitute them into the Euler equation and equate the expression to zero. Now, can you substitute these expressions into:

[tex]\frac{\partial F}{\partial y}-\frac{d}{dx}\left(\frac{\partial F}{\partial y^{'}}\right)=0[/tex]

simplify, and then post the results?

Also, with regards to h=1: I just worked the problem with that value and obtained the results you indicated. Perhaps it works for any value of h. Not sure.
 
Last edited:
saltydog said:
Touqra, it looks like you're having problems calculating partials. Looks so, maybe not.
First, let's clean up the functional: Really, if we want to minimize that integral, we can just move U across the integral sign right, and let's put the exponential in the numerator:
[tex]\mathbf{T}[y(x)]=\frac{1}{U}\int_{p_1}^{p_2} e^{y/h}\sqrt{1+(y^{'})^2}dx[/tex]
So:
[tex]F(x,y,y^{'})=e^{y/h}\sqrt{1+(y^{'})^2}[/tex]
and therefore:
[tex]\frac{\partial F}{\partial y}=\frac{e^{y/h}\sqrt{1+(y^{'})^2}}{h}[/tex]
and:
[tex]\frac{\partial F}{\partial y^{'}}=\frac{e^{y/h}y^{'}}{\sqrt{1+(y^{'})^2}}[/tex]
and so:
[tex] \begin{align*}<br /> \frac{d}{dx}\left(\frac{\partial F}{\partial y^{'}}\right)&=\frac{d}{dx}\left[\frac{e^{y/h}y^{'}}{\sqrt{1+(y^{'})^2}}\right] \\<br /> &=\frac{d}{dx}\left[e^{y/h}y^{'} \cdot \frac{1}{\sqrt{1+(y^{'})^2}}\right] \\<br /> &=e^{y/h}y^{'}\cdot\frac{-1/2}{(1+(y^{'})^2)^{3/2}}\cdot 2 y^{'}y^{''} \\<br /> &+\frac{1}{\sqrt{1+(y^{'})^2}}\left(e^{y/h}y^{''}+y^{'}\frac{1}{h}y^{'}e^{y/h}\right) \\<br /> &=\frac{e^{y/h}y^{''}}{\sqrt{1+(y^{'})^2}}-\frac{e^{y/h}(y^{'})^2y^{''}}{(1+(y^{'})^2)^{3/2}}+<br /> \frac{e^{y/h}(y^{'})^2}{h\sqrt{1+(y^{'})^2}}<br /> \end{align}[/tex]
So, once we obtain the partials, then we substitute them into the Euler equation and equate the expression to zero. Now, can you substitute these expressions into:
[tex]\frac{\partial F}{\partial y}-\frac{d}{dx}\left(\frac{\partial F}{\partial y^{'}}\right)=0[/tex]
simplify, and then post the results?
Also, with regards to h=1: I just worked the problem with that value and obtained the results you indicated. Perhaps it works for any value of h. Not sure.
I simplified the result and obtained
[tex]hy'' = 1 + y'^2[/tex]
solving the above equation, we have
[tex]y' = tan (\frac{(x+c)}{h})[/tex]
since, [tex]y' = tan (angle)[/tex]
this means, angle of direction [tex]= \frac{(x+c)}{h}[/tex]
Then, how do I proceed?
 
touqra said:
I simplified the result and obtained
[tex]hy'' = 1 + y'^2[/tex]
solving the above equation, we have
[tex]y' = tan (\frac{(x+c)}{h})[/tex]
since, [tex]y' = tan (angle)[/tex]
this means, angle of direction [tex]= \frac{(x+c)}{h}[/tex]
Then, how do I proceed?

Well, would be nice to integrate it one more time to get the actual function y(x). That of course brings in another constant of integration. But you have two boundary condtions right? Two equation, two unknowns, little algebra, should be able to figure out what the constants are.

Edit: Oh yea, just use h=1.
 
saltydog said:
Well, would be nice to integrate it one more time to get the actual function y(x). That of course brings in another constant of integration. But you have two boundary condtions right? Two equation, two unknowns, little algebra, should be able to figure out what the constants are.
Edit: Oh yea, just use h=1.

Thanks. I got it.
But I still have to figure out why h=1 works. When I didn't make that assumption, it turns out that I have [tex]e^h[/tex]. h = 1 works because [tex]e^h = e[/tex]
Hmmm...
 

Similar threads

  • · Replies 33 ·
2
Replies
33
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
14
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K