- #1
~Sam~
- 80
- 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?