Nonhomogeneous second-order linear ordinary differential equation with constant coefficients