this is from Mr. Astar
and for HUsh
but one thing i dont get is that i am not familier with cot x
so can anyone explain me the concept of cot x
cotx is an A2 formula which is 1 over tanx = cosx over sinx
however I prefer using the tan property which is tanx=-tan(-x)
therefore tan(pi-x)= -tan(x-pi) = -tanx = -k *P.S : tan(x+180)=tan(x-180)=tanx since the tan graph repeats itself every 180 degrees unlike the six or cosine (360)
I hope tht clears the first part!