Advanced maths

Jordan normal form calculator with generalized eigenvectors

Find Jordan blocks and generalized eigenvector chains for a small rational matrix with rational eigenvalues, verifying AP=PJ exactly.

Your numbers

One rational row per line, comma-separated. Square order 1–5; decimals are exact rational input.

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

Jordan form describes how a square matrix acts when ordinary eigenvectors are insufficient to form a basis. Each block has one eigenvalue on its diagonal and ones immediately above it. A length-three block needs an eigenvector followed by two generalized vectors; treating all three columns as eigenvectors would be wrong. This exact solver factors the characteristic polynomial, analyzes kernels of powers of A−λI, selects independent chains, and verifies an invertible similarity matrix. Its supported eigenvalues are rational, so no approximate clustering decides whether two eigenvalues coincide.

THE FORMULAAP=PJ; (A−λI)v₁=0 and (A−λI)vⱼ=vⱼ₋₁ for every generalized chain.

A worked example

For A with rows (2,1,0), (0,2,1), (0,0,2), there is one Jordan block of size three at eigenvalue two. The standard coordinate vectors e1,e2,e3 form a chain: (A−2I)e1=0, (A−2I)e2=e1 and (A−2I)e3=e2. Thus P=I and J=A are a valid certificate. There is only one linearly independent ordinary eigenvector, despite algebraic multiplicity three; the generalized vectors provide the missing basis directions.

Good to know

Rational square matrices of order one through five whose characteristic polynomial splits completely into rational linear factors. Irrational or complex eigenvalues are rejected explicitly. Exact characteristic factorization, fraction growth and chain selection have bounded computational resources. Decimal entries are exact rationals; this symbolic Jordan result is inappropriate as a stable classification of noisy measurements. One valid chain basis is returned, not every possible choice.

Kernel growth determines the block lengths

For a fixed eigenvalue, the dimension of ker(A−λI)^k counts how many chain positions become available by level k. The difference between successive dimensions counts blocks of length at least k. These increments cannot increase as k grows. The solver uses the whole kernel filtration to select top vectors, rather than extending arbitrary eigenvectors and hoping their generalized chains remain independent.

Chains are listed from the ordinary eigenvector toward the highest generalized vector. In that column order, the block has ones on its superdiagonal, and AP=PJ expresses every chain relation at once. Reordering chains of equal eigenvalue can produce a different-looking J; rescaling or mixing valid chains can change P. Their block sizes and eigenvalues must still agree. Invertibility of P rules out a collection that satisfies individual relations but fails to span.

A length-three Jordan chain replaces two missing ordinary eigenvectorse3e2e1NN→ 0N = A − 2I; chain length 3Basis columns: e1, e2, e3; AP = PJ
For the upper Jordan block at eigenvalue two, N=A−2I sends e3 to e2, e2 to e1, and e1 to zero. Thus e1,e2,e3 form the chain basis, with one ordinary eigenvector and two generalized vectors.

Defective matrices are valid inputs, but uncertain data need different analysis

A defective matrix has fewer independent eigenvectors than its order. That is exactly when generalized vectors are useful, not a reason to replace the answer by a diagonal matrix. A diagonalizable repeated eigenvalue has only size-one blocks, whereas a larger block records a nontrivial nilpotent coupling. The largest block size at each eigenvalue also gives its exponent in the minimal polynomial.

An arbitrarily small perturbation can split a repeated eigenvalue and radically change Jordan structure. Exact fractions avoid arithmetic ambiguity but cannot remove uncertainty in the underlying data. The 2×2 matrix diagonalization calculator addresses the simpler diagonalizable setting; this page deliberately constructs the missing chains in defective cases. For rational matrices with nonsplit characteristic polynomials, use rational canonical form rather than pretending an irrational eigenvalue is a nearby rational.

A few questions, answered

Is every column of P an eigenvector?

No. Only the first vector of each Jordan chain is an ordinary eigenvector. Later columns satisfy the displayed generalized chain equations.

Why can another tool return a different P?

Chain bases are not unique. Check that P is invertible, AP=PJ holds, and the eigenvalues and Jordan block sizes agree.

Find your calculator

Start typing to explore the library.