I am trying to solve this particular problem:
Suppose that $u(x, y)$ is a continuously differentiable, circularly symmetric function, so that when expressed in polar coordinates, $x = r \cos \theta$, $y = r \sin \theta$, it depends solely on the radius $r$; that is $u = f(r)$. Show that $u_x(x, y) = f′(r) \cos \theta$ and hence deduce that $f′(0) = 0$, which implies the Neumann boundary condition $u_r = 0$ when $r = 0$.
I didn't understand how to do this problem, so I wanted to attempt a similar problem from my textbook, in the hope that it will give me the experience needed to understand how to complete the other problem:
Consider the change of variable to polar coordinates: $x = r \cos(\theta)$, $y = r \sin \theta$. Use the chain rule to obtain $u_r$ and $u_\theta$ in terms of $u_x$ and $u_y$ and hence show that
$$\partial_x = \cos(\theta) \partial_r - \frac{1}{r} \sin(\theta) \partial_\theta$$
$$\partial_y = \sin(\theta) \partial_r + \frac{1}{r} \cos(\theta) \partial_\theta$$
Hence, by considering
$$\partial_x^2 u = (\cos(\theta) \partial_r - \frac{1}{r} \sin(\theta) \partial_\theta)(\cos(\theta) \partial_r - \frac{1}{r} \sin(\theta) \partial_\theta)u $$
or otherwise, show that
$$u_{xx} + u_{yy} = u_{rr} + \frac{1}{r} u_r + \frac{1}{r^2} u_{\theta \theta}$$
So the first thing I did was attempt to use change of variables:
$$\frac{\partial{u}}{\partial{x}} = \frac{\partial{u}}{\partial{x}} \frac{\partial{x}}{\partial{r}} + \frac{\partial{u}}{\partial{x}} \frac{\partial{x}}{\partial{\theta}} = \frac{\partial{u}}{\partial{x}} \cos(\theta) + \frac{\partial{u}}{\partial{x}} (-r \sin(\theta))$$
$$\frac{\partial{u}}{\partial{y}} = \frac{\partial{u}}{\partial{y}} \frac{\partial{y}}{\partial{r}} + \frac{\partial{u}}{\partial{y}} \frac{\partial{y}}{\partial{\theta}} = \frac{\partial{u}}{\partial{y}} \sin(\theta) + \frac{\partial{u}}{\partial{y}} (r \cos(\theta))$$
Why do I think the derivatives are done this way? Because we have $u(x(r, \theta), y(r, \theta))$, so I think this is the only way it makes sense.
But this is obviously different to the two equations that the author mentioned:
$$\partial_x = \cos(\theta) \partial_r - \frac{1}{r} \sin(\theta) \partial_\theta$$
$$\partial_y = \sin(\theta) \partial_r + \frac{1}{r} \cos(\theta) \partial_\theta$$
Did I do the change of variables wrong? I'm unsure of how to proceed from here.
Also, the original problem seems different from this: It asks us to show that $u_x(x, y) = f'(r) \cos(\theta)$, where $u = f(r)$. How is the change of variables different in this case? The way $f(r)$ is used here is especially confusing for me, since I do not have a lot of practice with the chain rule.
I apologise for doing (or not doing, haha) change of variables so badly. I was only taught how to do it for integration, but never have I done it like this. I want to understand these problems well, because that'll help me understand change of variables in this context (rather than just integration). Thank you.