A particle $P$ of mass $2\,\mathrm{kg}$ moves along a horizontal straight line. The point $O$ is a fixed point on this line. At time $t\,\mathrm{s}$ the velocity of $P$ is $v\,\mathrm{m\,s^{-1}}$ and the displacement of $P$ from $O$ is $x\,\mathrm{m}$.
A force of magnitude
$$\left(8x-\frac{128}{x^3}\right)\mathrm{N}$$
acts on $P$ in the direction $OP$. When $t=0$, $x=8$ and $v=-15$.
(a) Show that $v=-\dfrac{2}{x}(x^2-4)$. [5]
(b) Find an expression for $x$ in terms of $t$. [4]