EXERCISES 3.3

\(\def\ds{\displaystyle} \) 1 (a) Use the formula \(x_i=\cos((2i+1)\pi/(2n))\) for \(i=0,\ldots, n-1\). Recall that this formula gives the interpolation nodes from right to left. The interpolation nodes are \[\cos\frac{11\pi}{12}, \cos\frac{9\pi}{12}, \cos\frac{7\pi}{12}, \cos\frac{5\pi}{12}, \cos\frac{3\pi}{12}, \cos\frac{\pi}{12}.\] 1 (b) The general formula for Chebyshev nodes on \([a,b]\) is \((a+b)/2+((b-a)/2)\cos(2i+1)\pi/(2n)\) for \(i=0, \ldots, n-1\). The 4 nodes on \([-2,2]\) are therefore \(2\cos(2i+1)\pi/8\) for \(i=0,\ldots, 3\) or in increasing order, \[2\cos\frac{7\pi}{8}, 2\cos\frac{5\pi}{8}, 2\cos\frac{3\pi}{8}, 2\cos\frac{\pi}{8}.\] 1 (c) Using the general formula from (b), the \(6\) nodes in \([4,12]\) are \[8+4\cos\frac{11\pi}{12},\ 8+4\cos\frac{9\pi}{12},\ 8+4\cos\frac{7\pi}{12},\ 8+4\cos\frac{5\pi}{12},\ 8+4\cos\frac{3\pi}{12},\ 8+4\cos\frac{\pi}{12}.\] 1 (d) Using the general formula from (b), the \(5\) nodes in \([-0.3,0.7]\) are \[0.2+0.5\cos\frac{9\pi}{10},\ 0.2+0.5\cos\frac{7\pi}{10},\ 0.2+0.5\cos\frac{5\pi}{10},\ 0.2+0.5\cos\frac{3\pi}{10},\ 0.2+0.5\cos\frac{\pi}{10}.\]
3 To find a degree \(5\) interpolating polynomial, we need \(n=6\) nodes. By Theorem 3.3, the interpolation error is \[e^x-Q_5(x)=\frac{(x-x_0)\cdots(x-x_5)}{6!}f^{(vi)}(c)\] where \(-1\leq c\leq1\). Using (3160), \[|e^x-Q_5(x)|\leq \frac{|f^{(vi)}(c)|}{2^5 6!}=\frac{e^c}{2^5 6!}\leq\frac{e}{2^5 6!}\approx1.1798\times10^{-4}.\] Since \(0.11798\times10^{-3}0.5\times10^{-3}\), \(Q_5(x)\) and \(e^x\) will agree to \(3\) decimal places for \(-1\leq x\leq1\).
5 To find a degree \(3\) interpolating polynomial \(P_3(x)\), \(n=4\) nodes are needed. By Theorem 3.3 and (3.16), \[|\sin x-P_3(x)|=\frac{(x-x_0)(x-x_1)(x-x_2)(x-x_3)}{4!}|f^{(iv)}(c)|\leq\frac{1}{2^3 4!}\approx0.0052.\]
7 (a)\[|e^{1/2} - P_5(1)| = \frac{|(1-0)(1-0.4)(1-0.8)(1-1.2)(1-1.6)(1-2)|2^{-6}e^{c/2}}{6!}, \] for some \(c \) in \([0,2]\), which is bounded above by \[ \frac{(1)(0.6)(0.2)(0.2)(0.6)(1)e^1}{2^66!} \approx 8.49\times 10^{-7}. \] Here we are using the fact that \(e^{x/2}\) is an increasing function on \([0,2]\), so that the largest possible value of \(f(c)\) occurs at \(c = 2\).

7 (b) \[|e^{0.2/2} - P_5(0.2)| = \frac{|(0.2-0)(0.2-0.4)(0.2-0.8)(0.2-1.2)(0.2-1.6)(0.2-2)|2^{-6}e^{c/2}}{6!}, \] for some \(c \) in \([0,2]\), which is bounded above by \[ \frac{(0.2)(0.2)(0.6)(1)(1.4)(1.8)e^1}{2^66!} \approx 3.57\times 10^{-6}. \]

7 (c) \[|e^{x/2} - P_5(x)| \leq \frac{((2-0)/2)^62^{-6}e^{c/2}}{2^56!}, \] for some \(c \) in \([0,2]\), which is bounded above by \[ \frac{e^{2/2}}{2^{11}6!} \approx 1.84\times 10^{-6}. \]


9 To get \(6\) correct digits we want to control the interpolation error to less than \(0.5\times10^{-6}\). Using Theorem 3.3 and (3.16), the error for the degree \(d\) interpolation polynomial is \[|\ln x-P_d(x)|=\frac{|(x-x_0)\cdots(x-x_{d})|}{(d+1)!}|f^{(d+1)}(c)|\leq \frac{{(\frac{e-1}{2})}^{d+1}}{2^d(d+1)!}d!c^{-d-1}\leq \frac{{(e-1)}^{d+1}}{2^{2d+1}(d+1)}\] where \(1\leq c\leq e\). This expression is less than \(0.5\times10^{-6}\) when \(d=14\).
11 (a) Using the recursion relation (3.15) with \(x=-1\), we find \(T_{n+1}(-1)=-2T_n(-1)-T_{n-1}(-1)\). Since \(T_0(-1)=1\) and \(T_1(-1)=-1\), this implies \(T_2(-1)=1\), \(T_3(-1)=-1\), \(T_4(-1)=1\), and in general \(T_n(-1)=(-1)^n\). Therefore \(T_{999}(-1)=-1\).

11 (b) \(T_{1000}(-1)=1\), from the discussion in (a).

11 (c) Using (3.15), \(T_{n+1}(0)=-T_{n-1}(0)\). We know \(T_0(0)=1\) and \(T_1(0)=0\), so \(T_n(0)=0\) for \(n\) odd, \(T_n(0)=1\) if \(4\) divides evenly into \(n\), and \(T_n(0)=-1\) if \(n\) is even and not a multiple of \(4\). Therefore \(T_{999}(0)=0\).

9 (d) \(T_{1000}(0)=1\), from the discussion in (c).

9 (e) Using (3.15), \(T_{n+1}(-\frac{1}{2})=-T_n(-\frac{1}{2})-T_{n-1}(-\frac{1}{2})\), and \(T_0(-\frac{1}{2})=1\), \(T_1(-\frac{1}{2})=-\frac{1}{2}\). Note that \(T_2(-\frac{1}{2})=-\frac{1}{2}\), \(T_3(-\frac{1}{2})=1\), \(T_4(-\frac{1}{2})=-\frac{1}{2}\), \(T_5(-\frac{1}{2})=-\frac{1}{2}\) establishes the pattern: \(T_n(-\frac{1}{2})=1\) if \(3\) divides \(n\) evenly and \(T_n(-\frac{1}{2})=-\frac{1}{2}\) otherwise. Thus \(T_{999}(-\frac{1}{2})=1\).

9 (f) \(T_{1000}(-\frac{1}{2})=-\frac{1}{2}\), from the discussion in (e).