Consider the following derivative
$$ \frac{d}{dx}\left[\prod_i\left(x\prod_jf_{ij}(x)\right)\right] $$
I am not certain how to perform this. Can I apply the product rule as follows: Let $g_i=x\prod_j f_{ij}(x)$ then
$$ \frac{d}{dx}\left[\prod_i\left(x\prod_jf_{ij}(x)\right)\right] = \frac{d}{dx}\left[\prod_ig_i(x)\right] = \left(\prod_i g_i(x)\right)\left(\sum_i\frac{g'_i(x)}{g_i(x)}\right) $$ where $$ g'_i(x) = \frac{d}{dx}\left(x\prod_j f_{ij}(x)\right) = \left[\prod_jf_{ij}(x) + x\frac{d}{dx}\left(\prod_jf_{ij}(x)\right)\right] $$ with $$ \frac{d}{dx}\left(\prod_jf_{ij}(x)\right) = \left(\prod_j f_{ij}(x)\right)\left(\sum_j\frac{f_{ij}'(x)}{f_{ij}(x)}\right) $$
Putting all of this back together I arrive at
$$ \frac{d}{dx}\left[\prod_i\left(x\prod_jf_{ij}(x)\right)\right] = \prod_i\left(x\prod_j f_{ij}(x)\right)\left[\sum_i\left(x\prod_jf_{ij}(x)\right)^{-1} \left[\prod_jf_{ij}(x) + x\left(\prod_j f_{ij}(x)\right)\left(\sum_j\frac{f_{ij}'(x)}{f_{ij}(x)}\right)\right]\right] $$ However, I am not certain that I am applying the product rule correctly for higher-order multiplications. Any help is appreciated!