The initial total energy (kinetic + potential) = the final total energy (kinetic + potential)
KE0+PE0=KEf+PEf
Right after the bullet hits the block, the initial height is 0, so PE0=0. When the bullet/block reaches its maximum height, it is at rest, so KEf=0
KE0=PEf
12(m+M)×vf2=(m+M)×gh
Equation to solve for "vf, the velocity of the bullet/block after the collision:
vf=√2gh
For an inelastic collision (where the objects become stuck together), the initial momentum = final momentum.
p0=pf
mbullet×v0bullet+Mblock×v0block=(mbullet+Mblock)×vf
Since the block is not moving before the collision,v0block=0
mbullet×v0,bullet=(m+M)×vf
Rearranging to solve for in initial velocity of the bullet, "v0":
v0=(m+M)×vfm
Substituting in the expression for "vf" solved for:
v0=(m+M)×√2ghm