$$ \int_0^{\infty}\frac{2\left[\,x - \tanh\left(\,x\,\right)\,\right]} {\sinh\left(\,x\,\right)\tanh^{2}\left(\,x\,\right)}\,\mathrm{d}x $$ I know that the answer is $\pi^{2}/4$.
I tried to change $\sinh\left(\,x\,\right)$ and $\tanh\left(\,x\,\right)$ to series but it's hard. I hope to give me full answers with different methods.
Note that:
$$\int\frac{\tanh(x)}{\sinh(x)\tanh^2(x)}~\mathrm dx=-\operatorname{csch}(x)+c$$
$$\begin{align}\int\frac x{\sinh(x)\tanh^2(x)}~\mathrm dx&=2\int\frac{(u+u^{-1})^2}{(u-u^{-1})^3}\frac{\ln(u)}u~\mathrm du\\&=2\int\frac{(u^2+1)^2}{(u^2-1)^3}\ln(u)~\mathrm du\end{align}$$
By PFD,
$$\frac{32}{(x^2-1)^3}=\frac2{(x-1)^3}-\frac3{(x-1)^2}+\frac3{x-1}-\frac3{x+1}-\frac3{(x+1)^2}-\frac2{(x+1)^3}$$
Each may then be handled through a combination of integration by parts, letting $t=u\pm1$, and polylogarithms. For example,
$$\begin{align}\int\frac{(u^2+1)^2}{(u-1)^3}\ln(u)~\mathrm du&=\int\frac{t^4+4t^3+8t^2+8t+4}{t^3}\ln(1+t)~\mathrm dt\\&=\int t\ln(1+t)+4\ln(1+t)+8\frac{\ln(1+t)}t+8\frac{\ln(1+t)}{t^2}+4\frac{\ln(1+t)}{t^3}~\mathrm dt\\&=\frac12t^2\ln(1+t)+4t\ln(1+t)-\frac12\ln(1+t)-8\frac{\ln(1+t)}t\\&\phantom{=}-4\frac{\ln(1+t)}{t^2}+4\ln(t)-\frac14t^2-\frac72t-\frac4t-8\operatorname{Li}_2(-t)+C\end{align}$$
(Dear lord, tell me I didn't do that wrong)
We may proceed with all the rest to finally conclude that
$$\int\frac{2(x-\tanh(x))}{\sinh(x)\tanh^2(x)}~\mathrm dx=\operatorname{Li}_2(-e^{-x})-\operatorname{Li}_2(e^{-x})+x\ln(1-e^{-x})-x\ln(1+e^{-x})\\+\frac12\tanh(x/2)-\frac12\coth(x/2)-\frac14x\operatorname{csch}^2(x/2)+2\operatorname{csch}(x)-\frac14x\operatorname{sech}^2(x/2)+C$$
(if this one's wrong, I'm blaming it on WA)
And by substituting in the bounds,