Answer:
a. The minimum value for h is 2R.
b. The maximum compression of the spring is [tex]\sqrt{\frac{4mgR}{k}}[/tex].
Explanation:
a. If the marble is initially at rest, then its total mechanical energy is equal to its potential energy at that point, mgh. The rail forms a hoop of radius R. In order for the marble to hit the spring, it must reach the top of the hoop, otherwise it falls down.
The height of top of the hoop is 2R. So, in order for the marble to reach the top of the hoop, the height h must be greater than or equal to height of the hoop, 2R.
[tex]h \geq 2R[/tex]
In this case, the minimum value for h is 2R.
b. Since the system is frictionless, the compression of the spring depends on the initial potential energy.
[tex]mgh = \frac{1}{2}kx^2\\mg2R = \frac{1}{2}kx^2\\x = \sqrt{\frac{4mgR}{k}}[/tex]