I was studying uniform convergence of sequence and series. I encounter this problem. Trying to find an example. Any help will be appreciated. The domain of the function can be any closed interval. For example, [0,1] will suffice.
I am looking for an example to show that the conditions of the following theorems are necessary but not sufficient:
Let $f_n\colon [a,b]\rightarrow \mathbb{R}$ be a sequence of differentiable functions on $[a,b]$, and let $f_n\rightarrow f$ pointwise on $[a,b]$. If $f_n^{\prime}\rightarrow g$ uniformly on $[a,b]$, then $f$ is differentiable on $[a,b]$ and $f^{\prime} = g$.