Suppose I have
$$g(x)=\frac{1}{x(f(x))}$$
What is $d g(x)/ d f(x)$? I know that for some function $h(f(x)),$ we have that $$\frac{d h(x)}{d f(x)}=\frac{h'(x)}{f'(x)}$$
By this rule, the derivative of $g(x)$ is
$$\frac{-xf'(x)+f(x)}{x^2f(x)}*\frac{1}{f'(x)}$$
Is this correct?
$$\frac{dg}{df}=\frac{\dfrac{dg}{dx}}{\dfrac{df}{dx}}=\frac{-\dfrac1{x^2f}-\dfrac {f'}{xf^2}}{f'}=-\frac1{x^2ff'}-\frac1{xf^2}.$$