Compute in closed form without using series: $$I =\int_0^{\pi / 4}\frac{x\tan^2 x\ln\left(\tan x\right)}{\cos^2 x}dx$$
I thought of using: $y=\tan x$ then $dy=\frac{1}{\cos^2 x}$, so : $$I =\int_0^{1} \arctan x\ln\left(x\right)x^{2}dx$$
But I find integration arctan.
Please give me ideas to approach it.
Start by doing integration by parts:$$\sf I=\color{chocolate}{\int_0^1 x^2\arctan x\ln xdx}=\color{blue}{-\frac13\int_0^1 \frac{x^3 \ln x}{1+x^2}dx}\color{purple}{-\frac13\int_0^1 x^2\arctan xdx}$$ For the first one, we will use long division and integrate by parts the second integral: $$\sf I=\color{blue}{-\frac13 \int_0^1 x\ln xdx+\frac13\int_0^1\frac{x\ln x}{1+x^2}dx}\color{purple}{-\frac{\pi}{36}+\frac19\int_0^1\left(x-\frac{x}{1+x^2}\right) dx}$$ Another integration by parts for the blue one's leads to: $$\sf I=\color{blue}{\frac1{12} -\frac16\int_0^1\frac{\ln(1+x^2)}{x}dx}\color{purple}{-\frac{\pi}{36}+\frac1{18}-\frac{\ln 2}{18}}$$ $$\sf =\color{chocolate}{\frac5{36}-\frac{\pi}{36}-\frac{\ln 2}{18}-\frac1{12}\underbrace{\int_0^1\frac{\ln(1+t)}{t}dt}_{x^2=t}=\boxed{\frac5{36}-\frac{\pi}{36}-\frac{\ln 2}{18}-\frac{\pi^2}{144}}}$$ Here one can find a proof that the last remain integral equals $\sf \frac{\pi^2}{12}$.