The Trigonometric polynomial for a given \(N\) is the best approximation to a periodic function \(f(x)\) in the sum of squares error sense. The Fourier Coefficients seen previous result in this trigonometric polynomila.
Consider a periodic function \(f\) of period \(2\pi\) on the interval \([-\pi,\pi]\text{.}\) The \(N\)th partial sum of the Fourier Series of \(f\) is denoted \(f_N\text{,}\)
where \(a_0,
a_n\) and \(b_n\) are the Fourier Coefficients as before. The function \(f_N\) is also called the Trigonometric Polynomial of degree \(n\).
What is the best approximate for a trigonometric polynomial to another function \(F(x)\text{.}\) That is, what coefficients can be chosen \(A_0, A_n, B_n\text{?}\)
To answer this question, we will need to know what error we are taking about. Typically the error will be some function of the two functions, called \(E(f,g)\) that outputs a number. We would like the error to have the following properties:
And in contrast to the previous example, the trigonometric polynomial \(f_9(x)\) and the original function \(f\) are quite different. This is mainly due to the discontinuities in the original function.
The quantity \(||F-F_N||^2\) on the interval \([-\pi,\pi]\) is the minimum if and only if the coefficients of \(F_N\) in (2) ar the Fourier coefficients of \(F\text{.}\) This minimum value is
If the integral on the right side is finite, then the series on the left converges. Functions in which the right side is finite are piecewise continuous functions.
A consequence of Parsevalβs Theorem is that for piecewise continuous functions, the Fourier Series converges as \(n \rightarrow \infty\text{.}\) So in light of the plot in Example ExampleΒ 6.4.4, that it would appear that the plot of \(f_N\) would approach the square wave as \(N \rightarrow \infty\text{.}\) However the plots of \(f_{25}\) and \(f_{100}\) are shown below (with \(n=25\) on top):
And despite the larger value of \(N\text{,}\)\(f_N\) does not appear to be approaching the square wave function. The difference is pronounced near the discontinuities in the function. This is called \emph{Gibbs Phenomena} and it can be shown in this situation that the local max near \(x=0\) in fact grows without bound as \(N \rightarrow \infty\text{,}\) despite the fact that \(||f_N-f|| \rightarrow 0\text{.}\)
Subsection6.4.2Why is finite Fourier Series called a Polynomial?
You may be scratching your head about why the sum of sines and cosines is called a polynomial. You do recall correctly that polynomials are generally of the form
Note that in these examples, functions of the form \(\sin kx\) and \(\cos kx\) can be written in terms (for \(k=2,3\)) of products and powers of \(\sin x\) and \(\cos x\text{.}\) This continues for larger values of \(k\) as well.