D[(x-y)^2+(x+y)^4, {{x, y}}, {{x, y}}]