# Calculation of the multiple integral with change of variables.

I would like to solve the following integral $$\int\int_{D} \frac{y}{x^{2}+1} dx dy, \ \ D=\{(x,y)\in R^{2}: x\geq0, y\geq0, x^{2}+y^{2}\geq4 , x+y\leq4 \}$$ using a change of variables, but I don't want to use polar coordinates (they are too complicated for this exercise).

-

The region $D$ can be represented as a difference of two simpler regions, $D = D_1 \backslash D_2$, where $$D_1 = \{ (x,y) \in \mathbb{R}^2: x \geqslant 0, y \geqslant 0, x+y \leqslant 4 \} \quad D_2 = \{ (x,y) \in \mathbb{R}^2: x \geqslant 0, y \geqslant 0, x^2+y^2 < 4 \}$$
Thus $$\int_D \frac{y}{x^2+1} \mathrm{d} x \mathrm{d} y = \int_{D_1} \frac{y}{x^2+1} \mathrm{d} x \mathrm{d} y - \int_{D_2} \frac{y}{x^2+1} \mathrm{d} x \mathrm{d} y$$ The integral over $D_1$ is best done directly: $$\int_{D_1} \frac{y}{x^2+1} \mathrm{d} x \mathrm{d} y = \int_0^4 \mathrm{d} x \int_0^{4-x} \mathrm{d} y \frac{y}{x^2+1} = \int_0^4 \mathrm{d} x \frac{1}{2} \frac{(4-x)^2}{x^2+1} = \left.\frac{1}{2}\left( x + 15 \arctan(x) -4 \log(1+x^2) \right)\right|_{x=0}^{x=4} = 2+ \frac{15}{2} \arctan(4) - 2 \log(17)$$ Integral over $D_2$ is best done in polar coordinates: $$\int_{D_2} \frac{y}{x^2+1} \mathrm{d} x \mathrm{d} y = \int_0^2 r \mathrm{d} r \int_0^{2 \pi} \mathrm{d} \phi \frac{r \sin(\phi)}{r^2 \cos^2(\phi)+1} = \frac{5}{2} \arctan(2) - 1$$
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 1, "x-ck12": 0, "texerror": 0, "math_score": 0.9978621006011963, "perplexity": 85.13469689260646}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-18/segments/1429246658904.34/warc/CC-MAIN-20150417045738-00105-ip-10-235-10-82.ec2.internal.warc.gz"}