Matrix Riccati Equations