упростите 2ctg(1-cos^2d)
ctgd=cosd/sind
1-cos^2d=sin^2d
2ctgd*(1-cos^2d)=2*cosd/sind*sin^2d=2*cosd*sind