Riccati Equation for Geodesic Spheres