$${mgh = \frac{mv_0^2}{2}}$$