A 7.0-kg rock is subject to a variable force given by the equation
F(x) = 6.0 N - (2.0 N/m)x + (6.0N/m2)x2.
If the rock initially is at rest at the origin, find its speed when it has moved 9.0 m. Please provide step-by-step method to solving this problem.