I was wondering if, and how exactly logarithmic differentiation may be applied to a multivariate function.
For example, I have been working with the function
$$f(x,y)=\frac{x-y}{x+y}$$
Does the following process hold? Specifically, does the chain rule step with del f hold?
$$\ln(f(x,y))=\ln(x-y)-\ln(x+y)$$
$$\Rightarrow \frac{1}{f(x,y)} \nabla f = \langle \frac{2y}{x^2-y^2} , \frac{-2x}{x^2-y^2} \rangle$$
Solving for $\nabla f$, does give me the correct answer. I'm wondering is my notation would be correct, and if this will ever not work.
Thanks for any help.
You define
$$g(x,y)=\ln(f(x,y))=\ln(x-y)-\ln(x+y)$$
and thus
$$\nabla g=\left(\frac{1}{f(x,y)}f_x,\frac{1}{f(x,y)}f_y\right)=\frac{1}{f(x,y)}\left(f_x,f_y\right)=\frac{1}{f(x,y)}\nabla f$$