laplace transform using periodic function