A particle $P$ of mass $m\,\mathrm{kg}$ moves in a horizontal straight line against a resistive force of magnitude $mkv^2\,\mathrm{N}$, where $v\,\mathrm{m\,s^{-1}}$ is the speed of $P$ after it has moved a distance $x\,\mathrm{m}$ and $k$ is a positive constant. The initial speed of $P$ is $u\,\mathrm{m\,s^{-1}}$.
(a) Show that $x=\dfrac{1}{k}\ln2$ when $v=\dfrac12u$. [4]
Beginning at the instant when the speed of $P$ is $\dfrac12u$, an additional force acts on $P$. This force has magnitude $\dfrac{5m}{v}\,\mathrm{N}$ and acts in the direction of increasing $x$.
(b) Show that when the speed of $P$ has increased again to $u\,\mathrm{m\,s^{-1}}$, the total distance travelled by $P$ is of the form
$$\frac{1}{3k}\ln\left(\frac{A-ku^3}{B-ku^3}\right),$$
stating the values of the constants $A$ and $B$. [7]