How this calculation works
Construct a stable minimum-phase real rational spectral factor of an even spectrum and check the reflected-product identity.
Φ(s)=H(s)H(−s); choose poles and zeros in the open left half-plane.A worked example
For Φ(s)=1/(1−s²), a factor is H(s)=1/(s+1), since H(s)H(−s)=1/(1−s²).
Good to know
Even real numerator/denominator degrees≤8, positive nonzero Φ(0), distinct numerically resolved roots and no imaginary-axis zeros or poles. Stable/minimum-phase root selection and coefficient product residual; floating factorization, no matrix spectrum or repeated-root handling.
Reference: MathWorks: spectral factorization (opens in a new tab) ↗
Factoring a spectrum rather than its height
A rational spectrum can be represented as a transfer function multiplied by its reflected counterpart. Spectral factorization constructs that transfer function. Computing a peak magnitude, evaluating one frequency or taking a pointwise square root does not provide the same stable rational model.
This page considers real scalar even rational spectra. On the imaginary axis, reflection changes s to minus s, which corresponds to complex conjugation for real coefficients. The product then becomes the squared magnitude of the factor's frequency response, explaining its connection with a nonnegative spectrum.
Compare this with the SISO H infinity norm calculator for a stable rational transfer function. Construct a stable factor whose reflected product equals a supplied nonnegative rational spectrum; computing the maximum response magnitude does not construct a factor.
Specifying the rational spectrum
Enter numerator and denominator coefficients in ascending powers of s. Odd-power coefficients must vanish for an even spectrum. Both polynomials must have nonzero constant terms, and their ratio at zero must be positive. The bounded implementation excludes imaginary-axis zeros and poles.
The coefficient variable is s, not angular frequency squared. Replacing s with i omega introduces alternating signs in even powers. A spectrum positive as a function of omega can therefore have negative coefficients when written as a rational function of s, as the default denominator illustrates.
A first-order factor from an even denominator
The default spectrum is one divided by one minus s squared. Its poles are minus one and plus one. Selecting the left-half-plane pole gives the stable factor one divided by s plus one. Reflecting that factor places its pole at the opposite location.
Multiplying one over s plus one by one over one minus s recovers the entered even spectrum exactly. At s equal to i omega, the spectrum becomes one divided by one plus omega squared, which is nonnegative and decays with frequency as expected for the squared magnitude of that stable factor.
Selecting roots and fixing gain
For a valid even real spectrum, nonboundary roots appear in reflected pairs and complex roots also occur in conjugate pairs. The implementation selects the roots with negative real part for the factor's poles and zeros, making the selected factor stable and minimum phase.
Those roots first produce monic real numerator and denominator polynomials. A positive gain is then chosen from the value at zero so the reflected product has the correct scale. The overall factor sign would disappear in the product, so fixing a positive leading gain removes that otherwise arbitrary choice.
Checking the full rational identity
A few frequency samples would not establish that the constructed factor reproduces the input. Instead, the calculator cross-multiplies polynomial coefficients in the identity and measures the resulting coefficient discrepancy. This compares the whole finite rational expression rather than just a plotted curve.
The residual is relative to a coefficient scale and uses floating arithmetic. A large mismatch triggers rejection. A small residual is still not an exact symbolic certificate when polynomial roots were obtained numerically; near-coincident roots and widely varying coefficients can make the factorization ill-conditioned.
Why boundary and repeated roots are excluded
An imaginary-axis root needs a convention for dividing its multiplicity between a factor and its reflection. Repeated roots also challenge the bounded numerical root solver because a tiny coefficient perturbation can split one multiple root into several nearby roots with unstable coordinates.
These cases are mathematically meaningful but unsupported here. The page rejects them instead of arbitrarily assigning unstable roots or claiming a complete repeated-root factorization. A symbolic or robust state-space spectral-factor method is more suitable for such a spectrum or for a general matrix-valued problem.
Interpreting stability and nonuniqueness
Stable minimum-phase selection is a normalization that picks one useful factor. Without that condition, all-pass modifications can preserve the same magnitude spectrum while changing phase. A measured power spectrum alone therefore does not identify a unique unrestricted physical transfer function.
Use the returned numerator and denominator with their stated ascending coefficient order. Verify the product before transferring them to software with another polynomial convention. This calculator constructs a scalar numerical factor under explicit assumptions; it does not identify an unknown dynamical system from noisy spectral samples.
A few questions, answered
Is this a pointwise square root?
No. It constructs a stable rational function whose reflected product reproduces the supplied spectrum.
Why can the denominator contain negative coefficients?
The polynomial variable is s; substituting s=iω changes signs of even powers.
Can imaginary-axis roots be included?
Not here. Their multiplicity split requires additional conventions outside the supported domain.
Is a spectral factor always unique?
Not without extra conditions. This page selects a stable minimum-phase factor and fixes a positive gain convention.