My problem states that $\vec{F}$ is a conservative field, ie: $F = \nabla \phi$ for some scalar potential $\phi$. $$\begin{align}\vec{F}&=m\vec{a}\\ &=m\frac{\mathrm{d}^2\vec{r}}{\mathrm{d}t^2} \end{align}$$ I now take the dot product of each side:
$$\vec{F} \cdot \frac{\mathrm{d}\vec{r}}{\mathrm{d}t}= m\frac{\mathrm{d}^2\vec{r}}{\mathrm{d}t^2}\cdot \frac{\mathrm{d}\vec{r}}{\mathrm{d}t}$$
Now, the textbook says that:
$$m\frac{\mathrm{d}\vec{r}}{\mathrm{d}t} \cdot \frac{\mathrm{d}^2\vec{r}}{\mathrm{d}t^2} = \frac{m}{2} \frac{\mathrm{d}}{\mathrm{d}t}\left(\frac{\mathrm{d}\vec{r}}{\mathrm{d}t}\right)^2$$
How did the textbook get this answer?: $\frac{m}{2} \frac{d}{dt}\left(\frac{d\vec{r}}{dt}\right)^2$ ?
All of this leads to the result, which I'm OK with:
$$\int \limits_{A}^{B} \vec{F} \cdot \mathrm{d}\vec{r} = \bigg[\frac{m}{2}v^2\bigg]^{B}_{A}$$