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
~Sam~
Messages
70
Reaction score
0

Homework Statement



Compute the Euler-Lagrange for:

∫y(y')2+y2sinx dx

Homework Equations



[itex]\frac{∂L}{∂y}[/itex]-[itex]\frac{d}{dx}[/itex] ([itex]\frac{∂L}{∂y'}[/itex])

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



[itex]\frac{∂L}{∂y}[/itex]-[itex]\frac{d}{dx}[/itex] ([itex]\frac{∂L}{∂y'}[/itex])

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.
 

Similar threads

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