I need help with the following derivative involving inner products: $$\frac{d\, \log(x)^T\,y}{d\,x^T\,y}$$ Here $x$ and $y$ are $n$-dimensional vectors, $T$ indicates transpose, and the logarithm of the vector is taken point-wise: $\log(x)_i = \log(x_i)$.
THANKS for your help in advance!!!
This question isn't undefined or ambiguous at all, it's just a lot of work. Rewrite the given derivative into an equivalent expression with no derivatives except for the $n^2$ atomic expressions $\frac{d\,x_i}{d\,y_j}$ (see footnote)
$$\frac{d\,\sum_{i=1}^n \log(x_i) y_i}{d\,\sum_{j=1}^n x_j y_j}$$
$$\frac{\sum_{i=1}^n d\,\log(x_i) y_i}{\sum_{j=1}^n d\,x_j y_j}$$
$$\sum_{i=1}^n \frac{d\,\log(x_i) y_i}{\sum_{j=1}^n d\,x_j y_j}$$
$$\sum_{i=1}^n \left(\frac{\sum_{j=1}^n d\,x_j y_j}{d\,\log(x_i) y_i}\right)^{-1}$$
$$\sum_{i=1}^n \left(\sum_{j=1}^n \frac{ d\,x_j y_j}{d\,\log(x_i) y_i}\right)^{-1}$$
$$\sum_{i=1}^n \left(\sum_{j=1}^n \frac{ x_j\,d\,y_j + y_j\,d\,x_j}{\log(x_i)\,d\, y_i + y_i/x_i\,d\, x_i}\right)^{-1}$$
$$\sum_{i=1}^n \left(\sum_{j=1}^n \frac{ x_j\,d\,y_j}{\log(x_i)\,d\, y_i + y_i/x_i\,d\, x_i} + \frac{y_j\,d\,x_j}{\log(x_i)\,d\, y_i + y_i/x_i\,d\, x_i}\right)^{-1}$$
$$\sum_{i=1}^n \left(\sum_{j=1}^n \left(\frac{\log(x_i)\,d\, y_i + y_i/x_i\,d\, x_i}{ x_j\,d\,y_j}\right)^{-1} + \left(\frac{\log(x_i)\,d\, y_i + y_i/x_i\,d\, x_i}{y_j\,d\,x_j}\right)^{-1} \right)^{-1}$$
$$\sum_{i=1}^n \left(\sum_{j=1}^n \left( \frac{\log(x_i)}{ x_j}\frac{d\, y_i}{d\,y_j} + \frac{y_i/x_i}{ x_j}\frac{d\, x_i}{d\,y_j} \right)^{-1} + \left( \frac{\log(x_i)}{y_j}\frac{d\, y_i}{d\,x_j} + \frac{y_i/x_i}{y_j}\frac{d\, x_i}{d\,x_j} \right)^{-1} \right)^{-1}$$
A special case of this (probably the one you are interested in) is where all of the variables are independent, that is: $$(\forall i, j)\frac{d\,x_i}{d\,y_j} = 0$$ $$(\forall i \ne j)\frac{d\,x_i}{d\,x_j} = \frac{d\,y_i}{d\,y_j} = 0$$ $$(\forall i = j)\frac{d\,x_i}{d\,x_j} = \frac{d\,y_i}{d\,y_j} = 1$$
Edit: I believe the above derivation is only correct when the variables have a functional relationship, like $y = f(x)$. When they are independent, it no longer seems to be correct, and I apologize, I haven't figured out how to solve the problem in that case yet.
Footnote:
Another way of thinking about the expression: At any point in the logic, you should be able to apply an arbitrary set of consistent relationships between the variables and get a consistent result. For example, consider if the poster had asked for the simpler expression:
$$\begin{align} \frac{d\,xy}{d\,x + y} &= \frac{xd\,y + yd\,x}{d\,x + d\,y}\\ &= \frac{x\,d\,y}{d\,x + d\,y} + \frac{y\,d\,x}{d\,x + d\,y}\\ &= \left(\frac{d\,x + d\,y}{x\,d\,y}\right)^{-1} + \left(\frac{d\,x + d\,y}{y\,d\,x}\right)^{-1}\\ &= \left(\frac{d\,x}{x\,d\,y} + \frac{d\,y}{x\,d\,y}\right)^{-1} + \left(\frac{d\,x}{y\,d\,x} + \frac{d\,y}{y\,d\,x}\right)^{-1}\\ &= x\left(\frac{d\,x}{d\,y} + 1\right)^{-1} + y\left(1 + \frac{d\,y}{d\,x}\right)^{-1}\\ \end{align}$$
Continuing the example, you are still free to add a new assumption, such as $y = e^{kx}$.
$$\begin{align} \frac{d\,xy}{d\,x + y} & = \frac{d\,xy}{d\,x} \left(\frac{d\,x + y}{d\,x}\right)^{-1}\\ &= \frac{d\,x\,e^{kx}}{d\,x} \left(\frac{d\,x + e^{kx}}{d\,x}\right)^{-1}\\ &=\frac{(k\,x\,+1)e^{kx}}{ke^{kx} + 1} \end{align}$$
And applying the new assumption to the result: $$\begin{align} x\left(\frac{d\,x}{d\,y} + 1\right)^{-1} + y\left(1 + \frac{d\,y}{d\,x}\right)^{-1} & = x\left(k^{-1}e^{-kx} + 1\right)^{-1} + e^{kx}\left(1 + ke^{kx}\right)^{-1}\\ & = x\left(\frac{ke^{kx}}{ke^{kx} + 1}\right) + e^{kx}\left(\frac{k^{-1}e^{-kx}}{k^{-1}e^{-kx} + 1}\right)\\ & = kx\left(\frac{e^{kx}}{ke^{kx} + 1}\right) + e^{kx}\left(\frac{1}{1 + ke^{kx}}\right)\\ & = \frac{(kx+1)e^{kx}}{ke^{kx} + 1} \end{align}$$
Although this is only 1 example, it suggests that this sort of calculus is well defined and consistent. It's just not the limited sort of calculus-of-functions that you see in schools.