changed start to take in a0,an,bn arguments to represent any fourier series coefficients