On a Class of Differential Equations of Riccati Type