Processing math: 11%

 

 

 

Efficient Polynomial Multiplication

Computing polynomial products can be implemented efficiently if we rewrite the more brute force multiplications using convolution. We note first that the new coefficients are given as

δ0=α0β0δ1=α1β0+α0β1δ2=α0β2+α1β1+α2β0δ3=α1β2+α2β1+α0β3δ4=α2β2+α1β3δ5=α2β3.

We note that \alpha_i=0 except for i\in \left\{0,1,2\right\} and \beta_i=0 except for i\in\left\{0,1,2,3\right\} .

We can then rewrite the coefficients \delta_j using a discrete convolution as

\delta_j = \sum_{i=-\infty}^{i=\infty}\alpha_i\beta_{j-i}=(\alpha * \beta)_j,

or as a double sum with restriction l=i+j

\delta_l = \sum_{ij}\alpha_i\beta_{j}.