Let $D=\operatorname{diag}\left(d_1, \ldots, d_n\right)$ be an $n \times n$ diagonal matrix with each diagonal entry $d_i \neq 0$.
(a) Show that $\|D\|=\max _{1 \leq i<-n}\left|d_i\right|$.
(b) Let $\|\cdot\|$ be the $\ell_2$ vector norm (2.22). Show that $\|\cdot\|_D$ defined by
$$
\|\mathbf{x}\|_D=\|D \mathbf{x}\|
$$
satisfies the conditions (2.24) so that it is also a vector norm.