While going through the list of problems posed by Ramanujan in Journal of Indian Mathematical Society I came across this problem involving theta functions:
Prove that $$\frac{1}{2}+\sum_{n=1}^{\infty} e^{-\pi n^2x}\cos(\pi n^2\sqrt{1-x^2})=\frac{\sqrt{2}+\sqrt{1+x}}{\sqrt{1-x}}\sum_{n=1}^{\infty}e^{-\pi n^2x}\sin(\pi n^2\sqrt{1-x^2})$$ and deduce the following:
- ${\displaystyle \frac{1}{2}+\sum_{n=1}^{\infty} e^{-\pi n^2}=\sqrt{5\sqrt{5}-10}\left(\frac{1}{2}+\sum_{n=1}^{\infty} e^{-5\pi n^2}\right)} $
- ${\displaystyle \sum_{n=1}^{\infty} e^{-\pi n^2}\left(\pi n^2-\frac{1}{4}\right)=\frac{1}{8}} $
The sums in above problem are clearly based on theta functions and we use a simplified notation here to define them. If $\tau$ is any complex number with positive imaginary part then we define $$\vartheta(\tau) =\sum_{n\in\mathbb {Z}} e^{\pi i\tau n^2}$$ and one of the key properties of theta function defined above is $$\vartheta(\tau) =(-i\tau) ^{-1/2}\vartheta(-1/\tau)$$ Ramanujan's first formula probably assumes that $x\in(0,1)$ and hence one can write $x=\cos t$ with $t\in(0,\pi/2)$ and we can consider the complex number $\tau=\sin t +i\cos t$ which clearly has positive imaginary part. The choice of $\tau$ in this manner is done because it gives us $$(-i\tau) ^{-1/2}=\cos(t/2) +i\sin(t/2)=\sqrt{\frac{1+x}{2}}+i\sqrt{\frac{1-x}{2}}$$ and $$-1/\tau=-\sin t+i\cos t=-\sqrt{1-x^2}+ix$$ Using this value of $\tau$ in the transformation formula for theta functions we get $$1+2A+2iB=\frac{\sqrt{1+x}+i\sqrt{1-x}}{\sqrt{2}}(1+2A-2iB)$$ where $$A=\sum_{n=1}^{\infty}e^{-\pi n^2x}\cos(\pi n^2\sqrt{1-x^2}),B=\sum_{n=1}^{\infty} e^{-\pi n^2x}\sin(\pi n^2\sqrt{1-x^2})$$ and equating real parts we get $$1+2A=(1+2A)\sqrt {\frac{1+x}{2}}+2B\sqrt{\frac{1-x}{2}}$$ or $$\frac{1}{2}+A=\frac{\sqrt{2}+\sqrt{1+x}}{\sqrt{1-x}}B$$ In this manner the key formula of Ramanujan is established.
Out of the next two corollaries I was able to prove the second one easily by dividing the main formula by $\sqrt{1-x^2}$ and then taking limits as $x\to 1^{-}$. The first one dealing with $\sum e^{-5\pi n^2}$ was really looking difficult to obtain.
My question is
How to obtain the first corollary dealing with $\sum e^{-5\pi n^2}$ from the main formula of Ramanujan?
Since the formula appears to be using $x\in(0,1)$ I don't see a way to put $x=5$. Even if one does that both sides will contain the sums involving $\sum e^{-5\pi n^2}$ and it appears rather mysterious to obtain a link between $\sum e^{-\pi n^2}$ and $\sum e^{-5\pi n^2}$.
The link between these two sums can be obtained using a modular equation of degree 5, but the calculations involved are tedious (for this technique in action see this answer which evaluates $\sum_{n\in\mathbb {Z}} e^{-3\pi n^2}$). I was therefore hoping for some easier approach as indicated by Ramanujan. Maybe I am mising something obvious here.