Let $\displaystyle \sum_{n=2}^\infty a_nx^n$ be a power series with radius of convergence $R>0$ prove, $\displaystyle \int_0^x \left (\sum_{n=0}^\infty a_nt^n \right ) \ dt = \sum_{n=0}^\infty a_n \dfrac{x^{n+1}}{n+1} $
The question gives a hint to use the mean value theorem, I have given it an attempt,
define $f(x) = \displaystyle \sum_{n=0}^\infty a_nx^n$,
$g(x) = \displaystyle \int_0^x f(t) \ dt - \sum_{n=0}^\infty a_n \dfrac{x^{n+1}}{n+1}$ then the derivative $g'(x) = 0$, so $g(x)$ is constant,
how would I use the mean value theorem from here? I suppose I could say there exists a point $c \in (-R,R)$ s.t. $g'(c) = \dfrac{g(-R) - g(R)}{-2R} = 0$ but what information does that give me?