Energy

A block on a horizontal spring has two different types of energy:
- its kinetic energy,
, due to its motion. - its spring potential energy,
due to the stretching of the spring ( is its displacement, which is how much the spring is stretched or compressed)
When the block is at the equilibrium point, the spring energy is zero, but the block is moving as fast as it can so its kinetic energy is maximal. When the block is at its turning points, on the other hand, the spring constant is maximal but the kinetic energy is zero. As the block moves, the energy moves back and forth between kinetic and potential energy.
If the block experiences no friction, then the total energy
where