What is the Correct Euler-Lagrange for ∫y(y')2+y2sinx dx?

  • Thread starter Thread starter ~Sam~
  • Start date Start date
  • Tags Tags
    Euler-lagrange
Click For Summary
SUMMARY

The correct Euler-Lagrange equation for the functional ∫y(y')² + y²sin(x) dx is derived as 2y sin(x) - y'² - 2yy''. The computation involves applying the Euler-Lagrange formula, which is ∂L/∂y - d/dx(∂L/∂y'). Users reported discrepancies between their manual calculations and results from Mathematica, with some obtaining -y'² - 2yy'' instead. The consensus confirms that the correct formulation does include the term 2y sin(x).

PREREQUISITES
  • Understanding of the Euler-Lagrange equation
  • Familiarity with calculus of variations
  • Basic knowledge of differential equations
  • Experience with computational tools like Mathematica or Maple
NEXT STEPS
  • Study the derivation of the Euler-Lagrange equation in detail
  • Learn how to use Mathematica for symbolic computation
  • Explore the calculus of variations with practical examples
  • Investigate common pitfalls in applying the Euler-Lagrange equation
USEFUL FOR

Students and researchers in mathematics, particularly those focusing on calculus of variations, differential equations, and computational methods in symbolic mathematics.

~Sam~
Messages
70
Reaction score
0

Homework Statement



Compute the Euler-Lagrange for:

∫y(y')2+y2sinx dx

Homework Equations



\frac{∂L}{∂y}-\frac{d}{dx} (\frac{∂L}{∂y'})

The Attempt at a Solution


Usual computation by hand gives me y'2+2ysin(x) - 2yy'', but Mathematica says it's -y'2-2yy''. Am I doing something wrong?
 
Physics news on Phys.org
~Sam~ said:

Homework Statement



Compute the Euler-Lagrange for:

∫y(y')2+y2sinx dx

Homework Equations



\frac{∂L}{∂y}-\frac{d}{dx} (\frac{∂L}{∂y'})

The Attempt at a Solution


Usual computation by hand gives me y'2+2ysin(x) - 2yy'', but Mathematica says it's -y'2-2yy''. Am I doing something wrong?

I get ##L_y - D_x L_{y'} = 2 y \sin(x) - y'^2 - 2 y y''##.
 
Ray Vickson said:
I get ##L_y - D_x L_{y'} = 2 y \sin(x) - y'^2 - 2 y y''##.

Hmmm I looked it over again and I get y'2+2ysin(x)-2(yy''+y'2)
For the first part I get: y'2+2ysinx
Second partial: 2yy'
Then derivative of thatis : 2(yy''+y'2)

Ahh so it's the same as you got ty. Why there is no sin in mathematica solution T.T
 
Last edited:
~Sam~ said:
Hmmm I looked it over again and I get y'2+2ysin(x)-2(yy''+y'2)
For the first part I get: y'2+2ysinx
Second partial: 2yy'
Then derivative of thatis : 2(yy''+y'2)

Ahh so it's the same as you got ty. Why there is no sin in mathematica solution T.T

I don't use or have access to Mathematica (I use Maple instead), so I have no idea what instructions you entered and what Mathematica did with them.
 
Ray Vickson said:
I don't use or have access to Mathematica (I use Maple instead), so I have no idea what instructions you entered and what Mathematica did with them.

Regardless, I assume that's 2ysin(x)−y′2−2yy′ correct Euler-Lagrange then?
 
~Sam~ said:
Regardless, I assume that's 2ysin(x)−y′2−2yy′ correct Euler-Lagrange then?

Yes it is.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K