I was doing a problem and I encountered two integrals which have the same value and would like to know if this is pure coincidence or if there is a reason for this:
$1)$ $$\int_0^{\pi/4}\ln(1+\tan x)\mathrm dx$$
$2)$ $$\int_0^{\pi/4}\frac{x}{\cos x(\cos x+\sin x)}\mathrm dx$$
I am aware that the solution for the second integral is $\ln(1+\tan x)$ from $0$ to $\frac\pi4$; so, is it the case that the first integral’s solution is the same as the the function evaluated between the limits for a geometric reason or something else?