Find partial derivatives of $f(g(x,y))$ where $f(z)=cos(z)$ and $g(x,y)=\frac xy$
I understand the principal of chain rule for multivariable calculus, however this example confuses me. As I would approach it, is to write it out in full as following: $$\frac{df(g(x,y))}{dx}=\frac{df}{dg}\frac{dg}{dx}$$ and $$\frac{df(g(x,y))}{dy}=\frac{df}{dg}\frac{dg}{dy}$$
Easy to find that $\frac{dg}{dx}=\frac 1x$ and $\frac{dg}{dy}=-\frac xy^2$ However $\frac{df}{dg}$ confuses me, as I'm not sure what to do when I need to differentiate with respect to the variable, which is not in a function.