Here’s a neat integration puzzle (whose solution is rather pleasing) that I thought some of MSE’s integration buffs might enjoy:
Find the value of $\alpha$ that minimizes the integral $$\int_{-1}^\infty \frac{dx}{(\alpha+1/2)e^{\alpha x}+x+1}$$
For a more difficult (and even more pleasing) challenge, try this generalization:
For some function $f$, define $$g(\alpha) = \int_{-1}^\infty \frac{dx}{f(\alpha)e^{\alpha x}+x+1}$$ For what values of $\alpha$ does $g’(\alpha)=0$?
For the first question:
Obviously $\alpha>0$ is needed for convergence of the integral.
By the substitution $t=\alpha(x+1)$, $$I(\alpha):=\int_{-1}^\infty \frac{dx}{(\alpha+1/2)e^{\alpha x}+x+1}=\int_{0}^\infty \frac{dt}{(\alpha^2+\alpha/2)e^{-\alpha}e^{t}+t}=\int_{0}^\infty \frac{dt}{A(\alpha)e^{t}+t}$$
Since $$\frac{dI}{dA}=-\int^\infty_0\frac{e^x}{(x+Ae^x)^2}dx<0$$ $I(\alpha)$ minimizes when $A(\alpha)$ maximizes.
Note that $$\frac{dA}{d\alpha}=\left(-\alpha^2+\frac{3\alpha}{2}+\frac12\right)e^{-\alpha}$$
$A(\alpha)$ has the global maximum at $\alpha_c=\frac{3+\sqrt{17}}{4}$, which coincides with the numerical guess made by @Mariusz Iwaniuk.