1 + cosx =1+2(cosx/2)^2-1=2(cosx/2)^2
1 + cosx
------- = 2(cosx/2)^2/2sin(x/2)*cos(x/2 )=cot(x/2)
sinx