Fourier Series A function of the form
is called a trigonometric polynomial; if cn and dn are not both zero, then T(x) is said to have order n. For example,
is a trigonometric polynomial of order 4 with
It is evident from (2) that the trigonometric polynomials of order n or less are the various possible linear combinations of
It can be shown that these 2n + 1 functions are linearly independent and thus form a basis for a (2n + 1)‐dimensional subspace of C[a, b].Let us now consider the problem of finding the least squares approximation of a continuous function f(x) over the interval [0, 2π] by a trigonometric polynomial of order n or less. As noted above, the least squares approximation to f from W is the orthogonal projection of f on W. To find this orthogonal projection, we must find an orthonormal basis g0, g1, …, g2n for W, after which we can compute the orthogonal projection on W from the formula
[see Theorem 6.4.3(b)]. An orthonormal basis for W can be obtained by applying the Gram–Schmidt process to the basis vectors in (3) using the inner product
This yields the orthonormal basis
If we introduce the notation
then on substituting (5) in (4), we obtain
where,
In short,
The numbers a0, a1, …, an, b1, …, bn are called the Fourier coefficients of f.