Q:

How to evaluate these two integrals. 

How to evaluate these two integrals below
$$\int_{0}^{\infty }\frac{\ln\left ( 1+x^{4} \right )}{1+x^{2}}\mathrm{d}x~,~\int_{0}^{1}\frac{\arctan x}{x}\frac{1-x^{4}}{1+x^{4}}\mathrm{d}x$$
For the first one,I tried to use
$$\mathcal{I}'(s)=\int_{0}^{\infty }\frac{x^4}{(1+sx^4)(1+x^{2})}\mathrm{d}x$$
but it seems hard to solve. 

A:

For the first integral, we introduce a new parameter $a$.  Let $I(a)$ be the integral
$$I(a)=\int_0^\infty \frac{\log(a+x^4)}{1+x^2}\,dx \tag 1$$
We note that it can be shown that $I(0)=0$.  Our integral of interest is $I(1)$.
Proceeding, we differentiate $(1)$ to obtain 
$$\begin{align}
I'(a)&=\int_0^\infty\frac{1}{(1+x^2)(a+x^4)}\,dx\\\\
&=\frac{1}{2(a+1)}\int_{-\infty}^\infty\left(\frac{1}{x^2+1}+\frac{1-x^2}{x^4+a}\right)\,dx\\\\
&= \frac{2\pi i}{2(a+1)}\left(\frac{1}{2i}+\frac{1}{i\,2^{3/2}a^{3/4}}-\frac{1}{i\,2^{3/2}a^{1/4}}\right)\\\\
&=\frac{\pi}{2(1+a)}+\frac{\pi}{2^{3/2}(1+a)a^{3/4}}-\frac{\pi}{2^{3/2}(1+a)a^{1/4}}\tag 2
\end{align}$$
Integrating the right-hand side of $(2)$ reveals
$$\begin{align}
I(1)&=\frac{\pi}{2}\log(2)+\frac{\pi}{2^{3/2}}\int_0^1\left(\frac{1}{(1+x)x^{3/4}}-\frac{1}{(1+x)x^{1/4}}\right)\,dx\\\\
&=\frac{\pi}{2}\log(2)+\pi\sqrt 2\int_0^1\frac{1-x^2}{1+x^4}\,dx\\\\
&=\frac{\pi}{2}\log(2)+\pi\sqrt 2\left.\left(\frac{\log(x^2+\sqrt2 x+1)-\log(-x^2+\sqrt 2x-1)}{2^{3/2}}\right)\right|_{0}^{1}\\\\
&=\frac{\pi}{2}\log(2)+\frac{\pi}{2}\log\left(\frac{2+\sqrt 2}{2-\sqrt 2}\right)\\\\
&=\pi\log(2+\sqrt 2)
\end{align}$$

