Approximate non-periodic function with Fourier series

226 Views Asked by At

Given the Fourier series \begin{align} f_0(x)=1 \\ f_1(x)=\cos(x)\\ f_2(x)=\sin(x) \\ f_3(x)=\cos(2x)\\ f_4(x)=\sin(2x) \\ f_5(x)=\cos(3x)\\ f_6(x)=\sin(3x) \\ \cdots \end{align} where $x\in [-\pi, \pi]$, can one approximate a non-periodic function (e.g. $y=x/10, x\in [-\pi, \pi]$) with a linear combination $$ y(x) =\sum_i a_i f_i(x) $$ ?

As I understand, all Fourier series here satisfy
$$ f_i(-\pi)= f_i(\pi) $$ then $y(-\pi)= y(\pi)$ holds, which means that $y(x)$ is periodic.

2

There are 2 best solutions below

3
On

The question is : approximate in what sense? If you want to approximate in the pointwise sense then you have to assume that $f$ is periodic. But there are other types of approximations. Any square integrable function can be approximated by the partial sums $s_n$ of a series of above type in the sense $\int |f-s_n|^{2} \to 0$. No periodicity is required for this.

0
On

The Fourier series $f(x)$ of $y(x)~($periodic with $2\pi)$ is not identical to $y(x)$ even in the specified interval. The Dirichlet conditions give that the series converges to the average of the left and right-hand limits of $y$ at each $x$. This means it converges to $y(x)$ at points of continuity. At points of discontinuity, its values does not match with the functional value.

This means $f(\pi)=f(-\pi)=\dfrac{y(\pi^-)+y(-\pi^+)}2$. In case $y(x)$ is continuous at $\pm\pi$ but $y(\pi)\ne y(-\pi)$, the value of the Fourier series does not agree with $y$. This is a consequence of $y$ not being periodic.