\dot{z}=p,\ddot{z}=p\dot{p},(\dot{p}=\frac{dp}{dz})