DSolve[Cos[x]*(-1 + Cos[y[x]]) + (1 + Sin[x])*Sin[y[x]]*Derivative[1][y][x] == 0,y[x],x]