Advanced maths

Real Schur decomposition calculator with orthogonal invariant subspaces

Compute a real orthogonal Schur factorization with real or conjugate-pair diagonal blocks and explicit reconstruction checks.

Your numbers

Use the documented format and bounds; rows may be separated by new lines.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Compute a real orthogonal Schur factorization with real or conjugate-pair diagonal blocks and explicit reconstruction checks.

THE FORMULAA=QTQᵀ; QᵀQ=I, and T is real quasi-upper-triangular.

A worked example

For A=[[0,−1,1],[1,0,2],[0,0,3]], the real Schur form has a 2×2 block for eigenvalues ±i and a 1×1 block for eigenvalue 3, giving two diagonal blocks.

Good to know

Real finite square matrices of order 2–6. Orthogonal Hessenberg reduction, bounded real shifted QR steps and deflation, 1×1/2×2 block checks, reconstruction and orthogonality residuals. Factors are not unique; no Jordan form or unresolved-convergence result is returned.

Orthogonal similarity with real arithmetic

A real Schur factorization writes A=QTQᵀ with Q orthogonal and T quasi-upper-triangular. The word quasi allows real two-by-two diagonal blocks for complex conjugate eigenvalue pairs. This preserves real arithmetic while still representing spectral information that cannot fit into individual real diagonal entries.

This is a different task from Jordan normal form. Jordan structure records exact algebraic multiplicities and generalized eigenvector chains, which can be extremely sensitive to perturbations. The Schur decomposition instead supplies an orthonormal coordinate change and diagonal blocks suitable for many numerical calculations, without claiming an exact Jordan classification.

Real Schur blocks retain a conjugate pair without complex matrix entriesA = Q T Qᵀ011-10-2003Green block: ±iOrange block: 32 diagonal blocksQ = diag(1, −1, 1) · QᵀQ = I
Scroll across to see the full diagram.
For A=[[0,−1,1],[1,0,2],[0,0,3]], the real Schur form has a 2×2 block for eigenvalues ±i and a 1×1 block for eigenvalue 3, giving two diagonal blocks.

Compare this with the Jordan normal form calculator with generalized eigenvectors. Compute a numerically stable orthogonal similarity A=QTQᵀ with 1×1 and 2×2 real blocks, rather than exact Jordan chains and a generally nonorthogonal basis.

Read the two factors together

The columns of Q define the new orthonormal coordinates. T describes how A acts in those coordinates, including couplings above the diagonal blocks. Dropping those off-diagonal couplings changes the matrix and generally changes its behavior, even when the eigenvalues remain the same.

The page accepts real square matrices of order two through six. The input need not be symmetric, diagonalizable or normal. A successful result includes both Q and T so the defining product can be checked. No eigenvector basis is substituted merely because a matrix happens to have several real eigenvalues.

Understand the default block structure

The default matrix has a leading planar rotation block and a final real eigenvalue three. The rotation contributes eigenvalues i and −i, so the real Schur form keeps them in one two-by-two block. The remaining scalar eigenvalue occupies one one-by-one block, giving a block count of two.

That count is not the number of distinct real eigenvalues or the matrix rank. A two-by-two block represents two eigenvalues, and a repeated real eigenvalue can appear in several one-by-one blocks. The table lists block positions, sizes and eigenvalues to make these distinctions visible rather than compressing them into one ambiguous summary.

Follow the reduction and QR steps

The implementation first makes an orthogonal Hessenberg reduction, leaving zeros below the first subdiagonal. It then applies shifted real QR similarity steps to the active part of the matrix. A real single shift or a real quadratic shift is chosen according to the trailing two-by-two spectral information.

Deflation separates a resolved scalar block or an isolated conjugate-pair block. All coordinate transformations are accumulated into Q. A bounded iteration count prevents nonconvergence from becoming an endless browser operation; reaching the limit produces an unresolved error rather than a partially reduced matrix presented as a finished Schur form.

Check orthogonality and reconstruction

Two residuals serve different purposes. The orthogonality residual checks QᵀQ against the identity, while the reconstruction residual checks QTQᵀ against A. Both must be small before a result is returned. A matrix can satisfy one of these tests while failing the other, so neither should be omitted.

The residuals describe floating-point consistency, not unique factors or formal interval arithmetic. Slightly different software may choose another block order, column sign or basis inside an invariant subspace. Comparing the full raw entries of Q against another package can therefore be misleading even when both decompositions are accurate.

Use invariant subspaces with the right caveat

Leading Schur columns span an invariant subspace when the associated leading blocks have been selected consistently. The decomposition on this page does not promise a user-prescribed ordering of stable and unstable blocks. Selecting arbitrary columns from the middle of Q need not produce an invariant subspace by itself.

For a symmetric input, real eigenvalues and an orthogonal eigenbasis give a simpler special case. For a general nonsymmetric input, the off-diagonal part of T carries nonnormal coupling. The page preserves that information and does not infer transient growth or stability solely from a decorative triangular shape.

Compare outputs by identities, not appearance

To validate a copied decomposition, multiply the factors in the displayed order and check that dimensions match. Then inspect the diagonal block eigenvalues. These identity-based checks are more useful than expecting the same signs and ordering as a screenshot, because many legitimate Schur decompositions represent the same input matrix.

If the algorithm rejects a matrix, it has not proved that a real Schur decomposition does not exist. Every real square matrix has such a decomposition mathematically; the rejection concerns this bounded numerical implementation or its residual criteria. An independently suitable numerical package can then be used for a wider or more demanding case.

A few questions, answered

Why is T not always triangular?

A real Schur form uses 2×2 blocks to represent nonreal conjugate eigenvalue pairs while keeping all matrix entries real.

Should Q match another package entry for entry?

No. Signs, block order and bases inside subspaces may differ. Compare orthogonality, reconstruction and block eigenvalues instead.

Does this compute Jordan normal form?

No. It computes an orthogonal numerical similarity, without inferring exact generalized-eigenvector chains or Jordan block sizes.

Does a QR cap mean no Schur form exists?

No. A real Schur form exists mathematically; the cap means this bounded numerical calculation did not resolve it.

Find your calculator

Start typing to explore the library.