In the Portilla Simoncelli paper (page 18): http://www.cns.nyu.edu/pub/lcv/portilla99-reprint.pdf
They go about calculating the derivative of the skewness $\eta(x)$ of a distribution (2D matrix in the case of an image: $x$) through the following expression:
$\eta(x) = \frac{\mu_3(x)}{\mu_2(x)^{1.5}}$
where $\mu_2(x)$ is the variance and $\mu_1(x)$ is the mean, which they set to zero for their calculations.
The problem I am having is that when they calculate:
$\frac{d\eta_3(x)}{dx(i,j)} = \frac{3(x^2(i,j)-\mu(x)^{0.5}\eta(x) x(i,j) -\mu_2(x))}{|L|\mu_2^{3/2}}$,
where $x(i,j)$ is an individual element of the matrix $x$, is that I don't get the $-\mu_2(x)$ term.
So far I have this:
$\frac{\partial \mu_3(x)}{\partial x(i,j)} = \frac{3x^2(i,j)-6x(i,j) + 3\mu_1^2}{|L|}$
$\frac{\partial \mu_2(x)}{\partial x(i,j)} = \frac{2(x(i,j)-\mu_1(x))}{|L|}$
Then: $\frac{d\eta_3(x)}{dx(i,j)} = \frac{\frac{\partial \mu_3(x)}{\partial x(i,j)} \mu_2(x) - \mu_3(x)\frac{\partial \mu_2(x)^{1.5}}{\partial x(i,j)}}{\mu_2^3(x)}$
Replacing with the previsouly calculated expressions I get: $\frac{d\eta_3(x)}{dx(i,j)} = \frac{3x(i,j)^2 \mu_2^{1.5} - \mu_2^{0.5}(x)\mu_3(x)3 x(i,j)}{|L|\mu_2^3(x)}$
Then I replace with the definition of $\eta(x) = \frac{\mu_3(x)}{\mu_2(x)^{1.5}}$, and with $\mu_1(x)=0$ to get back where I started from. Where's my missing $\mu_2(x)$ Did I oversimplify somewhere?