fourth derivative of e^{qx}f(x/n)^n