Advanced maths

Matrix resolvent and spectral projector calculator

The resolvent is a matrix-valued rational function of a spectral parameter, while spectral projectors isolate the invariant subspaces belonging to distinct eigenvalues.

Your numbers

Square 1–3 matrix; supported spectrum must be rational and diagonalizable.
Exact rational value; an eigenvalue is a resolvent pole.

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

The resolvent is a matrix-valued rational function of a spectral parameter, while spectral projectors isolate the invariant subspaces belonging to distinct eigenvalues. This calculator supports small diagonalizable rational matrices with rational spectra. It builds the exact polynomial numerators and common determinant denominator, evaluates the resolvent at a requested nonpole value and verifies the projector identities over exact fractions.

THE FORMULAR(z)=(zI−A)^−1=adj(zI−A)/det(zI−A); E_λ=∏_(μ≠λ)(A−μI)/(λ−μ).

A worked example

For A=[[1,1],[0,2]], the projectors are E₁=[[1,−1],[0,0]] and E₂=[[0,1],[0,1]]. They add to I and each squares to itself. The resolvent is E₁/(z−1)+E₂/(z−2). At z=0 this gives [[−1,1/2],[0,−1/2]], whose product with −A is I. The common determinant denominator is (z−1)(z−2).

Good to know

Exact rational matrices of order one through three, diagonalizable with all eigenvalues rational. Repeated eigenvalues are allowed when the matrix is diagonalizable. Defective matrices and nonsplit characteristic polynomials are rejected under this supported family. The query must avoid the spectrum. Numerator entries use x as their table variable, to be replaced by z; denominator factors need not be canceled entry by entry.

A common denominator does not imply a pole in every entry

The adjugate formula gives every entry the determinant as a shared denominator. Some numerators may cancel one or more factors, and a zero entry cancels everything. The matrix as a whole is undefined at an eigenvalue, but inspecting an uncanceled entry representation can overstate the singularity of that individual entry.

The returned evaluation is checked by multiplying it with zI−A exactly. A numerical sample near a pole can be badly conditioned, so this page uses rational queries and exact fractions rather than a floating inverse. Entering a pole is rejected instead of displaying an infinity value that could be mistaken for a valid matrix.

Two oblique spectral projectors sum to the identityE₁: [1,−1; 0,0]E₂: [0,1; 0,1]E₁ + E₂ = IR(0) = [−1,1/2; 0,−1/2]
A=[[1,1],[0,2]] has E1=[[1,−1],[0,0]] and E2=[[0,1],[0,1]]. Each is idempotent, their sum is I, and R(z)=E1/(z−1)+E2/(z−2). They need not be symmetric.

The Jordan normal form calculator with generalized eigenvectors provides generalized eigenvectors. This page instead returns a rational resolvent and exact spectral projectors for a diagonalizable rational spectrum.

Projectors are algebraic projections, not necessarily orthogonal ones

Each E satisfies E²=E and AE=λE, while the complete family sums to the identity. For a nonnormal matrix, the projectors need not be symmetric and need not be orthogonal projections in the Euclidean inner product. The example’s off-diagonal entries make this distinction visible.

A Jordan block at a repeated eigenvalue produces higher-order resolvent poles and needs a different projector/resolvent expansion. Merely substituting the distinct-eigenvalue formula without checking diagonalizability would omit that nilpotent structure. The existing Jordan-form calculator serves the related canonical-form task; this page rejects the defective case rather than borrowing an incomplete formula.

The eigenvalue family is deliberately exact and bounded

Rational factorization supplies the supported eigenvalues and the diagonalizability check. A matrix with irrational or nonreal eigenvalues can still have a well-defined exact rational resolvent, but this page promises the combined projector workflow only in its rational-spectrum family. That restriction is stated before calculation rather than hidden behind approximate eigenvalue labels.

For a scalar multiple of I, there is only one distinct eigenvalue and its projector is I, even if the algebraic multiplicity equals the matrix size. Independent checks compare the adjugate identity and projector reconstruction, providing two different views of the same spectral decomposition.

A few questions, answered

Must the projectors be symmetric?

No. Algebraic spectral projectors of a diagonalizable nonnormal matrix can be oblique. Symmetry is an additional property, not part of E²=E.

Why reject a Jordan block?

The supported formula assumes diagonalizability. A defective block needs nilpotent terms and higher-order pole handling beyond this page’s declared family.

Find your calculator

Start typing to explore the library.