A glider of mass m1 = 10.0 kg initially moving towards the right at a

speed of v1i = 2.00 m/s on a frictionless airtrack collides with a
spring attached to a second glider of mass m2 = 4.0 kg initially
moving toward the left with a speed of v2i = 5.00 m/s. The spring
constant is 700 N/m.
(a) During the collision, there is an instant where both gliders briefly come to rest ( v1i = v2i = 0 m/s). At
this instant, how much is the spring compressed? (Hint: the spring is a conservative force –
conservation of mechanical energy is appropriate)
(b) Because the spring force is conservative, all the energy put into it during the collision will be put
back into the gliders, i.e. total kinetic energy before and after will be conserved. What is the final
velocity (speed and direction) of both gliders?

In the first part the sum of the KEnergies is converted to elastic potential energy. The elastic potential energy is equal to the sum of the KE.

For the second part, you have two fundamental principles: The KE is conserved (sum of initial KE is equal to the final KE, and the momentum is conserved). This will be enough to solve. The algebra may be tricky.

I understand how to do the second part now, but im still lost on how to setup the first part. Please help!

First Part

1/2 m1 * 2^2 + 1/2 m2 * 5^2= 1/2 k x^2

To solve the first part, we need to use the principle of conservation of mechanical energy. In this case, the mechanical energy is conserved because there is no external force acting on the system.

The mechanical energy of the system consists of the kinetic energy and the elastic potential energy stored in the spring. At the instant when both gliders briefly come to rest, all the initial kinetic energy is converted into elastic potential energy.

We can set up the equation using the principle of conservation of mechanical energy:

1/2 m1 * v1i^2 + 1/2 m2 * v2i^2 = 1/2 k * x^2

where m1 is the mass of the first glider (10.0 kg), v1i is its initial velocity (2.00 m/s), m2 is the mass of the second glider (4.0 kg), v2i is its initial velocity (-5.00 m/s, negative because it is moving in the opposite direction), k is the spring constant (700 N/m), and x is the compression of the spring.

Now we substitute the known values into the equation and solve for x:

1/2 * 10.0 kg * (2.00 m/s)^2 + 1/2 * 4.0 kg * (-5.00 m/s)^2 = 1/2 * 700 N/m * x^2

Simplifying the equation:

20 J + 50 J = 350 J/m * x^2

70 J = 350 J/m * x^2

Dividing both sides by 350 J/m and taking the square root:

x^2 = 70 J / (350 J/m) = 0.2 m

x = sqrt(0.2 m) = 0.45 m

Therefore, at the instant when both gliders come to rest, the spring is compressed by 0.45 meters.

I hope this helps! Let me know if you have any further questions.