Taylor's Formula - Peano and Lagrange Remainders
In questa pagina 5
Prerequisites: Derivatives - Definition and Differentiation RulesThe derivative is the limit of the difference quotient and gives the slope of the tangent line; differentiable implies continuous but not conversely; the notes collect the derivatives of elementary functions, the rules (linearity, product, quotient, chain rule, inverse function, f^g) and higher-order derivatives with the classes C^n.Derivatives - Definition and Differentiation Rules → (including higher derivatives), little-o and asymptotic notation, L'Hopital's Rule and the Limit of the DerivativeFor a 0/0 form or a quotient whose denominator tends to infinity, if the limit of f'/g' exists then the limit of f/g exists and is the same; it holds for one-sided limits and limits at infinity, while if f'/g' has no limit nothing can be concluded. It is also used to study differentiability at a point (theorem on the limit of the derivative) and to define the classes C^0 and C^1.L'Hopital's Rule and the Limit of the Derivative →, Rolle's and Lagrange's TheoremsRolle: f continuous on [a,b], differentiable in ]a,b[, f(a) = f(b) implies f'(c) = 0 for some c; Lagrange (mean value theorem): without f(a) = f(b), f'(c) equals the slope of the chord. Consequence: on an interval f is constant if and only if f' = 0, while on a non-interval set f is only piecewise constant (arctan x + arctan(1/x)).Rolle's and Lagrange's Theorems →. Table of ready-made expansions: Maclaurin Series of the Elementary Functions and ApplicationsTable of the Maclaurin expansions to know by heart (exponential, sine, cosine, log(1+x), (1+x)^alpha, arctangent, hyperbolic functions, tangent) and rules for combining them: algebra of little-o, sums, products, compositions, expansions at infinity, and how many terms to keep in a limit.Maclaurin Series of the Elementary Functions and Applications →.
The question
Given differentiable times at , is there a polynomial of degree with Polynomials are the easiest functions to handle, so replacing by one simplifies many computations. For we already know: differentiable at iff , the tangent line. Taylor's formula uses higher degree polynomials, which approximate better.
Motivating example:
- : .
- : , so : the term is absent (its coefficient is ).
- : , hence and the coefficient is .
The pattern: the coefficient of is .
Taylor's formula with Peano remainder
Theorem (Maclaurin, Peano remainder). If is differentiable times at , there is one and only one polynomial of degree with namely
Example. All derivatives of at equal : . Check: , , error about , far less than .
Names: is the Taylor polynomial of order (Maclaurin polynomial at ); is the Peano remainder, which says only that the error is negligible relative to , not how large it is. is also the only polynomial of degree with for .
Proof (by induction on )
: characterisation of differentiability.
: L'Hopital is allowed because exists, so and are differentiable (hence continuous) at : numerator and denominator tend to . The last limit is the difference quotient of , which tends to . Therefore .
: one more step, using that are continuous at :
Inductive step: applying L'Hopital times, , so .
Uniqueness
Let with . Differentiating times leaves ; lower-degree terms vanish (differentiated too often), higher-degree terms still contain and are at . So , hence : the coefficients are forced, .
Fundamental practical consequence. If by any means (even without differentiating) one writes , then it is the Taylor polynomial and . This is why expansions are built by combining known ones, and why derivatives can be read off coefficients: .
in detail
The derivatives repeat with period four: at . Even derivatives vanish; odd derivatives are for : The next coefficient (degree ) is , so the error is in fact : e.g. . Odd functions have only odd powers; even functions (like ) only even powers.
Taylor's formula at a point
Theorem. If is differentiable times at , there is one and only one polynomial of degree with as , and
Example. at , order : , , , so .
Warning. Taylor polynomials at different points are independent.
Example: at , order 3. , , , at equal : Typical error: replacing with in the expansion at gives the expansion of , a different function.
Uses. (1) Limits: without L'Hopital. (2) Order of an infinitesimal: the first non-zero term of the expansion gives the power it is asymptotic to. (3) High-order derivatives at a point from the coefficients.
The Peano remainder is a local approximation with no numerical estimate; for the error on a whole interval, use the Lagrange remainder.
Taylor's formula with Lagrange remainder
Peano says the error is negligible near ; Lagrange gives a formula for the error, allowing a numerical bound on a whole interval (a global approximation).
Theorem (Lagrange remainder). Let and . For every there is between and such that
Example. , , : with between and . For the error is at most .
The Lagrange remainder looks like the next Taylor term, but the -th derivative is evaluated at an unknown point (depending on ). For it is , the mean value theorem: the formula generalises Rolle's and Lagrange's TheoremsRolle: f continuous on [a,b], differentiable in ]a,b[, f(a) = f(b) implies f'(c) = 0 for some c; Lagrange (mean value theorem): without f(a) = f(b), f'(c) equals the slope of the chord. Consequence: on an interval f is constant if and only if f' = 0, while on a non-interval set f is only piecewise constant (arctan x + arctan(1/x)).Rolle's and Lagrange's Theorems →.
We never know , but we know : if can be bounded on , we get a bound on the error valid for every .
Global approximation
Let with for all and all . Then, since , The bound does not depend on and tends to as (a factorial grows faster than any exponential). So for every there is such that for , for all simultaneously. Examples: has ; on has .
Method: degree guaranteeing error
- Write the Lagrange formula at a convenient (usually ).
- Bound for in the interval and for in the interval.
- Get independent of .
- Find the smallest with by trying
Example: on with error : the error is (using ); for this is , so suffices.
Peano or Lagrange?
| Peano | Lagrange | |
|---|---|---|
| Hypothesis | differentiable times at | |
| Error | , value unknown | |
| Validity | only (local) | all (global) |
| Used for | limits, orders of infinitesimals, derivatives at a point | numerical error bounds |
Common mistakes
- Forgetting : is false; it is true only with .
- Stopping at the wrong order: expand until the first non-cancelling term appears.
- Using the expansion at when .
- Confusing with derivatives computed at : derivatives are computed at .
- Evaluating the Lagrange remainder's derivative at instead of bounding it on the interval; bounding by its value at one point instead of the maximum (, : maximum , not ); forgetting the exponent and the factor .
Versione ripasso
Peano. If is times differentiable at , there is a unique polynomial of degree with :
- Unique polynomial with ; if by any means, then , i.e. .
- ; (odd functions have odd powers only).
- at , order 2: .
Proof sketch. : (allowed since are continuous at ); repeat L'Hopital times to get . Uniqueness: differentiating times gives at .
Uses. Limits (), order of infinitesimals, derivatives at a point. Local only.
Lagrange. , : for each there is between and with
- is the mean value theorem. is unknown but lies in .
- If on : , uniformly in .
- Method: bound by its maximum on the interval and by , get , find the smallest with . Example: on , error , .
| Peano | Lagrange | |
|---|---|---|
| Hypothesis | times differentiable at | |
| Error | ||
| Validity | local | global |
Typical mistakes. Missing ; wrong order; expansion at for ; derivative of the remainder at instead of its maximum; wrong exponent or factorial.