Advanced maths

Matrix numerical range calculator with boundary points

Sample boundary witnesses of a real matrix’s numerical range over complex unit vectors.

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 boundary witnesses of a real matrix’s numerical range over complex unit vectors. Hermitian support eigensystems provide points on the field of values, while an explicit sampling bound and flat-face caveat distinguish a finite plotted approximation from an exact boundary. This set is not merely the matrix’s eigenvalue cloud.

THE FORMULAW(A)={v*Av:||v||=1}; h(theta)=lambda_max(Re(exp(−i theta)A)).

A worked example

For the real diagonal matrix diag(1,2), the numerical range over complex unit vectors is the interval [1,2] on the real axis. Each quadratic-form value is a weighted average of 1 and 2, with nonnegative weights summing to 1.

Good to know

Real matrices≤6, complex unit vectors,8–256support angles. Boundary witnesses and conservative support sampling bound; tied flat faces may need more witnesses, no exact smooth boundary claim.

Define the field of values

The numerical range contains v conjugate-transpose A v for every complex unit vector v. Even when A is real, allowing complex vectors can produce nonreal values. The definition uses the Euclidean unit-vector constraint, so arbitrary unnormalized vectors do not describe the same set.

The numerical range is convex, but a list of eigenvalues need not trace its boundary. Every eigenvalue belongs to the set, while many other points usually do too. The calculator evaluates supporting directions rather than pretending that plotting eigenvalues alone determines the field of values for a general matrix.

A real diagonal matrix has numerical range along a real segment12A=diag(1,2)x*Ax = |x1|²+2|x2|²Every value in [1,2]
For the real diagonal matrix diag(1,2), the numerical range over complex unit vectors is the interval [1,2] on the real axis. Each quadratic-form value is a weighted average of 1 and 2, with nonnegative weights summing to 1. Diagram is schematic; labels specify the numerical values.

The Matrix pseudospectrum calculator on a complex grid describes eigenvalue sensitivity through shifted singular values. Numerical range support points instead come from Hermitian eigenproblems and form an inner boundary approximation.

Turn a direction into a Hermitian eigenproblem

For angle theta, the greatest projection of the numerical range onto that direction is the largest eigenvalue of the Hermitian part of exp of minus i theta times A. A corresponding unit eigenvector gives a boundary witness through its quadratic form vstar A v.

The implementation uses a real block representation of that Hermitian matrix, keeping the input matrix real while allowing complex witness vectors. A support value describes distance along the chosen direction; it is not automatically the real coordinate of the witness unless the direction itself is the positive real axis.

Verify a diagonal real matrix

For diagonal entries one and two, a unit vector produces the weighted average one times the squared magnitude of its first component plus two times that of its second. Those nonnegative weights sum to one, so the numerical range is exactly the real interval from one to two.

There is no filled disk in this example. Sampling directions can repeatedly return the same endpoints, and tied vertical supports can choose an intermediate witness. Repeated output coordinates are therefore legitimate boundary/support outcomes rather than duplicate grid errors or evidence that the matrix was not processed.

Read complex boundary coordinates correctly

Each output row includes the support angle, real witness coordinate, imaginary witness coordinate and support value. The witness should satisfy real of exp of minus i theta times the complex point equal to that support within numerical tolerance.

A real nonsymmetric matrix can have conjugate-symmetric numerical range, but individual witnesses need not be real. The page does not treat an imaginary coordinate as a numerical failure merely because the original entries were real. Symmetry and support relations are more appropriate checks than forcing every point onto the real axis.

Understand the finite-direction approximation

The number of directions controls angular sampling. Taking the convex hull of returned witnesses gives an inner approximation to the convex set, but it can miss parts of the continuous boundary. The conservative bound supplied by the page uses the Frobenius norm and angular spacing to describe support sampling resolution.

This is not an exact Hausdorff-distance certificate for every detail of a rendered curve under all numerical errors. Matrix eigensystems are also floating point. Use more directions and independent checks for a delicate shape rather than interpreting a visually smooth line between sparse witnesses as an exact analytic boundary.

Handle flat faces and tied supports

When the largest support eigenvalue has multiplicity, a whole face can share the same support direction. One eigenvector gives one valid witness but need not give both endpoints of that face. A finite witness list can therefore underrepresent a flat portion even when the support value is correct.

The page states this limitation rather than claiming complete face enumeration. A different eigensolver may choose another vector inside the tied eigenspace and return a different boundary point with the same support. Compare support values and set membership before treating that nonuniqueness as an implementation disagreement.

Keep applications narrower than broad stability claims

Numerical ranges can inform bounds and stability analysis, but such uses require the relevant theorem and norm convention. The sampled set alone does not solve every matrix-exponential, resolvent or transient-growth question. The page does not turn a picture into an automatic system-safety certificate.

Supported input is a real square matrix of order at most six with eight through two hundred fifty-six directions. Record the matrix and sample count when comparing results. Scaling or shifting A transforms the set accordingly, but any physical interpretation must retain the original coordinate units and operator meaning.

A few questions, answered

Is the numerical range just the eigenvalues?

No. It contains all complex-unit-vector quadratic-form values and is generally a larger convex set.

Can a real matrix have nonreal numerical-range points?

Yes. The vectors in the definition are complex.

Why can support points repeat?

Several directions can maximize at the same boundary point, especially for line segments or corners.

Does one tied eigenvector describe an entire flat face?

No. It gives one valid witness; face endpoints may need further analysis.

Find your calculator

Start typing to explore the library.