A special case

Consider a projectile that is launched from ground level at a particular angle. The launch point is the origin, and the motion stops when the projectile returns to ground level.

In other words:

The only acceleration is the acceleration due to gravity, and the positive directions are +x = right and +y = up.

Determine general equations that give, under the constraints above: