Advanced maths

Matrix pseudospectrum calculator on a complex grid

Sample the epsilon pseudospectrum of a small real matrix over a complex-plane grid.

Your numbers

Rows separated by semicolons; values by commas.

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

Sample the epsilon pseudospectrum of a small real matrix over a complex-plane grid. Each point is classified through the smallest singular value of zI−A, making perturbation sensitivity visible beyond ordinary eigenvalues. The perturbation norm and complex, unstructured model are explicit, and sampled sets are not mislabeled as exact contours.

THE FORMULALambda_epsilon(A)={z:sigma_min(zI−A)≤epsilon}.

A worked example

For the scalar matrix A=0, the smallest singular value of zI−A is |z|. With epsilon 1/2, the pseudospectrum is the disk |z| ≤ 1/2. The default 5-by-5 grid contains 5 points in this disk, including its sampled boundary points.

Good to know

Real square matrices≤5, unstructured complex2-norm perturbations, grid≤41. Sampled singular values not exact boundary contours or structured-error estimates.

Move from eigenvalues to near-singularity

An eigenvalue z makes zI−A singular. A pseudospectral point allows that matrix to be merely close to singular: its smallest singular value is at most epsilon. This describes sensitivity to a norm-bounded perturbation rather than only the exact eigenvalue locations.

The scalar epsilon is a matrix two-norm threshold, not a probability, confidence level or relative percentage error. Coordinate scaling of the original problem can change its practical meaning. Choose a norm and scale appropriate to the question before interpreting a wide pseudospectral region as evidence of measurement uncertainty.

The scalar zero-matrix pseudospectrum is a radius-epsilon disk0σmin(zI)=|z|epsilon=1/2Region: |z| ≤ 1/2
For the scalar matrix A=0, the smallest singular value of zI−A is |z|. With epsilon 1/2, the pseudospectrum is the disk |z| ≤ 1/2. The default 5-by-5 grid contains 5 points in this disk, including its sampled boundary points. Diagram is schematic; labels specify the numerical values.

The Matrix numerical range calculator with boundary points collects quadratic-form values x*Ax. A pseudospectrum uses smallest singular values of shifted matrices and measures sensitivity to unstructured complex perturbations.

Specify complex unstructured perturbations

The standard set used here permits arbitrary complex perturbation matrices whose two-norm is at most epsilon. Although the entered matrix A is real, the allowed perturbations and grid points are complex. Restricting perturbations to real, sparse, symmetric or physically parameterized changes can produce a different set.

The form does not enforce those structures silently. A physical system with tightly constrained perturbations may have less freedom than this unstructured model permits. Treat the result as a broad norm-based sensitivity calculation, not an automatic worst-case prediction for every application-specific uncertainty family.

Evaluate the singular-value condition

For every grid point z, the solver constructs the real block representation of the complex matrix zI−A. Its singular values can be obtained from a real symmetric Gram matrix, and the smallest one determines inclusion in the sampled epsilon set.

Tiny negative Gram eigenvalues caused by numerical rounding are clipped at zero before square roots. This is a floating-point singular-value calculation, not arbitrary-precision interval arithmetic. Very ill-conditioned points near the boundary can therefore need independent higher-accuracy checks before a fine inclusion decision is treated as definitive.

Verify the scalar zero-matrix example

For A consisting of the scalar zero, zI−A is just z and its only singular value is the magnitude of z. The epsilon pseudospectrum is therefore a disk centered at zero with radius epsilon. With epsilon one half, the default five-by-five grid includes the center and four axis points on that disk.

The resulting count five depends on the finite grid. The continuous disk contains infinitely many points and has area pi over four, neither of which is the count metric. This example checks the norm and complex-grid interpretation independently of any complicated matrix eigensystem.

Compare normal and nonnormal matrices

For a normal matrix, the unstructured two-norm pseudospectrum is the union of epsilon disks around its eigenvalues. Nonnormal matrices can have much larger and differently shaped regions, revealing sensitivity not apparent from the exact spectrum alone.

This does not mean every transient behavior can be read directly from one contour plot. Resolvent bounds, powers and matrix exponentials connect through additional results and assumptions. The page samples the set itself and does not certify a complete transient-growth theorem or choose a stability margin for a physical control system.

Read grid resolution and window limits

The entered rectangle restricts where z is sampled. Pseudospectral points outside it are not searched, and coarse sampling can miss thin features or narrow connections. The supported grid reaches at most forty-one points per axis to keep repeated singular-value calculations bounded.

A contour drawn between samples would be an interpolation, not an exact boundary certificate. The table retains individual real coordinate, imaginary coordinate and singular value so that a suspicious region can be resampled more narrowly. Increasing epsilon changes the mathematical set; increasing grid density changes only the resolution of its numerical inspection.

Use the result as a sensitivity exploration

Compare several justified epsilon values and inspect whether qualitative features persist under grid refinement. A large region at a large perturbation budget is not surprising, and selecting epsilon after seeing a desired shape can obscure the actual uncertainty question.

The form supports real square matrices of order at most five. It does not estimate an empirical perturbation distribution, fit a matrix from observations or analyze structured coefficient constraints. Preserve the matrix, epsilon, norm convention, grid and window with any reported sample or visualization so the calculation remains reproducible.

A few questions, answered

Does epsilon represent a probability?

No. It bounds an unstructured complex matrix perturbation in the two-norm.

Why are complex points used for a real matrix?

The standard pseudospectrum is a subset of the complex plane and permits complex perturbations here.

Is the count an exact contour area?

No. It counts included samples in the entered finite window.

Why can pseudospectra be larger than disks around eigenvalues?

Nonnormal matrices can be far more perturbation-sensitive than their eigenvalue locations alone suggest.

Find your calculator

Start typing to explore the library.