Post · 2 min read· pp. 70–71
A polynomial ϕ of degree d is a vector of d+1 coefficients:
ϕ=[ϕ0,ϕ1,ϕ2,…,ϕd]
For example, ϕ=[1,10,9] is a degree 2 polynomial.
Also, ϕ’=[1,10,9,0,0,0] is also a degree 2 polynomial, since the zero coefficients at the end do not count.
But ϕ’’=[1,10,9,0,0,0,1] is a degree 6 polynomial, since the last non-zero coefficient is ϕ6=3.
“A list of numbers? That makes no sense!”
Don’t panic!
You are probably more familiar to polynomials expressed as function of a variable X:
ϕ(X)=ϕ0+ϕ1⋅X+ϕ2⋅X2+⋯+ϕd⋅Xd=i=0∑d+1ϕiXi
For example, ϕ=[1,10,9] and ϕ(X)=9X2+10X+1 are one and the same thing.
Note: The degree is defined as the index i of the last non-zero coefficient: deg(ϕ)=i s.t. ∀j>i,ϕj=0.
The basics of polynomials
Roots of polynomials
We say z is a root of ϕ(X) if ϕ(z)=0.
In this case, ∃q(X) such that ϕ(X)=q(X)(X−z).
But what if z is also a root q(X)?
We can capture this notion as follows: we say z has a multiplicity k if ∃q’(X) such that ϕ(X)=q’(X)(X−z)k.
The polynomial remainder theorem
This theorem says that:
ϕ(a)=y⇔∃q(X),ϕ(X)=q(X)(X−a)+ϕ(a)
This property is leveraged by certain cryptosystems 1.
Dividing polynomials
Division of polynomials conceptually resembles division of integers.
Specifically, dividing a polynomial a(X) by b(X) gives a quotient q(X) and a remainder r(X) such that:
a(X)=q(X)b(X)+r(X)
Importantly, degr<degb and, if dega≥degb, then degq=dega−degb.
Otherwise, q(X)=0.
TODOs
Discrete Fourier Transform (DFT), maybe in its own post?
Multipoint evaluations, reuse from AMT post?
Reed-Solomon error-correction algorithm(s?).
Evaluation proofs in KZG polynomial commitments leverage the polynomial remainder theorem.