EXERCISES 2.3

\(\def\ds{\displaystyle} \) 1 (a) The matrix infinity norm is the maximum of the absolute row sums, in this case the maximum of \(3\) and \(7\). So \(||A||_\infty =7\).

1 (b) The maximum of the absolute row sums is \(|1|+|-7|+|0|=8\).


3 (a) The solution of the system \[ \left[\begin{array}{ll} 1&1\\ 1.0001&1\\ \end{array}\right] \left[\begin{array}{r} x_0\\ x_1\\ \end{array}\right]= \left[\begin{array}{rr} 2\\ 2.0001\\ \end{array}\right], \] is \([1,1]\). The forward error is \(||[1,1]-[-1,3]||_\infty = 2\), and the relative forward error is \(2/1 = 2\). The backward error is the infinity norm of \[b-Ax_c= \left[\begin{array}{rr} 2\\ 2.0001\\ \end{array}\right]- \left[\begin{array}{ll} 1&1\\ 1.0001&1\\ \end{array}\right] \left[\begin{array}{rr} -1\\ 3\\ \end{array}\right]= \left[\begin{array}{rr} 0\\ 0.0002\\ \end{array}\right],\] which is \(0.0002\). The relative backward error is \(0.0002/2.0001 = 9.9995\times 10^{-5}\). The error magnification factor is the ratio of the relative forward and backward errors, or \((2/1)/(0.0002/2.0001)=20001\).

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 (a) The solution of the system \[ \left[\begin{array}{rr} 1&-2\\ 3&-4\\ \end{array}\right] \left[\begin{array}{r} x_0\\ x_1\\ \end{array}\right]= \left[\begin{array}{rr} 3\\ 7\\ \end{array}\right], \] is \([1,-1]\). The forward error is \(||[1,-1]-[-2,-4]||_\infty = 3\), and the relative forward error is \(3/||[1,-1]||_\infty=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\\ -4\\ \end{array}\right]= \left[\begin{array}{rr} -3\\ -3\\ \end{array}\right],\] and the relative backward error is is \(||[-3,-3||/||[3,7]||_\infty=3/7\). The error magnification factor is the ratio of the relative forward and backward errors, or \(3/\frac{3}{7}=7\).

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\).


7 The maximum row of the \(5\times 5\) Hilbert matrix is the top row \([1,\frac{1}{2},\frac{1}{3},\frac{1}{4},\frac{1}{5}]\), and \(||H||_\infty=1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\frac{1}{5}=\frac{137}{60}\).
9 (a) The inverse is \[ A^{-1}=\left[\begin{array}{ccc} 0&0&1\\ 1&0&0\\ 0&1&0 \end{array}\right].\] The condition number is \(||A||_\infty\cdot||A^{-1}||_\infty = 1\cdot 1 = 1.\)

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|.\)


11 (a) The three properties that define a vector norm must be checked.

(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*}


13 For a matrix \(A\), the operator norm of the vector infinity norm is \[\max\frac{||Ax||_\infty}{||x||_\infty}\] where the maximum is taken over all vectors \(x\). By property (ii) of vector norms, this is equal to the maximum \(||Ax||_\infty\), where the maximum is taken over all unit vectors \(x\) in the infinity norm, or \[\max ||Ax||_\infty = \max \{a_{00}x_0+\ldots+a_{0,n-1}x_{n-1},\ldots,a_{n-1,0}x_0+\ldots +a_{n-1,n-1}x_{n-1}\}\] where \(|x_0|,\ldots,|x_{n-1}|\leq 1\). In fact, the maximum is reached when all \(x_i\) are \(+1\) or \(-1\), where the sign of \(x_i\) is chosen to match the sign of \(a_{i0}\). Here \(i\) denotes the largest row in the sense of the infinity vector norm. Therefore \[||A||_\infty= \max_{||x||=1} ||Ax||=\max_{x} \frac{||Ax||_\infty}{||x||_\infty}. \]
15 (a) The unit vector that maximizes \(||Ax||_\infty\) is \(x=[1,1]\), so that \[Ax= \left[\begin{array}{ll} 1&2\\ 3&4\\ \end{array}\right] \left[\begin{array}{l} 1\\ 1\\ \end{array}\right]= \left[\begin{array}{l} 3\\ 7\\ \end{array}\right].\] Note that \(||x||_\infty = 1, ||Ax||_\infty=7\), and \(||A||_\infty=7\). Any scalar multiple of \(x\) will work as well.

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.


17 Applying Gaussian elimination yields the matrices \[\left[\begin{array}{ccc} 10&20&1\\ 1&1.99&6\\ 0&50&1\\ \end{array}\right]\longrightarrow \left[\begin{array}{ccc} 10&20&1\\ 0&-0.01&5.9\\ 0&50&1\\ \end{array}\right]\longrightarrow \left[\begin{array}{ccc} 10&20&1\\ 0&-0.01&5.9\\ 0&0&29501\\ \end{array}\right]\] where the last multiplier is \(l_{21}=-5000\). The LU-factorization is \[LU= \left[\begin{array}{ccc} 1&0&0\\ 0.1&1&0\\ 0&-5000&1\\ \end{array}\right] \left[\begin{array}{ccc} 10&20&1\\ 0&-0.01&5.9\\ 0&0&29501\\ \end{array}\right],\] and the largest magnitude multiplier is \(-5000\).