I got this challenge question on brilliant.org: $\int_{0}^{\pi/4}\sqrt{\tan x} dx$
I first used, $\int_{0}^{\pi/4}\sqrt{\tan(\pi/4-x)} dx$ which simplifies: $\int_{0}^{\pi/4}\sqrt{\frac{1-\tan x}{1+\tan x}} dx$
Then, I used Weierstrass's substitution by using $t=\tan(\frac{x}{2})$ and $dx=\frac{2}{1+t^2}$ and simplified: $2\int_{0}^{\tan(\pi/8)}\frac{1-t}{(1+t)(1+t^2)} dx$
After some manipulation, I calculated the integral to be $I=2\ln(\tan(\frac{x}{2}))-\ln(1+t^2)+c$ and $I(\pi/4)-I(0)=0.53$
But Desmos tells something different:
Have I done something wrong? I have rechecked a few times. But I find no error!