UC Berkeley Integral Problem: Show that $\int_0^{2\pi} \frac{\min(\sin x, \cos x)}{\max(e^{\sin x},e^{\cos x})}\ {\rm d}x = -4\sinh(1/{\sqrt2})$.

contest-mathdefinite integralsintegrationmaxima-minimareal-analysis

Show that $$\int_0^{2\pi} \frac{\mathrm{min}(\sin{x},\, \cos{x})}{\mathrm{max}\left(e^{\sin{x}},\, e^{\cos{x}}\right)}\ \mathrm{d}x = -4\sinh\left(\frac{1}{\sqrt{2}}\right).$$
this problem comes from the 2020 UC Berkeley Integration Bee and was not solved by either of the contestants. Any hints? My initial approach was to compute the maximum and minimum of the specified function by observing the graph for $x\in (0, 2\pi)$ but could not get very far.

Thank you!

Best Answer

Because the function is periodic, the integral over any interval of length $2 \pi$ leads to the same result. With that said, rewrite this as $$ \int_{\pi/4}^{9 \pi /4} f(x)\,dx = \int_{\pi/4}^{5\pi/4} f(x)\,dx + \int_{5 \pi/4}^{9\pi/4} f(x)\,dx\\ = \int_{\pi/4}^{5 \pi/4} \frac{\cos(x)}{e^{\sin(x)}}\,dx + \int_{\pi/4}^{5 \pi/4} \frac{\sin(x)}{e^{\cos(x)}}\,dx\\ = \int_{\pi/4}^{5 \pi/4} e^{- \sin(x)}\cos(x)\,dx + \int_{\pi/4}^{5 \pi/4} e^{- \cos(x)}\sin(x)\,dx. $$ The integrals can be handled separately, via $u$-substitution.