Contents - Student subdomain for University of Bath
Contents - Student subdomain for University of Bath
Contents - Student subdomain for University of Bath
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
52 CHAPTER 2. POLYNOMIALS<br />
6) to be whichever <strong>of</strong> x and y minimises<br />
min(max(deg x (f), deg x (g)), max(deg y (f), deg y (g))).<br />
v = 3 Here the coefficients are bivariate polynomials. If we assume classic multiplication<br />
on dense polynomials, F (d) = cd 4 +O(d 3 ). We are then looking<br />
at<br />
k∑<br />
(k − i)F (id) ≤ c<br />
i=0<br />
≤<br />
ck<br />
k∑<br />
(k − i)i 4 d 4 2 +<br />
i=0<br />
k∑<br />
i 4 d 4 − c<br />
i=0<br />
k∑<br />
kO(i 3 d 3 )<br />
i=0<br />
k∑<br />
i 5 d 4 + k 5 O(d 3 )<br />
i=0<br />
( ) ( )<br />
1 1<br />
= c<br />
5 k6 + · · · d 2 − c<br />
6 k6 + · · · d 2 + k 5 O(d 3 )<br />
( ) 1<br />
= c<br />
30 k6 + · · · d 4 + k 5 O(d 3 )<br />
which we can write as O(k 6 d 4 ). The asymmetry is again obvious.<br />
general v The same analysis produces O(k 2v d 2v−2 ).<br />
We see that the cost is exponential in v, even though it is polynomial in d and<br />
k. This is not a purely theoretical observation: any experiment with several<br />
variables will bear this out, even when the inputs (being sparse) are quite small:<br />
the reader need merely use his favourite algebra system on<br />
a 0 := ax 4 + bx 3 + cx 2 + dx + e; a 1 := fx 4 + gx 3 + hx 2 + ix + j,<br />
treating x as the main variable (which <strong>of</strong> course one would not do in practice),<br />
to see the enormous growth <strong>of</strong> the coefficients involved.<br />
2.3.5 Square-free decomposition<br />
Let us revert to the case <strong>of</strong> polynomials in one variable, x, over a field K, and let<br />
us assume that char(K) = 0 (see definition 15 — the case <strong>of</strong> characteristic nonzero<br />
is more complicated [DT81], and we really ought to talk about ‘separable<br />
decomposition’ [Lec08]).<br />
Definition 31 The <strong>for</strong>mal derivative <strong>of</strong> f(x) = ∑ n<br />
i=0 a ix i is written f ′ (x) and<br />
computed as f ′ (x) = ∑ n<br />
i=1 ia ix i−1 .<br />
This is what is usually referred to as the derivative <strong>of</strong> a polynomial in calculus<br />
texts, but we are making no appeal to the theory <strong>of</strong> differentiation here: merely<br />
defining a new polynomial whose coefficients are the old ones (except that a 0<br />
disappears) multiplied by the exponents, and where the exponents are decreased<br />
by 1.