1 (b) The maximum of the absolute row sums is \(|1|+|-7|+|0|=8\).
3 (b) The relative forward error is \(||[1,1]-[0,2]||_\infty/1=1\). The backward error is the infinity norm of \[b-Ax_c= \left[\begin{array}{rr} 2\\ 2.0001\\ \end{array}\right]- \left[\begin{array}{rr} 2\\ 2\\ \end{array}\right]= \left[\begin{array}{rr} 0\\ 0.0001\\ \end{array}\right],\] which is \(0.0001\), divided by 2.0001, which is \(4.99975\times 10^{-5}\). The error magnification factor is the ratio of the relative forward and backward errors, or \((1/1)/(0.0001/2.0001)=20001\).
3 (c) The calculation is similar to (a) and (b). The relative forward error is \(||[1,1]-[2,2]||_\infty/1=1\), the backward error is \(||[-2,-2.0001]||_\infty/2.0001=2.0001/2.0001 = 1\), and the error magnification factor is \((1/1)/(2.0001/2.0001)=1\).
3 (d) The relative orward error is \(||[1,1]-[-2,4]||_\infty/1=3\), the backward error is \(||[0,0.0003]||_\infty/2.0001=0.0003/2.0001 = 1.4999925\times 10^{-4}\), and the error magnification factor is \((3/1)/(0.0003/2.0001)=20001\).
3 (e) The relative orward error is \(||[1,1]-[-2,4.0001]||_\infty/1=3.0001\), the backward error is \(||[0.0001,0.0002]||_\infty/2.0001=0.0002/2.0001 = \(9.9995\times 10^{-5}\), and the error magnification factor is \((3.0001/1)/(0.0002/2.0001)=30002.5\).
5 (b) The forward error is \(||[1,-1]-[-2,-3]||_\infty = 3\), and the relative forward error is \(3/1=3\). The backward error is the infinity norm of \[b-Ax_c= \left[\begin{array}{rr} 3\\ 7\\ \end{array}\right]- \left[\begin{array}{ll} 1&-2\\ 3&-4\\ \end{array}\right] \left[\begin{array}{rr} -2\\ -3\\ \end{array}\right]= \left[\begin{array}{r} -1\\ 1\\ \end{array}\right],\] and the relative backward error is is \(||[-1,1||_\infty/7=1/7\). The error magnification factor is the ratio \(3/\frac{1}{7}=21\).
5 (c) The forward error is \(||[1,-1]-[0,-2]||_\infty = 1\), and the relative forward error is \(1/1=1\). The backward error is the infinity norm of \([-1,-1]\), and the relative backward error is is \(1/7\). The error magnification factor is the ratio of the relative forward and backward errors, or \(1/\frac{1}{7}=7\).
5 (d) The forward error is \(||[1,-1]-[-1,-1]||_\infty = 2\), and the relative forward error is \(2/1=2\). The backward error is \(||[3,7]-[1,1]||_\infty = 6\), and the relative backward error is is \(6/7\). The error magnification factor is \(2/\frac{6}{7}=7/3\).
5 (e) The inverse matrix is \[A^{-1}= \left[\begin{array}{ll} -2&1\\ -\frac{3}{2}&\frac{1}{2}\\ \end{array}\right]. \] The condition number of \(A\) is \(||A||_\infty\cdot||A^{-1}||_\infty = 7\cdot3=21\).
9 (b) The inverse \(D^{-1}\) is a diagonal matrix with entries \(d_0^{-1},\ldots,d_{n-1}^{-1}.\) The condition number is \(||D||_\infty\cdot||D^{-1}||_\infty = \max |d_i| \cdot \max 1/|d_i| = \max |d_i| / \min |d_i|.\)
(i) \(||x||_\infty\geq 0\) is guaranteed by the definition \(||x||_\infty = \max|x_i|\), and if \(||x||_\infty=0\), then all components \(x_i\) must be zero.
(ii) For a scalar \(\alpha\), \begin{align*} ||\alpha x||_\infty &= \max\{|\alpha x_1|,\ldots,|\alpha x_n|\}\\ &=\max\{|\alpha||x_1|,\ldots,|\alpha||x_n|\}\\ &=|\alpha|\max\{|x_1|,\ldots,|x_n|\}\\ &= |\alpha|\cdot||x||_\infty. \end{align*}
(iii) \begin{align*} ||x+y||_\infty&= \max \{|x_1+y_1|,\ldots,|x_n+y_n|\}\\ &\leq \max\{|x_1|+|y_1|,\ldots,|x_n|+|y_n|\}\\ &\leq \max\{|x_1|,\ldots,|x_n|\}+\max\{|y_1|,\ldots,|y_n|\}\\ &= ||x||_\infty+||y||_\infty \end{align*} 11 (b) The three properties:
(i) \(||x||_1\geq 0\) is guaranteed by the definition \(||x||_1=|x_0|+\ldots+|x_{n-1}|\), and if \(||x||_1=0\), all components \(x_i\) must be zero.
(ii) For a scalar \(\alpha\), \begin{align*} ||\alpha x||_1 &= |\alpha x_0|+\ldots+|\alpha x_{n-1}|\\ &= |\alpha|(|x_0|+\ldots+|x_{n-1}|)\\ &= |\alpha|\cdot||x||_1 \end{align*} (iii) The triangle inequality is \begin{align*} ||x+y||_1&= |x_0+y_0|+\ldots+|x_{n-1}+y_{n-1}|\\ &\leq |x_0|+|y_0|+\ldots+|x_{n-1}|+|y_{n-1}|\\ &= ||x||_1+||y||_1 \end{align*}
15 (b) The unit vector that maximizes \(||Ax||_\infty\) is \(x=[1,-1,1]\). The signs are chosen to maximize row 3 of \(Ax\). Since \[Ax= \left[\begin{array}{rrr} 1&5&1\\ -1&2&-3\\ 1&-7&0\\ \end{array}\right] \left[\begin{array}{r} 1\\ -1\\ 1\\ \end{array}\right]= \left[\begin{array}{r} -3\\ -6\\ 8\\ \end{array}\right],\] we have \(||x||_\infty=1, ||Ax||_\infty=8\), and \(||A||_\infty = 8\). Any scalar multiple of \(x\) will also work.