Dual exponential polynomials and linear differential equations