拉格朗日误差范围

Before this, know(泰勒)多项式近似

Interactive · 1 question

Suppose that we have a function and its nnth order Taylor approximation. We wish to know how well the Taylor approximation approximates the value of the function. The Lagrange Error Bound provides a simple and powerful bound on the error of the Taylor approximation.

The Lagrange Error Bound is as follows:

Let ff be a function that is continuous and has all of its derivatives also continuous. Let Pn(x)P_n(x) be the nnth order Taylor approximation of f(x)f(x) centered at aa, and let the error function be En(x)=f(x)−Pn(x)E_n(x)=f(x)-P_n(x). Then: ∣En(x)∣≤M(n+1)!∣x−a∣n+1|E_n(x)|\le \frac{M}{(n+1)!}|x-a|^{n+1} where MM is a value such that ∣f(n+1)(x)∣≤M|f^{(n+1)}(x)|\le M on the interval between aa and xx.

Note that the absolute value signs are necessary to force everything to be positive, since the signs generally do not behave as nicely as we would wish them to. However, since we usually just care about how close our estimate is to the real value of the function and not whether our estimate is too high or too low, this theorem is very useful.

It turns out that the proof is actually quite simple! All you need to do is take the inequality, true on the interval between aa and xx: ∣En(n+1)(x)∣≤M|E_n^{(n+1)}(x)|\le M Then, you just integrate it (n+1)(n+1) times, using the fact that En(k)(a)=0E^{(k)}_n(a)=0 for all 0≤k≤n0\le k\le n: ∫ax∣En(n+1)(x)∣dx≤∫axMdx\int_{a}^{x}|E_n^{(n+1)}(x)|dx\le\int_{a}^{x}Mdx ∣En(n)(x)∣≤M∣x−a∣|E_n^{(n)}(x)|\le M|x-a| ∫ax∣En(n)(x)∣dx≤∫axM∣x−a∣dx\int_{a}^{x}|E_n^{(n)}(x)|dx\le\int_{a}^{x}M|x-a|dx ∣En(n−1)(x)∣≤M2∣x−a∣2|E_n^{(n-1)}(x)|\le \frac{M}{2}|x-a|^2 ...... ∫ax∣En′(x)∣dx≤∫axMn!∣x−a∣ndx\int_{a}^{x}|E'_n(x)|dx\le\int_{a}^{x}\frac{M}{n!}|x-a|^{n}dx ∣En(x)∣≤M(n+1)!∣x−a∣n+1|E_n(x)|\le \frac{M}{(n+1)!}|x-a|^{n+1} This is exactly what we wanted, so we are done.

That formula may be a little bit tough to digest, but it is actually quite intuitive. Let us reason intuitively as to why the above error bound holds.

Note that the Taylor approximation has been engineered so that: Pn(a)=f(a)P_n(a)=f(a) Pn′(a)=f′(a)P'_n(a)=f'(a) Pn′′(a)=f′′(a)P''_n(a)=f''(a) ...... Pn(n)(a)=f(n)(a)P^{(n)}_n(a)=f^{(n)}(a) Therefore, En(k)(a)=0E^{(k)}_n(a)=0 for all 0≤k≤n0\le k\le n. This means that the first derivative that could be nonzero is the (n+1)(n+1)th order derivative. However, there is actually a very simple function that also has this property!

Do you know which one it is?

Choose all correct answers

Read · 1 min

Overview of Lagrange error bound

If Tn(x)T_n(x) is the degree nn Taylor approximation of f(x)f(x) at x=ax=a, then the Lagrange error bound provides an upper bound for the error Rn(x)=f(x)−Tn(x)R_n(x) = f(x) - T_n(x) for xx close to aa. Namely, if ∣f(n+1)(x)∣≤M|f^{(n+1)}(x)| \le M on an interval I=(a−R,a+R)I = (a-R,a+R) centered at aa, for some radius R>0R>0, then ∣Rn(x)∣≤M∣x−a∣n+1(n+1)!≤MRn+1(n+1)!|R_n(x)| \le M\frac{|x-a|^{n+1}}{(n+1)!} \le M\frac{R^{n+1}}{(n+1)!} for all xx in the interval. This will be useful soon for determining where a function equals its Taylor series. (If you're curious about the proof of the Lagrange error bound, there are basically two common ways to prove it: the Lagrange mean-value form of the remainder, or the integral form of the remainder.)

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems