
The total energy of the rock does not change.
Let h be the ratio between the height of the rock and H, so that the height of the rock = H·h.
The energy of the rock that has been dropped from a height H just before it hits the ground with h = 0:

The energy of the rock when it is released from rest from height H with h = 1 :

so:

You find:

for

