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.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top