<span>A mass on a spring will oscillate vertically when it is lifted and released. The gravitational potential energy increases from a minimum at the lowest point to a maximum at the highest point. ... The total mechanical energy at those points is the sum of the elastic and gravitational potential energies.</span>