Equations of the form dy/dx + Py = Q using an integrating factor