I am having trouble finding the schur factorization of the following matrix:
$A=\begin{pmatrix}3&8 \\ -2&3 \end{pmatrix}$
I followed an algorithm in the book, as well as computing an answer via Octave/Matlab. I did the following:
[U,T] = schur(A) where $U$ will be a unitary matrix and $T$ will be an upper triangular matrix.
Which gave me:
$U=\begin{pmatrix}1&0 \\ 0&1 \end{pmatrix}$ and $T=A$
$T=A$ is not upper triangular -- schur's factorization is supposed to give us an upper triangular matrix...
- What went wrong? Is a schur factorization possible for every square matrix (it should be according to wikipedia on schur decomposition
Thanks for all the help!
Matlab's documentation for
schurdoes not state thatTis triangular, but rather "quasitriangular". Quasitriangular matrices are a special form of Hessenberg matrix.By default, the
schurfunction returns the real form of the decomposition. Because yourAmatrix has complex eigenvalues the real Schur matrixTwill be quasitriangular instead of upper triangular.You can compute the more general complex Schur form as @Amzoti suggests via:
which returns
In this case
Tis guaranteed to be diagonal.By the way, you can convert the real matrix
Ato a complex one with a zero imaginary part by using thecomplexfunction (simply adding0*1igenerally won't work). Thus the following could also be used: