the ball is a projectile in a conservative field with force only in one direction

just apply equations of motion in horizontal and vertical direction

to get h=(v^2)* sin^2( x)/2g

x is angle of projection and v is initial velocity

this is quite standard and does not come under calculus