Home › Algebraic Equations › Lesson 8

Resultants, Discriminants and Elimination

Lesson 8 of 13

Key idea of this section

Res(f, g) = aₙᵐ bₘⁿ ∏i,j (αᵢ − βⱼ) = aₙᵐ ∏ᵢ g(αᵢ)
Res(f, g) = 0  ⟺  f and g have a common factor  (aₙbₘ ≠ 0)
Disc(f) = aₙ2n−2 ∏i<j (αᵢ − αⱼ)²,   Res(f, f′) = (−1)n(n−1)/2 aₙ Disc(f)

How do we decide whether two polynomials have a common root without finding any roots? Euclid's algorithm answers this, but it requires division, and it does not give a single closed formula in the coefficients. The resultant, introduced by Euler and Bézout and put in determinant form by Sylvester (1840), does.

The Sylvester matrix

Let f = aₙxⁿ + ⋯ + a₀ and g = bₘxᵐ + ⋯ + b₀ over a commutative ring R. The Sylvester matrix Syl(f, g) is the (m + n) × (m + n) matrix whose first m rows are the coefficients (aₙ, …, a₀) shifted one place right in each successive row, and whose last n rows are the coefficients (bₘ, …, b₀) shifted likewise. The resultant is Res(f, g) = det Syl(f, g). For f = x² − 1 and g = x − 2 (n = 2, m = 1):

⎡ 1   0  −1 ⎤
⎢ 1  −2   0 ⎥       det = 1 · ((−2)(−2) − 0 · 1) − 0 + (−1)(1 · 1 − 0) = 4 − 1 = 3
⎣ 0   1  −2 ⎦

Theorem 8.1. Let K be a field, f, g ∈ K[x] with aₙbₘ ≠ 0. Then Res(f, g) = 0 if and only if f and g have a nonconstant common factor.

Proof. Consider the K-linear map Φ : (u, v) ↦ uf + vg from pairs with deg u < m, deg v < n to polynomials of degree < m + n. Both spaces have dimension m + n, and in the monomial bases the matrix of Φ is the transpose of Syl(f, g). If h = gcd(f, g) is nonconstant, then u = g/h, v = −f/h is a nonzero element of ker Φ, so det = 0. Conversely, if det = 0 there is (u, v) ≠ 0 with uf = −vg. Then f divides vg; if gcd(f, g) = 1 then f divides v, impossible because deg v < n and v ≠ 0 (v = 0 would force u = 0). ∎

Since Φ is surjective when the resultant is nonzero, Cramer's rule gives polynomials u, v with coefficients in R (not just K) such that uf + vg = Res(f, g). So the resultant lies in the ideal (f, g) ∩ R: it is the "eliminant" of x from the system f = g = 0.

Theorem 8.2 (Product formula). If f = aₙ∏(x − αᵢ) and g = bₘ∏(x − βⱼ), then

Res(f, g) = aₙᵐ bₘⁿ ∏i,j(αᵢ − βⱼ) = aₙᵐ ∏ᵢ g(αᵢ) = (−1)mn bₘⁿ ∏ⱼ f(βⱼ)

Sketch of proof. Work universally, with aₙ, bₘ, αᵢ, βⱼ as indeterminates and the other coefficients given by Vieta. Res(f, g) is then a polynomial that vanishes whenever αᵢ = βⱼ (by Theorem 8.1), so each αᵢ − βⱼ divides it. Counting degrees, give a₍ₙ₋ⱼ₎ and b₍ₘ₋ⱼ₎ weight j: every term of the Sylvester determinant has total weight mn, and a₍ₙ₋ⱼ₎/aₙ = (−1)ʲeⱼ(α) has degree j in the α's (similarly for the β's), so Res/(aₙᵐbₘⁿ) has degree mn in the α's and β's, the degree of ∏(αᵢ − βⱼ). Comparing the coefficient of a single monomial (for instance setting all βⱼ = 0, when g = bₘxᵐ and the Sylvester determinant is a triangular computation) fixes the constant. ∎

Check with the example: aₙᵐ ∏ g(αᵢ) = 1 · g(1) g(−1) = (−1)(−3) = 3, as computed from the determinant.

The discriminant

Define Disc(f) = aₙ2n−2 ∏i<j(αᵢ − αⱼ)². It is symmetric in the roots, hence (by Lesson 7) a polynomial in the coefficients, and it vanishes exactly when f has a repeated root. Since f′(αᵢ) = aₙ∏j≠i(αᵢ − αⱼ), the product formula gives

Res(f, f′) = aₙⁿ⁻¹ ∏ᵢ f′(αᵢ) = aₙ2n−1 ∏i≠j(αᵢ − αⱼ) = (−1)n(n−1)/2 aₙ Disc(f)

because each pair i < j contributes (αᵢ − αⱼ)(αⱼ − αᵢ) = −(αᵢ − αⱼ)², and there are n(n − 1)/2 pairs. For the quadratic, Res(ax² + bx + c, 2ax + b) = a(2aα + b)(2aβ + b) = a · (√Δ)(−√Δ) = −aΔ, recovering Disc = b² − 4ac. Further examples worth knowing:

Disc(x³ + px + q) = −4p³ − 27q²
Disc(xⁿ + a) = (−1)n(n−1)/2 nⁿ aⁿ⁻¹
Disc(xⁿ + ax + b) = (−1)n(n−1)/2 (nⁿ bⁿ⁻¹ + (−1)ⁿ⁻¹ (n − 1)ⁿ⁻¹ aⁿ)

For n = 3 the last formula gives −(27b² + 4a³), agreeing with the first.

Elimination of variables

Treat f, g ∈ K[x, y] as polynomials in y with coefficients in K[x]. The resultant Resy(f, g) is a polynomial in x alone, and it vanishes at every x-coordinate of a common zero (and at x-values where both leading coefficients vanish). This is elimination. Example: intersect the circle x² + y² = 5 with the hyperbola xy = 2. Taking f = y² + (x² − 5) and g = xy − 2, the product formula applied to the root y = 2/x of g gives

Resy(f, g) = x² f(x, 2/x) = 4 + x⁴ − 5x² = (x² − 1)(x² − 4)

so x ∈ {±1, ±2} and the intersection points are (1, 2), (−1, −2), (2, 1), (−2, −1). There are 2 · 2 = 4 of them, as Bézout's theorem predicts: two projective plane curves of degrees d and e without a common component meet in exactly de points of the complex projective plane, counted with multiplicity. The degree bound in Bézout's theorem comes from the degree of the resultant.

For several variables the resultant generalizes in two directions: the multivariate (Macaulay) resultant of n homogeneous forms in n variables, and Gröbner bases (Buchberger, 1965), which give an algorithmic elimination theory for arbitrary ideals and are the standard tool of computer algebra for solving polynomial systems.

Exercise

  • (a)
    Compute Res(x² + 1, x³ + x + 1).
  • (b)
    Compute Res(x² − 3x + 2, x² + x − 6) and interpret the result.
Show solution

Answers: (a) The roots of x² + 1 are ±i, and g(i) = −i + i + 1 = 1, g(−i) = i − i + 1 = 1, so Res = 1³ · 1 · 1 = 1. The polynomials are coprime; in fact there are integer polynomials u, v with u(x² + 1) + v(x³ + x + 1) = 1. (b) The roots of the first polynomial are 1 and 2; g(1) = −4 and g(2) = 0, so the resultant is 0. The polynomials share the root 2: indeed x² − 3x + 2 = (x − 1)(x − 2) and x² + x − 6 = (x − 2)(x + 3).

V.3.1