Let us put y=1−cosx1+cosx. Using the double angle formula for cosine function we can write: 1+cosx=2cos22x Similarly using the another formula for cosine function we can write: 1−cosx=2sin22x Substituting in value of y we can write: y=2sin22x2cos22x=sin22xcos22x=cot22x=cot2x Therefore, y=cot2x. Differentiating both sides with respect to x we get, dxdy=−21csc22x Therefore, the final answer is dxdy=−2csc22x.