A particle is fired with speed u making angle θ with the horizontal. Its potential energy at the highest point is
12mu2sin2θ
12mu2cos2θ
12mu2
12mu2sin22θ
The vertical component of velocity is reduced to zero. The corresponding kinetic energy is converted into potential energy
P.E. =mgH = mgu2sin2θ2g=12mu2sin2θ