The bullet speed after hitting the block is
and the ratio of the block's maximum potential energy to the bullet's kinetic energy is

(a) Speed of the bullet
When the bullet hits the block, it gets embedded in it. This means that the bullet and block move together as a single system after the collision. This is a perfectly inelastic collision.
Momentum is conserved in a perfectly inelastic collision, so we can write:

where:
* m is the mass of the bullet
* v is the initial velocity of the bullet
* M is the mass of the block
* V is the initial velocity of the block (which is zero)
* V' is the final velocity of the bullet-block system
After the collision, the bullet-block system swings up to a height h. This means that its kinetic energy has been converted into potential energy. We can use this to write another equation:

where g is the acceleration due to gravity.
Now we have two equations, and we can solve for our two unknowns, v and V'.
Dividing the first equation by the second equation, we get:

Multiplying both sides of the equation by
we get:

Solving for v, we get:

(b) Ratio of the maximum potential energy of the block to the kinetic energy of the bullet
The maximum potential energy of the block is reached when it is at its highest point. This is when the kinetic energy of the bullet-block system has been completely converted into potential energy.
The maximum potential energy of the block is given by:

The kinetic energy of the bullet is given by:

Therefore, the ratio of the maximum potential energy of the block to the kinetic energy of the bullet is:

Substituting the expression for v that we found in part (a), we get:

Therefore, the ratio of the maximum potential energy of the block to the kinetic energy of the bullet is:
