I was trying to evaluate an iterated integral and got a value of $\pi /2$, yet the solution should be $-\pi /2$. I thought my change of order of integration might have been unjustified, but I don't possess any knowledge about measure spaces and such to check whether Fubini's Theorem (which was linked to me earlier) can be applied here. Can anyone correct my mistake?
$\int_0^{\infty}-2b\int_0^{\infty}e^{-b^2(1+y^2)}dydb=\int_0^{\infty}\int_0^{\infty}-2be^{-b^2(1+y^2)}dbdy=\int_0^{\infty}[\frac{e^{-b^2(1+y^2)}}{1+y^2}]_0^{\infty}dy=\int_0^{\infty}\frac{dy}{1+y^2}=\pi /2$