Let $R$ be an integral domain and $f = X^2 - Y^n \in (R[Y])[X]$ with $n \geq 1$. I'd like to prove the following: $f$ is irreducible in $(R[Y])[X]$ $\Leftrightarrow$ $n$ is odd.
If $n = 2k$ is even, then $f = X^2 - Y^{2k} = (X+Y^k)(X-Y^k)$ is reducible in $(R[Y])[X]$. But how can I show that $f$ is irreducible in $(R[Y])[X]$ if $n$ is odd? The tools I have for determining the irreducibility of $f$ (e.g. Eisenstein's criterion in conjunction with Gauss's lemma) only give me insights on the irreducibility of $f$ in the space of fractions above $(R[Y])[X]$, but not $(R[Y])[X]$ itself.