z=r^2+1, z=sqrt(5-r^2)