Any function that has all derivatives at its beginning, t=0, equal to all derivatives at its end, t=T, can be expanded as a periodic function.
A periodic function can always be expanded as
Note that cj is complex and that
Since the first exponential is always 1. The integral from 0 to T of f is
The value of the integral is given by the c0 term alone. All other terms in the expansion integrate to zero.
Let
Note the interchange of summation orders. Let
The last term can be written as a sum of zk and we can use the familiar relation for z¹1
Note that
The terms
that enter are not uniform. If for some
accidental reason c10 = 0, 10 point integration will seem exact up
to c20. Changing N from 10 to
20 will give a false accuracy reading.
The correct change is from 10 to 11 or 13, Do not simply double the points.