How this calculation works
A rational transfer matrix can contain pole cancellations that are not visible by reading the denominators of individual entries. Smith–McMillan form separates its nonzero rational invariant fractions under polynomial unimodular transformations. This page handles a two-by-two matrix and reports its normal rank and finite pole-zero structure. It does not construct a state-space realization or analyze controllability of a separately supplied model; those questions involve additional representations and, for minimality, the way states are connected to inputs and outputs.
D=lcm denominators; d1=gcd entries of DG; d2=det(DG)/d1; invariants=d_i/D.A worked example
The default transfer matrix is diagonal with entries 1/(s+1) and 1/(s+2). Its common denominator is (s+1)(s+2), while the polynomial matrix B has diagonal entries s+2 and s+1. Their gcd is one and their determinant is D. The invariant fractions are therefore 1/D and 1. This illustrates why simply listing the two original diagonal entries is not Smith–McMillan form: the invariant factors must satisfy polynomial divisibility conventions after unimodular combination.
Good to know
Exact2×2 rational transfer matrices, each entry numerator/denominator degree≤4, bounded shared exact polynomial operations. Nonzero constant units removed; finite invariants only, no transformation matrices or infinite-zero structure.
Reference: Boyd and Lall: Smith–McMillan form (opens in a new tab) ↗
What this calculation determines
A rational transfer matrix can contain pole cancellations that are not visible by reading the denominators of individual entries. Smith–McMillan form separates its nonzero rational invariant fractions under polynomial unimodular transformations.
This page handles a two-by-two matrix and reports its normal rank and finite pole-zero structure. It does not construct a state-space realization or analyze controllability of a separately supplied model; those questions involve additional representations and, for minimality, the way states are connected to inputs and outputs.
Compare this with the Polynomial matrix determinant and Smith form calculator. Compute reduced rational invariant fractions and finite transmission pole-zero structure, rather than polynomial invariant factors of an already polynomial matrix.
Enter the data in the stated convention
Enter a JSON matrix with two rows and two columns. Each entry is a pair of coefficient lists for numerator and denominator, both ordered from highest power to constant term.
A zero numerator is allowed; an identically zero denominator is not. Exact rational entries can be written as fraction strings. Keeping the coefficient order explicit is important: (1,2) represents s+2, while (2,1) represents 2s+1, which changes both its pole and leading gain.
How the mathematics works
Each entry is reduced first. The least common multiple of the reduced denominators gives a polynomial D, and multiplying the full transfer matrix by D produces a polynomial matrix B.
The first nonzero polynomial invariant is the greatest common divisor of all entries of B. For normal rank two, the second is det(B) divided by the first. Dividing those invariants by D and cancelling common factors yields the nonzero rational invariant fractions reported by the calculator.
Work through the default example
The default transfer matrix is diagonal with entries 1/(s+1) and 1/(s+2). Its common denominator is (s+1)(s+2), while the polynomial matrix B has diagonal entries s+2 and s+1.
Their gcd is one and their determinant is D. The invariant fractions are therefore 1/D and 1. This illustrates why simply listing the two original diagonal entries is not Smith–McMillan form: the invariant factors must satisfy polynomial divisibility conventions after unimodular combination.
Read the returned certificate
Normal rank is the rank over rational functions, rather than the rank at a chosen frequency. A transfer matrix can lose rank at particular values of s without losing normal rank.
The output discards nonzero constant units and makes invariant numerators and denominators monic. This canonical normalization records poles and zeros but does not preserve the numeric gain of an individual matrix channel. A zero matrix has normal rank zero and consequently no nonzero invariant fractions.
Assumptions and supported limits
The two-by-two scope permits exact determinant and gcd certificates without a general large symbolic matrix-reduction engine. Polynomial multiplication and coefficient sizes are bounded by the shared exact-arithmetic routines.
The page reports finite structure only: zeros and poles at infinity require degree-sensitive conventions that are not inferred from this list alone. Repeated factors retain their multiplicities. An exact cancellation means equality of rational polynomials, not a numerical decision that two nearly equal measured coefficients probably represent the same factor.
Use the result with related calculations
Use these invariant fractions when comparing rational input-output models or checking whether a channel denominator is a genuine system pole. Use ordinary polynomial Smith form for matrices whose entries are already polynomials and whose module invariants are the main question.
Since state-space realization and rational invariant form solve related but distinct problems, save the original transfer matrix as well as the invariants. Two input-output matrices can share the same pole-zero structure while having different channel responses and gains. For a rank-one rational matrix, all two-by-two minors vanish identically while the gcd of the cleared entries still determines its single nonzero invariant. The zero invariant is omitted rather than written with an arbitrary denominator. This convention makes the normal-rank distinction visible and prevents a zero channel from being mistaken for a finite zero of a nonzero channel. Evaluating the original matrix at several frequencies cannot by itself prove this symbolic rank statement.
A few questions, answered
Why do diagonal input entries change in the answer?
Smith–McMillan invariants use unimodular combinations and divisibility conventions; they need not equal original diagonal channels.
Are coefficient arrays ascending or descending?
They are descending powers, with the constant coefficient last in each numerator and denominator list.
Does normal rank mean rank at every frequency?
No. It is rank over rational functions, which can exceed rank at exceptional finite frequencies.
Are poles at infinity included?
No. This initial output reports finite rational invariant fractions and explicitly excludes infinite-zero analysis.