Mathisfun:
Where did cot(x) in the denominator go
=(cosx/sinx) - 2sinxcosx
Where did "/sin(x)" go
Where did sin²(x) come from
You can't multiply by sin(x) only in RHS
=cosx - 2sin²(x)cos(x)
Where did cos(x) go
= 1 - 2sin²(x)
Some may be just typos, but I can't follow it. Try putting something you know (x=30 maybe, or even x=0) and see what comes out for each of the lines you have typed. They should all give the same answer if your steps are correct.