I met this integral in a post of Accelerator (Contour Integral Involving $e^z$, a Semicircle, and Triangle Inequality). WA instantly evaluated it as $I=\int_0^{\infty} \frac{e^{4x}-e^{2x}}{x(e^{2x}+1)^3}dx =\frac{7\zeta(3)}{4\pi^2}$. Then, it is stuck in my mind.
I posted a simpler version of this integral here: Definite integral by Malmsten's formula
I evaluated this integral trickly but unfortunately not so rigorously in the following way:
Taking the second derivative of both sides of $\frac{1}{e^{2x}+1}=\sum_{k=1}^{\infty} (-1)^{k-1}e^{-2kx}$ and simplying we get $$\frac{e^{4x}-e^{2x}}{(e^{2x}+1)^3}=\sum_{k=1}^{\infty} (-1)^{k-1}k^{2}e^{-2kx}.$$ Since, $$\sum_{k=1}^{\infty} (-1)^{k-1}k^{2}=\eta(-2)=(1-2^{3})\zeta(-2)=0,\tag{1}$$ we have $$I=\sum_{k=1}^{\infty} (-1)^{k-1}k^{2}\left(\int_0^{\infty}\frac{e^{-2kx}-e^{-2x}}{x}\right).\tag{2}$$ Then, by Frullani's theorem (Proof of Frullani's theorem), we get $$I=\sum_{k=1}^{\infty} (-1)^{k}k^{2}\ln k=\eta'(-2)=(1-2^3)\zeta'(-2)=(-7)\left(-\frac{\zeta(3)}{4\pi^2}\right)=\frac{7\zeta(3)}{4\pi^2}.$$ How can I make this way more rigorous? In $(2)$, interchange of the summation and integration is not obvious. $(1)$ is divergent so is $(2)$!
Can you suggest another solution? Thanks in advance.

Substitute $t=e^{2x}$
$$I=\int_0^{\infty} \frac{e^{4x}-e^{2x}}{x(e^{2x}+1)^3}dx =\int_1^\infty \frac{t-1}{\ln t (t+1)^3}\overset{t\to\frac1t}{dt} = \frac12\int_0^\infty \frac{t-1}{\ln t \ (t+1)^3}dt $$ Let $J(a)= \int_0^\infty \frac{t^a}{\ln t \ (t+1)^3}dt$ $$J’(a)=\int_0^\infty \frac{t^a}{(1+t)^3}dt=\frac{\pi a(1-a)}{2\sin \pi a} $$ Then \begin{align} I=& \ \frac12(J(1)-J(0))\\ =& \ \frac\pi4\int_0^1 \frac{a(1-a)}{\sin \pi a}da \overset{ibp}=\frac 12 \int_0^1 x\ln \tan \frac{\pi x}2 \overset{t=\tan\frac{\pi x}2}{dx}\\ =& \ \frac2{\pi^2}\int_0^\infty \frac{\ln t\tan^{-1}t}{1+t^2}dt = \frac2{\pi^2}\int_0^\infty \int_0^1 \frac{t \ln t}{(1+t^2)(1+y^2 t^2)} \overset{t\to \frac1{yt}}{ dy} \ dt\\ = &\ \frac1{\pi^2}\int_0^\infty \int_0^1 \frac{-t\ln y}{(1+t^2)(1+y^2 t^2)} dt\ dy = \frac1{\pi^2}\int_0^1 \frac{\ln^2 y}{1-y^2}dy \\ = &\ \frac1{\pi^2}\cdot \frac{7\zeta(3)}4 = \frac{7 \zeta(3)}{4\pi^2} \end{align}