I was reading this question posted yesterday, and I learned through browsing linked answers and googling a bit, that the derivative of a periodic function is periodic. But is the converse true? I wasn’t able to find information about this. This is true for $\sin$ and $\cos$, but what about more general functions?
My attempt:
Let $f'(x)$ be a nice (infinitely differentiable) periodic function with period $T$. Then, let us see if $f(x)$ has the same period
$$ f(T) = f(0) + \int_0^Tf'(x) \,\mathrm dx \\ f(2T) = f(T) + \int_T^{2T}f'(x) \,\mathrm dx $$
If we want $f(0)=f(T)=f(2T)$, we must have
$$ \int_0^{2T}f'(x) \,\mathrm dx = 0 $$
Which seems harsh and restrictive and I don’t know what to do further with this condition. So, does periodic derivative imply a periodic function?