A small rock is thrown straight up with initial speed v0 from the edge of the roof of a building with height H. The rock travels upward and then downward to the ground at the base of the building. Let y be upward, and neglect air resistance.