We have the next function $z=x^2y-y^2x$
and we know that: $x=p\cos(a), y=p\sin(a)$.
Find $\frac{\partial z}{\partial p}$ and $\frac{\partial z}{\partial a}$.

In my opinion, at first we should find $z(\cos(a),p\sin(a))$.