One can develop a function into a series (i.e., set the function as the limit value to which the series must converge) of a set of orthonormal periodic functions () that form the orthonormal basis of a vector space:
The limit of the series can be, e.g., from to , or from to . The coefficients can be found using the inner product (multiplying from the right by with a different index ):
( is the Kronecker delta).
.
Real Fourier series in cosines and sines
In the chapter about function spaces, we showed that the set forms an orthonormal basis of a vector space of periodic functions with period within the interval and with a normalization factor . Then, one can expand a function as
with
The coefficients can be then computed as
, , .
Real Fourier series for an arbitrary period
In general, for a periodic function with period , the Fourier series defined using the basis functions with is
The coefficients can be then computed as
where ,
where and the normalization constant .
Simple theory exercise: shift the function definition from to and write the coefficients.
Complex Fourier series
The set of functions (each , ) forms an orthonormal basis of a vector space with a period and a normalization factor . We define the Fourier series expansion of a function of period as
and then, the coefficients are computed as (remember to do the complex conjugate of the expontential!).
Comment: for a real function , the coefficients can still be complex, but their product with the basis functions should yield a real number in the end.
Simple exercise: What is the relation between the coefficients of the Fourier series of and the Fourier series of the shifted function () ?
Relations between a real and complex Fourier series
For a function with period , we can expand in both bases:
but this time, in general.
If the are given:
for .
If are given:
for
Handling of discontinuities
Consider but with points within the domain where is discontinuous. Then, the Fourier expansion can be related as if is continuous in , but if it is not, then for each (), (where and are the values from the left and right sides of the discontinuity)