A 1.0 kg block collides with a horizontal light spring of force constant 2 Nm. The block compresses the spring 4m from the rest position. Assuming that the coefficient of kinetic friction between the block and the horizontal surface is 0.25, what was the speed of the block at the instant of collision?
So Let's see what is happening
K= 2 Nm
X = 4m
M= 0.25
Assume block hits with velocity V ms
The spring will compress till the point the block stops.
Also friction is acting all this while.
Applying work energy theorem.
(Only friction and spring forces are acting)
Wfr+Wsp=−12mv2−μmgx−12kx2=−12mv2μmgx+12kx2=12mv214(1)(10)(4)+12(2)(16)=12(1)v210+16=v22v=√26×2=√52m/s