I have the acceleration as a function of distance, $a(t)$ $$a(t) = f(S)$$ $$\int v.dv = \int f(S).dS$$
And so I have velocity as a function of time if I want it.
What I need is to find $S(t)$.
I tried to do it using the equation $S=ut+\frac{1}{2}at^2$, but then I realized that this may not be a case of constant acceleration.
PS: Converting a function for "velocity vs. position", $v(x)$, to "position vs. time", $p(t)$ seems to be similar, but I don't understand it/it's not applicable I suppose.