This is what I'm trying to differentiate with respect to time: 
The answer is supposed to be found using the product rule:
However, I can't see how the product rule would be used here and what the products actually are so that I can at least try to differentiate.

the product is $$r(d\theta/dt) \cdot (-\sin \theta \mathbf{i} + \cos \theta \mathbf{j})$$ thus by using the product rule,
$$r(\frac{d\theta}{dt})' \cdot (-\sin \theta \mathbf{i} + \cos \theta \mathbf{j})+r(\frac{d\theta}{dt}) \cdot (-\sin \theta \mathbf{i} + \cos \theta \mathbf{j})'$$ $$=r \frac{d^2\theta}{dt^2}(-\sin \theta \mathbf{i} + \cos \theta \mathbf{j})+r(\frac{d\theta}{dt})(-\cos \theta \mathbf{i} - \sin \theta \mathbf{j})(\frac{d\theta}{dt})$$ $$=r \frac{d^2\theta}{dt^2}(-\sin \theta \mathbf{i} + \cos \theta \mathbf{j})-r(\frac{d\theta}{dt})^2(\cos \theta \mathbf{i} + \sin \theta \mathbf{j})$$
The chain rule was used when differentiating the vector, since $\theta$ is also a function of $t$.