Jump to content

User:Fephisto/Householder QR Decomposition

From Wikipedia, the free encyclopedia

QR decomposition

[edit]

Householder transformations can be used to calculate a QR decomposition. Consider a matrix tridiangularized up to column , then our goal is to construct such Householder matrices that act upon the principal submatrices of a given matrix

via the matrix

.

(note that we already established before that Householder transformations are unitary matrices, and since the multiplication of unitary matrices is itself a unitary matrix, this gives us the unitary matrix of the QR decomposition)

If we can find a so that

we could accomplish this. Thinking geometrically speaking, we are looking for a plane so that the reflection of about the plane happens to land directly on the basis vector. In other words,

for some constant . However, this also shows that

.

And since is a unit vector, this means that

Now if we apply equation (2) back into equation (1).

Or, in other words, by comparing the scalars in front of the vector we must have

.

Or

Which means that we can solve for as

This completes the construction; however, in order to avoid catastrophic cancellation in equation (2) we choose the sign of so that

[1]

  1. ^ Saad, Yousef (2003). Iterative methods for sparse linear systems. Society for Industrial and Applied Mathematics. pp. 11–12.