For $r = 1 + \cos \theta, 0 \le \theta < 2\pi$ in 2D polar space calculate the length of $P$, the perimeter by: $$ \int_P \sqrt{(dx)^2 + (dy)^2} \tag{1} $$ by showing: $$ (dx)^2 + (dy)^2 = (dr)^2 + (rd\theta)^2.\tag{2} $$
I am unsure where to go with this. How do I show the 2nd statement and then use it to solve the integral?