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



\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.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top