Hessenberg Matrix — Definition, Formula & Example
A Hessenberg matrix (usually meaning an upper Hessenberg matrix) is a square matrix that is almost upper triangular. All entries below the main diagonal are zero except those on the diagonal directly beneath it.
An matrix is upper Hessenberg if whenever . It is lower Hessenberg if whenever ; equivalently, is lower Hessenberg exactly when is upper Hessenberg. An upper Hessenberg matrix is called unreduced if every subdiagonal entry is nonzero.
Key Formula
Where:
- = The entry in row i, column j of the matrix H
- = Row index, from 1 to n
- = Column index, from 1 to n
Worked Example
Problem: Let and . Confirm that is upper Hessenberg, compute , and check whether is upper Hessenberg.
Step 1: In a 3×3 matrix, the condition i > j + 1 applies only to the (3,1) position. In H that entry is 0, so H is upper Hessenberg. The subdiagonal entries 3 and 1 may be nonzero. U has zeros everywhere below its diagonal, so it is upper triangular.
Step 2: Multiply row by column. For example, the (1,3) entry is (1)(1) + (2)(3) + (0)(1) = 7, and the (2,3) entry is (3)(1) + (1)(3) + (2)(1) = 8.
Step 3: Check the only position that must be zero. The (3,1) entry is row 3 of H times column 1 of U.
Answer: . Its (3,1) entry is 0, so is upper Hessenberg. In general, an upper Hessenberg matrix times an upper triangular matrix (in either order) is upper Hessenberg.
Why It Matters
Numerical linear algebra courses use Hessenberg form as the first stage of the QR algorithm for eigenvalues. Any square matrix can be reduced to Hessenberg form by similarity transformations, which preserve eigenvalues. Each QR step then costs about operations instead of about , because the Hessenberg form survives every iteration. This shortcut sits inside software such as MATLAB and NumPy.
Common Mistakes
Mistake: Thinking a Hessenberg matrix must have nonzero subdiagonal entries, or that it cannot be triangular.
Correction: The definition only requires zeros below the first subdiagonal. Subdiagonal entries may be zero, so every upper triangular matrix is also upper Hessenberg. A Hessenberg matrix with all subdiagonal entries nonzero has a separate name: unreduced.
