differential equation dv/dt = g - J*v(t)^2