I want to prove $\mathbb{Q}(\sqrt{-23}) \subseteq \mathbb{Q}(\zeta_{23})$ using the hint from "Introduction to Cyclotomic Fields" Exercise 2.1. $\zeta_{23}$ is the primitive 23-th root of unity.
I know that $p=23$ is the only prime ramified in $\mathbb{Q}(\zeta_{23})$ hence in $\mathbb{Q}(\sqrt{d})$, thus we have $d=\pm 23$. And I'm wondering how to show $d=-23$ instead of $d=23$. The book says when $p \equiv 1 \pmod 4$ we choose $+$, other we choose $-$. I don't know how to prove it.
Thanks for helps!
I'll just finish @Chris_H's comment, which requies only Galois theory, not ramification theory.
Since the Galois group is isomorphic to $\mathbb F_p^{\times}$ which is cyclic, we have there is a unique subgroup of order $\frac{p-1}{2}$, or in other words, there is a unique subgroup of index $2$, hence there is a unique subextension of degree $2$.
Similarly, there is a unique subgroup of order $2$, or equivalently there is a unique element of order $2$ in $\mathbb F_p^{\times}$. This element must be the complex conjugate from the Galois group. The question about whether $\sqrt{p}$ or $\sqrt{-p}$ is in $\mathbb Q(\zeta_p)$ (assuming one of the two holds, which can be established through ramification theory) reduces to the problem of whether the complex conjugate lies in the unique subgroup of order $\frac{p-1}{2}$, which fixes the unique subextension of order $2$ through the Galois correspondence.
If $p\equiv 1\mod 4$, then $\frac{p-1}{2}$ is even, the subgroup contains an element of order $2$ by Cauchy. While when $p\equiv 3\mod 4$, $\frac{p-1}{2}$ is odd, and the subgroup of such order cannot contain an element of order $2$.