piecewise smooth functions fourier series applications 204113