Could someone please help me spot my mistake here :
I want to denest $\sqrt{1+\sqrt{2}}$, I did the following
$\sqrt{1+\sqrt{2}}=\sqrt{d}+\sqrt{e}$
Squaring both sides gives $1+\sqrt{2}=d+e+2\sqrt{de}$
Equating radical and no radicals we get
$1=d+e, \Rightarrow d=1-e$
$\sqrt{2}=2\sqrt{de}\Rightarrow 2=4de \Rightarrow 1/2=de \Rightarrow 1/2=(1-e)e \Rightarrow 1/2=e-e^2 \Rightarrow e^2-e+1/2=0$
Now solving for e we obtain , $e=\tfrac{1^+_-i}{2}$,
which gives $d=\tfrac{1^+_-i}{2}$.
But 1) I read online that when denesting we're always supposed to choose a real e , which is not possible , 2) I don't think d is meant to equal to e is it ?
I think, it's better the following way.
Let $\sqrt{1+\sqrt{2}}=\sqrt{c}+\sqrt{d}$, where $\{c,d\}\subset\mathbb Q$.
Thus, $$1+\sqrt2=c+d+2\sqrt{cd},$$ which gives $$(1-c-d)^2+2+2(1-c-d)\sqrt2=4cd.$$ Now, if $1-c-d\neq0$ we obtain $\sqrt2\in\mathbb Q,$ which is a contradiction.
But if $1-c-d=0$ we obtain $2=4cd$, which gives $c\not\in\mathbb Q$ and $d\not\in\mathbb Q$, which is a contradiction again.
Id est, denesting is impossible.