Cubic normal forms and the elementary symmetric functions of the roots of a split cubic #
A polynomial of degree at most three is C a * X ^ 3 + C b * X ^ 2 + C c * X + C d for its own
coefficients; this is the inverse half of Mathlib's Cubic.equiv, stated for the polynomial
itself rather than its degree-bounded subtype.
A product (X - a)(X - b)(X - c) of three monic linear factors determines the elementary
symmetric functions of a, b, c: by Vieta's formulas they are, up to sign, its coefficients.
This file records the resulting comparison of two such factorisations over any commutative ring,
using Mathlib's expansion Cubic.prod_X_sub_C_eq.
Main results #
Polynomial.eq_cubic_of_natDegree_le_threeandPolynomial.Monic.eq_X_pow_three_add: the normal forma * X ^ 3 + b * X ^ 2 + c * X + dof a polynomial of degree at most three, andX ^ 3 + a * X ^ 2 + b * X + cof a monic cubic.TauCeti.Polynomial.add_add_eq_and_mul_add_mul_add_mul_eq: if(X - a)(X - b)(X - c) = (X - a')(X - b')(X - c'), thena + b + c = a' + b' + c'andab + ac + bc = a'b' + a'c' + b'c'.
A polynomial of degree at most three is C a * X ^ 3 + C b * X ^ 2 + C c * X + C d for its own
coefficients a, b, c, d.
A monic polynomial of degree three is X ^ 3 + C a * X ^ 2 + C b * X + C c for its own
coefficients a, b, c.
Equal products of three monic linear factors have the same first and second elementary symmetric functions of their roots.