for a square wave function,(adsbygoogle = window.adsbygoogle || []).push({});

f(x)= { -1, -∞ ≤ x ≤ 0; +1, 0 ≤ x ≤ ∞

Expanding it in fourier series gives a function like,

f(x) = (4/π) * Ʃ_{n=0}^{∞}( (sin ((2n+1)x) / (2n+) )

Plotting a graph of the equation gives something like this, http://goo.gl/vFJhL

which obviously doesn't look like a square wave. Can anyone tell me where have I gone wrong? What am I missing?

P.S

Fourier co-efficients

a_{n}=0

a_{0}=0

**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!

# Square Wave function.

Loading...

Similar Threads - Square Wave function | Date |
---|---|

B Simple Question About Term(s) re: Fermat | Jan 19, 2018 |

B Calculating the area of a circle or square using decimals | Nov 9, 2017 |

B Square root of a negative number in a complex field | Oct 16, 2017 |

Getting the components of a sum of square waves | Jan 29, 2013 |

Frequency of the square wave were chosen too high? | Feb 20, 2009 |

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