If
\begin{align} x &= r\cos\theta,\\ y &= r\sin\theta, \end{align}
find
$$\dfrac{\partial^2\theta}{\partial{x}\partial{y}}.$$
How can I find this partial derivative?
I need to prove that
$$ \frac{\partial^2\theta}{\partial{x}\partial{y}} = -\frac{\cos2\theta}{r^2}.$$
I'll assume that $x$ and $y$ are independent. All we need do is carefully differentiate both sides of relations making use of the chain rule and the product rule. (Inverse trig functions are not continuous as $\theta$ crosses major axes on the plane, so their use in this kind of differentiation problem should be avoided, unless say you have extra information that $(x,y)$ will be confined to quadrant I.)
Since $\tan(\theta)={y\over x}$, we can use this as a starting point with no $r$ involved. Applying ${\partial\over\partial y}$ and ${\partial\over\partial x}$: $$ \begin{align} \sec^2(\theta)\frac{\partial \theta}{\partial y}&=\frac{1}{x}\\ \sec^2(\theta)\frac{\partial \theta}{\partial x}&=-\frac{y}{x^2}\\ \end{align} $$ Differentiating the first equation with respect to $x$ gives: $$ \begin{align} 2\,\sec^2(\theta)\tan(\theta)\frac{\partial \theta}{\partial y}\frac{\partial \theta}{\partial x}+\sec^2(\theta)\frac{\partial^2 \theta}{\partial x\partial y}&=-\frac{1}{x^2}\\ \end{align} $$ Substituting in from the first equation, $$ \begin{align} \frac{2}{x}\tan(\theta)\frac{\partial \theta}{\partial x}+\sec^2(\theta)\frac{\partial^2 \theta}{\partial x\partial y}&=-\frac{1}{x^2}\\ \end{align} $$ Multiplying be $\sec^2(\theta)$ and subbing in using the second equation: $$ \begin{align} -\frac{2y}{x^3}\tan(\theta)+\sec^4(\theta)\frac{\partial^2 \theta}{\partial x\partial y}&=-\frac{1}{x^2}\sec^2(\theta)\\ \end{align} $$ So we have $$ \begin{align} \frac{\partial^2 \theta}{\partial x\partial y}&=-\frac{1}{x^2}\cos^2(\theta)+\frac{2y}{x^3}\tan(\theta)\cos^4(\theta)\\ \end{align}$$
Now there are many alternative expressions for this, if you sub in the original relations between $x$, $y$, $\theta$, and $r$. Here is one: $$ \begin{align} \frac{\partial^2 \theta}{\partial x\partial y}&=-\frac{1}{r^2}+\frac{2y}{x^3}\frac{y}{x}\frac{x^4}{r^4}\\ &=-\frac{1}{r^2}+\frac{2y^2}{r^4}\\ &=\frac{1}{r^2}\left(-1+\frac{2y^2}{r^2}\right)\\ &=\frac{1}{r^2}\left(-1+2\sin^2(\theta)\right)\\ \end{align}$$
And then a double-angle formula for cosine gives the desired result.