Read · 1 min
Suppose that we have an object attached to a spring in simple harmonic oscillation. We would like to know its kinetic and potential energy at any given point.
Define the following:
mass of the object
spring constant
displacement from relaxed length
maximum displacement
Suppose that an object is at position . Let us calculate the work that the spring does in moving the mass to the relaxed position.
Now, we may simply use Hooke's Law: This work done by the spring force is clearly the negative of the change in potential energy. Thus, the potential energy at a displacement is .
Now, let us take into account the maximum displacement, . At this point, the kinetic energy is clearly .
Now, we may calculate the kinetic energy at a point using the conservation of energy: This is the kinetic energy at any given moment .
If you are given parameters such as time and frequency, then you may use the function of position from time: where and is the phase angle. Of course, sine would also work.