a question of definite integral [closed]

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.

closed as off-topic by RP_, Yemon Choi, Mark Wildon, Neil Hoffman, WolfgangJan 3 at 20:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "MathOverflow is for mathematicians to ask each other questions about their research. See Math.StackExchange to ask general questions in mathematics." – RP_, Yemon Choi, Mark Wildon, Neil Hoffman, Wolfgang
If this question can be reworded to fit the rules in the help center, please edit the question.

• Would you give me more hints? – Haoyu Wang Dec 23 '18 at 11:39
• The original one is a little wrong. I modified it. The new can be solved in the same way? – Haoyu Wang Dec 23 '18 at 11:51
• The question is better suited to MSE: math.stackexchange.com, and is likely to be closed here briefly. – Josiah Park Dec 23 '18 at 11:53
• I transfer it to MSE – Haoyu Wang Dec 23 '18 at 12:03

Neither integral has a closed form expression. For $$\tau=1$$ the first integral evaluates to $$\int_{0}^{1} \frac{1}{1+e^{-(x-\ln(-\ln u))}}\, du=-e^{x+e^x} \text{Ei}\left(-e^x\right).$$
• you can take the $e^{-x^2/2}$ in the numerator out of the integral, since it does not depend on $u$, and then you can change variables from $x-u$ to $y$, so the integral you are evaluating is $\int_{-\infty}^\infty(1+e^{-y/\tau})^{-1}dy$ which diverges no matter what the sign is of $\tau$. – Carlo Beenakker Dec 23 '18 at 8:11