simple harmonic oscillator
Hamiltonian simple harmonic oscillator -
Hamiltonian of a system is defined as -
H=Σpiqi−L
in the above equation pi=Generalised momentum
qi= Generalised velocity
L=Lagrangian
now we know that L=T−V......1) , and motion is along x-axis .
T=2MX′2
V=2KX2
Now putting T\ and V in equation 1 , we get =
L= 2MX′2 −2KX2
Now , similarly Hamiltonian equation will become -
H= Σpiqi−L
H=Σpiqi −2Mx′2+2Kx2
Pi= actually momentum of spring along X-axis .
Qi= actually generalised velocity along X-axis.
From lagrangian ∂x∂l=px , ∂qc′∂l=Pi
∂x′∂l= 2∂(Mx′2+Kx2)
∂x′∂l=mx′
⟹ px=mx′⟹ x′=mPx
now substituting the value of x′ in Hamiltonian equation , we get -
H=PxmPx−2m(mx′)2+2Kx2
H=mPx2−2mPx2+2Kx2
H= 2mPx2 +2Kx2
The above equation is Hamiltonian equation for simple harmonic oscillator .
Comments