Solve by the method of undetermined coefficients y" – 3y' + 2y = x2 + x + 1.
Given differential equation is
Substituting in (1)