(cosx-sqrt2/2)(1/costheta-1)=0