The relation between time t and distance $x$ is $t= ax^2+bx$ where a and b are constants . The acceleration is
$\begin{array}{1 1} 2av^2 \\ -2av^2 \\ 2bv^2 \\-2abv^2 \end{array}$