How can I find the (infirmity norm) condition number of the following matrix? $$A =\begin{bmatrix}1 & 2 \\2&4.001\end{bmatrix}$$
Looking for some guidance on how to solve this problem, thanks!
How can I find the (infirmity norm) condition number of the following matrix? $$A =\begin{bmatrix}1 & 2 \\2&4.001\end{bmatrix}$$
Looking for some guidance on how to solve this problem, thanks!
I am assuming that means infinity norm
$$ A = \begin{bmatrix} 1 & 2 \\ 2 & 4.001 \end{bmatrix} \tag{1} $$
$$ \| A\|_{\infty} = \max_{1 \leq i \leq m } \| a_{i}^{*} \|_{1} \tag{2} $$
the $\infty $ norm is equal to the max row sum. So $a_{i}^{*}$ denotes the $ith$ row
then we have
$$ \|a_{1}^{*}|| = 3 \\ \| a_{2}^{*}|| = 6.001 $$
$$ \|A\|_{\infty} = 6.001 \tag{3}$$
This is an example matrix of an ill-conditioned matrix apparently
If we create a slight perturbation it is massively ill-conditioned.
Note that
$$ \kappa(A) = \| A \| \| A^{-1}\| \tag{4} $$
using the $\infty $ norm
we take the inverse
$$ A^{-1} = \frac{1}{4.001-4.00}\begin{bmatrix} 4.001 & -2 \\ -2 & 1 \end{bmatrix} \tag{5} $$ $$ A^{-1} = \frac{1}{0.001}\begin{bmatrix} 4.001 & -2 \\ -2 & 1 \end{bmatrix} \tag{6} $$
if you see here where the problem is where you invert the matrix $$ A^{-1} = \begin{bmatrix} 4001.000 & -2000 \\ -2000 & 1000 \end{bmatrix} \tag{7} $$
then we take $\infty$ norm
$$ \kappa(A) = 6.001 \cdot 6001 \approx 36000 \tag{6}$$
Note that
$$\|A^{-1}\|_{\infty} = 6001 \tag{7}$$
because it has max absolute value
See here
Eigenvalues
$$ det(A - \lambda I ) = det \bigg( \begin{bmatrix} 1 - \lambda & 2 \\ 2 & 4.00-\lambda+\epsilon \end{bmatrix} \bigg) \tag{8}$$
$$ det(A - \lambda I ) = (1-\lambda)(4.00-\lambda+\epsilon) -4 \tag{9}$$
$$ det(A - \lambda I ) = \lambda^{2} -5\lambda + \epsilon - \epsilon \lambda \tag{10}$$
Can you continue from there? I was on this path because
$$ \kappa(A) = \frac{\lambda_{max}(A)}{\lambda_{min}(A)} \tag{11} $$
there are only two eigenvalues..this isn't exactly for the $\infty$ norm
If $\epsilon =0$
$$ det(A - \lambda I ) = \lambda^{2} -5\lambda \implies \lambda_{1} =5 \lambda_{2} =0 \tag{12}$$
what is that ratio.
On Ill-Conditioning
Ill-Conditioning is most understood perhaps when you have an algorithm that isn't backwards stable like classical gram Schmidt.
if I take $Ax=b$ and solve $QRx=b$ and find the relative error $\frac{\| \hat{x} -x\|}{\|x\|} $ when you do $Rx = Q^{-1}b $
the closer $\epsilon $ is to $0$ the worse this error is because the more ill-conditioned we are. We are losing more precision.
See if I make $\mu = 1e-10$
I get massive error, my $\hat{x}$ comes out like this
it is supposed to be
so my error is