Another double fractional part integral Today I'm trying to defeat another fractional part integral but it seems quite difficult… That is $$\int_0^1 \int_0^1 \left\{\frac{x+y}{x-y}\right\}\,\mathrm{d}x\,\mathrm{d}y$$ Probably, a way to solve is noticing that for the definition of fractional part function $$\left\{\frac{x+y}{x-y}\right\}=\left\{1+\frac{2y}{x-y}\right\}=\left\{\frac{2y}{x-y}\right\}$$ and it seems somewhat easier. I suppose that the answer is in evaluating the fractional integrand but I have some difficulties with it and the substitutions that I tried weren't very useful. Any suggestion?
The integrand has interesting behavior around $y=x$, so let's split the integral there into two pieces. Let's convert the bottom piece into an integral in polar coordinates:

$$\int_0^{\frac{\pi}{4}} \int_0^{\sec \theta} \left\{\frac{\cos\left(\theta - \frac{\pi}{4}\right)}{\cos\left(\theta + \frac{\pi}{4}\right)}\right\}r\:dr\:d\theta = \frac{1}{2}\int_{\frac{\pi}{4}}^{\frac{\pi}{2}}\{\tan\theta\}\csc^2\theta\:d\theta$$

Now let $u = \cot\theta$ to get

$$\frac{1}{2}\int_0^1 \left\{\frac{1}{u}\right\}\:du = \frac{1-\gamma}{2}$$

which is a somewhat fairly known result, depending on who you ask. The top integral should follow similarly, I'll let you try it on your own (aka left to the reader as an exercise!)



$\textbf{EDIT}$: Given that the inside of the curly braces is negative on the upper piece as @EricTowers noted, we can use 

$$\{-x\} = 1 - \{x\}$$

for noninteger $x$ to get that the integral of the upper piece equals 

$$\iint_{\text{upper}} \left\{\frac{x+y}{x-y}\right\}\:dx\:dy = \iint_{\text{lower}}1 - \left\{\frac{x+y}{x-y}\right\}\:dx\:dy$$

which implies the sum of the two pieces is simply 

$$\iint_{\text{triangle}} dA = \frac{1}{2}$$
Hint:  Exchanging $x$ and $y$ negates the integrand, $$ \left\{ \frac{x+y}{x-y} \right\} = -\left\{ \frac{y+x}{y-x} \right\} \text{,} $$
so split the region of integration along the line $x = y$.