$${y= y_0 + \frac{g_y l^2}{2}}$$