Double Integral 93
Hard Changing the Order of Integration

Show that for the function f(x,y)=(x²-y²)/((x²+y²)²)

Show that for the function $f(x,y)=\dfrac{x^2-y^2}{(x^2+y^2)^2}$ on the unbounded square $x\geqslant1,\,y\geqslant1$, the two iterated integrals: $$ I_1=\int_1^\infty\left(\int_1^\infty f(x,y)\,dy\right)dx, \qquad I_2=\int_1^\infty\left(\int_1^\infty f(x,y)\,dx\right)dy $$ are not equal — and explain why this does not contradict Fubini's theorem.

Explanation of Method

Both inner integrals have a clean antiderivative: noticing that $\dfrac{\partial}{\partial x}\!\left[\dfrac{-x}{x^2+y^2}\right]=\dfrac{x^2-y^2}{(x^2+y^2)^2}=f(x,y)$ (and symmetrically in $y$) turns each inner integral into a simple evaluation, leaving an elementary $\arctan$ integral for the outer variable. Since $f(y,x)=-f(x,y)$, the two iterated integrals are forced to be negatives of each other — and since neither is zero, they must disagree.

  1. Integrate with respect to $y$ (holding $x$ fixed) using the antiderivative $\dfrac{-y}{x^2+y^2}$.
  2. Integrate the resulting function of $x$ to get $I_1$.
  3. Repeat in the other order (using antisymmetry of $f$) to get $I_2=-I_1$.

Step 1 · Inner integral for $I_1$ (integrate over $y$ first)

Since $\dfrac{\partial}{\partial y}\!\left[\dfrac{-y}{x^2+y^2}\right]=\dfrac{y^2-x^2}{(x^2+y^2)^2}=-f(x,y)$, we have $\displaystyle\int f(x,y)\,dy=\dfrac{y}{x^2+y^2}+C$, so:

$$ \int_1^\infty f(x,y)\,dy = \left[\frac{y}{x^2+y^2}\right]_{y=1}^{y=\infty} = 0-\frac{1}{x^2+1} = -\frac{1}{x^2+1}. $$

Step 2 · Outer integral for $I_1$

$$ I_1 = \int_1^\infty \left(-\frac{1}{x^2+1}\right)dx = -\Big[\arctan x\Big]_1^\infty = -\left(\frac\pi2-\frac\pi4\right) = -\frac\pi4. $$

Step 3 · The other order, via antisymmetry

Since $f(y,x)=\dfrac{y^2-x^2}{(y^2+x^2)^2}=-f(x,y)$, relabeling the dummy variables in the definition of $I_2$ shows $I_2$ is computed by exactly the same steps as $I_1$ with $x$ and $y$ exchanged throughout — equivalently, replacing $f$ by $-f$ in Steps 1–2:

$$ \int_1^\infty f(x,y)\,dx = \left[\frac{-x}{x^2+y^2}\right]_{x=1}^{x=\infty} = 0-\left(\frac{-1}{1+y^2}\right) = \frac{1}{y^2+1}, $$

$$ I_2 = \int_1^\infty \frac{1}{y^2+1}\,dy = \Big[\arctan y\Big]_1^\infty = \frac\pi2-\frac\pi4 = \frac\pi4. $$

Step 4 · Compare

$$ I_1 = -\frac\pi4 \;\neq\; \frac\pi4 = I_2. $$

The two iterated integrals, taken in opposite orders, produce opposite (and both nonzero) values.


Additional Notes

Result

The two iterated integrals disagree:

$$ I_1=\int_1^\infty\!\!\int_1^\infty \frac{x^2-y^2}{(x^2+y^2)^2}\,dy\,dx = -\frac\pi4, \qquad I_2=\int_1^\infty\!\!\int_1^\infty \frac{x^2-y^2}{(x^2+y^2)^2}\,dx\,dy = \frac\pi4. $$