How to derive the associated Euler-Lagrange equation?

  • Thread starter Math100
  • Start date
  • Tags
    Derivation
In summary, the derivation of the associated Euler-Lagrange equation involves starting from the principle of least action, which states that the actual path taken by a system is one that minimizes the action integral. The action is defined as the integral of the Lagrangian function over time. By applying the calculus of variations to this integral, one derives the conditions for extrema, leading to the Euler-Lagrange equation. This equation relates the Lagrangian, which is a function of generalized coordinates and their velocities, to the motion of the system, establishing a fundamental relationship in classical mechanics.
  • #1
Math100
802
222
Homework Statement
For each of the following functionals, find the Gateaux differential and use it to derive the associated Euler-Lagrange equation. In each case, be sure to specify all boundary conditions that the stationary path must satisfy.
a) ## S[y]=\int_{1}^{2}(3y'^2-2y^2)dx, y(1)=1, y(2)=3 ##.
b) ## S[y]=y(0)+\frac{1}{2}\int_{0}^{1}(2y'^2+x^2y^2)dx, y(1)=2 ##.
Relevant Equations
Gateaux differential: ## \bigtriangleup S[y, h]=\displaystyle \lim_{\epsilon \to 0}\frac{d}{d\epsilon}S[y+\epsilon h] ## is defined on admissible paths ## y+\epsilon h ## for all ## \epsilon ## in the neighborhood of zero.

A path ## y(x) ## is a stationary path of a functional if the Gateaux differential ## \bigtriangleup S[y, h] ## is zero for all admissible paths ## y+\epsilon h ##.

For the functional ## S[y]=\int_{a}^{b}F(x, y, y')dx, y(a)=A, y(b)=B ##, the Euler-Lagrange equation is ## \frac{d}{dx}(\frac{\partial F}{\partial y'})-\frac{\partial F}{\partial y}=0, y(a)=A, y(b)=B ##.
a) We have ## S[y+\epsilon h]=\int_{1}^{2}[3(y'+\epsilon h')^2-2(y+\epsilon h)^2]dx ##.
Note that ## \frac{d}{d\epsilon}S[y+\epsilon h]=\int_{1}^{2}[6(y'+\epsilon h')h'-4(y+\epsilon h)h]dx=2\int_{1}^{2}[3(y'+\epsilon h')h'-2(y+\epsilon h)]dx ##.
Then ## \bigtriangleup S[y, h]=\frac{d}{d\epsilon}S[y+\epsilon h]\rvert_{\epsilon=0}=2\int_{1}^{2}(3y'h'-2yh)dx ##.
Thus, the Gateaux differential is ## \bigtriangleup S[y, h]=2\int_{1}^{2}(3y'h'-2yh)dx ##.
Consider the functional ## S[y]=\int_{1}^{2}(3y'^2-2y^2)dx, y(1)=1, y(2)=3 ##.
Let ## F(x, y, y')=3y'^2-2y^2 ##.
Then ## \frac{\partial F}{\partial y'}=6y' ## and ## \frac{\partial F}{\partial y}=-4y ##.
Observe that ## \frac{d}{dx}(\frac{\partial F}{\partial y'})-\frac{\partial F}{\partial y}=0\implies 6\frac{d^2y}{dx^2}+4y=0 ##.
Therefore, the Euler-Lagrange equation is ## 6\frac{d^2y}{dx^2}+4y=0, y(1)=1, y(2)=3 ##.

b) We have ## S[y+\epsilon h]=y(0)+\frac{1}{2}\int_{0}^{1}(2(y'+\epsilon h')^2+x^2(y+\epsilon h)^2)dx ##.
Note that ## \frac{d}{d\epsilon}S[y+\epsilon h]=y(0)+\frac{1}{2}\int_{0}^{1}[4(y'+\epsilon h')h'+2x^2(y+\epsilon h)h]dx=y(0)+\int_{0}^{1}[2(y'+\epsilon h')h'+x^2(y+\epsilon h)h]dx ##.
Thus, the Gateaux differential is ## \bigtriangleup S[y, h]=\int_{0}^{1}(2y'h'+x^2yh)dx ##.
Consider the functional ## S[y]=y(0)+\frac{1}{2}\int_{0}^{1}(2y'^2+x^2y^2)dx, y(1)=2 ##.
Let ## F(x, y, y')=2y'^2+x^2y^2 ##.
Then ## \frac{\partial F}{\partial y'}=4y' ## and ## \frac{\partial F}{\partial y}=2x^2y ##.
Observe that ## \frac{d}{dx}(\frac{\partial F}{\partial y'})-\frac{\partial F}{\partial y}=0\implies 4\frac{d^2y}{dx^2}-2x^2y=0 ##.
Therefore, the Euler-Lagrange equation is ## 4\frac{d^2y}{dx^2}-2x^2y=0, y(1)=2 ##.
 
Physics news on Phys.org
  • #2
Math100 said:
a) We have ## S[y+\epsilon h]=\int_{1}^{2}[3(y'+\epsilon h')^2-2(y+\epsilon h)^2]dx ##.
Note that ## \frac{d}{d\epsilon}S[y+\epsilon h]=\int_{1}^{2}[6(y'+\epsilon h')h'-4(y+\epsilon h)h]dx=2\int_{1}^{2}[3(y'+\epsilon h')h'-2(y+\epsilon h)]dx ##.
There is a factor ##h## missing (only here at the end).
Math100 said:
Then ## \bigtriangleup S[y, h]=\frac{d}{d\epsilon}S[y+\epsilon h]\rvert_{\epsilon=0}=2\int_{1}^{2}(3y'h'-2yh)dx ##.
Thus, the Gateaux differential is ## \bigtriangleup S[y, h]=2\int_{1}^{2}(3y'h'-2yh)dx ##.
Consider the functional ## S[y]=\int_{1}^{2}(3y'^2-2y^2)dx, y(1)=1, y(2)=3 ##.
Let ## F(x, y, y')=3y'^2-2y^2 ##.
Then ## \frac{\partial F}{\partial y'}=6y' ## and ## \frac{\partial F}{\partial y}=-4y ##.
Observe that ## \frac{d}{dx}(\frac{\partial F}{\partial y'})-\frac{\partial F}{\partial y}=0\implies 6\frac{d^2y}{dx^2}+4y=0 ##.
Therefore, the Euler-Lagrange equation is ## 6\frac{d^2y}{dx^2}+4y=0, y(1)=1, y(2)=3 ##.
Are you sure you shouldn't solve this equation? What else should be the initial values for? At least you should divide by ##6.##
Math100 said:
b) We have ## S[y+\epsilon h]=y(0)+\frac{1}{2}\int_{0}^{1}(2(y'+\epsilon h')^2+x^2(y+\epsilon h)^2)dx ##.
Note that ## \frac{d}{d\epsilon}S[y+\epsilon h]=y(0)+\frac{1}{2}\int_{0}^{1}[4(y'+\epsilon h')h'+2x^2(y+\epsilon h)h]dx=y(0)+\int_{0}^{1}[2(y'+\epsilon h')h'+x^2(y+\epsilon h)h]dx ##.
Note that ##\frac{d}{d\epsilon} y(0)=0.##
Math100 said:
Thus, the Gateaux differential is ## \bigtriangleup S[y, h]=\int_{0}^{1}(2y'h'+x^2yh)dx ##.
Consider the functional ## S[y]=y(0)+\frac{1}{2}\int_{0}^{1}(2y'^2+x^2y^2)dx, y(1)=2 ##.
Let ## F(x, y, y')=2y'^2+x^2y^2 ##.
Then ## \frac{\partial F}{\partial y'}=4y' ## and ## \frac{\partial F}{\partial y}=2x^2y ##.
Observe that ## \frac{d}{dx}(\frac{\partial F}{\partial y'})-\frac{\partial F}{\partial y}=0\implies 4\frac{d^2y}{dx^2}-2x^2y=0 ##.
Therefore, the Euler-Lagrange equation is ## 4\frac{d^2y}{dx^2}-2x^2y=0, y(1)=2 ##.
This is definitely harder to solve, so maybe all you actually need to do is note the Lagrangian. Divide it by ##4##.

It looks okay apart from the typo (missing ##h##), ##y(0)## (vanishes under the differentiation along ##\epsilon##) and the missing divisions (to make ##y''## with a coefficient ##1## in the Lagrangian) and the possible missing solution of the differential equations. At least from what I can tell from re-reading
https://www.physicsforums.com/insights/pantheon-derivatives-part-ii/
which I wrote more than six years ago.
 
  • Like
Likes Math100
  • #3
For (b), [tex]\begin{split}
S[y] &= y(0) + \frac12 \int_0^1 2y'^2 + x^2 y^2 \,dx \\
S[y + \epsilon h] &= y(0) + \epsilon h(0) + \frac12 \int_0^1 2(y' + \epsilon h')^2 + x^2(y + \epsilon h)^2\,dx \\
\frac{d}{d\epsilon}S[y + \epsilon h] &= h(0) + \frac12 \int_0^1 4(y' + \epsilon h')h' + 2x^2(y + \epsilon h)h\,dx
\end{split}[/tex] so [tex]\begin{split}\Delta S[y,h] &= h(0) + \frac12 \int_0^1 4y'h' + 2x^2yh\,dx\\
&= h(0) + \int_0^1 2y'h' + x^2 yh\,dx.\end{split}[/tex] Note the extra [itex]h(0)[/itex] term, which is due to the fact that the variation of [itex]y(0)[/itex] is [itex]y(0) + \epsilon h(0)[/itex]. You are given that [itex]y(1) = 2[/itex], so [itex]h(1) = 0[/itex] is required; you are not given a condition on [itex]y[/itex] at [itex]x = 0[/itex] so you can't assume [itex]h(0) = 0[/itex]. What condition will you impose on [itex]y[/itex] at [itex]x = 0[/itex] to guarantee a unique solution?
 
  • Like
Likes Math100
  • #4
pasmith said:
For (b), [tex]\begin{split}
S[y] &= y(0) + \frac12 \int_0^1 2y'^2 + x^2 y^2 \,dx \\
S[y + \epsilon h] &= y(0) + \epsilon h(0) + \frac12 \int_0^1 2(y' + \epsilon h')^2 + x^2(y + \epsilon h)^2\,dx \\
\frac{d}{d\epsilon}S[y + \epsilon h] &= h(0) + \frac12 \int_0^1 4(y' + \epsilon h')h' + 2x^2(y + \epsilon h)h\,dx
\end{split}[/tex] so [tex]\begin{split}\Delta S[y,h] &= h(0) + \frac12 \int_0^1 4y'h' + 2x^2yh\,dx\\
&= h(0) + \int_0^1 2y'h' + x^2 yh\,dx.\end{split}[/tex] Note the extra [itex]h(0)[/itex] term, which is due to the fact that the variation of [itex]y(0)[/itex] is [itex]y(0) + \epsilon h(0)[/itex]. You are given that [itex]y(1) = 2[/itex], so [itex]h(1) = 0[/itex] is required; you are not given a condition on [itex]y[/itex] at [itex]x = 0[/itex] so you can't assume [itex]h(0) = 0[/itex]. What condition will you impose on [itex]y[/itex] at [itex]x = 0[/itex] to guarantee a unique solution?
I don't know. What will the condition be?
 
  • #5
Hint: [itex]y'h' = (y'h)' - y''h[/itex]
 
  • #6
pasmith said:
Hint: [itex]y'h' = (y'h)' - y''h[/itex]
I still don't understand.
 
  • #7
For [tex]S[y] = \int_0^1 F(y,y',x)\,dx[/tex] the Gateux derivative is [tex]\begin{split}
\Delta S[y,h] &= \lim_{\epsilon \to 0} \frac{d}{d\epsilon}S[y + \epsilon h] \\
&= \int_0^1 \frac{\partial F}{\partial y}h + \frac{\partial F}{\partial y'}h'\,dx \\
&= \int_0^1 \frac{\partial F}{\partial y}h + \frac{d}{dx}\left( \frac{\partial F}{\partial y'} h \right)- \frac{d}{dx}\left(\frac{\partial F}{\partial y'}\right)h\,dx \\
&= \left[ \frac{\partial F}{\partial y'} h\right]_0^1
+ \int_0^1 \left( \frac{\partial F}{\partial y} - \frac{d}{dx}\left( \frac{\partial F}{\partial y'} \right)\right)h\,dx. \end{split}[/tex] To determine the optimum solution [tex]y : \forall \mbox{ admissible $h$} : \Delta S[y,h] = 0[/tex] we impose the conditions [tex]
\begin{split}
\frac{\partial F}{\partial y} - \frac{d}{dx}\left( \frac{\partial F}{\partial y'} \right) &= 0 \\
\frac{\partial F}{\partial y'}(y(0),y'(0),0)h(0) &= 0 \\
\frac{\partial F}{\partial y'}(y(1),y'(1),1)h(1) &= 0. \end{split}[/tex] This has the form of a second order ODE (the Euler-Lagrange equation) for [itex]y[/itex] subject to two boundary conditions: at [itex]x = c \in \{0,1\}[/itex] either [itex]y(c)[/itex] is specified in which case [itex]h(c) = 0[/itex] so that the corresponding condition is satisfied, or else [itex]y(c)[/itex] is not specified so that [itex]h(c)[/itex] is arbitrary and we must impose [tex]
\frac{\partial F}{\partial y'}(y(c),y'(c),c) = 0.
[/tex] I'm sure your text or your lecturer will have explained this derivation, and in particular the step of integrating [itex]\dfrac{\partial F}{\partial y'}h'[/itex] by parts. In your working, however, instead of following it through completely to obtain not just the Euler-Lagrange equation but also the boundary terms, you reach the second line of my derivation of [itex]\Delta S[y,h][/itex] and then just substitute [itex]F[/itex] into the Euler-Lagrange equation, which you quote in your Relevant Equations for the case where [itex]y[/itex] is specified on both boundaries. That is not the point of this exercise. In part (a) [itex]y[/itex] is specified at both boundaries so that approach works, but part (b) is an extension to the case [tex]
S[y] = y(0) + \int_0^1 F(y,y',x)\,dx[/tex] where the Euler-Lagrange equation does not change but the boundary terms do, and you need to obtain those terms because [itex]y(0)[/itex] is not specified.
 
  • Like
Likes Math100 and fresh_42

FAQ: How to derive the associated Euler-Lagrange equation?

What is the Euler-Lagrange equation?

The Euler-Lagrange equation is a fundamental equation in the calculus of variations that provides a method to find the function that minimizes or maximizes a functional. It is given by the formula \( \frac{d}{dx} \left( \frac{\partial L}{\partial y'} \right) - \frac{\partial L}{\partial y} = 0 \), where \( L \) is the Lagrangian, \( y \) is the function to be determined, and \( y' \) is its derivative.

What is a functional in the context of the Euler-Lagrange equation?

A functional is a map from a space of functions to the real numbers. In the context of the Euler-Lagrange equation, a functional typically takes the form \( J[y] = \int_{a}^{b} L(x, y, y') \, dx \), where \( L \) is the Lagrangian, \( y \) is the function being varied, and \( y' \) is its derivative. The goal is to find the function \( y \) that makes the functional \( J[y] \) an extremum (either a minimum or maximum).

How do you derive the Euler-Lagrange equation?

To derive the Euler-Lagrange equation, start with the functional \( J[y] = \int_{a}^{b} L(x, y, y') \, dx \). Consider a small perturbation \( \eta(x) \) such that \( y(x) \rightarrow y(x) + \epsilon \eta(x) \) and expand \( J \) to first order in \( \epsilon \). Set the first variation \( \delta J \) to zero to find the condition for \( y \) that extremizes \( J \). This leads to the Euler-Lagrange equation: \( \frac{d}{dx} \left( \frac{\partial L}{\partial y'} \right) - \frac{\partial L}{\partial y} = 0 \).

What are boundary conditions in the context of the Euler-Lagrange equation?

Boundary conditions specify the values or behavior of the function \( y \) at the boundaries of the domain, typically at \( x = a \) and \( x = b \). For the Euler-Lagrange equation to hold, the variations \( \eta(x) \) must vanish at the boundaries, meaning \( \eta(a) = 0 \) and \( \eta(b) = 0 \). These conditions ensure that the perturbations do not affect the endpoints, allowing the derivation of the Euler-Lagrange equation to proceed correctly.

Can the Euler-Lagrange equation be generalized

Back
Top