for taylor theorem, to find the remainder term, do you use:

R (n+1) = (1/N!) integrate ( F^(N+1) (y) (x-y) ^ N dy

or

Lagrange’s form of the
remainder term.

what is the difference between the two and when are both used? im confused with the both of them.

thanks!