equations of motion for a particle projected vertically