I would like to obtain a relation between initial velocity and distance covered till velocity is zero, with time varying acceleration. For a constant acceleration we can solve: \begin{align*} \int_{0}^{x_0} m \, a(t) dx &= \frac{1}{2} m v_0^2\\ \end{align*}
What can we do if the acceleration is not constant?