\frac{d}{dx}\left(x^2+y^2\right)=\frac{d}{dx}\left(r^2\right)