liveBook · Manning

Polynomial resultant

As explained in Elliptic Curve Cryptography for Developers

The resultant of two polynomials is an algebraic scalar that vanishes exactly when the polynomials share a root in an appropriate extension field.

A polynomial resultant is a single scalar modulo the coefficient-field prime. It vanishes when two input polynomials share a factor, and provides a practical test for square roots in finite-field extensions. section 12.0 section 12.1

For a polynomial A modulo an irreducible polynomial f over a field of prime p, compute res(f, A) and test res(f, A)^((p−1)/2) = 1. Equality identifies A as a quadratic residue and permits a square root; otherwise, the square root routine rejects it. section 12.1 section 12.4

Implementing the resultant follows a four-phase flow:

  • Return zero immediately when either input polynomial is zero. section 12.2.3
  • Compute each polynomial’s content, divide it out, initialize scaling factors, and swap inputs when the first degree is smaller. section 12.1
  • Repeat pseudo-division while the second polynomial has positive degree, updating signs, leading coefficients, scaling values, and the remainder. section 12.2.3

Content normalization

For a = 4x⁴ + 24x³ + 12x² + 4x + 32, the content is 4. Dividing every coefficient by 4 produces the primitive polynomial used during resultant computation. section 12.1

How Elliptic Curve Cryptography for Developers covers it

How deep it goes
Descends from determinant and root-product definitions to content normalization, pseudo-division, scaling, sign handling, and GMP cleanup.
Examples
Demonstrates coefficient-content removal, a resultant algorithm diagram, and C routines for initialization, looping, output, and residue testing.
What it assumes
Assumes polynomial arithmetic, irreducible prime polynomials, modular exponentiation, and greatest common divisors of coefficients.
What you can do after
Apply it via a resultant subroutine to determine whether an extension-field polynomial can have a square root.
How it connects
Connects polynomial pseudo-division, polynomial content, quadratic residues, finite fields, square roots, and elliptic curves.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Elliptic Curve Cryptography for Developers. The section links point to the parts of the book it draws on.