Resultant of two polynomials #
This file contains basic facts about resultant of two polynomials over commutative rings.
Main definitions #
Polynomial.resultant: The resultant of two polynomialspandqis defined as the determinant of the Sylvester matrix ofpandq.Polynomial.disc: The discriminant of a polynomialfis defined as the resultant offandf.derivative, modified by factoring out a sign and a power of the leading term.
TODO #
- The eventual goal is to prove the following property:
resultant (∏ a ∈ s, (X - C a)) f = ∏ a ∈ s, f.eval a. This allows us to write theresultant f gas the product of terms of the forma - bwhereais a root offandbis a root ofg. - A smaller intermediate goal is to show that the Sylvester matrix corresponds to the linear map
that we will call the Sylvester map, which is
R[X]_n × R[X]_m →ₗ[R] R[X]_(n + m)given by(p, q) ↦ f * p + g * q, whereR[X]_nisPolynomial.degreeLTinMathlib.RingTheory.Polynomial.Basic. - Resultant of two binary forms (i.e. homogeneous polynomials in two variables), after binary forms are implemented.
The Sylvester matrix of two polynomials f and g of degrees m and n respectively is a
(n+m) × (n+m) matrix with the coefficients of f and g arranged in a specific way. Here, m
and n are free variables, not necessarily equal to the actual degrees of the polynomials f and
g.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The Sylvester matrix for f and f.derivative, modified by dividing the bottom row by
the leading coefficient of f. Important because its determinant is (up to a sign) the
discriminant of f.
Equations
- One or more equations did not get rendered due to their size.
Instances For
We can get the usual Sylvester matrix of f and f.derivative back from the modified one
by multiplying the last row by the leading coefficient of f.
The resultant of two polynomials f and g is the determinant of the Sylvester matrix of f
and g. The size arguments m and n are implemented as optParam, meaning that the default
values are f.natDegree and g.natDegree respectively, but they can also be specified to be
other values.
Instances For
For polynomial f and constant a, Res(f, a) = a ^ m.
For polynomial f and constant a, Res(f, a) = a ^ m.
The discriminant of a polynomial, defined as the determinant of f.sylvesterDeriv modified
by a sign. The sign is chosen so polynomials over ℝ with all roots real have non-negative
discriminant.
Instances For
The discriminant of a linear polynomial is 1.
Relation between the resultant and the discriminant.
(Note this is actually false when f is a constant polynomial not equal to 1, so the assumption on
the degree is genuinely needed.)
Standard formula for the discriminant of a cubic polynomial.