~Sam~
- 70
- 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?