Fourier Series Approximation

e.g., (x+2)^2 if x<0; 8-x if x>=0 or abs(x+3)+sin(5*x)