Given:
The mass of bullet moving with speed v is m.
The mass of the ball is M and it is at rest.
m' is the fractional mass of the ball that sticks with the bullet.
The remaining mass of the ball moves with the velocity v1.
Let v2 be the final velocity of the bullet plus fractional mass system.
On applying the law of conservation of momentum, we get:
mv + 0 = (m' + m)v2 + (M − m') v1
Therefore, the velocity of the bullet after the collision is .