I'm looking at this math example and I don't understand where they got the $\dot r$ from? $$ m \frac{d}{dt}(r^2\dot\theta)$$
$$ = m(2r\dot r\dot\theta + r^2 \ddot\theta).$$
I understand they used the product rule to get this derivative, I just don't understand where the extra $\dot r$ came from.
$$ m\frac{d}{dt}(r^2\dot \theta) = m\left(\big(\frac{d}{dt}(r^2)\big)\,\dot\theta\,+\,r^2\frac{d}{dt}\big(\dot\theta\big)\right) \\ = m\left(2r\dot r\dot\theta\,+\,r^2\ddot\theta\right)$$
The extra $\dot r$ comes from the fact that $r$ is a function of time, i.e. $r=r(t)$, thus when differentiating $r^2$, we have to apply the product rule for differentiation:
$$ \frac{d}{dt}(r^2(t))=2r(t)\frac{d}{dt}(r(t)) \\ =2r\dot r$$