For each center \(c\in\left[0, \frac{\pi}{2}\right]\), let \(P_{2,c}\) be the degree-\(2\) Taylor polynomial for \(\sin x\) centered at \(c\).
a) Show that, for every \(x\in\left[0, \frac{\pi}{2}\right]\),
\( |\sin x-P_{2,c}(x)|\leq\frac{\left[\max\left(c,\frac{\pi}{2}-c\right)\right]^3}{6}\).
b) Choose the center that makes this guarantee as small as possible.
c) Write the corresponding Taylor polynomial and decide whether the bound guarantees an error below \(0.081\) throughout the interval.
Hints
- Use \(M=1\) for the third derivative on the whole interval.
- The worst-case distance from the center occurs at an endpoint.
- Balance the two endpoint distances before constructing the polynomial.
Solution
1. The third derivative of \(\sin x\) is \(-\cos x\), and \(|-\cos x|\leq1\) on the interval. The Lagrange bound is therefore
\( |R_2(x)|\leq\frac{|x-c|^3}{3!}\).
2. The farthest point in \(\left[0, \frac{\pi}{2}\right]\) from \(c\) is one of the endpoints. Thus
\( |x-c|\leq\max\left(c,\frac{\pi}{2}-c\right)\),
which proves the stated uniform bound.
3. The larger endpoint distance is smallest when the two endpoint distances are equal:
\( c=\frac{\pi}{2}-c\).
Hence the best center is \(c=\frac{\pi}{4}\).
4. The minimum guaranteed error is
\( \frac{\left(\frac{\pi}{4}\right)^3}{6}=\frac{\pi^3}{384}\approx0.08075\).
5. Since \(\sin\left(\frac{\pi}{4}\right)=\cos\left(\frac{\pi}{4}\right)=\frac{\sqrt2}{2}\),
\( P_{2,\frac{\pi}{4}}(x)=\frac{\sqrt2}{2}+\frac{\sqrt2}{2}\left(x-\frac{\pi}{4}\right)-\frac{\sqrt2}{4}\left(x-\frac{\pi}{4}\right)^2\).
6. Because \(0.08075<0.081\), this bound guarantees error below \(0.081\) throughout the interval.
Answer
a) \( |\sin x-P_{2,c}(x)|\leq\frac{\left[\max\left(c,\frac{\pi}{2}-c\right)\right]^3}{6}\).
b) \( c=\frac{\pi}{4}\); minimum bound \( \frac{\pi^3}{384}\approx0.08075\).
c) \( P_{2,\frac{\pi}{4}}(x)=\frac{\sqrt2}{2}+\frac{\sqrt2}{2}\left(x-\frac{\pi}{4}\right)-\frac{\sqrt2}{4}\left(x-\frac{\pi}{4}\right)^2\). Yes, the error is guaranteed to be below \(0.081\).