Good afternoon! My teacher of signals and systems put in my test that calculate the Fourier coefficients for the function $f(x) = \frac{\sin x}{x}$. But ... How I can do?
I know that the function is even, hence the coefficient $B_n = 0$. For calculating $A_0$ would change the expression $\frac{\sin x}{x}$ for their respective series of Taylor? How I can calculate $A_n$?
The idea behind finding coefficients in Fourier series is "orthogonal functions". We can write $f(x)$ as an even function:
$$ f(x) = a_0 + \sum_{n=1}^{\infty} a_n \cos(nx) $$ Now if you multiply $f(x)$ by $\cos(mx)$ and take the integral from $-\pi$ to $\pi$:
$$ \begin{align} \int_{-\pi}^{\pi} f(x) \cos(mx) dx &= a_0 \int_{-\pi}^{\pi} \cos(mx) dx + \sum_{n=1}^{\infty} a_n \int_{-\pi}^{\pi} \cos(nx) \cos(mx) dx \\ &= a_0 (0) + \sum_{n=1}^{\infty} a_{n} \pi \delta_{mn} = \pi a_m \end{align} $$ therefore: $$ a_{m} = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \cos(mx) dx = \frac{1}{\pi} \int_{-\pi}^{\pi} \frac{\sin(x) \cos(mx)}{x} dx $$
Now you can write the integrand as a sum since:
$$ \frac{\sin(x) \cos(mx)}{x} = \frac{\sin[(1+m)x]+\sin[(1-m)x]}{2x} $$ then:
$$ \begin{align} a_{m} &= \frac{1}{2\pi} \int_{-\pi}^{\pi} \left( \frac{\sin[(1+m)x]}{x} \right) dx + \frac{1}{2\pi} \int_{-\pi}^{\pi} \left( \frac{\sin[(1-m)x]}{x} \right) dx \\ &= Si(\pi +m \pi)+Si(\pi-m \pi) \end{align} $$