what are you a talking aobut...you can use physics in math, thats where they deerive the three and four unit formulas from...integration.
its quite simple to do it from first principles..
v=u+at
at peak of the vertical component final velocity is equal to zero
therefor 0=u-gt...