Answer:
given,
mass of the bullet = m
velocity of the bullet = v
mass of block = M
spring constant = k
compression of spring = ?
According to law of conservation
m v + M × 0 = ( m + M )×V
[tex]V = \dfrac{m}{m+M}v[/tex]
from law of conservation of energy
[tex]\dfrac{1}{2}(M+m)v^2 = \dfrac{1}{2}kx^2[/tex]
[tex]x = \sqrt{\dfrac{m+M}{k}}v[/tex]