$f(x)=\sum_{n=0}^{\infty} \frac{e^{-nx}}{1+n^2}$ is differentiable at $~(0, \infty)$ Let us consider a real valued function $~~f:[0 , \infty) \to \mathbb R~~$ defined by
$$f(x)=\sum_{n=0}^{\infty} \frac{e^{-nx}}{1+n^2},~~x \in [0,\infty).$$
Show that $f$ is differentiable at $~(0, \infty)~~$ but $~~\displaystyle \lim_{x \to 0+} f'(x)~$ does not exists.
My attempt: By using $~M-$test I have proved that the series of functions $~~\displaystyle \sum_{n=0}^{\infty} f_n(x)~~$ uniformly convergent to $~~f(x)~~$ as given, where
$$f_n(x)=\frac{e^{-nx}}{1+n^2},~~x \in [0,\infty).$$
Then we have $$|f_n(x)| =\left|\frac{e^{-nx}}{1+n^2}\right| \leq \frac{1}{1+n^2}.$$
So uniformly convergent. Hence $~~f'(x)=\displaystyle \sum_{n=0}^{\infty} f'_n(x)=\displaystyle \sum_{n=0}^{\infty} \frac{-ne^{-nx}}{1+n^2}.$
This follows that $~~f(x)~~$ is differentiable on $~(0,\infty).$
Now notice that
$$\lim_{x \to 0+}f'(x)=\lim_{x \to 0+} \sum \frac{-ne^{-nx}}{1+n^2} = \sum \left(\lim_{x \to 0+} \frac{-ne^{-nx}}{1+n^2}\right)=-\sum \frac{n}{1+n^2}.$$
Since the above series is not convergent, it yields that the limit does not exists.
Is my solution is all okay? Is anything I did wrong or can be solve in much simpler way please suggest me?
Thanks for your time to look in my solution.

We have
$$ \frac{1}{1+n^2}=\int_{0}^{+\infty}\cos(nt)e^{-t}\,dt \tag{1}$$
so $f(x)$ can be represented in the following way:
$$ f(x)=\sum_{n\geq 0}\int_{0}^{+\infty} \cos(nt) e^{-t} e^{-nx}\,dt =\text{Re}\sum_{n\geq 0}\int_{0}^{+\infty}e^{nit} e^{-t} e^{-nx}\,dt.\tag{2}$$
We are allowed to exchange the series and the integral due to dominated convergence, so
$$ f(x)=\text{Re}\int_{0}^{+\infty}\frac{e^x}{e^x-e^{it}}\,e^{-t}\,dt =\frac{1}{2}\int_{0}^{+\infty}\frac{e^x-\cos t}{\cosh x-\cos t}\,e^{-t}\,dt.\tag{3}$$
For any $x>0$ we have $e^x > 1\geq \cos t$ and $\cosh x > 1\geq \cos t$, so the integral representation ensures the differentiability of $f(x)$ and also gives an integral representation for $f'(x)$:
$$ f'(x) = \frac{1}{2}\int_{0}^{+\infty}\frac{1-\cos(t)\cosh(x)}{(\cosh(x)-\cos(t))^2}\,e^{-t}\,dt.\tag{4} $$
On the other hand, if we consider the limit as $x\to 0^+$ of the RHS we end up with
$$ \frac{1}{2}\int_{0}^{+\infty}\frac{1}{1-\cos t}e^{-t}\,dt = \frac{1}{4}\int_{0}^{+\infty}\frac{e^{-t}}{\sin^2\left(\frac{t}{2}\right)}\,dt\tag{5} $$
which is blatantly divergent.
