Proof (stronger Taylor theorem)
Let us expand around $x=0$. $$\begin{align*} f(x) &= f(0) + \int_0^x f'(t)\,dt &&\text{fundamental theorem of calculus} \\ &= f(0) - \int_0^x f'(t)\,d(x-t) \\ &= f(0) - \big[(x-t)f'(t)\big]_0^x +\int_0^x(x-t)f''(t)\,dt &&\text{integration by parts}\\ &= f(0) + f'(0)x - \frac12\int_0^xf''(t)\,d(x-t)^2 \\ &= f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 +\frac1{2!}\int_0^x (x-t)^2f^{(3)}(t)\,dt &&\text{integration by parts}\\ &= f(0) + f^{(1)}(0)x + \frac{f^{(2)}(0)}{2!}x^2 +\frac{f^{(3)}(0)}{3!}x^3 + \frac1{3!}\int_0^x(x-t)^3f^{(4)}(t)\,dt \\ &= \ldots \\ &= \sum_{k=0}^n \frac{f^{(k)}(0)}{k!}x^k + \underbrace{\frac1{n!}\int_0^x (x-t)^nf^{(n+1)}(t)\,dt}_{E_n} \end{align*}$$
Using a variant of the mean value theorem, this can be written as $$\begin{align*} E_n &= \frac{f^{(n+1)}(x_n)}{n!}\int_0^x(x-t)^n\,dt \\ &= \frac{f^{(n+1)}(x_n)}{(n+1)!}x^{n+1}. \end{align*}$$