Advanced maths

Matrix polynomial eigenvalue linearization calculator

A quadratic matrix eigenvalue problem places the spectral parameter in a matrix polynomial rather than a single linear matrix pair.

Your numbers

Diagonal square matrices, size 1–3.
Same size; off-diagonal entries must be zero.
Same size; every diagonal M entry nonzero.

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

A quadratic matrix eigenvalue problem places the spectral parameter in a matrix polynomial rather than a single linear matrix pair. This calculator supports diagonal one-to-three-mode systems with an invertible leading matrix. It returns both roots for each mode, coordinate eigenvectors, the companion linearization and normalized residuals in the original quadratic equation.

THE FORMULA(λ²M+λC+K)v=0; L=[[0,I],[−M^−1K,−M^−1C]], w=[v;λv].

A worked example

For scalar M=1,C=−3,K=2, the polynomial is λ²−3λ+2. Its eigenvalues are one and two. The companion matrix [[0,1],[−2,3]] has those same eigenvalues, and vectors [1;1] and [1;2] satisfy its linear eigenvalue equation.

Good to know

Diagonal real square M,C,K of equal order 1–3, invertible M. Coupled off-diagonal QEPs, singular leading matrices and infinite eigenvalues are unsupported. Repeated roots are returned with algebraic repetition; no generalized-eigenvector chain or complete modal basis is promised.

Linearization doubles the state dimension

The auxiliary vector contains the original modal vector and its spectral multiple. The top block equation enforces the relation between those two halves, and the lower block recovers the quadratic equation after multiplication by the leading matrix. This is a representation of the original polynomial problem, not an unrelated eigenvalue approximation.

For n diagonal modes, the companion matrix has order 2n. The diagonal assumption lets each coordinate direction be solved with a stable scalar quadratic formula. Off-diagonal coupling would mix those directions and require a general matrix-polynomial eigensolver, so such inputs are explicitly rejected instead of having their coupling discarded.

A scalar quadratic becomes a two by two companion eigenproblemλ² − 3λ + 2 = (λ − 1)(λ − 2)λ = 1; w = (1,1)λ = 2; w = (1,2)Companion rows: (0,1); (−2,3)
λ²−3λ+2 has roots one and two. Companion [[0,1],[−2,3]] acts on [1;λ], preserving the original quadratic relation. The two roots each have zero polynomial residual in exact arithmetic.

The Generalized eigenvalue calculator for a matrix pair covers a related task. This page focuses on matrix polynomial eigenvalue linearization calculator with the method limits and worked example described below.

Complex and repeated roots need careful interpretation

A negative discriminant produces a complex conjugate pair for real coefficients. The table retains real and imaginary parts, rather than throwing away oscillatory modes. With a repeated discriminant-zero root, both algebraic occurrences are shown, but their repetition does not imply two independent eigenvectors in the companion representation.

An invertible leading matrix excludes eigenvalues at infinity in this supported family. Setting a leading diagonal entry to zero changes the polynomial degree of that mode, so the ordinary quadratic companion formula would divide by zero. That is a different descriptor problem and is not repaired by inserting an arbitrary small leading coefficient.

Check the original polynomial residual

The returned coordinate vector is substituted into λ²M+λC+K. The residual is scaled by the magnitudes of all three polynomial contributions so the check is meaningful across coefficient scales. It assesses the original equation, which is more informative than checking only the companion matrix construction.

The generalized-eigenvalue calculator handles a linear matrix pencil. This page exposes how a quadratic pencil is converted into a doubled linear system and keeps the quadratic mode correspondence visible. In mechanical modeling, the sign and units of λ depend on the original time convention; no physical stability conclusion is inferred automatically.

A few questions, answered

Are coupled vibration systems supported?

No. M,C,K must all be diagonal in the supplied basis; off-diagonal entries are rejected.

Do two identical roots give two independent vectors?

Not necessarily. Algebraic multiplicity and geometric multiplicity differ.

Find your calculator

Start typing to explore the library.