I need to prove that the following bound is true. I thought this might follow from the inversion property of the theta function, as the infinite sum in the integrand is precisely $\theta_3(0,\mathrm{e}^{-\pi t/L^2})$, but I cannot seem to prove this. Any ideas would be appreciated! The bound that I'm trying to show is:
$$\int_0^\infty t^{\frac{1}{2}} \left(\sum_{k=1}^\infty \mathrm{e}^{-\frac{\pi^2}{L^2}k^2 t} \right)^2 dt \leq \int_0^\infty t^{\frac{1}{2}} \sum_{k=1}^\infty \mathrm{e}^{-\frac{\pi^2}{L^2}k^2 t} dt,$$
where $L$ is a positive real number (in fact, evaluating the integrals for a wide range of $L$ suggests that the ratio of the LHS to the RHS is constant and does not depend on $L$ at all).