I am having a hell of time trying to differentiate the following function with respect to x. Do you have any suggestions
$f(x) = \frac{ w(i)^x}{ \sum\limits_{j} w(j)^x }$
where $w$ is a vector Basically I don't get how to handle the vector in the denominator. Any help would be appreciated.
Thanks!
Also follow up:
$g(\hat{x}) = \sum\limits_{i} a* \hat{x}(i)$
what would be the derivative with respect to $\hat{x}$.
Again, thanks so much, I come from a CS background so still trying to wrap my head around the calculus of neural networks.
Note the following:
$ \frac{d}{dx} \left( \sum_{j=1}^{n} w(j)^x \right)$ = $\sum_{j=1}^{n} \left( \frac{d}{dx} \left( w(j)^x \right) \right)$ = $\sum_{j=1}^{n} \left(\ x\ w(j)^{x-1} \right)$ = $x \sum_{j=1}^{n} w(j)^{x-1}$
You can differentiate the function with either the product rule or the quotient rule - use the above when you do.