Approximation of solutions of Riccati equations