Perché non posso valutare questo integrale definito bivariato?

Aug 16 2020

Voglio utilizzare direttamente la funzione x per trovare il valore esatto del seguente integrale definito bivariato:

reg = ImplicitRegion[x^2 + y^2 <= 1 && x >= 0, {x, y}];
(* the answer should be π/2*Log[2] *)
Integrate[(1 + x*y)/(1 + x^2 + y^2), Element[{x, y}, reg]]

Questo integrale bivariato non è complicato, ma la formula precedente restituisce così com'è. Voglio sapere dov'è il problema e come dovrei modificarlo.

NIntegrate[(1 + x*y)/(1 + x^2 + y^2), Element[{x, y}, reg]]
(*1.08879304515*)

Risposte

8 cvgmt Aug 16 2020 at 11:03
Integrate[(1 + x*y)/(1 + x^2 + y^2), {x, y} ∈ Disk[{0, 0}, 1, {-π/2, π/2}]]
7 J.M.'stechnicaldifficulties Aug 16 2020 at 10:56

Si potrebbe semplicemente usare una specifica regionale alternativa:

reg = RegionIntersection[Disk[], HalfPlane[{0, 0}, {0, 1}, {1, 0}]];
Integrate[(1 + x y)/(1 + x^2 + y^2), {x, y} ∈ reg]
   1/2 π Log[2]

o passa alle coordinate polari:

Simplify[((1 + x y)/(1 + x^2 + y^2) /. Thread[{x, y} -> r AngleVector[θ]])
         Det[D[r AngleVector[θ], {{r, θ}}]]]
   (r + r^3 Cos[θ] Sin[θ])/(1 + r^2)

Integrate[(r + r^3 Cos[θ] Sin[θ])/(1 + r^2), {r, 0, 1}, {θ, -π/2, π/2}]
   1/2 π Log[2]