An object with initial velocity $v_0$ slows down in an external conservative field. Under this external field, the acceleration of the object is $a(x)=-\mu x^2$ where $x$ is the distance from the initial position of the object. Find the expression of the velocity of the object in terms of $x$.