If $f'$ is known to be analytic, does it mean that $f$ is analytic as well?
I've tried to expand $f$ and then to replace the tail of it by the expansion of $f'$, yet the factorials don't add up. I also tried to start with the known-to-converge expansion of $f'$ yet it was unclear how to move to $f$ (I didn't have integration yet).
If the statement isn't true then how does one prove, for example, that $f(x)=-\log\cos(x)$ is analytic in zero by using the fact that its derivative $\tan(x) = \sum_{n=1}^\infty (-1)^{n-1} 2^{2n}(2^{2n}-1) B_{2n}x^{2n-1}/(2n)!$ is analytic in zero?