This equality showed up in the process of computing the integral $I$ below with the residue theorem: $$I = \int_0^\tfrac\pi2 \frac x{\cos x+\sin x}\,dx = \int_1^\infty \frac{x\log x}{\left(1+x^2\right)\sqrt{x^2-1}}\,dx = J.$$
The nearest I can get $J$ to resemble $I$ is $$\begin{align*}J &= \int_0^\tfrac\pi2 \frac{\log(\csc y)}{1+\sin^2y} \, dy & x=\csc y \\ &= \int_0^\tfrac\pi2 \frac{\arctan\left(\sqrt2\,\tan y\right)}{\sqrt2\,\tan y} \, dy & \text{by parts} \\ &= \int_0^\tfrac\pi2 \frac{\sqrt2\,z}{(1+\cos^2z)\tan z} \, dz & \tan z=\sqrt2\,\tan y. \end{align*}$$
At this point I gave up and resorted to the Feynman approach to calculate $J$ using the $\arctan$ form above. Is there a simpler method, e.g. substitution or other observation that can be made, to arrive at $I\equiv J$?
In an attempt to prove that $I-J=0$, I joined the integrands, substituted $x=\tan\dfrac y2$, and decomposed into partial fractions to yield
$$\sqrt2 \int_0^1 \left(\frac{2y^3}{1+y^4}+\frac{2\sqrt2}{1+2y-y^2}-\frac1y\right) \arctan y \, dy = 0,$$
the last term of which evaluates to $G$ (Catalan's constant). Another integral for $G$ then follows:
$$\int_0^1 \left(\frac{y^3}{1+y^4}+\frac{\sqrt2}{1+2y-y^2}\right) \arctan y \, dy = \frac G2$$
but I have no productive ideas on how to establish this.
Another thing I've considered in the vein of proving $I-J=0$ was to instead substitute $x=\tan y$ into both, then reduce as much as possible. I admit, resorting to contour integration again is self-defeating as far as finding a "simple" connection between $I$ and $J$ is concerned. But at the very least, this produces a much cleaner vanishing integral.
$$\begin{align*} I &= \int_0^\infty \frac{\arctan y}{(1+y)\sqrt{1+y^2}} \, dy & y=\tan x\\ I' &= \int_0^\infty \frac{\frac\pi2-\arctan y}{(1+y)\sqrt{1+y^2}} \, dy & y\to\frac 1y \\ I = \frac{I+I'}2 &= \frac\pi4 \int_0^\infty \frac{dy}{(1+y)\sqrt{1+y^2}} \\ &= \frac\pi{2\sqrt2} \int_0^1 \frac{dz}{\sqrt{1+z^2}} & y=\frac{1-z}{1+z};\text{ symmetry} \\ &= \frac\pi{2\sqrt2} \int_0^\tfrac1{\sqrt2} \frac{dw}{1-w^2} & w=\frac z{\sqrt{1+z^2}} \\ &= \frac\pi2 \int_0^1 \frac{dw}{2-w^2} & w\to\frac w{\sqrt2} \\[2ex] \hline J &= \sqrt2 \int_0^\infty \frac{\arctan y}{y\left(2+y^2\right)} \, dy & y=\tan x \\ &= \frac1{\sqrt2} \int_0^1 \int_{-\infty}^\infty \frac{dy\,dz}{\left(1+y^2z^2\right)\left(2+y^2\right)} & \text{Fubini; symmetry} \\ &= \frac\pi2 \int_0^1 \frac{dz}{1+\sqrt2\,z} & \text{residue thm. (semicircle)} \\[2ex] \hline \implies I-J &= \frac\pi2 \int_0^1 \left(\frac1{2-u^2} - \frac1{1+\sqrt2\,u}\right) \, du & (\star) \\ &= \frac\pi2 \int_0^1 \frac{-1+\sqrt2\,u+u^2}{\left(1+\sqrt2\,u\right)\left(2-u^2\right)} \, du \end{align*}$$
The integral $(\star)$ is very easy to evaluate with the fundamental theorem of calculus. Is there a more efficient way of recovering it from $I-J$ than the above? And is there a quick(er) way of deducing that it's identically zero?
The plot of the $u$-integrand almost suggests symmetry about $u=\dfrac12$, but that's unfortunately not the case since the numerator actually has a root at $u=\dfrac{\sqrt6-\sqrt2}2\approx0.518$.
$J(a)=\int\frac{\pi}{4a + \sqrt[2]{8}},da=\frac{\pi \ln\left(\left|4a + 2^{\frac{3}{2}}\right|\right)}{4}+C$
$\therefore J(a)=\frac{\pi \ln\left(\left|4a + 2^{\frac{3}{2}}\right|\right)}{4}-\frac{\pi}{4}\ln(\sqrt{8})\implies \sqrt2J(1)=\color{red}{\frac{\sqrt2\pi \ln\left(\left|4 + 2^{\frac{3}{2}}\right|\right)}{4}-\frac{\sqrt2\pi}{4}\ln(\sqrt{8})}$
– Amrut Ayan Jun 04 '25 at 05:05