Let, $f$ be the function defined on the open unit disk: \begin{equation*} f(x)=\sum_{n=0}^{+ \infty} x^{n^2} \end{equation*}
The aim of the exercise is to find the limit of $f(x)$ as $x$ approaches $-1$. I tried considering the function $g$ defined by $g(x)=f(-x)$ and separating the positive and then negative terms... but I am not making any progress.
Does anyone have an idea?
I don't know if this is useful but I have proved that :
\begin{equation*} f(x) \sim \frac{\sqrt{\pi}}{2\sqrt{1-x}} \quad \text{as $x$ approaches $1$} \end{equation*}
Another approach is by considering $f(t) = e^{i\pi t-\alpha t^2}$ then,
$\displaystyle \hat{f}(x) = \int_{-\infty}^{\infty} e^{itx}f(t)\,dt = \int_{-\infty}^{\infty} e^{itx}e^{i\pi t-\alpha t^2}\,dt = \sqrt{\frac{\pi}{\alpha}}e^{-\frac{(x+\pi)^2}{4\alpha}}$ so that using Poisson Summation formula we have, $$\sum\limits_{n=-\infty}^{\infty} (-1)^{n}e^{-\alpha n^2} = \sqrt{\frac{\pi}{\alpha}}\sum\limits_{n=-\infty}^{\infty} e^{-\frac{(2n+1)^2\pi^2}{4\alpha}}$$
i.e., $\displaystyle \sum\limits_{n=0}^{\infty} (-1)^{n}e^{-\alpha n^2} = \frac{1}{2} + \sqrt{\frac{\pi}{\alpha}}\sum\limits_{n=0}^{\infty} e^{-\frac{(2n+1)^2\pi^2}{4\alpha}}$ and letting $\alpha \to 0^{+}$ gives the desired limit to be equal to $\dfrac{1}{2}$ (since, $\displaystyle \sum\limits_{n=0}^{\infty} e^{-\frac{(2n+1)^2\pi^2}{4\alpha}} < \sum\limits_{n=1}^{\infty} e^{-\frac{n\pi^2}{4\alpha}} = \frac{e^{-\frac{\pi^2}{4\alpha}}}{1-e^{-\frac{\pi^2}{4\alpha}}}$).
Addendum: It also follows from one of the Jacobi Triple product identity: $$\sum\limits_{n=-\infty}^{\infty} (-1)^nx^{n^2} = \prod\limits_{k=1}^{\infty} (1-x^{2k})(1-x^{2k-1})^2$$