The Givens transformation

In this subsection, we will propose an analytic way of computing a Givens transformation for expanding the rank structure. We will prove the existence of a Givens transformation, which will be used afterwards in the next subsection for developing a sequence of descending rank expanding Givens transformations. In the example following the theorem, we will use the reduction of a Hessenberg matrix to upper triangular form as an example of a descending rank expanding sequence of Givens transformations.

Theorem 1 (Descending rank expanding Givens transformation)   Suppose the following $ 2\times 2$ matrix is given

$\displaystyle A=\left[ \begin{array}{cc} a & b \\ c & d \\ \end{array} \right].$ (1)

Then there exists a Givens transformation such that the second row of the matrix $ G^TA$ and the row $ [e,f]$ are linearly dependent. The value $ t$ in the Givens transformation $ G$ as in (2), is defined as

$\displaystyle t=\frac{af-be}{cf-de},$    

under the assumption that $ cf-de\neq 0$, otherwise one can simple take $ G=I_2$.

Proof. Suppose we have the matrix $ A$ and the Givens transformation $ G$ as follows:

$\displaystyle v A=\left[ \begin{array}{cc} a & b \\ c & d \\ \end{array} \right]$    and $\displaystyle G=\frac{1}{\sqrt{1+t^2}} \left[ \begin{array}{rr} t & -1 \\ 1 & t \end{array} \right].$ (2)

Assume $ [c,d]$ and $ [e,f]$ to be linearly independent, otherwise we could have taken the Givens transformation equal to the identity matrix.

Let us compute the product $ G^TA$:

$\displaystyle \frac{1}{\sqrt{1+t^2}} \left[ \begin{array}{rr}
t & 1 \\
-1 & t
...
...\left[ \begin{array}{rr}
at+c & bt+d \\
-a+ct & -b+dt \\
\end{array} \right].$      

The second row being dependent of $ [e,f]$ leads to the following relation:

$\displaystyle f(-a+ct)-e(-b+dt)=0.$    

Rewriting this equation towards $ t$ gives us the following well-defined equation:

$\displaystyle t=\frac{af-be}{cf-de}.$    

This equation is well defined, as we assumed $ [c,d]$ to be independent of $ [e,f]$. $ \qedsymbol$

This type of Givens transformation was already used before in [15,16]. Let us show that the rank expanding Givens transformations as we computed them here are a generalization of the transformations used for bringing an upper Hessenberg matrix back to upper triangular form.

Example 1   Suppose we have a Hessenberg matrix $ H$ and we want to reduce it to upper triangular form. Instead of using the standard Givens transformations, eliminating the subdiagonal elements, we will use here the Givens transformations from Theorem 1 to expand the zero rank below the subdiagonal. This is done by a sequence of Givens transformations going from top to bottom.

Suppose we have for example the following Hessenberg matrix:

$\displaystyle H= \left[ \begin{array}{ccc} 1 & \frac{-1}{\sqrt{6}} & \frac{3}{\...
...0.2cm] 0 & \frac{2\sqrt{2}}{\sqrt{3}} & \frac{5}{\sqrt{3}} \end{array} \right].$    

Computing, the first Givens transformation applied on row $ 1$ and $ 2$ in order to make part of the transformed second row dependent of

$\displaystyle [e,f]=\left[ 0,\frac{2\sqrt{2}}{\sqrt{3}} \right],$    

gives us the following transformation (use the same notation as in Corollary 1):
$\displaystyle t$ $\displaystyle =$ $\displaystyle \frac{af-be}{cf-de}$  
  $\displaystyle =$ $\displaystyle \frac{a}{c}$  
  $\displaystyle =$ $\displaystyle 1.$  

Hence our Givens transformation, will be of the following form:

$\displaystyle \breve{G}_1^T= \frac{1}{\sqrt{2}} \left[ \begin{array}{rr} 1 & 1 \\ -1 & 1 \end{array} \right].$    

Applying the transformation $ G_1^T$ (the $ 2\times 2$ Givens transformation $ \breve{G}_1^T$ is embedded into a $ 3\times 3$ Givens transformation $ G_1^T$) onto the matrix $ H$ annihilates the first subdiagonal element, thereby expanding the zero rank structure below the subdiagonal. One can easily continue this procedure and conclude that the rank expanding Givens transformations lift up the zero structure and hence create an upper triangular matrix. In this example, we can clearly see that a zero creating Givens transformation, can also be at the same time a rank expanding Givens transformation.

For the implementation of this specific Givens transformation, we adapted the standard implementation of a zero creating Givens transformation. We obtained the following code in MATLAB style notation by changing the one from [14]. The matrix $ A$ corresponds to the two by two matrix the Givens transformation is acting on and the vector $ V$ contains the elements $ [e,f]$. The output consists of the cosine $ c$ and the sine $ s$ of the transformation, as well as the transformed matrix $ A$.

function [c,s,A] = Givensexp(A,V);

   y=V(1)*A(2,2)-A(2,1)*V(2);
   x=-(A(1,1)*V(2)-A(1,2)*V(1));

   if (x == 0)
      % In case this is zero, we obtain immediately G=I
      c = 1; s = 0;
   else
      if (abs(x) >= abs(y))
         t = y/x; r = sqrt(1 + t*t);
         c = 1/r; s = t*c; r = x*r;
      else
         t = x/y; r = sqrt(1 + t*t);
         s = 1/r; c = t*s;
       end
       A(1:2,:)=[c,s;-conj(s),c]*A(1:2,:);
   end
We remark that in the presented code the criterion $ x==0$, can be made relatively depending on the machine precision.

Raphael Vandebril 2007-07-17