Algorithm Search⌘K

Proofs: Sylvester matrix

These are the human proofs of Sylvester matrix, at full length.

Correctness of the Sylvester matrix operations and the rank formula full

This proof shows: correctness.

Setting. RR is an integral domain with field of fractions FF. f=∑k=0makxkf = \sum_{k=0}^{m} a_k x^k and g=∑k=0nbkxkg = \sum_{k=0}^{n} b_k x^k have formal degrees m,n≥0m, n \ge 0, and N=m+nN = m + n. Column cc of Syl⁡(f,g)\operatorname{Syl}(f, g) stands for xN−1−cx^{N-1-c}. For d≥0d \ge 0, PdP_d is the FF-space of polynomials of degree less than dd, with the basis xd−1,…,x,1x^{d-1}, \ldots, x, 1.

ENTRY. Row i<ni < n is meant to be the coefficient vector of xn−1−if=∑kakxk+n−1−ix^{n-1-i} f = \sum_k a_k x^{k + n - 1 - i}. Column cc stands for xN−1−cx^{N - 1 - c}, so the entry is aka_k with k+n−1−i=N−1−ck + n - 1 - i = N - 1 - c, that is k=m−(c−i)k = m - (c - i), when 0≤k≤m0 \le k \le m, and 00 otherwise. This is line E3. In the same way, row n+jn + j is xm−1−jgx^{m-1-j} g, with the entry bn−(c−j)b_{n - (c - j)}, as on line E4. □\square

COMBINE. Let s=∑i<nsixn−1−i∈Pns = \sum_{i<n} s_i x^{n-1-i} \in P_n and t=∑j<mtjxm−1−j∈Pmt = \sum_{j<m} t_j x^{m-1-j} \in P_m. The row vector (s0,…,sn−1,t0,…,tm−1)(s_0, \ldots, s_{n-1}, t_0, \ldots, t_{m-1}) times Syl⁡(f,g)\operatorname{Syl}(f, g) is ∑isi rowi+∑jtj rown+j\sum_i s_i \, \text{row}_i + \sum_j t_j \, \text{row}_{n+j}. By the claim on ENTRY, this is the coefficient vector of ∑isixn−1−if+∑jtjxm−1−jg=sf+tg\sum_i s_i x^{n-1-i} f + \sum_j t_j x^{m-1-j} g = s f + t g, which has degree less than NN. Lines C3 and C4 add siam−ks_i a_{m-k} and tjbn−kt_j b_{n-k} at position i+ki + k and j+kj + k. Position pp stands for xN−1−px^{N-1-p}, and xn−1−i⋅xm−k=xN−1−(i+k)x^{n-1-i} \cdot x^{m-k} = x^{N-1-(i+k)}, so these are exactly the terms of the two products. □\square

So Syl⁡(f,g)\operatorname{Syl}(f, g) is the matrix of the FF-linear map

φ:Pn×Pm→PN,(s,t)↦sf+tg,\varphi : P_n \times P_m \to P_N, \qquad (s, t) \mapsto s f + t g,

acting on row vectors, and rank⁡Syl⁡(f,g)=dim⁡im⁡φ=N−dim⁡ker⁡φ\operatorname{rank} \operatorname{Syl}(f, g) = \dim \operatorname{im} \varphi = N - \dim \ker \varphi.

DET. Lines L2 to L11 are the Bareiss algorithm on the dense matrix. Its correctness proof shows: after the step for pivot kk, each entry A[i][j]A[i][j] with i,j>ki, j > k equals the minor of the row-permuted input on the rows 0,…,k,i0, \ldots, k, i and the columns 0,…,k,j0, \ldots, k, j, which is an element of RR, and the division on line L9 is exact because RR is an integral domain and the divisor is the previous pivot minor, which is nonzero. If line L6 finds no pivot in column kk, then the rows k,…,N−1k, \ldots, N-1 of the current matrix are zero in column kk, and the current matrix is upper block triangular with a zero column below the diagonal, so the determinant is 0. Otherwise, at the end A[N−1][N−1]A[N-1][N-1] is the full determinant of the row-permuted input. Each swap on line L7 changes the sign of the determinant, and sign records this. Line L1 returns det⁡\det of the empty matrix, which is 1. So DET returns det⁡Syl⁡(f,g)\det \operatorname{Syl}(f, g). □\square

Rank formula. Claim. If am≠0a_m \ne 0 or bn≠0b_n \ne 0, then rank⁡Syl⁡(f,g)=m+n−deg⁡gcd⁡(f,g)\operatorname{rank} \operatorname{Syl}(f, g) = m + n - \deg \gcd(f, g), where gcd⁡(f,0)=f\gcd(f, 0) = f and the gcd is taken in F[x]F[x].

Proof. By symmetry (swapping ff and gg permutes the rows and does not change the rank) assume am≠0a_m \ne 0, so deg⁡f=m\deg f = m. If g=0g = 0, then gcd⁡(f,g)=f\gcd(f, g) = f has degree mm, and ker⁡φ={(s,t):sf=0}={0}×Pm\ker \varphi = \{(s, t) : s f = 0\} = \{0\} \times P_m has dimension mm, so the rank is nn, as claimed. Now let g≠0g \ne 0, h=gcd⁡(f,g)h = \gcd(f, g) of degree ee, f=hf1f = h f_1 and g=hg1g = h g_1 with gcd⁡(f1,g1)=1\gcd(f_1, g_1) = 1 and deg⁡f1=m−e\deg f_1 = m - e.

Let (s,t)∈ker⁡φ(s, t) \in \ker \varphi. Then sf1=−tg1s f_1 = -t g_1. So f1f_1 divides tg1t g_1, and since f1f_1 and g1g_1 are coprime, f1f_1 divides tt: t=qf1t = q f_1 for some q∈F[x]q \in F[x]. Then sf1=−qf1g1s f_1 = -q f_1 g_1, so s=−qg1s = -q g_1. The condition deg⁡t<m\deg t < m means deg⁡q<m−deg⁡f1=e\deg q < m - \deg f_1 = e (or q=0q = 0). Conversely, every q∈Peq \in P_e gives t=qf1t = q f_1 with deg⁡t<e+m−e=m\deg t < e + m - e = m and s=−qg1s = -q g_1 with deg⁡s<e+deg⁡g1=deg⁡g≤n\deg s < e + \deg g_1 = \deg g \le n, and (s,t)∈ker⁡φ(s, t) \in \ker \varphi. The map q↦(−qg1,qf1)q \mapsto (-q g_1, q f_1) is linear and injective, because f1≠0f_1 \ne 0. So dim⁡ker⁡φ=dim⁡Pe=e\dim \ker \varphi = \dim P_e = e, and the rank is m+n−em + n - e. □\square

Consequence. When am≠0a_m \ne 0 or bn≠0b_n \ne 0, Res⁡m,n(f,g)=det⁡Syl⁡(f,g)=0\operatorname{Res}_{m,n}(f, g) = \det \operatorname{Syl}(f, g) = 0 if and only if the rank is below NN, which is if and only if deg⁡gcd⁡(f,g)≥1\deg \gcd(f, g) \ge 1. When am=bn=0a_m = b_n = 0, column 0 is zero, and the determinant is 0. ■\blacksquare

Back to Sylvester matrix