You can get analytical expressions for all integrals if you solve curves f and g for x[y] and h for y[x].
Have a look at the plot.
f = Cos[x] + 2 Cos[x - 2 y];
g = Cos[x - y] + 2 Cos[x + y];
h = Cos[2 x - y] + 2 Cos[y];
ContourPlot[{f == 0, g == 0, h == 0}, {x, 0, \[Pi]/2}, {y, 0, \[Pi]},
ContourStyle -> {Red, Green, Blue},
GridLines -> (gl =
Evaluate@{Table[i, {i, 0, Pi/2, Pi/6}],
Table[i, {i, 0, Pi, Pi/6}]}), FrameTicks -> gl]
For simplification i eliminated Sin or Cos in equations.
eli11 = Eliminate[{TrigExpand[f] == 0, Sin[x]^2 + Cos[x]^2 == 1,
Sin[y]^2 + Cos[y]^2 == 1}, {Sin[x], Sin[y]}]
sol11a = First@
Solve[eli11 && 0 < x < Pi/2 && 2/3 Pi < y < Pi, x, Reals] //
ToRadicals
int11a = Integrate[x /. sol11a, {y, 2/3 Pi, Pi}]
(* 1/36 (4 \[Pi]^2 - 9 Log[2]^2 - 9 PolyLog[2, -(1/2) (-1)^(2/3)] -
9 PolyLog[2, 1/4 + (I Sqrt[3])/4]) *)
sol11b = First@
Solve[eli11 && 0 < x < Pi/2 && Pi/3 < y < Pi/2, x, Reals] //
ToRadicals
int11b = Integrate[x /. sol11b, {y, Pi/3, Pi/2}]
(* 1/72 (5 \[Pi]^2 + 36 PolyLog[2, -(1/2)] -
18 PolyLog[2, 1/2 (-1)^(1/3)] - 18 PolyLog[2, 1/4 (1 - I Sqrt[3])]) *)
eli12 = Eliminate[{TrigExpand[g] == 0, Sin[x]^2 + Cos[x]^2 == 1,
Sin[y]^2 + Cos[y]^2 == 1}, {Sin[x], Sin[y]}]
sol12 = First@Solve[eli12 && 0 < x < Pi/2 && 0 < y < Pi/2, x, Reals]
int12 = Integrate[x /. sol12, {y, 0, Pi/2}]
(* 1/12 (2 \[Pi]^2 - 3 Log[2]^2 - 6 PolyLog[2, -(1/2)]) *)
eli13 = Eliminate[{TrigExpand[h] == 0, Sin[x]^2 + Cos[x]^2 == 1,
Sin[y]^2 + Cos[y]^2 == 1}, {Sin[x], Cos[y]}]
sol13 = First@
Solve[eli13 && 0 < x < Pi/2 && Pi/2 < y < 2/3 Pi, y, Reals] //
ToRadicals
int13 = Integrate[y /. sol13, {x, 0, Pi/2}]
(* 1/24 (7 \[Pi]^2 - 6 Log[2]^2 - 12 PolyLog[2, -(1/2)]) *)
I leave it to you to integrate til the intersection point and to subtract.
g[x_, y_] := Cos[x - y] + 2 Cos[x + y]
thenf=g[x - y, -y]
andh=g[x, y - x]
. Maybe it is helpful... $\endgroup$3.15373
$\endgroup$ArcTan[x]
,ArcTan[y]
forx
andy
, respectively, we get the following simple equations for the region borders4 y x == -3 + y^2
,3 - x y == 0
and3 + x^2 + 2 x y == 0
. $\endgroup$