Let's say I am trying to drive a nail into a piece of wood by dropping a weight on it.
I am willing to do some fixed quantity of work to raise up the weight. I can choose the weight and the height, as long as the resulting work is the desired value.
Concretely, say I'm willing to raise a 1 kg weight up to 1 m, imparting a gravitational potential energy of 1 * 1 * 9.8 = 9.8 J.
I could also double the height and halve the mass, yielding the same potential energy.
More generally, as I raise or lower the height, the energy-equivalent mass is 1/h.
We solve for velocity at impact for a given height h, neglecting air resistance, via: $$ \begin{align} m \cdot v^2 &= m \cdot g \cdot h \\ v^2 &= g \cdot h \\ v &= \sqrt{9.8 \cdot h} \\ &\approx 3.1 \sqrt{h} \end{align} $$
So that momentum at impact is:
$$ \begin{align} p &= mv \\ &= \frac{1}{h} \cdot 3.1 \cdot \sqrt{h} \\ &= \frac{3.1}{\sqrt{h}} \end{align} $$
So, as height increases and energy stays fixed, momentum at impact decreases.
This seems to suggest that lifting a huge weight a tiny amount is what maximizes momentum under this scenario (except at whatever scale the ideal model becomes too inaccurate).
Is the momentum-maximizing configuration also what would drive the nail the deepest? I've neglected a discussion of the stiffness/spring constant of the materials; does that affect the momentum we'd choose?