Theorem (Eisenstein Criterion). Let $P$ be a prime ideal of the integral domain $R$ and let $f(x) = x^n +a_{n-1}x^n+\cdots+a_1 x +a_0$ be a polynomial in $R [x]$ (here $n \geq 1$). Suppose $a_{n-1},\dots, a_1, a_0$ are all elements of $P$ and suppose $a_0$ is not an element of $P^2$. Then $f(x)$ is irreducible in $R[x]$.
Proof. Suppose $f(x)$ were reducible, say $f(x) = a(x)b(x)$ in $R[x]$, where $a(x)$ and $b(x)$ are nonconstant polynomials. Reducing this equation modulo $P$ and using the assumptions on the coefficients of $f(x)$ we obtain the equation $x^n = \overline{a(x)b(x)} $ in $(R/ P)[x]$, where the bar denotes the polynomials with coefficients reduced mod $P$. Since $P$ is a prime ideal, $R/P$ is an integral domain, and it follows that both $\overline{a(x)}$ and $\overline{b(x)}$ have $0$ constant term, i.e., the constant terms of both $a (x)$ and $b(x)$ are elements of $P$ . But then the constant term $a_0$ of $f(x)$ as the product of these two would be an element of $P^2$, a contradiction. $\Box$
This proof is from Abstract Algebra by Dummit & Foote. The puzzling point is bold-italic in the proof. Why it is not possible that only one constant of $\overline{a(x)}, \overline{b(x)}$ is $0$ and the other is not? I don't think it violates the rule of integral domain in this case.
Could any one give me some idea ? Thank you in advance!
Match coefficients. You obtain a system of equations where if $\deg a = i$ and $\deg b = j$ then $i+j = n$, and, denoting their coefficients by $\alpha_s$ and $\beta_t$, you have $\alpha_i \beta_j = 1$ and then intermediary sums of cross terms, all of which must be $0$. Then the proof as in Dummit and Foote resumes - if these are zero, they are elements of $P$. Ideal arithmetic says that such products are elements of $P^2$, obtaining the contradiction.
Edit: I did not see your more refined question at the end. Suppose that $a(x)$ has $0$ constant term, and it's $b(x)$ that doesn't. Then $a \mod P$ would have to be identically $0$. If not, you could look at its lowest nonzero coefficient and this would eventually be multiplied by the constant term in $b \mod P$. The result is a nonzero monomial with $\deg < n$ in the product $ab \mod P$, since $P$ is a prime ideal. But that means that the whole polynomial $a(x)$ is in $P$, and therefore the whole polynomial is in $P$ since ideals are closed under multiplication. But $f$ is monic, so this is impossible.