E_1=J\frac{\omega_1^2}{2},..E_2=J\frac{\omega_2^2}{2}