Is My Calculus of Variations Approach Correct?

In summary, "Is My Calculus of Variations Approach Correct?" examines the principles and methods used in calculus of variations to determine the accuracy of a given approach. It discusses the foundational concepts, common pitfalls, and verification techniques essential for ensuring that a variational problem is correctly formulated and solved. The author emphasizes the importance of rigorous mathematical reasoning and provides examples to illustrate potential errors and their resolutions, ultimately guiding readers towards more reliable applications of the calculus of variations.
  • #1
erobz
Gold Member
3,938
1,679
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?
 
  • Like
Likes vanhees71
Physics news on Phys.org
  • #2
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
  • #3
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##?
 
  • #4
y does not depend on ##\alpha## yes
 
  • Like
Likes bhobba and vanhees71
  • #5
wrobel said:
y does not depend on ##\alpha## yes
Then that result is a mistake with notation?
 
  • #6
what "that"?
y is the fixed trajectory and ##y+\alpha \eta## its perturbation
 
  • Like
Likes vanhees71
  • #7
wrobel said:
what "that"?
post 3 is taken from Taylor.
 
  • #8
I do not see a problem with the formula from #3
 
  • Like
Likes bhobba and vanhees71
  • #9
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, [itex]\frac{\partial f}{\partial y}[/itex] means differentiation of [itex]f[/itex] with respect to its first argument, and [itex]\frac{\partial f}{\partial y'}[/itex] means differentiation of [itex]f[/itex] with respect to its second argument, in both cases with the other argument held constant.

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

You are differntiating the composite function [itex]f(y + \alpha \eta, y' + \alpha \eta')[/itex] with respect to [itex]\alpha[/itex]; by the chain rule this is then [tex]
\frac{\partial f}{\partial y} \frac{\partial (y + \alpha \eta)}{\partial \alpha} + \frac{\partial f}{\partial y'} \frac{\partial (y' + \alpha \eta')}{\partial \alpha}.[/tex]
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'}$$

?
 

FAQ: Is My Calculus of Variations Approach Correct?

1. What is the calculus of variations?

The calculus of variations is a field of mathematical analysis that deals with maximizing or minimizing functionals, which are mappings from a set of functions to the real numbers. This approach often involves finding a function that optimizes a certain quantity, typically expressed as an integral. It has applications in physics, engineering, economics, and other areas where optimization problems arise.

2. How can I verify if my functional is correctly formulated?

To verify if your functional is correctly formulated, first ensure that it appropriately represents the quantity you wish to optimize. Check the boundary conditions and constraints of the problem. Additionally, consider deriving the Euler-Lagrange equation from your functional. If the resulting equations accurately reflect the problem's physical or geometrical context, your formulation is likely correct.

3. What are the common mistakes in applying the calculus of variations?

Common mistakes include misidentifying the dependent and independent variables, overlooking boundary conditions, and incorrectly applying the Euler-Lagrange equation. It's also important to ensure that the functional is well-defined and that the functions considered are within the appropriate function space. Careful attention to these details can help avoid errors in your approach.

4. How do I know if my solution is optimal?

To determine if your solution is optimal, check if it satisfies the Euler-Lagrange equation derived from your functional. Additionally, you can use second variation tests to assess the nature of the extremum (minimum or maximum) of the functional. If your solution meets the necessary conditions and passes these tests, it is likely optimal.

5. What resources can I use to learn more about the calculus of variations?

There are several excellent resources available for learning about the calculus of variations. Textbooks such as "Calculus of Variations" by Gelfand and Fomin, or "The Calculus of Variations" by C. D. P. L. Evans, provide comprehensive introductions and advanced topics. Online courses, academic papers, and lecture notes from universities can also be valuable. Engaging with academic communities or forums can further enhance your understanding.

Similar threads

Replies
6
Views
1K
Replies
3
Views
2K
Replies
6
Views
2K
Replies
1
Views
2K
Replies
5
Views
1K
Replies
22
Views
961
Replies
4
Views
1K
Back
Top