Undergrad Is My Calculus of Variations Approach Correct?

Click For Summary
SUMMARY

The forum discussion centers on the application of the Calculus of Variations to demonstrate that the minimum path connecting two points, (x1, y1) and (x2, y2), is a straight line. The integral to minimize is given by $$ \int_{x_1}^{x_2} \sqrt{ 1 + y'(x)^2} dx $$, where y(x) represents the path. The user explores the differentiation of a perturbed curve Y(x) and seeks clarification on the derivation of the Euler-Lagrange Equation, particularly regarding the notation used in Classical Mechanics by Taylor. The discussion highlights confusion over the dependence of variables on the perturbation parameter α.

PREREQUISITES
  • Understanding of Calculus of Variations
  • Familiarity with Euler-Lagrange Equation
  • Knowledge of perturbation methods in calculus
  • Basic concepts of functional differentiation
NEXT STEPS
  • Study the derivation of the Euler-Lagrange Equation in detail
  • Learn about perturbation theory in the context of variational calculus
  • Explore examples of minimizing functionals in Calculus of Variations
  • Review the chain rule in the context of differentiating composite functions
USEFUL FOR

Mathematicians, physicists, and engineering students interested in advanced calculus, particularly those focusing on optimization problems and variational methods.

erobz
Gold Member
Messages
4,459
Reaction score
1,846
I would like to use the Calculus of Variations to show the minimum path connecting two points is a straight line, but I wish to do it from scratch without using the pre-packaged general result, because I'm having some trouble following it.

Points are ##(x_1,y_1),(x_2,y_2)##.

And we are to minimize this integral, whre ##y(x)## is the minimum path:

$$ \int_{x_1}^{x_2} ds = \int_{x_1}^{x_2} \sqrt{ 1 + y'(x)^2} dx $$

Then you make a new curve:

$$ Y(x) = y(x) + \beta \eta (x) $$

Differentiate ##Y(x)##:

$$ Y'(x) = y'(x) + \beta \eta '(x) $$

Sub into the integral and expand (dropping the function notation):

$$ I = \int_{x_1}^{x_2} \sqrt{ 1 + Y'(x)^2} dx = \int_{x_1}^{x_2} \sqrt{ 1 + y'^2 + 2 \beta y' \eta '+ \beta^2 \eta ' ^2 } dx $$

This you are supposed to take the derivative w.r.t. ##\beta##

$$ \frac{dI}{d \beta} = \int_{x_1}^{x_2} \frac{d}{d \beta}\left( \sqrt{ 1 + y'^2 + 2 \beta y' \eta '+ \beta^2 \eta ' ^2 } \right) dx $$

Am I doing this correctly to this point?
 
Physics news on Phys.org
Do not forget that ##\eta(x_1)=\eta(x_2)=0##.
It seems that deducing the Lagrange equations in general form takes less writing than this masochism
 
Last edited:
  • Haha
Likes bhobba and vanhees71
wrobel said:
Do not forget that ##\eta(x_1)=\eta(x_2)=0##.
It seems that deducing the Lagrange equations in general form takes less writing than this masochism
Agreed, and that's probably why I don't find example worked this way. But Im trying to get to the bottom of something.

My problem is that In Classical Mechanics by Taylor there is a point in the derivation of the Euler-Lagrange Equation that he says:

$$ \frac{\partial f ( y+\alpha \eta, y' + \alpha \eta ', x) }{\partial \alpha} = \eta \frac{\partial f }{ \partial y} + \eta ' \frac{\partial f }{ \partial y'} $$

I can't figure it out! ##y## doesn't depend on ##\alpha##?
 
y does not depend on ##\alpha## yes
 
  • Like
Likes bhobba and vanhees71
wrobel said:
y does not depend on ##\alpha## yes
Then that result is a mistake with notation?
 
what "that"?
y is the fixed trajectory and ##y+\alpha \eta## its perturbation
 
wrobel said:
what "that"?
post 3 is taken from Taylor.
 
I do not see a problem with the formula from #3
 
  • Like
Likes bhobba and vanhees71
wrobel said:
I do not see a problem with the formula from #3
we are to be differentiating ##f## with respect to ##\alpha##. ##y## does not depend on ##\alpha##.
 
  • #10
erobz said:
we are to be differentiating f with respect to α. y does not depend on α.
exactly!
 
  • Like
Likes bhobba and vanhees71
  • #11
wrobel said:
exactly!
Then #3 cannot be correct...
 
  • #12
erobz said:
we are to be differentiating ##f## with respect to ##\alpha##. ##y## does not depend on ##\alpha##.

In this case, \frac{\partial f}{\partial y} means differentiation of f with respect to its first argument, and \frac{\partial f}{\partial y'} means differentiation of f with respect to its second argument, in both cases with the other argument held constant.

You are differentiating not f, but the composite function g(y,y&#039;,\alpha) = f(y + \alpha \eta, y&#039; + \alpha \eta&#039;) with respect to \alpha; by the chain rule this is then \frac{\partial g}{\partial \alpha} = <br /> \frac{\partial f}{\partial y} \frac{\partial (y + \alpha \eta)}{\partial \alpha} + \frac{\partial f}{\partial y&#039;} \frac{\partial (y&#039; + \alpha \eta&#039;)}{\partial \alpha}.
 
  • Like
Likes bhobba, vanhees71 and wrobel
  • #13
pasmith said:
In this case, \frac{\partial f}{\partial y} means differentiation of f with respect to its first argument, and \frac{\partial f}{\partial y&#039;} means differentiation of f with respect to its second argument, in both cases with the other argument held constant.

You are differntiating the composite function f(y + \alpha \eta, y&#039; + \alpha \eta&#039;) with respect to \alpha; by the chain rule this is then <br /> \frac{\partial f}{\partial y} \frac{\partial (y + \alpha \eta)}{\partial \alpha} + \frac{\partial f}{\partial y&#039;} \frac{\partial (y&#039; + \alpha \eta&#039;)}{\partial \alpha}.
The argument being ##y + \alpha \eta ##.

So it is a typo. He defines ## Y(x) = y(x) + \alpha \eta ## earlier, and what they really meant to say is:

$$ \frac{ \partial f ( Y,Y',x) }{\partial \alpha} = \eta \frac{\partial f }{ \partial Y} + \eta ' \frac{\partial f }{ \partial Y'}$$

?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 20 ·
Replies
20
Views
4K