Let $R$ be an integral domain, $P$ be a prime ideal of $R$. Let $f\in R[x]$, where $f(x):=a_nx^n +\dots + a_1x+a_0$, such that $a_n\not\in P$, $a_i\in P$ ($i<n$), $a_0\in P^2$. Then $f$ is irreducible.
I was trying to prove this by analogy with the proof in the book Contemporary Abstract Algebra by Gallian, but I have no idea what the author means when he says "... so there is a least integer $t$ such that $p\nmid b_t$. Also, where he says "Let $a_t=b_tc_0 + b_{t-1}c_1+\dots+b_0c_0$" - it is not clear where this is coming from and what this means. [Aside: Actually, I have been penalized several times for omitting much more obvious things in my proof. So, if Gallian wrote his proofs in an assignment or an exam in my university, he'd surely not get top marks].
I would appreciate your help in trying to figure out this stuff.