the time at which the particle passes through the equilibrium position for the first time ist=π√(m/k)
the time at which the maximum compression of the spring occurs ist=4π/(3√(k/m)).
the speed of the particle when it returns to its equilibrium position isu0
the time at which the particle passes through the equilibrium position for the second time ist=5π/(3√(k/m)).
v = u0sinωt (Suppose t1 is the time of collision)
u0²/2 = u0²cos²ωt1 => t1 = π/(3ω)
Now the particle returns to equilibrium position at time, t2 = 2t1 i.e. 2π/(3ω) with the same mechanical energy i.e. its speed will be u0.
Let t3 is the time at which the particle passes through the equilibrium position for the second time.
t3 = T/2 + 2t1 = π/ω + 2π/(3ω) = 5π/(3ω) = 5π/(3√(k/m))
Energy of the particle and spring remains conserved.