1.$$\int_{0}^{1} \frac{1}{1+e^{-(x+\ln(u/(1-u)))/\tau}}\, du$$

2.$$\frac{1}{\sqrt{2}\pi}\int_{-\infty}^{+\infty}\frac{e^{-u^{2}/2}}{1+e^{-(x-u)/\tau}}\,du$$

please help me. I tried to use MATLAB but I failed. The background of the first one is the expectation of gumbel-softmax.