DSolve[Derivative[1][y][x] == Sin[x] + (Cos[x] + y[x])^2,y[x],x]