The Schrödinger and Riccati equations