I am currently working on a physics problem that asks to solve for the velocity at a certain distance when a box is slid with an initial velocity of 10 m/s. The problem also gives a variable force that is retarding the motion of the box. This equation is $f(x) = m(-15+.28x^3)$ where m is mass and x is distance traveled.
Given a distance of 4, I wanted to relate that Force is F=MA and that the $(-15+.28x^3)$ would be acceleration and I could use a kinematics equation; $V_f^2=V_i^2+2ax$. This would give me a final velocity of ~7m/s. Another part of the problem asks how far the box will go before it stops. This is where I am stuck on. I would appreciate any help on this problem.
Rewrite Newton's second law as $$ \frac{1}{m}f(x)=\frac{dv}{dt}=\frac{dx}{dt}\frac{dv}{dx} =v\frac{dv}{dx}. $$ This is an easy to solve differential equation.