I have an exercise which I think is very confusing, is there anyone who can help me?
Let F be a field of characteristic $\neq 2$, and suppose that we have $k\in \mathbb{N}$, and elements $d_1,...d_k\in F^{\times}$ such that:
for any $\emptyset \neq S\subseteq\{1,...,k\}$ the element $\prod_{i\in S} d_i$ is not a square in $F^{\times}$
We put $K:=F\left(\sqrt{d_1},...,\sqrt{d_k}\right)$.
We need to show that K/F is Galois, and that for each $i=1,...,k$ there is $\sigma_i\in Gal(K/F)$ such that $\sigma_i\sqrt{d_j}=\sqrt{d_j}$ if $j\neq i$, but $\sigma_i\sqrt{d_i}=-\sqrt{d_i}$.
We have already shown $[K:F]=2^k$, and that a basis of K over F is $\prod_{i\in S} \sqrt{d_i}$ with S running over all subsets of $\{1,...,k\}$