The potential energy of a point particle of mass $m$ undergoing rectilinear motion along the $x$-axis is given by
$$ V(x)=A x+B x^2 $$
What is the maximum speed attained by the particle if it starts from rest at $x=\frac{A}{B}$ ?