This solution does not rely on trigonometry. Instead, the stereographic projection is used: (x,y)=(1−q21+q2,2q1+q2)
The differential equations were obtained with Mathematica. They are considerably large.