Q: Show that $\frac{z}{z^2+w^2}\not\in\mathbb{Z}[i]$ for all $z,w\in\mathbb{Z}[i]\backslash\{0\}$.
My solution is to consider the function $f:\mathbb{R}^4\rightarrow\mathbb{R}$, $$f(a,b,c,d)=|z^2+w^2|^2-|z|^2$$ where $z=a+bi$ and $w=c+di$ with $a,b,c,d\in\mathbb{Z}$, and then to prove $f$ is always greater than $0$.
Is there a more concise or number-theory-like way to prove this? I think it might require the properties of squares of Gaussian integers.
Actually this is a intermediate step in proving the determinant of a quaternion lattice does not depend on the choice of basis. If there is an alternative proof for that I will be more than happy if you could write that down.
HINT.-In order that $\frac{z}{z^2+w^2}\in\mathbb{Z}[i]$ you need that $z^2+w^2$ be invertible. On the other hand, it is well known that the only units (i.e. invertible elements) of $\mathbb{Z}[i]$ are $\pm1$ and $\pm i$.
It follows you need $$a^2-b^2+c^2-d^2+2(ab+cd)i\in\{1,-1,i,-i\}$$ Since no way to have $2(ab+cd)=\pm1$ it remains to look at $ab+cd=0$ which gives for some integer $k\ne0$ $$(a^2+c^2)(1-k^2)=\pm1\text{ (why?)}$$ It is not hard to see this is impossible in integers.