piecewise smooth functions fourier series applications 459854