Series of functions $f_n (x)$ which are Differentiable and $\sum_{n=0}^\infty f_n (x) $ uniform convergence to non-differentiable function I got the following question on my Home work:
show an example of Series of functions $f_n (x)$ which are differentiable and $\sum_{n=0}^\infty f_n (x)  $ uniform convergence to non-differentiable  function.
(translated from Hebrew)
My main problem is that even if i have $f_n (x)$ which i think is an example, I do not know to calculate $\sum_{n=0}^\infty f_n (x)$ 
 A: Different approach to the case of $|x|:$ The functions $f_n(x) =  \sqrt {x^2+1/n}, n=1,2,\dots$ are infinitely differentiable on $\mathbb R$ (in fact they are real-analytic on $\mathbb R.$) Note that
$$0\le f_n(x) - |x| = \sqrt {x^2+1/n}-|x| = \sqrt { x^2+1/n }-\sqrt {x^2}  $$ $$=\frac{1/n}{ \sqrt {x^2+1/n}+\sqrt {x^2} } \le \frac{1/n}{1/\sqrt n} = \frac{1}{\sqrt n}.$$
This shows $f_n(x) \to |x|$ uniformly on all of $\mathbb R.$
Now every sequence can be turned into a series, so we have $f_1(x) + \sum_{n=1}^{\infty}(f_{n+1}(x)-f_n(x)) \to |x|$ uniformly on $\mathbb R.$ And of course $|x|$ is not differentiable at $0.$
A: You could take the trigonometric Fourier series of the absolute value $|\cdot| : [-\pi,\pi]\to\mathbb{R}$. 
$$|x| = \frac{\pi}{2} - \frac{4}{\pi}\sum_{n=1}^\infty\frac{\cos(2n-1)x}{(2n-1)^2},\quad\forall x\in[-\pi,\pi]$$
$|\cdot|$ is continuous on $[-\pi,\pi]$ and not differentiable only at $0$ but left and right derivatives at $0$ exist (they are equal to $\pm 1$). This implies that its Fourier series converges uniformly to $|\cdot|$. However, $|\cdot|$ is not differentiable at $0$.
A: There's a sequence of polynomials $p_n(x)$ converging uniformly to
$|x|$ on $[-1,1]$. Taking $f_0=p_0$ and $f_{n+1}=p_{n+1}-p_n$ will give
you what you seek.
The binomial theorem gives
$$(1-y)^{1/2}=1-\sum_{k=1}^\infty a_k y^k$$
for some $a_k$ which one can write out, but I won't, and are always
positive. It's important here to check this is valid on all the interval
$[0,1]$. Set
$$p_n(x)=1-\sum_{k=1}^n a_k(1-x^2)^k.$$
Then $p_n(x)\to\sqrt{1-(1-x^2)}=|x|$ on $[-1,1]$. The sequence $p_n(x)$
is decreasing, so by Dini's theorem, the convergence is uniform.
A: Notation: The users of this site usually insist that $\mathbb N$ denotes the set of $positive$ integers.
Take $f(x)$ to be :  
(i) differentiable  $except$ at $x=0,$ 
(ii) with $f(0)=0,$ 
(iii) such that  $f(x)$ is continuous at $x=0,$  
(iv) and there is a sequence $(r_n)_{n\in \mathbb N}$ of positive numbers converging to $0,$ with $f'(r_n)=f'(-r_n)=0$ for each $n\in \mathbb N.$
$(\bullet )$ For example: $f(x)=x\cos (1/x)$ for $x\ne 0,$ and $f(0)=0.$
For $n\in \mathbb N$ let $g_n(x)=f(x)$ when $|x|\geq r_n$ and let $g_n(x)=f(r_n)$ when $|x|\leq r_n.$ 
Then $g_n(x)$ is differentiable for all $x,$ and $g_n$ converges uniformly to $f$ as $n\to \infty.$
Let $f_0(x)=g_1(x),$ and let $f_n(x)=g_{n+1}(x)-g_n(x)$ for $n\in \mathbb N.$ Observe that $$\sum_{j=0}^nf_j(x)=g_{n+1}(x)$$ (for $n\geq 0)$, which converges uniformly to $f(x)$ as $n\to \infty$.
Remarks. Deeper results are that any continuous $f:\mathbb R\to \mathbb R$ is the uniform limit of  sequence of differentiable functions, and that there is a continuous real function that is $nowhere$ differentiable.
