2.3 Numerical computation of Fourier expansion coefficient

For a periodic function h(t) with a period of T, its Fourier expansion is given by

       ∑∞       (   2π )
h(t) =     cnexp  in--t  ,
      n=−∞          T
(31)

with the coefficient cn given by

       ∫ T       (       )
cn = 1-   h(t)exp  − in2πt dt.
     T  0             T
(32)

How to numerically compute the Fourier expansion coefficients? A simple way is to use the rectangle formula to approximate the integration in Eq. (32), i.e.,

    Δ N∑−1      (   2πjΔ )
cn ≈ T    hjexp  − in-T--  ,
       j=0
(33)

where hj = h(tj) and tj = jΔ with j = 0,1,2,,N 1 and Δ = T∕N, as is shown in Fig. 1.


pict

Figure 1: Sampling points in one period of the signal, where T = NΔ is the period of the signal.

 

Note Eq. (33) is an approximation, which will become exact if Δ 0. In practice, we can sample h(t) only with a nonzero Δ. Therefore Eq. (33) is usually an approximation. Do we have some rules to choose a suitable Δ so that Eq. (33) can become a good approximation or even an exact relation? This important question is answered by the sampling theorem (will be discussed in Append. B), which sates that a suitable Δ to make Eq. (33) exact is given by Δ 1(2fc), where fc = Nc∕T is the largest frequency contained in h(t) (i.e, cn is zero for |n|Nc).

fs 1Δ is called sampling frequency. Then the above condition can be rephrased as: the sampling frequency should be larger than 2fc.