For an exercise I have to show that the number of non-isomorphic degree $2$ extensions of the field of $p$-adic numbers $\mathbb{Q}_p$ equals $3$. I was able to show that $$\mathbb{Q}_p^\times/\left(\mathbb{Q}_p^\times\right)^2 \cong \mathbb{Z}/2\mathbb{Z} \oplus \mathbb{Z}/2\mathbb{Z}$$ where $K^\times$ denotes the group of units in the field $K$. If I could prove that $\mathbb{Q}_p(\sqrt{d}) \cong \mathbb{Q}_p(\sqrt{e})$ if and only if $d = u^2e$ for $p$-adic numbers $d,e,u$, then I would be done.
I recalled the proof that $\mathbb{Q}(\sqrt{2})$ is not isomorphic to $\mathbb{Q}(\sqrt{3})$, where it is shown that (well, at least in the proof I saw) that if there would have been an isomorphism, then $\sqrt{2}$ would be an element of $\mathbb{Q}(\sqrt{3})$, but this proof uses that the isomorphism would fix the rational numbers. I do not immediately see how to generalize this to the $p$-adic case.
Any hints or would my approach be completely wrong?
Answer using hint We might consider integers. Let $d,e$ be integers such that there is no $p$-adic number $u$ satisfying $d = u^2e$. Suppose however that $\mathbb{Q}_p(\sqrt{d}) \cong \mathbb{Q}_p(\sqrt{e})$ by some isomorphism $\phi$. Note that $\phi(1) = 1$, hence we have that $$d = 1 + 1 + \ldots + 1 = \phi(1)+ \ldots + \phi(1) = \phi(d) = \phi(\sqrt{d}^2) = \phi(\sqrt{d})^2$$ hence $\phi(\sqrt{d}) = \pm \sqrt{d}$. This implies that $\sqrt{d} \in \mathbb{Q}_p\sqrt{e})$. Since $\mathbb{Q}_p(\sqrt{e})$ is a vectorspace over $\mathbb{Q}_p$ of dimension $2$ we can pick a basis $\{1, \sqrt{e}\}$, from which we find that $$\sqrt{d} = a + b\sqrt{e}$$ with $a,b \in \mathbb{Q}_p$. However, this implies that $d = a^2 + 2ab\sqrt{e} + b^2e$ and this results in $$\begin{cases} d &= a^2 + b^2e\\ 0&= 2ab \end{cases}$$ The last equations implies that either $a$ or $b$ is zero. But this implies that $d = b^2e$ respectively $d = a^2$. The former is not possible by assumption, while the latter does not give an extension of degree $2$. Hence these extensions can not be isomorphic.
If you knew that the isomorphism must fix $ \mathbf Q_p $, then I imagine you would be done. To do this, you need to show that an isomorphism $ f : K \to L $ of $ p $-adic fields must be continuous. It suffices to show that $ f $ preserves $ p $-adic units, that is, the isomorphism $ f : K \to L $ restricts to a group isomorphism $ \bar f : \mathcal O_K^{\times} \to \mathcal O_L^{\times} $, where $ \mathcal O_K^{\times} = \{ x \in K : v(x) = 0 \} $, where $ v $ is the unique valuation on $ K $ extending the valuation on $ \mathbf Q_p $. We now use the fact that an element $ x \in K, L $ is a $ p $-adic unit iff it can be written as an $ n $th power for arbitrarily large $ n $. Indeed, it's obvious that any such element must be a unit, and any unit $ u $ can be written in that way by picking arbitrarily large $ n $ coprime to $ p(k-1) $ where $ k $ is the cardinality of the residue field, and using Hensel's lemma on $ X^n - u $. Since being an $ n $th power for arbitrarily large $ n $ is a property preserved under field isomorphism, it follows that any isomorphism of $ p $-adic fields preserves $ p $-adic valuations, and is therefore continuous.
Now, simply note that if such an isomorphism is continuous, then it fixes $ \mathbf Q $ since it is a field isomorphism, and it fixes $ \mathbf Q_p $ since $ \mathbf Q $ is dense in $ \mathbf Q_p $.