## Simple harmonic oscillator

Hi all,

I have to determine the potential energy of a hanging spring with a mass m in the end and spring constant k. I try to write down the force in the system

F = m*g + k*x

and integrate the force in order to get the potential energy

E_p = m*g*x+0.5*k*x*x

Does this look correct and is it possible to derive the mean displacement from the potential energy if one could neglect the kinetic energy.

Best regards

M

 PhysOrg.com science news on PhysOrg.com >> Front-row seats to climate change>> Attacking MRSA with metals from antibacterial clays>> New formula invented for microscope viewing, substitutes for federally controlled drug
 Mentor Blog Entries: 10 You're expression for E_p is correct. I'm assuming you're taking upward as the positive direction. Your force expression has +/- sign issues, by the way. The mean displacement is where E_p has a minimum value. So yes, it's possible to derive mean displacement from your E_p expression.
 Hi, thanks for the answer. So the mean is when m*g = k*x solving for x x = m*g/k which results in the mean elongation of the spring is = 0.5*m*g/k Is this correct? Thanks in advance all the best

Mentor
Blog Entries: 10

## Simple harmonic oscillator

 Quote by mhellstrom Hi, thanks for the answer. So the mean is when m*g = k*x solving for x x = m*g/k
Correct.

 which results in the mean elongation of the spring is = 0.5*m*g/k Is this correct?
 thanks, if I want to estimate the variance of the elongation var = 1/N sum (xi-x_mean)2 I know the mean is x_mean = m*g/k which I insert into the expression and integrate from minus to plus infinity var = $$\int(m*g-k*x-m*g/k)^2 dx$$ Could anyone give a hint if this is on the right track? Thanks in advance all the best M