$U^j = \prod^N_i \left(d^j_i-\bar{d}_i\right)^\oint$
where $d^j_i$ is the per capita consumption of good $i$ in any country $j$; $\bar{d}_i \geq 0$ denotes the minimum consumption of each good $i$, which are same across countries; $\displaystyle \sum_i \oint_i^j =1$. Assuming that per capita income $I^j$ is large enough to afford the minimum consumption. Derive the per capita demand for each good $i$ in country $j$.
I understand pi-product notation means it's a product function, but how do we differentiate a product function like this? I define my $I^j$ as $p_i d_i^j$; not sure if this is correct. Your help is much appreciated! Thank you in advance. :)