Suppose the block is released from rest with the spring compressed 5.00 cm. The mass of the block is 1.70 kg and the force constant of the spring is 955 N/m. What is the speed of the block when the spring expands to a compression of only 2.50 cm?

First, let's calculate the total mechanical energy when the block is at rest and the spring is compressed 5 cm:
[tex]\begin{gathered} ME=PE+KE\\ \\ ME=\frac{kx^2}{2}+\frac{mv^2}{2}\\ \\ ME=\frac{955\cdot0.05^2}{2}+0\\ \\ ME=1.194\text{ J} \end{gathered}[/tex]Now, let's use this total energy to calculate the velocity when the spring is compressed by 2.5 cm:
[tex]\begin{gathered} ME=PE+KE\\ \\ 1.194=\frac{kx^2}{2}+\frac{mv^2}{2}\\ \\ 2.388=955\cdot0.025^2+1.7v^2\\ \\ 1.7v^2=2.388-0.597\\ \\ 1.7v^2=1.791\\ \\ v^2=\frac{1.791}{1.7}\\ \\ v^2=1.0535\\ \\ v=1.026\text{ m/s} \end{gathered}[/tex]Therefore the speed is 1.026 m/s.