DSolve[Sin[x]^2*y[x] - Cot[x]*Derivative[1][y][x] + Derivative[2][y][x] == 0,y[x],x]