In the D 1 region shown in the figure, 0≤x≤π/2, 0 ≤ y ≤ π/2-x. In the D2 region shown in the figure, 0 ≤x≤π/ 2, π/2-x ≤ y ≤ π-x; π/ 2 ≤x≤π,0≤y≤π-x .
∫cos(x+y)dy=sin(x+y)+C, just take "x" as a "constant" to integrate y, and substitute it into the integral interval value to get the result of "definite integral".
For reference.