I was asked to find the largest number $k$ for which the real function $$x \mapsto \sum_{n=1}^\infty \frac{\cos nx}{2^n}$$ is in the differentiability class $C^k$.
I can't seem to think of a way to approach this question..any help will be gladly accepted!
The series is uniformly convergent on $\mathbb R$ (by the M-test), so the function
$$f(x) = \sum_{n=1}^\infty \frac{\cos nx}{2^n} $$
is differentiable on $\mathbb R$ and
$$f'(x) =- \sum_{n=1}^\infty n\frac{\sin nx}{2^n} $$
You can apply the same trick to $f'$ and conclude that $f'$ is differentiable. By induction you can work out that $f^{(k)}$ is differentiable for all $k$ and so $f \in C^\infty(\mathbb R)$.