D[Sin[x] + Cos[y] + Cos[x - y], x]

D[Sin[x] + Cos[y] + Cos[x - y], y]

Reduce[{0 == Cos[x] - Sin[x - y], 0 == Sin[x - y] - Sin[y]}, {x, 
        y}]