polynom coeff integ
2 mins read ·
Integration of polynomial: Coefficients operation
polynomial as list
A polynomial in the form of
y=i=0∑nbiti(1)
can be presented in a column matrix
y≡[b0 b1 b2 b3 … bn−1 bn](2)
or simply a list in Python.
differential
Let us define other polynomial
x=j=0∑majtj(3)
and use it to represent differential of (1)
dtdy=i=1∑nibiti−1.(4)
Equate (3) and (4) will give
aj=(j+1)bj+1(5)
since
x==[b1 2b2 3b3 … (n−1)bn−1 nbn ][a0 a1 a2 … an−2 an−1].(6)
Notice that in this case m=n−1.
integral
Again another polynomial
z=j=0∑mcjtj(7)
to represent integral of (1)
∫y dt=c0+i=0∑ni+11biti+1.(8)
Equate (7) and (8) will give
cj=j−11bj−1(9)
since
z==[c0 b0 21b1 31b2 … (n−1)bn−1 nbn ][c0 c1 c2 c3 … cn cn+1].(10)