The last step starts with a matrix
where
has a semiseparable structure of dimension
and
:
For each
, with
, we want to annihilate the
superdiagonal element
of the
th row, and because of
the semiseparable structure of dimension
, also all elements right from the
superdiagonal, by means of a Givens transformation
on the
th and
th row. First the
diagonal part
will be updated into
such that
remains the same
under the orthogonal similarity transformation based on
. The adaptation of
is also as
explained in the
th step, more precisely,
if
and
if
. Also now the existing
structure of
is not changed. Hence, the Givens
transformations
and
will be
performed.
After these
transformations, we have the following situation:
Only the last diagonal element is not of the requested form, but
we can change it into
and subtract it from
. This last subtraction does not destroy the
semiseparable structure and hence we have transformed an arbitrary symmetric matrix
into a similar diagonal-plus-semiseparable one with the diagonal equal to
. This
finishes the algorithm.