I am frustated with these two problems, i can not figure them out, ive tried many identities but still no correct answer.

The problems are

#1.) (1+cot(x))^2-cot(x)=1/(1-cos(x))(1+cos(x))

#2.) 1-2cos^2(y)/1-2cos(y)sin(y)=sin(y)+cos(y)/sin(y)-cos(y)

please help or give some hints ,thank you .