Sums of Sine Waves with Several Step Sizes (Sawtooth or Square Approximations)
Sums of Sine Waves with Several Step Sizes (Sawtooth or Square Approximations)
This Demonstration shows the functions , for values of that run from 1 to the maximum frequency in steps of size in the bottom plot, and their sum in the top plot. This illustrates an approximation of standard waves (sawtooth, square, etc.) by adding sine waves (Fourier method).
y=sin(kx+ϕ)
k
s
Adding 30 waves with step size , the graph of the sum approximates a sawtooth curve:
s=1
y(x)=sin((k+1)x)=sin(x)+sin(2x)+…+sin(30x)
29
Σ
k=0
1
k+1
1
2
1
30
With 30 waves and step size , the graph of the sum approximates a square wave:
s=2
y(x)=sin((2k+1)x)=sin(x)+sin(3x)+…+sin(29x)
14
Σ
k=0
1
2k+1
1
3
1
29
With 15 waves and step size :
s=4
y(x)=sin((4k+1)x)=sin(x)+sin(5x)+sin(9x)+sin(13x)
3
Σ
k=0
1
4k+1
1
5
1
9
1
13
In general, for the step size :
s
y(x)=sin((sk+1)x
n
s
Σ
k=0
1
sk+1
The step size parameter gives interesting artificial waves such as natural harmonics.
s