Exercise · ZW-INTERPOLATION-ERROR-009 · ★★☆ Intermediate

For \(f(x)=\cos(x)\) with nodes \(0,\pi\) (\(n=1\)), what is the bound at \(x=\pi/2\) using \(|f''|\le 1\)?

Choose one option.

Show answer
  • C. \(\frac{\pi^2}{8}\)

Explanation

Using \(\frac{1}{2}\cdot\frac{\pi}{2}\cdot\frac{\pi}{2}=\frac{\pi^2}{8}\), which is the option with denominator 8.

Study Numerical methods in ZWMath →

Review the concept: Interpolation error

The interpolation error is the difference between \(f(x)\) and the polynomial \(P(x)\) that approximates it at the nodes \(x_0,\dots,x_n\); it depends on \(f^{(n+1)}\) and on \(\prod(x-x_i)\).

\[f(x)-P_n(x)=\frac{f^{(n+1)}(\xi)}{(n+1)!}\prod_{i=0}^{n}(x-x_i)\]

More practice problems: interpolation error

← ZW-INTERPOLATION-ERROR-008 ZW-INTERPOLATION-ERROR-010 →