f(x) = P(x){\cos \beta x} + Q(x) {\sin \beta x}