1

Let $X=\{(x,y)\in\mathbf{R}^2\mid x^2+y^2\leqslant 1,x,y\geqslant 0 \}$. Calculate $\int_X xye^{x^2+y^2}\,dx\,dy$.

By using polar coordinates, I get $=\int_0^{\pi/2}\int_0^1e \cos\theta\sin\theta\,dr\,d\theta=\int_0^{\pi/2}\frac{1}{2}e\sin 2\theta\,d\theta=\left.-\frac{1}{4}e\cos 2\theta\right\vert_0^{\pi/2}=\frac{1}{4}e+\frac{1}{4}e=\frac{1}{2}e $.

By rewrting, I get $=\int_0^1 \int_{0}^{\sqrt{1-y^2}} xye^{x^2+y^2}\,dx\,dy=\int_0^1 ye^{y^2}\left(\frac{1}{2}e^{x^2}\right)_0^{\sqrt{1-y^2}}\,dy=\int_0^1 \frac{1}{2}ey-\frac{1}{2}ye^{y^2}\,dy=\left.\frac{1}{4}ey^2-\frac{1}{4}e^{y^2}\right\vert_0^1=\frac{1}{4}e-\frac{1}{4}e+\frac{1}{4}e=\frac{1}{4}e$.

The code in Mathematica

f[x] := x*y*Exp[x^2 + y^2] 

Integrate[f[x] Boole[x^2 + y^2 < 1], {x, 0, 1}, {y, 0, 1}]

gives me $\frac{1}{4}$.

Who can tell me which of these three answers is correct and where are my mistakes?

  • 1
    I think there is an $r^2$ that should be at the exponential. and also there is one $r^2$ multiplying the exponential. Since the polar coordinates is $\Phi$ given by $(r,\theta)\mapsto(r\cos(\theta),r\sin(\theta))$. Also, you must multiply the integrands by $|\det(d\Phi)|$. – André Porto Nov 04 '18 at 13:16
  • @AndréPorto yes but $r=1$ in this case – Dr. Heinz Doofenshmirtz Nov 04 '18 at 13:19
  • Not exactly, actually the boundary of $r$ is $1$. But you are integrating in the whole quarter of the disc. See, you wrote $\int_0^{\frac{\pi}{2}}\int_0^1(...)dr d\theta$, that means that $r$ is variating from $0$ to $1$. – André Porto Nov 04 '18 at 13:20
  • @AndréPorto how stupid that I oversaw that ! Thanks :) – Dr. Heinz Doofenshmirtz Nov 04 '18 at 13:34

1 Answers1

2

Your polar integral is wrong; it should be $$\int_0^{\pi/2}\int_0^1r^2\cos\theta\sin\theta\cdot e^{r^2}r\,dr\,d\theta$$ where the $r^2\cos\theta\sin\theta$ comes from rewriting $xy$ and the extra $r$ factor is the Jacobian of the transformation to polar coordinates. Continuing the evaluation, we get $$=\int_0^{\pi/2}\cos\theta\sin\theta\int_0^1r^3e^{r^2}\,dr\,d\theta$$ $$=\int_0^{\pi/2}\cos\theta\sin\theta[(r^2-1)e^{r^2}/2]_0^1\,d\theta$$ $$=\int_0^{\pi/2}\frac12\cos\theta\sin\theta\,d\theta$$ $$=\frac14\int_0^{\pi/2}\sin2\theta\,d\theta$$ $$=\frac14[-1/2\cdot\cos2\theta]_0^{\pi/2}=\frac14$$ agreeing with Mathematica.

Parcly Taxel
  • 103,344