The Delta Function
Clear[a0,a,b]
a0=1/(2Pi);
a=Table[1/Pi,{k,1,20}];
This gives the partial sums of the akCos[kx] from 1 to 20 (we'll have to add a0 later).
Sn=Table[Sum[a[[k]]Cos[k x],{k,1,n}],{n,1,20}];For example:
Sn[[3]]
Let's see how we did.
Plot[a0+Sn[[10]],{x,-Pi,Pi},PlotRange->{-1,5}];Do you think you can see how this could converge to the delta function? I would say experiment with more and more partial sums, but Mathematica takes a loooooong time to plot larger ones.
Up to Fourier Series Examples