I'm trying to find a general unit/inverse formula for $\mathbb{Q}(\sqrt{2},\sqrt{3}) = \lbrace a+b\sqrt{2}+c\sqrt{3}+d\sqrt{6} \ \vert \ a,b,c,d\in\mathbb{Q}\rbrace$ and then plug in my specific unit $1+\sqrt{2}+\sqrt{3}+\sqrt{6}$ to prove is it a unit/inverse:
$$a+b\sqrt{2}+c\sqrt{3}+d\sqrt{6} = (a+b\sqrt{2})+(c+d\sqrt{2})\sqrt{3}$$
let $x=a+b\sqrt{2}$ and let $y=c+d\sqrt{2}$,
$$(x+y\sqrt{3})(x-y\sqrt{3}) = x^2-3y^2$$ $$\Rightarrow (x+y\sqrt{3})\left(\frac{x-y\sqrt{3}}{x^2-3y^2}\right) = 1$$
this is in the form $a\cdot a^{-1} = 1$ which means, $$a^{-1} = \frac{x-y\sqrt{3}}{x^2-3y^2} = \frac{(a+b\sqrt{2})-(c+d\sqrt{2})\sqrt{3}}{(a+b\sqrt{2})^2-3(c+d\sqrt{2})^2} = \frac{a+b\sqrt{2}-c\sqrt{3}-d\sqrt{6}}{a^2+2\sqrt{2}ab+2b^2-3c^2-6\sqrt{2}cd-6d^2}$$
expanding unit/inverse expression into the form $a+b\sqrt{2}+c\sqrt{3}+d\sqrt{6}$,
$$\frac{a}{a^2+2\sqrt{2}ab+2b^2-3c^2-6\sqrt{2}cd-6d^2} + \left(\frac{b}{a^2+2\sqrt{2}ab+2b^2-3c^2-6\sqrt{2}cd-6d^2}\right)\sqrt{2} + \left(\frac{-c}{a^2+2\sqrt{2}ab+2b^2-3c^2-6\sqrt{2}cd-6d^2}\right)\sqrt{3} + \left(\frac{-d}{a^2+2\sqrt{2}ab+2b^2-3c^2-6\sqrt{2}cd-6d^2}\right)\sqrt{6}$$
plugging in our claimed unit values which is $a=b=c=d=1$
$$\frac{1}{-6-4\sqrt{2}} + \left(\frac{1}{-6-4\sqrt{2}}\right)\sqrt{2} + \left(\frac{-1}{-6-4\sqrt{2}}\right)\sqrt{3} + \left(\frac{-1}{-6-4\sqrt{2}}\right)\sqrt{6}$$
and since $a^{-1} \in \mathbb{Q}(\sqrt{2},\sqrt{3}) \text{ this means }a,b,c,d \in \mathbb{Q} \Rightarrow a,b,c,d = \frac{p}{q} \text{ such that } p,q \in \mathbb{Z} \text{ and } q \neq 0$. However, the denominators of $a,b,c,d = -6-4\sqrt{2}$ which is irrational. But I know $\mathbb{Q}(\sqrt{2},\sqrt{3})$ is a field which implies the existence of units/inverses for all non-zero elements in the ring.
What is my mistake?
solution-verification
question to be on topic you must specify precisely which step in the proof you question, and why so. This site is not meant to be used as a proof checking machine. – Bill Dubuque Feb 23 '24 at 19:32Note that $X$ is a unit in the sens of to be invertible but $X$ is not a unit of the ring of integers of $\mathbb{Q}(\sqrt{2},\sqrt{3})$.
– Piquito Feb 23 '24 at 20:15