I once wanted to find the nth order Fourier approximation for [tex]f(x)=x[/tex]. Since this function is odd, the projections on all cosines will be zero, hence it will be expressed through the sines only. So I just needed to find the sine coefficients.(adsbygoogle = window.adsbygoogle || []).push({});

The problem is that I checked the answer to this problem in two different textbooks, each one giving a different answer from the other.

[tex]b_k= \frac{1}{\pi} \int^{2 \pi}_{0} f(x)sin(kx)= \frac{1}{\pi} \int^{2 \pi}_0 xsin(kx) dx =- \frac{2}{k}[/tex]

- The first book calculates the coefficients like this:

[tex]b_k = (f(x),sin (k \pi x))= \int^1_{-1} x sin (k \pi x) dx= -x\frac{cos (k \pi x)}{k \pi} \right]^1_{-1} + \int^1_{-1} \frac{cos (k \pi x)}{k \pi}dx [/tex][tex]= -2 \frac{cos k \pi}{k \pi}=-(-1)^k \frac{2}{k \pi}[/tex]

- The second book calculates the coefficients this way:

So which one is correct? I mean, they both are probably correct but I don't understand why each of these books use different methods and end up with different answers. Any explanation is very much appreciated.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Fourier Series

Loading...

Similar Threads - Fourier Series | Date |
---|---|

I Inverse Laplace to Fourier series | Oct 22, 2016 |

I Motivation for Fourier series/transform | Oct 17, 2016 |

I Question about Fourier series | Sep 19, 2016 |

I Fourier Series: I don't understand where I am wrong -- please help | Jun 16, 2016 |

I Is this even possible? Question about Fourier Series... | May 24, 2016 |

**Physics Forums - The Fusion of Science and Community**