v^2+zv\frac{dv}{dm}=A-zB