next up previous contents index
Next: The reduction to unreduced Up: Theoretical results for -algorithms Previous: Unreduced Hessenberg-like matrices   Contents   Index

A $ QR$-step maintains the Hessenberg-like structure

In this section we will prove that a $ QR$-step applied to a Hessenberg-like matrix is again a Hessenberg-like matrix. Mathematically spoken this means that for a Hessenberg-like matrix $ Z$, with $ \kappa $ a shift and

$\displaystyle Z-\kappa I = QR$      

the $ QR$-decomposition of $ Z-\kappa I$ (with the $ QR$-decomposition as described in Section 7.1), the matrix $ \tilde{Z}$ satisfying
$\displaystyle \tilde{Z}$ $\displaystyle =$ $\displaystyle RQ +\kappa I$  

is again a Hessenberg-like matrix. Because we want to place this in a general framework, we derive a theorem proving this, without putting any constraints on the Hessenberg-like matrix. However, we do need to place demands on the type of $ QR$-factorization used. This is illustrated by the following example for Hessenberg matrices.

Example 26   For Hessenberg matrices, the type of $ QR$-factorization is important to prove that the Hessenberg structure is maintained under one step of the $ QR$-algorithm, as the example will show. Suppose we have a Hessenberg matrix of the following form:

% latex2html id marker 35924
$\displaystyle H=\left( \begin{array}{ccccc} \times...
...& 0 & 0 & \times & \times \\  0 & 0 & 0 & \otimes & \times \end{array} \right).$ (7.1)

We perform a sequence of Givens transformations on the Hessenberg matrix such that it becomes upper triangular $ G_2^T G_1^T
H =R$, for which $ G_1$ and $ G_2$ are Givens transformations and $ R$ is an upper triangular matrix. In fact only the two elements marked with $ \otimes$ in matrix (7.1) need to be annihilated. Therefore $ G_1^T $ performs a Givens transformation on rows $ 3$ and $ 5$ to annihilate the element in position $ (5,4)$ and $ G_2^T $ annihilates the element in position $ (2,1)$ by performing a Givens transformation on the first and second row. We can calculate now the matrix $ R G_1 G_2$. This corresponds to performing one step of $ QR$ without shift to the Hessenberg matrix $ H$. The matrix $ R G_1 G_2$ is of the following form:

% latex2html id marker 35956
$\displaystyle R G_1 G_2=\left( \begin{array}{ccccc...
...& \times & \times & \times \\  0 & 0 & \times & 0 & \times \end{array} \right).$    

One can clearly see that the resulting matrix is not Hessenberg anymore. Therefore some assumptions have to be placed on the type of $ QR$-factorization such that the resulting matrix after a step of the $ QR$-algorithm is again Hessenberg. The $ QR$-factorization presented in [91], consists of annihilating all the subdiagonal elements by a Givens transformation on the subdiagonal element and the diagonal element above it. When we use this type of $ QR$-factorization to compute the $ QR$-steps, we will always have again a Hessenberg matrix.

The type of $ QR$-factorization we will use to compute the decomposition for Hessenberg-like matrices, is the one as presented in Section 7.1 of this chapter. The $ Q$ factor of the $ QR$-decomposition consists of two sequences of $ n-1$ Givens transformations, let us define $ Q_1=G_1 \ldots G_{n-1}$ and $ Q_2=G_{n} \ldots G_{2n-2}$. This means that the $ QR$-decomposition of a Hessenberg-like matrix minus a shift matrix has the following form:

$\displaystyle Q_2^T Q_1^T(Z-\kappa I)$ $\displaystyle =$ $\displaystyle R$  

leading to
$\displaystyle (Z-\kappa I)$ $\displaystyle =$ $\displaystyle Q_1Q_2R.$  

Completing the step of the $ QR$-algorithm leads to the following equations
$\displaystyle \tilde{Z}$ $\displaystyle =$ $\displaystyle R Q_1 Q_2 + \kappa I$  
  $\displaystyle =$ $\displaystyle Q_2^T Q_1^T ZQ_1 Q_2.$  

Note 8   If the matrix $ R$ is invertible, which is not always the case, then we have also the following equation:

$\displaystyle \tilde{Z}=RZR^{-1}.$    

Using this equation one can easily prove that the Hessenberg-like structure is maintained. (See [19]). Moreover if the matrix $ Z$ is invertible, one can directly switch, via inversion, to the Hessenberg case, which provides us with another easy proof for maintaining the Hessenberg-like structure.

In the remaining part of this section we will first prove that the Hessenberg-like structure is maintained when a step of $ QR$ without shift is performed. Then we will prove theorems for $ QR$ with shift applied on matrices having weakly lower triangular rank $ 1$, Hessenberg-like matrices and finally for Hessenberg-like plus diagonal matrices.

Theorem 61   Suppose we have a Hessenberg-like matrix $ Z$ and a step of the $ QR$-algorithm (with the $ QR$-decomposition as in Section 7.1) without shift is performed on the matrix $ Z$:

% latex2html id marker 36039
$\displaystyle \left\{ \begin{array}{rcl} Z& = & QR \\  \tilde{Z} & = & RQ . \end{array} \right.$    

Then the matrix $ Z$ will be a Hessenberg-like matrix.

Proof. Because no shift is involved only the first $ n-1$ Givens transformations need to be performed on the Hessenberg-like matrix $ Z$ to retrieve the upper triangular matrix $ R$.
$\displaystyle R$ $\displaystyle =$ $\displaystyle Q_1^T Z$  
  $\displaystyle =$ $\displaystyle G_{n-1}^T \ldots G_1^T Z.$  

The Givens transformation $ G_k^T$ performs an operation on rows $ (n-k)$ and $ (n-k+1)$. Therefore one can clearly see that the transformations $ R G_1 \ldots G_{n-1}$ will create a matrix $ \tilde{Z}$ whose lower triangular rank is maximum $ 1$. As an illustration we perform the transformations on a matrix of dimension $ 4$, the elements marked with $ \boxtimes$ denote the part of the matrix satisfying the semiseparable structure.

\begin{displaymath}
% latex2html id marker 36079
\begin{array}{cccc} R\; =& \lef...
...oxtimes & \boxtimes & \boxtimes \end{array} \right) \end{array}\end{displaymath}    

$ \qedsymbol$

Using this theorem, and the knowledge about the Givens transformations involved in the $ QR$-factorization we can easily formulate a theorem which states that the structure of a matrix with weakly lower triangular rank equal to one is maintained under one step of the $ QR$-algorithm with shift. (Note that for matrices $ A$ with weakly lower triangular rank $ 1$ the shift is not essential, because the matrix $ A$ plus a diagonal has again weakly lower triangular rank $ 1$.)

Theorem 62   Suppose we have a matrix $ A$ whose weakly lower triangular rank is $ 1$ and a step of $ QR$ with shift (with the $ QR$-decomposition as in Section 7.1) is performed on this matrix:

% latex2html id marker 36106
$\displaystyle \left\{ \begin{array}{rcl} A-\kappa I & = & QR\\  \tilde{A} & = & RQ+\kappa I. \end{array} \right.$    

The matrix $ \tilde{A}$ will have weakly lower triangular rank equal to one.

Proof. The transformation $ Q$ consists of two sequences of Givens transformations $ Q_1$ and $ Q_2$: $ Q=Q_1Q_2$. The first sequence of transformations $ Q_1^T$ will make use of the structured rank of the matrix $ A$ to reduce $ A$ to a Hessenberg matrix. This transformation $ Q_1^T$ will also transform the shift matrix $ \kappa
I$ into a Hessenberg matrix. We have

$\displaystyle Q_1^T A- \kappa Q_1^T I = H_1 + H_2 = H$    

for which $ H_1,H_2$ and $ H$ are all Hessenberg matrices. The second sequence of Givens transformations $ Q_2^T$ will be applied from top to bottom, to transform $ H$ into an upper triangular matrix $ R$:

$\displaystyle Q_2^T Q_1^T (A - \kappa I ) = Q_2^T H = R.$    

The matrix $ \tilde{A}$ satisfies now the following equation:

$\displaystyle \tilde{A} = R Q_1 Q_2 + \kappa I.$    

Because of the structure of the orthogonal matrices $ Q_1$ and $ Q_2$ which consist of a sequence of Givens transformations in a specific order we have that $ R Q_1$ is a matrix with lower triangular rank equal to $ 1$. Performing the transformation $ Q_2$ to the right of $ R Q_1$, $ R Q_1
Q_2 $ will transform the lower triangular rank to a weakly lower triangular rank of $ 1$. Therefore our matrix $ \tilde{A}$ will have weakly lower triangular rank equal to $ 1$. $ \qedsymbol$

The theorem above already explains that for a Hessenberg-like plus diagonal matrix one again gets a Hessenberg-like plus diagonal matrix after a $ QR$-step. In Theorem 64 we will even prove that the diagonal term of the Hessenberg-like plus diagonal matrix is maintained.

We will prove now that a $ QR$-step with shift applied on a Hessenberg-like matrix is again such a Hessenberg-like matrix.

Theorem 63   Suppose we have a Hessenberg-like matrix $ Z$, and we apply one step of the shifted $ QR$-algorithm (with the $ QR$-decomposition as in Section 7.1) on this matrix:

% latex2html id marker 36184
$\displaystyle \left\{ \begin{array}{rcl} Z-\kappa I & = & QR\\  \tilde{Z} & = & RQ+\kappa I . \end{array} \right.$    

Then the matrix $ \tilde{Z}$ will be a Hessenberg-like matrix.

Proof. Without loss of generality, we may assume that the element in the lower left corner is different from zero, otherwise there are zero blocks below the diagonal (a theorem similar to Theorem 24 can be derived to state this fact), and we can split the matrix into different blocks. Suppose we perform now a $ QR$-step on the Hessenberg-like matrix $ Z$, then we have also the following two equalities:
$\displaystyle Q_1^T Z$ $\displaystyle =$ $\displaystyle R_1$ (7.2)
$\displaystyle Q_2^T (R_1 - \kappa Q_1^T I)$ $\displaystyle =$ $\displaystyle R_2$ (7.3)

with $ R_1$ and $ R_2$ upper triangular, and $ \kappa $ as a shift. Assume $ \kappa $ to be different from zero, otherwise we can refer to Theorem 61. Using the equations (7.2) and (7.3) we have that

$\displaystyle Q_1^T (-\kappa I) = H_1$    

where $ H_1$ is a Hessenberg matrix, which has all the subdiagonal elements different from zero. All the subdiagonal elements have to be different from zero because all the Givens transformations $ G_k$ such that $ Q_1=G_1 \ldots G_{n-1}$ are different from a diagonal matrix. This is straightforward because we assumed that the element in the lower left corner is different from zero.

This means that the Hessenberg matrix $ H_1$ and therefore also $ R_1+H_1$ is unreduced and has a unique $ QR$-decomposition:

$\displaystyle Q_2^T(R_1 + H_1) = R,$    

where $ R$ has two possible structures: all the diagonal elements different from zero or all the diagonal elements different from zero, except for the last one. We have to distinguish between the two cases.
Case 1:
Suppose all the diagonal elements are different from zero, this means that the matrix $ R$ is invertible, this gives us:
$\displaystyle \tilde{Z}$ $\displaystyle =$ $\displaystyle RQ +\kappa I$  
  $\displaystyle =$ $\displaystyle R {Z} R^{-1}.$  

We can see that the multiplication with the upper triangular matrices will not change the rank of the submatrices below the diagonal. Therefore $ \tilde{Z}$ is again a Hessenberg-like matrix.

Case 2:
Suppose now that our matrix $ R$ has the lower right element equal to zero. We partition the matrices $ Q$ and $ R$ in the following way:
$\displaystyle R$ $\displaystyle =$ $\displaystyle \left( \begin{array}{c\vert c}
\tilde{R} & w \\ \hline
0 & 0
\end{array} \right)$  
$\displaystyle Q$ $\displaystyle =$ $\displaystyle \left( \begin{array}{c\vert c}
\tilde{Q} & q \end{array} \right),$  

with $ \tilde{R}$ an $ (n-1)\times (n-1)$ matrix, $ w$ a column vector of length $ n-1$, $ \tilde{Q}$ a matrix of dimension $ n \times (n-1)$ and $ q$ a column vector of length $ n$. This gives us the following equalities:
$\displaystyle Z- \kappa I$ $\displaystyle =$ $\displaystyle \left( \begin{array}{c\vert c}
\tilde{Q} & q \end{array} \right) \left( \begin{array}{c\vert c}
\tilde{R} & w \\ \hline
0 & 0
\end{array} \right)$  
  $\displaystyle =$ $\displaystyle \left( \begin{array}{c\vert c}
\tilde{Q}\tilde{R} & \tilde{Q} w \end{array} \right).$  

Denote with $ P$ an $ n \times (n-1)$ projection matrix of the following form $ \left( I_{n-1}\;\; 0 \right)^T$, then we get (because $ \tilde{R}$ is invertible):
$\displaystyle (Z-\kappa I)P$ $\displaystyle =$ $\displaystyle \tilde{Q} \tilde{R}$  
$\displaystyle (Z-\kappa I)P \tilde{R}^{-1}$ $\displaystyle =$ $\displaystyle \tilde{Q}$  
$\displaystyle (Z-\kappa I)\left( \begin{array}{c}
\tilde{R}^{-1} \\
0
\end{array} \right)$ $\displaystyle =$ $\displaystyle \tilde{Q}.$  

Using these equalities we get:
$\displaystyle \tilde{Z}$ $\displaystyle =$ $\displaystyle R Q + \kappa I_n$  
  $\displaystyle =$ $\displaystyle \left( \begin{array}{c\vert c}
\tilde{R} & w \\ \hline
0 & 0
\end{array} \right) Q + \kappa I_n$  
  $\displaystyle =$ $\displaystyle \left( \begin{array}{c\vert c}
\tilde{R} & w \\
\hline
0 & 0
\en...
...}
\tilde{R}^{-1} \\
0
\end{array} \right)
& q
\end{array} \right)
+ \kappa I_n$  
  $\displaystyle =$ $\displaystyle \left( \begin{array}
{c\vert c}
\hat{Z}-\kappa I_{n-1} & z \\ \hline
0 & 0
\end{array} \right) + \kappa I$  
  $\displaystyle =$ $\displaystyle \left( \begin{array}{c\vert c}\hat{Z} & z \\
\hline 0 & \kappa
\end{array} \right)$  

where $ \hat{Z}$ is Hessenberg-like, and therefore also $ \tilde{Z}$ is a Hessenberg-like matrix.
$ \qedsymbol$

Note 9   It is clear from the previous proof that the matrix $ \tilde{Z}$ immediately reveals the eigenvalue $ \kappa $. This $ \kappa $ is called the perfect shift.

Note 10   In the previous theorem we spoke about maintaining of structure of Hessenberg-like matrices after a step of $ QR$. The proof can however be adapted very easily for generator representable Hessenberg-like matrices. After a step of $ QR$ performed on a generator representable Hessenberg-like matrix we get again a generator representable Hessenberg-like matrix, or we will have convergence to one eigenvalue in the lower right corner, while the remaining part in the upper left corner will again be a generator representable Hessenberg-like matrix.

Note 11   Once more we state that it is important that the sequence of Givens transformations are performed in this special order, otherwise it is possible to construct a $ QR$-factorization which will generally not give again a Hessenberg-like matrix as the following example shows.

Example 27   Suppose we have the following Hessenberg-like matrix:

% latex2html id marker 36373
$\displaystyle Z= \left( \begin{array}{cccc} 1 & 0 & 0 & 0 \\  1 & 1 & 1 & 0 \\  0 & 0 & 0 & 1 \\  1 & 1 & 1 & 1 \end{array} \right).$    

Annihilating the complete last row with a Givens transformation applied on the second and fourth row, and then annihilating the first element of the second row, one gets a $ QR$-factorization of the matrix $ Z$. Applying the transformations again on the right side of the matrix, will not give as result a Hessenberg-like matrix, because there will be a block of rank $ 2$ in the lower triangular part.

Theorem 62 stated that the structure of a Hessenberg-like matrix plus diagonal is maintained under the $ QR$-algorithm with shift. Moreover, the diagonal term of the resulting Hessenberg-like plus diagonal matrix is the same as the original Hessenberg-like plus diagonal matrix.

Theorem 64   Suppose $ Z$ is a Hessenberg-like matrix and $ D$ is a diagonal matrix. Applying a step of $ QR$ (with the $ QR$-decomposition as in Section 7.1) with shift on the matrix $ Z+D$ results in a Hessenberg-like plus diagonal matrix, which can always be written as a Hessenberg-like plus diagonal matrix with the same diagonal $ D$: $ \tilde{Z}+D$.

Proof. We will assume that we perform a $ QR$-step without shift on the Hessenberg/like plus diagonal matrix $ Z+D$. This is essentially the same as the proof with shift, because the shift can be included in the diagonal $ D$. We have

% latex2html id marker 36409
$\displaystyle \left\{ \begin{array}{rcl} Q_1^T Z& = & R_1 \\  Q_2^T(R_1 + Q_1^T D) & = & R, \end{array} \right.$    

with $ R_1$ and $ R$ two upper triangular matrices. Let us denote with $ H$ the Hessenberg matrix $ R_1 + Q_1^T D$. We will distinguish between different cases: $ \qedsymbol$


next up previous contents index
Next: The reduction to unreduced Up: Theoretical results for -algorithms Previous: Unreduced Hessenberg-like matrices   Contents   Index
Raf Vandebril 2004-05-03