Suppose f has n+1 continuous derivatives on an interval containing a and x. If
Pn(x)=k=0∑nk!f(k)(a)(x−a)k,
then
f(x)=Pn(x)+Rn+1(x),
where the integral remainder is
Rn+1(x)=n!1∫axf(n+1)(t)(x−t)ndt.
For x=a, there is also a point c between a and x for which the Lagrange remainder is
Rn+1(x)=(n+1)!f(n+1)(c)(x−a)n+1.
The integral form accumulates the first omitted derivative. The Lagrange form replaces the
integral by one unknown derivative value. If
∣f(n+1)(t)∣≤M
throughout the interval between a and x, then
∣f(x)−Pn(x)∣=∣Rn+1(x)∣≤(n+1)!M∣x−a∣n+1.
The bound depends on the distance ∣x−a∣ from the centre and the size of the first omitted
derivative. The factorial often dominates the numerator for large n, but this must be
checked for the interval and degree in use.
if k is odd, the leading term changes sign across a, giving a horizontal point of
inflection.
Here O(∣x−a∣k+1) means an error bounded by a constant times
∣x−a∣k+1 near a and o(∣x−a∣k) means an error whose ratio to ∣x−a∣k
tends to zero.
The test requires k≥2, a genuinely first nonzero derivative and enough continuity
to ensure that the remainder is o(∣x−a∣k). If all derivatives examined vanish,
those terms give no classification.