As x,y and x+y are not the multiple of π, so sinx,siny and sin(x+y) are non zero.
(i) cot(x+y)=cos(x+y)sin(x+y)
=cosxcosy−sinxsinysinxcosy+sinycosx
Dividing numerator and denominator by sinxsiny, we get
cot(x+y)=cosxcosysinxsiny−sinxsinysinxsinysinxcosysinxsiny+sincosxsinxsiny
=cotxcoty−1coty+cotx
(ii) We have cot(x+y)=cotxcoty−1coty+cotx
Replace y by −y, we get
cot(x+(−y))=cotxcot(−y)−1cot(−y)+cotx
∴cot(x−y)=−cotxcoty−1−coty+cotx
=cotxcoty+1coty−cotx