Theorem (Galois theory of compositum)
Let $M/K$ be a finite extension with intermediate subfields $L_1, L_2$.
-
If $L_1/K$ is Galois, then so is $L_1L_2$$/L_2$. There is an injective group homomorphism $$ \begin{align*} \Gal(L_{1}L_2/L_2) &\hookrightarrow \Gal(L_1/K) \\ σ &\mapsto σ|_{L_1}, \end{align*} $$ which is surjective iff $L_1 \cap L_2 = K$.
-
If both $L_1/K$ and $L_2/K$ are Galois, then so is $L_1L_2/K$. There is an injective group homomorphism $$ \begin{align*} \Gal(L_1L_2/K) &\hookrightarrow \Gal(L_1/K) \times \Gal(L_2/K) \\ σ &\mapsto (σ|_{L_1}, σ|_{L_2}), \end{align*} $$ which is surjective iff $L_1 \cap L_2 = K$.