TITLE: How does the series $\sum_{n=1}^\infty \frac{(-1)^n \cos(n^2 x)}{n}$ behave?
QUESTION [7 upvotes]: The title is the question: I'm trying to understand the behavior of the series
$$\star \qquad \sum_{n=1}^\infty \frac{(-1)^n \cos(n^2 x)}{n},\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad\qquad \qquad $$
where $0\leq x \leq 1$.  All I know for sure about it is that it converges conditionally at $x=0$ to a known value (I think it's $-\ln 2$).  I don't even know how to check its convergence for other values of $x$ (it may be possible to compute it for certain rational multiples of $\pi$).  I plotted the partial sum going up to $n=1000$ using Maple and the partial sum only goes from about $-2.8$ to $0.4$.  It also looks continuous but very jagged.  This suggests that the series may converge at least pointwise to a continuous, nowhere-differntiable function.  The maximum value of the absolute value of the derivative of the 1000th partial sum is about $21249$, according to Maple17's Mamimize command, but I am suspicious because Maple says the maximum occurs at $x=0.2000002655$, suspiciously close to $0.2$.  But if the derivative of the 1000th partial sum really is that big, it suggests that if the series converges to a function, that function might be nowhere-continuous.
I did some Googling, looking for information on continuous, nowhere-differentiable functions, hoping to find my series.  There seem to be a huge number of them that are well-known.  The best-known such functions seem to be "Weierstrass functions", but for such functions the denominator is something like $2^n$, which grows much faster than $n$.  At 
http://epubl.luth.se/1402-1617/2003/320/LTU-EX-03320-SE.pdf , there is posted a thesis about continuous, nowhere-differentiable functions.  On p. 23 of the .pdf (not the author's page number, but the page number of the .pdf document), the author discusses "Riemann's function", defined by $\sum_{k=1}^\infty \frac{1}{k^2}\sin(k^2 x)$.  This is very similar to my series, but again the denominator decays more rapidly than the one I'm considering.
So, to make a long story short, this is what I'd like to know:
For what values of $x$ does $\star$ converge?  
For what values of $x$ does $\star$ converge absolutely?
If $\star$ converges for all $x$ (EDIT: NO: see accepted answer) , does it converge merely pointwise or uniformly? (see answer)
If $\star$ converges at least pointwise (EDIT: NO: see accepted answer), where is the resulting function differentiable? 
EDIT: I accepted an excellent answer that answers most of my questions, and I will not unaccept it.  However, I am still a little curious about the complete answers to my first and second questions above.  I will upvote informative, original comments and answers.

REPLY [4 votes]: The series is real part of 
$$
f(x) = \sum_{n=1}^{\infty} \frac{(-1)^n e^{in^2 x}}n=\sum_{n=1}^{\infty} \frac{e^{ i(2n)^2x}}{2n} - \sum_{n=1}^{\infty} \frac{e^{i(2n-1)^2x}}{2n-1}.
$$
By the Theorem 2 of Lebeque, the series for $f$ converges for almost all $x\in [-\pi,\pi]$. This means that the set
$$
D:=\{x\in[-\pi,\pi] : \sum_{n=1}^{\infty} \frac{(-1)^n e^{in^2 x}}n \ \ \textrm{diverges}\}
$$
has a measure $0$. 
Also, by the discussion in MathOverflow, this set $D$ is a measure-zero $G_{\delta\sigma}$-set. 
Determining convergence or divergence for specific values of $x$ is not easy. As @Henning pointed out, $x=\pi/4 \in D$. Similarly, we can prove that $$\{\pi/4, \pi/2, 3\pi/4, -\pi, -3\pi/4, -\pi/2, -\pi/4\}\subset  D.$$If we use    finiteness of the irrationality measure of $\pi$, then we can prove the convergence for any $x\in\mathbb{Q}$, that is $$\mathbb{Q}\subset [-\pi,\pi]-D.$$ This is once discussed in @DavidSpeyer's answer in here.