Let $f : \mathbb{R} \rightarrow \mathbb{R}$ be differentiable at $0$ with $f(0) = 0$. Let $\{a_n\}$ be a real sequence such that $\sum_{n=1}^{\infty}|a_n| < \infty$. Show that $\sum_{n=1}^{\infty}f(a_nx)$ converges for every $x$ and that the sum of the series is differentiable at $0$.
I have included my attempt. Please tell me is that right way to do and what should be next; If not then what can be a better proof. I would welcome alternative proofs for this.
Since $$\sum_{k = 1}^\infty |a_k|<\infty$$ Given $0<\epsilon<1$, there exists $N$ such that for all $k\geq N$ $$\sum_{k = N}^\infty |a_k|<\epsilon$$ As a result, we have that $|a_k|<\epsilon$ for all $k\geq N$. Now, let $$M = \max\{|a_1|,|a_2|,\dots,|a_N|,\epsilon\}$$ Then, $|a_k|\leq M$ for all $k$. Now, choose $\delta$ such that for all $x$ with $|x|<\delta$: $$\left|\frac{f(n)}{n}-f'(0)\right|<\frac{\epsilon}{4M}$$ Then, choose $N_1$ such that $\forall n\geq N_1$, $|a_n n|<\delta$ (where $|n|<\frac{\delta}{4}$). We then choose $N_2$ such that $$\sum_{k = N_2}^\infty |a_k|<\frac{\epsilon}{4}$$ Then, we have that: $$\sum_{n = 1}^\infty \left(\frac{f(a_n n)}{a_n n}a_n-f'(0)a_n\right)\leq\sum_{n = 1}^{N' = \max\{N_1,N_2\}}\left|\frac{f(a_n n)}{a_n n}a_n-f'(0)a_n\right|+\sum_{n = N'+1}^{\infty}\left|\frac{f(a_n n)}{a_n n}-f'(0)\right||a_n|$$