The spring potential energy is zero if the spring is relaxed (\(x\) = 0) and positive if the spring is stretched (\(x\) > 0) or compressed (\(x\) < 0) (Figure 6-25). This says that we have to do work to either stretch the spring or compress it, and the work that we do goes into the spring potential energy