@Rikvitha, w0=fundamental frequency. n=number of harmonics=1,2,3,4.... harmonics=integer multiple of fundamental frequency (w0) f(t)cos(nw0t)=harmonics of cos component of f(t):where n=1,2,3,.... cos terms should be----cos(1w0t),cos(2w0t),cos(3w0t),..... cos terms should not be----cos( power 1)w0t,cos( power 2)w0t, cos (power 3)w0t,......