Solving Second Order Nonhomogeneous Differential Equations