Show that the path integral of $f(x,y)$ along a path given in polar coordinates by $r=r(\theta)$ where $\theta_1 ≤ \theta ≤ \theta_2$, is
$$\int_{\theta_1}^{\theta_2} f(r \cos \theta ,r \sin \theta) \sqrt {r^2+(\frac{dr}{d\theta})^2 } d\theta$$
I thought $x = r \cos \theta, y = r \sin \theta$
So $r(\theta)=(r\cos(\theta), r\sin(\theta))$, $\int_{\theta_1}^{\theta_2}f(r(\theta))||r'(\theta)||d\theta$
Then $\int_{\theta_1}^{\theta_2} f(r\cos\theta,r\sin\theta)\sqrt {r^2}d\theta$, ($\frac{dr}{d\theta})^2$ do not appear in the square root.
I cannot understand what happens. I think polar coordinates is something to do with it.