#f(theta) =2 cot (theta/2) - csc (theta/4) - cos (theta/4)#
#color(brown)(cot (theta/2) = 1 / tan (theta/2) = pm sqrt((1 + cos theta) / (1 - cos theta))#
#sin (theta/4) = pm sqrt(1 /2 (1 - sin (theta/2)))#
#color(brown)(csc (theta/4) = 1 / sin (theta / 4) = pm 1 / (sqrt(1/2 (1 - pm sqrt(1/2 (1 - cos theta)))#
#cos (theta/4) = pm sqrt(1 /2 (1 + cos (theta/2)))#
#color(brown)(cos (theta / 4) = pm sqrt(1/2 (1 pm sqrt(1/2 (1 + cos theta)))#
#color(indigo)(f(theta) = (2 * pm sqrt((1 + cos theta) / (1 - cos theta))) - pm 1 / (sqrt(1/2 (1 - pm sqrt(1/2 (1 - cos theta))))) - pm sqrt(1/2 (1 pm sqrt(1/2 (1 + cos theta)))#