I have $\Gamma$ a manifold and $f:\Gamma \to \mathbb R$. We have in $(x,y)$ that $f(x,y)=x^2+y^2$. Now, in my lecture, they denote $(r,\theta )$ the polar coordinates. And after, they wrote : since $$\partial _r =\cos\theta \partial _x +\sin(\theta )\partial _y$$ we have $$\partial _rf(r,\theta )=\cos(\theta )\partial _x f(r,\theta )+\sin(\theta )\partial _y f(r,\theta ).$$
First, the notation $f(r,\theta )$ look strange. Does $f(r,\theta )$ means $f(r\cos \theta ,r\sin \theta )$ ? If yes, is it a common notation ?
Moreover, the notation $\partial _xf(r,\theta )$ looks strange. Shouldn't it be $\partial _x f(x,y)$ ? (same with $\partial _y f(r,\theta )$).
Finally, I have to give the gradient in $(r,\theta )$. My teacher wrote $$\nabla _{(x,y)}f(x,y)=\frac{1}{r}\begin{pmatrix}r\cos \theta &-\sin \theta\\ -r\sin \theta &\cos \theta \end{pmatrix}\nabla _{r,\theta }f(r,\theta ).$$
For me it doesn't make sense. Why don't we simply don't have : set $h(r,\theta )=f(r\cos \theta ,r\sin \theta )$. We have that $f(r\cos \theta ,r\sin \theta )=r^2$. Therefore
$$\nabla _{r,\theta }h(r,\theta )=(2r,0).$$
Is this wrong ? If yes, why ?