Derivation (Cauchy and Lagrange remainder from integral form)

Apply the mean value theorem for integrals: $$ \begin{align*} R_n(a+h) &= \frac{h^n}{(n-1)!} \int_{0}^{1} \ub{1}_{\tilde g}\times \ub{(1-t)^{n-1} f^{(n)}(a+th)}_{\tilde f}\, dt \\ &= \frac{h^n}{(n-1)!}(1-\theta)^{n-1} f^{(n)}(a+\theta h)\,dt \end{align*} $$ which is the Cauchy remainder.

Alternatively $$ \begin{align*} R_n(a+h) &= \frac{h^n}{(n-1)!} \int_{0}^{1} \ub{(1-t)^{n-1}}_{\tilde g}\ \ub{f^{(n)}(a+th)}_{\tilde f}\, dt \\ &= \frac{h^n}{(n-1)!} f^{(n)}(a+\theta h) \int_{0}^{1} (1-t)^{n-1}\, dt \\ &= \frac{h^n}{n!} f^{(n)}(a+\theta h) \end{align*} $$ which is the Lagrange remainder.