f(t)=a0+n=1[ancos(nt)+bnsin(nt)] a0=12LLLf(t)dt an=1LLLf(t)cosnπtLdt bn=1LLLf(t)sinnπtLdt


You can scroll over the animation to see it closer and slower