Fourier-Series Approximation of a Square Wave

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

A square wave with amplitude 1 and wavelength can be approximated by the Fourier expansion



a sum of sines with amplitudes and frequencies .

This Demonstration uses an open five-bar linkage to represent Fourier approximations of increasing accuracy. The bar of the linkage has length and rotates at angular speeds around its joint with the preceding bar.

The ordinates of the joints represent progressive approximations to the sum, as you can see by operating the time gauge.


Contributed by: Erik Mahieu (April 2016)
Open content licensed under CC BY-NC-SA



Snapshots 1 through 5 show the progressive approximations of the square wave using one through five bars of the linkage.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.