I'm looking for a proof of this:
$$\int\limits_0^\infty \mathcal{e}^{-x}\ln^{2}x\,dx = \gamma^{2}+\frac{\pi^{2}}{6}$$
My first thought would have been to write $e^{-x}$ as an infinite series and then exchange its order with the integral, but that brought me nowhere. Considering also that $\frac{\pi^{2}}{6}$ shows up, it seems inevitable to make use of the zeta function, which is something I'm not really familiar with. For context, I'm trying to evaluate the Laplace Transform of $\ln^2x$, which has come down to the integral above.
Recall that $$\Pi(s)=\Gamma(s+1)=\int_0^\infty x^{s}e^{-x}dx$$ so by the Leibniz integral rule, $$\Pi'(s)=\int_0^\infty \frac{\partial}{\partial s}x^se^{-x}dx=\int_0^\infty x^{s}e^{-x}\ln(x)dx$$ So naturally $$\Pi''(s)=\int_0^\infty x^se^{-x}\ln(x)^2dx$$ so your integral is given by $$\Pi''(0)=\Gamma''(1)$$ then we recall the definition of the polygamma function: $$\psi_n(s)=\left(\frac{d}{ds}\right)^{n+1} \ln\Gamma(s)=\frac{d}{ds}\psi_{n-1}(s)$$ So we see that $$\Gamma'(s)=\Gamma(s)\psi_0(s)$$ And accordingly, $$\Gamma''(s)=\Gamma'(s)\psi_0(s)+\Gamma(s)\psi_1(s)$$ Which is $$\Gamma''(s)=\Gamma(s)\left(\psi_0^2(s)+\psi_1(s)\right)$$ Hence your integral is $$\Gamma''(1)=\psi_0^2(1)+\psi_1(1)$$ Then from here we have that $$\psi_0(1)=-\gamma$$ And from here $$\psi_1(1)=\frac{\pi^2}6$$ So we have your integral at $$\Gamma''(1)=\gamma^2+\frac{\pi^2}6$$